Skip to content

Commit

Permalink
feat: update generated client with default client configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewFossAWS committed Jan 22, 2024
1 parent 739e940 commit a2ebce5
Show file tree
Hide file tree
Showing 374 changed files with 10,846 additions and 0 deletions.
29 changes: 29 additions & 0 deletions Sources/Services/AWSACM/ACMClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,35 @@ extension ACMClient {
self.endpointResolver = try endpointResolver ?? DefaultEndpointResolver()
}
}

static func resolve(plugins: [any Plugin]) async throws -> ACMClient.ACMClientConfiguration {
let clientConfiguration = try await ACMClient.ACMClientConfiguration()
for plugin in plugins {
try await plugin.configureClient(clientConfiguration: clientConfiguration)
}
return clientConfiguration
}

public class Builder {
private var plugins: [Plugin]
public init(defaultPlugins: [Plugin] = []) {
self.plugins = defaultPlugins
}
public func withPlugin(plugin: any Plugin) {
self.plugins.append(plugin)
}
public func build() async throws -> ACMClient {
let configuration = try await resolve(plugins: self.plugins)
return ACMClient(config: configuration)
}
}

public static func builder() -> Builder {
return Builder(defaultPlugins: [DefaultClientPlugin()])
}
}

extension ACMClient.ACMClientConfiguration: AwsDefaultClientConfiguration & AwsRegionClientConfiguration & DefaultClientConfiguration & DefaultHttpClientConfiguration {
}

public struct ACMClientLogHandlerFactory: ClientRuntime.SDKLogHandlerFactory {
Expand Down
29 changes: 29 additions & 0 deletions Sources/Services/AWSACMPCA/ACMPCAClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,35 @@ extension ACMPCAClient {
self.endpointResolver = try endpointResolver ?? DefaultEndpointResolver()
}
}

static func resolve(plugins: [any Plugin]) async throws -> ACMPCAClient.ACMPCAClientConfiguration {
let clientConfiguration = try await ACMPCAClient.ACMPCAClientConfiguration()
for plugin in plugins {
try await plugin.configureClient(clientConfiguration: clientConfiguration)
}
return clientConfiguration
}

public class Builder {
private var plugins: [Plugin]
public init(defaultPlugins: [Plugin] = []) {
self.plugins = defaultPlugins
}
public func withPlugin(plugin: any Plugin) {
self.plugins.append(plugin)
}
public func build() async throws -> ACMPCAClient {
let configuration = try await resolve(plugins: self.plugins)
return ACMPCAClient(config: configuration)
}
}

public static func builder() -> Builder {
return Builder(defaultPlugins: [DefaultClientPlugin()])
}
}

extension ACMPCAClient.ACMPCAClientConfiguration: AwsDefaultClientConfiguration & AwsRegionClientConfiguration & DefaultClientConfiguration & DefaultHttpClientConfiguration {
}

public struct ACMPCAClientLogHandlerFactory: ClientRuntime.SDKLogHandlerFactory {
Expand Down
29 changes: 29 additions & 0 deletions Sources/Services/AWSAPIGateway/APIGatewayClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,35 @@ extension APIGatewayClient {
self.endpointResolver = try endpointResolver ?? DefaultEndpointResolver()
}
}

static func resolve(plugins: [any Plugin]) async throws -> APIGatewayClient.APIGatewayClientConfiguration {
let clientConfiguration = try await APIGatewayClient.APIGatewayClientConfiguration()
for plugin in plugins {
try await plugin.configureClient(clientConfiguration: clientConfiguration)
}
return clientConfiguration
}

public class Builder {
private var plugins: [Plugin]
public init(defaultPlugins: [Plugin] = []) {
self.plugins = defaultPlugins
}
public func withPlugin(plugin: any Plugin) {
self.plugins.append(plugin)
}
public func build() async throws -> APIGatewayClient {
let configuration = try await resolve(plugins: self.plugins)
return APIGatewayClient(config: configuration)
}
}

