Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Update codegen after merge of closure-based read/write #1494

Merged
merged 1 commit into from
May 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
102 changes: 32 additions & 70 deletions Sources/Services/AWSACM/ACMClient.swift

Large diffs are not rendered by default.

3,072 changes: 831 additions & 2,241 deletions Sources/Services/AWSACM/models/Models.swift

Large diffs are not rendered by default.

150 changes: 48 additions & 102 deletions Sources/Services/AWSACMPCA/ACMPCAClient.swift

Large diffs are not rendered by default.

4,332 changes: 1,244 additions & 3,088 deletions Sources/Services/AWSACMPCA/models/Models.swift

Large diffs are not rendered by default.

584 changes: 168 additions & 416 deletions Sources/Services/AWSAPIGateway/APIGatewayClient.swift

Large diffs are not rendered by default.

17,921 changes: 4,300 additions & 13,621 deletions Sources/Services/AWSAPIGateway/models/Models.swift

Large diffs are not rendered by default.

66 changes: 18 additions & 48 deletions Sources/Services/AWSARCZonalShift/ARCZonalShiftClient.swift

Large diffs are not rendered by default.

2,176 changes: 542 additions & 1,634 deletions Sources/Services/AWSARCZonalShift/models/Models.swift

Large diffs are not rendered by default.

172 changes: 50 additions & 122 deletions Sources/Services/AWSAccessAnalyzer/AccessAnalyzerClient.swift

Large diffs are not rendered by default.

7,288 changes: 2,067 additions & 5,221 deletions Sources/Services/AWSAccessAnalyzer/models/Models.swift

Large diffs are not rendered by default.

66 changes: 20 additions & 46 deletions Sources/Services/AWSAccount/AccountClient.swift

Large diffs are not rendered by default.

1,336 changes: 388 additions & 948 deletions Sources/Services/AWSAccount/models/Models.swift

Large diffs are not rendered by default.

570 changes: 188 additions & 382 deletions Sources/Services/AWSAlexaForBusiness/AlexaForBusinessClient.swift

Large diffs are not rendered by default.

12,904 changes: 3,473 additions & 9,431 deletions Sources/Services/AWSAlexaForBusiness/models/Models.swift

Large diffs are not rendered by default.

136 changes: 38 additions & 98 deletions Sources/Services/AWSAmp/AmpClient.swift

Large diffs are not rendered by default.

3,604 changes: 1,053 additions & 2,551 deletions Sources/Services/AWSAmp/models/Models.swift

Large diffs are not rendered by default.

188 changes: 53 additions & 135 deletions Sources/Services/AWSAmplify/AmplifyClient.swift

Large diffs are not rendered by default.

5,606 changes: 1,452 additions & 4,154 deletions Sources/Services/AWSAmplify/models/Models.swift

Large diffs are not rendered by default.

186 changes: 58 additions & 128 deletions Sources/Services/AWSAmplifyBackend/AmplifyBackendClient.swift

Large diffs are not rendered by default.

5,658 changes: 1,583 additions & 4,075 deletions Sources/Services/AWSAmplifyBackend/models/Models.swift

Large diffs are not rendered by default.

146 changes: 41 additions & 105 deletions Sources/Services/AWSAmplifyUIBuilder/AmplifyUIBuilderClient.swift

Large diffs are not rendered by default.

6,926 changes: 1,898 additions & 5,028 deletions Sources/Services/AWSAmplifyUIBuilder/models/Models.swift

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,17 @@
import ClientRuntime
import Foundation
import Logging
import SmithyJSON
import SmithyReadWrite