public static func builder() -> Builder {
return Builder(defaultPlugins: [DefaultClientPlugin()])
}
}

extension APIGatewayClient.APIGatewayClientConfiguration: AwsDefaultClientConfiguration & AwsRegionClientConfiguration & DefaultClientConfiguration & DefaultHttpClientConfiguration {
}

public struct APIGatewayClientLogHandlerFactory: ClientRuntime.SDKLogHandlerFactory {
Expand Down
29 changes: 29 additions & 0 deletions Sources/Services/AWSARCZonalShift/ARCZonalShiftClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,35 @@ extension ARCZonalShiftClient {
self.endpointResolver = try endpointResolver ?? DefaultEndpointResolver()
}
}

static func resolve(plugins: [any Plugin]) async throws -> ARCZonalShiftClient.ARCZonalShiftClientConfiguration {
let clientConfiguration = try await ARCZonalShiftClient.ARCZonalShiftClientConfiguration()
for plugin in plugins {
try await plugin.configureClient(clientConfiguration: clientConfiguration)
}
return clientConfiguration
}

public class Builder {
private var plugins: [Plugin]
public init(defaultPlugins: [Plugin] = []) {
self.plugins = defaultPlugins
}
public func withPlugin(plugin: any Plugin) {
self.plugins.append(plugin)
}
public func build() async throws -> ARCZonalShiftClient {
let configuration = try await resolve(plugins: self.plugins)
return ARCZonalShiftClient(config: configuration)
}
}

public static func builder() -> Builder {
return Builder(defaultPlugins: [DefaultClientPlugin()])
}
}

extension ARCZonalShiftClient.ARCZonalShiftClientConfiguration: AwsDefaultClientConfiguration & AwsRegionClientConfiguration & DefaultClientConfiguration & DefaultHttpClientConfiguration {
}

public struct ARCZonalShiftClientLogHandlerFactory: ClientRuntime.SDKLogHandlerFactory {
Expand Down
29 changes: 29 additions & 0 deletions Sources/Services/AWSAccessAnalyzer/AccessAnalyzerClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,35 @@ extension AccessAnalyzerClient {
self.endpointResolver = try endpointResolver ?? DefaultEndpointResolver()
}
}

static func resolve(plugins: [any Plugin]) async throws -> AccessAnalyzerClient.AccessAnalyzerClientConfiguration {
let clientConfiguration = try await AccessAnalyzerClient.AccessAnalyzerClientConfiguration()
for plugin in plugins {
try await plugin.configureClient(clientConfiguration: clientConfiguration)
}
return clientConfiguration
}

public class Builder {
private var plugins: [Plugin]
public init(defaultPlugins: [Plugin] = []) {
self.plugins = defaultPlugins
}
public func withPlugin(plugin: any Plugin) {
self.plugins.append(plugin)
}
public func build() async throws -> AccessAnalyzerClient {
let configuration = try await resolve(plugins: self.plugins)
return AccessAnalyzerClient(config: configuration)
}
}

public static func builder() -> Builder {
return Builder(defaultPlugins: [DefaultClientPlugin()])
}
}

extension AccessAnalyzerClient.AccessAnalyzerClientConfiguration: AwsDefaultClientConfiguration & AwsRegionClientConfiguration & DefaultClientConfiguration & DefaultHttpClientConfiguration {
}

public struct AccessAnalyzerClientLogHandlerFactory: ClientRuntime.SDKLogHandlerFactory {
Expand Down
29 changes: 29 additions & 0 deletions Sources/Services/AWSAccount/AccountClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,35 @@ extension AccountClient {
self.endpointResolver = try endpointResolver ?? DefaultEndpointResolver()
}
}

static func resolve(plugins: [any Plugin]) async throws -> AccountClient.AccountClientConfiguration {
let clientConfiguration = try await AccountClient.AccountClientConfiguration()
for plugin in plugins {
try await plugin.configureClient(clientConfiguration: clientConfiguration)
}
return clientConfiguration
}

public class Builder {
private var plugins: [Plugin]
public init(defaultPlugins: [Plugin] = []) {
self.plugins = defaultPlugins
}
public func withPlugin(plugin: any Plugin) {
self.plugins.append(plugin)
}
public func build() async throws -> AccountClient {
let configuration = try await resolve(plugins: self.plugins)
return AccountClient(config: configuration)
}
}

public static func builder() -> Builder {
return Builder(defaultPlugins: [DefaultClientPlugin()])
}
}

extension AccountClient.AccountClientConfiguration: AwsDefaultClientConfiguration & AwsRegionClientConfiguration & DefaultClientConfiguration & DefaultHttpClientConfiguration {
}

public struct AccountClientLogHandlerFactory: ClientRuntime.SDKLogHandlerFactory {
Expand Down
29 changes: 29 additions & 0 deletions Sources/Services/AWSAlexaForBusiness/AlexaForBusinessClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,35 @@ extension AlexaForBusinessClient {
self.endpointResolver = try endpointResolver ?? DefaultEndpointResolver()
}
}

static func resolve(plugins: [any Plugin]) async throws -> AlexaForBusinessClient.AlexaForBusinessClientConfiguration {
let clientConfiguration = try await AlexaForBusinessClient.AlexaForBusinessClientConfiguration()
for plugin in plugins {
try await plugin.configureClient(clientConfiguration: clientConfiguration)
}
return clientConfiguration
}

public class Builder {
private var plugins: [Plugin]
public init(defaultPlugins: [Plugin] = []) {
self.plugins = defaultPlugins
}
public func withPlugin(plugin: any Plugin) {
self.plugins.append(plugin)
}
public func build() async throws -> AlexaForBusinessClient {
let configuration = try await resolve(plugins: self.plugins)
return AlexaForBusinessClient(config: configuration)
}
}

public static func builder() -> Builder {
return Builder(defaultPlugins: [DefaultClientPlugin()])
}
}

extension AlexaForBusinessClient.AlexaForBusinessClientConfiguration: AwsDefaultClientConfiguration & AwsRegionClientConfiguration & DefaultClientConfiguration & DefaultHttpClientConfiguration {
}

public struct AlexaForBusinessClientLogHandlerFactory: ClientRuntime.SDKLogHandlerFactory {
Expand Down
29 changes: 29 additions & 0 deletions Sources/Services/AWSAmp/AmpClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,35 @@ extension AmpClient {
self.endpointResolver = try endpointResolver ?? DefaultEndpointResolver()
}
}

static func resolve(plugins: [any Plugin]) async throws -> AmpClient.AmpClientConfiguration {
let clientConfiguration = try await AmpClient.AmpClientConfiguration()
for plugin in plugins {
try await plugin.configureClient(clientConfiguration: clientConfiguration)
}
return clientConfiguration
}

public class Builder {
private var plugins: [Plugin]
public init(defaultPlugins: [Plugin] = []) {
self.plugins = defaultPlugins
}
public func withPlugin(plugin: any Plugin) {
self.plugins.append(plugin)
}
public func build() async throws -> AmpClient {
let configuration = try await resolve(plugins: self.plugins)
return AmpClient(config: configuration)
}
}

public static func builder() -> Builder {
return Builder(defaultPlugins: [DefaultClientPlugin()])
}
}

extension AmpClient.AmpClientConfiguration: AwsDefaultClientConfiguration & AwsRegionClientConfiguration & DefaultClientConfiguration & DefaultHttpClientConfiguration {
}

public struct AmpClientLogHandlerFactory: ClientRuntime.SDKLogHandlerFactory {
Expand Down
29 changes: 29 additions & 0 deletions Sources/Services/AWSAmplify/AmplifyClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,35 @@ extension AmplifyClient {
self.endpointResolver = try endpointResolver ?? DefaultEndpointResolver()
}
}

static func resolve(plugins: [any Plugin]) async throws -> AmplifyClient.AmplifyClientConfiguration {
let clientConfiguration = try await AmplifyClient.AmplifyClientConfiguration()
for plugin in plugins {
try await plugin.configureClient(clientConfiguration: clientConfiguration)
}
return clientConfiguration
}