public class ApiGatewayManagementApiClient: Client {
public static let clientName = "ApiGatewayManagementApiClient"
let client: ClientRuntime.SdkHttpClient
let config: ApiGatewayManagementApiClient.ApiGatewayManagementApiClientConfiguration
let serviceName = "ApiGatewayManagementApi"
let encoder: ClientRuntime.RequestEncoder
let decoder: ClientRuntime.ResponseDecoder

public required init(config: ApiGatewayManagementApiClient.ApiGatewayManagementApiClientConfiguration) {
client = ClientRuntime.SdkHttpClient(engine: config.httpClientEngine, config: config.httpClientConfiguration)
let encoder = ClientRuntime.JSONEncoder()
encoder.dateEncodingStrategy = .secondsSince1970
encoder.nonConformingFloatEncodingStrategy = .convertToString(positiveInfinity: "Infinity", negativeInfinity: "-Infinity", nan: "NaN")
self.encoder = encoder
let decoder = ClientRuntime.JSONDecoder()
decoder.dateDecodingStrategy = .secondsSince1970
decoder.nonConformingFloatDecodingStrategy = .convertFromString(positiveInfinity: "Infinity", negativeInfinity: "-Infinity", nan: "NaN")
self.decoder = decoder
self.config = config
}

Expand Down Expand Up @@ -156,8 +148,6 @@ extension ApiGatewayManagementApiClient {
/// - `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 func deleteConnection(input: DeleteConnectionInput) async throws -> DeleteConnectionOutput {
let context = ClientRuntime.HttpContextBuilder()
.withEncoder(value: encoder)
.withDecoder(value: decoder)
.withMethod(value: .delete)
.withServiceName(value: serviceName)
.withOperation(value: "deleteConnection")
Expand All @@ -183,7 +173,7 @@ extension ApiGatewayManagementApiClient {
operation.buildStep.intercept(position: .before, middleware: ClientRuntime.AuthSchemeMiddleware<DeleteConnectionOutput>())
operation.finalizeStep.intercept(position: .after, middleware: ClientRuntime.RetryMiddleware<ClientRuntime.DefaultRetryStrategy, AWSClientRuntime.AWSRetryErrorInfoProvider, DeleteConnectionOutput>(options: config.retryStrategyOptions))
operation.finalizeStep.intercept(position: .before, middleware: ClientRuntime.SignerMiddleware<DeleteConnectionOutput>())
operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware<DeleteConnectionOutput>(responseClosure(decoder: decoder), responseErrorClosure(DeleteConnectionOutputError.self, decoder: decoder)))
operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware<DeleteConnectionOutput>(DeleteConnectionOutput.httpOutput(from:), DeleteConnectionOutputError.httpError(from:)))
operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware<DeleteConnectionInput, DeleteConnectionOutput>(clientLogMode: config.clientLogMode))
let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler())
return result
Expand All @@ -205,8 +195,6 @@ extension ApiGatewayManagementApiClient {
/// - `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 func getConnection(input: GetConnectionInput) async throws -> GetConnectionOutput {
let context = ClientRuntime.HttpContextBuilder()
.withEncoder(value: encoder)
.withDecoder(value: decoder)
.withMethod(value: .get)
.withServiceName(value: serviceName)
.withOperation(value: "getConnection")
Expand All @@ -232,7 +220,7 @@ extension ApiGatewayManagementApiClient {
operation.buildStep.intercept(position: .before, middleware: ClientRuntime.AuthSchemeMiddleware<GetConnectionOutput>())
operation.finalizeStep.intercept(position: .after, middleware: ClientRuntime.RetryMiddleware<ClientRuntime.DefaultRetryStrategy, AWSClientRuntime.AWSRetryErrorInfoProvider, GetConnectionOutput>(options: config.retryStrategyOptions))
operation.finalizeStep.intercept(position: .before, middleware: ClientRuntime.SignerMiddleware<GetConnectionOutput>())
operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware<GetConnectionOutput>(responseClosure(decoder: decoder), responseErrorClosure(GetConnectionOutputError.self, decoder: decoder)))
operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware<GetConnectionOutput>(GetConnectionOutput.httpOutput(from:), GetConnectionOutputError.httpError(from:)))
operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware<GetConnectionInput, GetConnectionOutput>(clientLogMode: config.clientLogMode))
let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler())
return result
Expand All @@ -255,8 +243,6 @@ extension ApiGatewayManagementApiClient {
/// - `PayloadTooLargeException` : The data has exceeded the maximum size allowed.
public func postToConnection(input: PostToConnectionInput) async throws -> PostToConnectionOutput {
let context = ClientRuntime.HttpContextBuilder()
.withEncoder(value: encoder)
.withDecoder(value: decoder)
.withMethod(value: .post)
.withServiceName(value: serviceName)
.withOperation(value: "postToConnection")
Expand Down Expand Up @@ -285,7 +271,7 @@ extension ApiGatewayManagementApiClient {
operation.finalizeStep.intercept(position: .before, middleware: ClientRuntime.ContentLengthMiddleware<PostToConnectionInput, PostToConnectionOutput>())
operation.finalizeStep.intercept(position: .after, middleware: ClientRuntime.RetryMiddleware<ClientRuntime.DefaultRetryStrategy, AWSClientRuntime.AWSRetryErrorInfoProvider, PostToConnectionOutput>(options: config.retryStrategyOptions))
operation.finalizeStep.intercept(position: .before, middleware: ClientRuntime.SignerMiddleware<PostToConnectionOutput>())
operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware<PostToConnectionOutput>(responseClosure(decoder: decoder), responseErrorClosure(PostToConnectionOutputError.self, decoder: decoder)))
operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware<PostToConnectionOutput>(PostToConnectionOutput.httpOutput(from:), PostToConnectionOutputError.httpError(from:)))
operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware<PostToConnectionInput, PostToConnectionOutput>(clientLogMode: config.clientLogMode))
let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler())
return result
Expand Down
Loading
Loading