public class Builder {
private var plugins: [Plugin]
public init(defaultPlugins: [Plugin] = []) {
self.plugins = defaultPlugins
}
public func withPlugin(plugin: any Plugin) {
self.plugins.append(plugin)
}
public func build() async throws -> AmplifyClient {
let configuration = try await resolve(plugins: self.plugins)
return AmplifyClient(config: configuration)
}
}

public static func builder() -> Builder {
return Builder(defaultPlugins: [DefaultClientPlugin()])
}
}

extension AmplifyClient.AmplifyClientConfiguration: AwsDefaultClientConfiguration & AwsRegionClientConfiguration & DefaultClientConfiguration & DefaultHttpClientConfiguration {
}

public struct AmplifyClientLogHandlerFactory: ClientRuntime.SDKLogHandlerFactory {
Expand Down
29 changes: 29 additions & 0 deletions Sources/Services/AWSAmplifyBackend/AmplifyBackendClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,35 @@ extension AmplifyBackendClient {
self.endpointResolver = try endpointResolver ?? DefaultEndpointResolver()
}
}

static func resolve(plugins: [any Plugin]) async throws -> AmplifyBackendClient.AmplifyBackendClientConfiguration {
let clientConfiguration = try await AmplifyBackendClient.AmplifyBackendClientConfiguration()
for plugin in plugins {
try await plugin.configureClient(clientConfiguration: clientConfiguration)
}
return clientConfiguration
}

public class Builder {
private var plugins: [Plugin]
public init(defaultPlugins: [Plugin] = []) {
self.plugins = defaultPlugins
}
public func withPlugin(plugin: any Plugin) {
self.plugins.append(plugin)
}
public func build() async throws -> AmplifyBackendClient {
let configuration = try await resolve(plugins: self.plugins)
return AmplifyBackendClient(config: configuration)
}
}

public static func builder() -> Builder {
return Builder(defaultPlugins: [DefaultClientPlugin()])
}
}

extension AmplifyBackendClient.AmplifyBackendClientConfiguration: AwsDefaultClientConfiguration & AwsRegionClientConfiguration & DefaultClientConfiguration & DefaultHttpClientConfiguration {
}

public struct AmplifyBackendClientLogHandlerFactory: ClientRuntime.SDKLogHandlerFactory {
Expand Down
29 changes: 29 additions & 0 deletions Sources/Services/AWSAmplifyUIBuilder/AmplifyUIBuilderClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,35 @@ extension AmplifyUIBuilderClient {
self.endpointResolver = try endpointResolver ?? DefaultEndpointResolver()
}
}

static func resolve(plugins: [any Plugin]) async throws -> AmplifyUIBuilderClient.AmplifyUIBuilderClientConfiguration {
let clientConfiguration = try await AmplifyUIBuilderClient.AmplifyUIBuilderClientConfiguration()
for plugin in plugins {
try await plugin.configureClient(clientConfiguration: clientConfiguration)
}
return clientConfiguration
}

public class Builder {
private var plugins: [Plugin]
public init(defaultPlugins: [Plugin] = []) {
self.plugins = defaultPlugins
}
public func withPlugin(plugin: any Plugin) {
self.plugins.append(plugin)
}
public func build() async throws -> AmplifyUIBuilderClient {
let configuration = try await resolve(plugins: self.plugins)
return AmplifyUIBuilderClient(config: configuration)
}
}

public static func builder() -> Builder {
return Builder(defaultPlugins: [DefaultClientPlugin()])
}
}

extension AmplifyUIBuilderClient.AmplifyUIBuilderClientConfiguration: AwsDefaultClientConfiguration & AwsRegionClientConfiguration & DefaultClientConfiguration & DefaultHttpClientConfiguration {
}

public struct AmplifyUIBuilderClientLogHandlerFactory: ClientRuntime.SDKLogHandlerFactory {
Expand Down
Loading

0 comments on commit a2ebce5

Please sign in to comment.