Skip to content

Commit

Permalink
feat: update client codegen with endpoint plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewFossAWS committed Feb 22, 2024
1 parent 9443a7c commit bb8178e
Show file tree
Hide file tree
Showing 376 changed files with 4,512 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Sources/Services/AWSACM/ACMClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,18 @@ public struct ACMClientLogHandlerFactory: ClientRuntime.SDKLogHandlerFactory {
}
}

public class EndpointPlugin: Plugin {
private var endpointResolver: EndpointResolver
public init(endpointResolver: EndpointResolver) {
self.endpointResolver = endpointResolver
}
public func configureClient(clientConfiguration: ClientRuntime.ClientConfiguration) throws {
if var config = clientConfiguration as? ACMClient.ACMClientConfiguration {
config.endpointResolver = self.endpointResolver
}
}
}

extension ACMClient {
/// Performs the `AddTagsToCertificate` operation on the `CertificateManager` service.
///
Expand Down
12 changes: 12 additions & 0 deletions Sources/Services/AWSACMPCA/ACMPCAClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,18 @@ public struct ACMPCAClientLogHandlerFactory: ClientRuntime.SDKLogHandlerFactory
}
}

public class EndpointPlugin: Plugin {
private var endpointResolver: EndpointResolver
public init(endpointResolver: EndpointResolver) {
self.endpointResolver = endpointResolver
}
public func configureClient(clientConfiguration: ClientRuntime.ClientConfiguration) throws {
if var config = clientConfiguration as? ACMPCAClient.ACMPCAClientConfiguration {
config.endpointResolver = self.endpointResolver
}
}
}

extension ACMPCAClient {
/// Performs the `CreateCertificateAuthority` operation on the `ACMPrivateCA` service.
///
Expand Down
12 changes: 12 additions & 0 deletions Sources/Services/AWSAPIGateway/APIGatewayClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,18 @@ public struct APIGatewayClientLogHandlerFactory: ClientRuntime.SDKLogHandlerFact
}
}

public class EndpointPlugin: Plugin {
private var endpointResolver: EndpointResolver
public init(endpointResolver: EndpointResolver) {
self.endpointResolver = endpointResolver
}
public func configureClient(clientConfiguration: ClientRuntime.ClientConfiguration) throws {
if var config = clientConfiguration as? APIGatewayClient.APIGatewayClientConfiguration {
config.endpointResolver = self.endpointResolver
}
}
}

extension APIGatewayClient {
/// Performs the `CreateApiKey` operation on the `BackplaneControlService` service.
///
Expand Down
12 changes: 12 additions & 0 deletions Sources/Services/AWSARCZonalShift/ARCZonalShiftClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,18 @@ public struct ARCZonalShiftClientLogHandlerFactory: ClientRuntime.SDKLogHandlerF
}
}

public class EndpointPlugin: Plugin {
private var endpointResolver: EndpointResolver
public init(endpointResolver: EndpointResolver) {
self.endpointResolver = endpointResolver
}
public func configureClient(clientConfiguration: ClientRuntime.ClientConfiguration) throws {
if var config = clientConfiguration as? ARCZonalShiftClient.ARCZonalShiftClientConfiguration {
config.endpointResolver = self.endpointResolver
}
}
}

extension ARCZonalShiftClient {
/// Performs the `CancelZonalShift` operation on the `PercDataPlane` service.
///
Expand Down
12 changes: 12 additions & 0 deletions Sources/Services/AWSAccessAnalyzer/AccessAnalyzerClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,18 @@ public struct AccessAnalyzerClientLogHandlerFactory: ClientRuntime.SDKLogHandler
}
}

public class EndpointPlugin: Plugin {
private var endpointResolver: EndpointResolver
public init(endpointResolver: EndpointResolver) {
self.endpointResolver = endpointResolver
}
public func configureClient(clientConfiguration: ClientRuntime.ClientConfiguration) throws {
if var config = clientConfiguration as? AccessAnalyzerClient.AccessAnalyzerClientConfiguration {
config.endpointResolver = self.endpointResolver
}
}
}

extension AccessAnalyzerClient {
/// Performs the `ApplyArchiveRule` operation on the `AccessAnalyzer` service.
///
Expand Down
12 changes: 12 additions & 0 deletions Sources/Services/AWSAccount/AccountClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,18 @@ public struct AccountClientLogHandlerFactory: ClientRuntime.SDKLogHandlerFactory
}
}

public class EndpointPlugin: Plugin {
private var endpointResolver: EndpointResolver
public init(endpointResolver: EndpointResolver) {
self.endpointResolver = endpointResolver
}
public func configureClient(clientConfiguration: ClientRuntime.ClientConfiguration) throws {
if var config = clientConfiguration as? AccountClient.AccountClientConfiguration {
config.endpointResolver = self.endpointResolver
}
}
}

extension AccountClient {
/// Performs the `DeleteAlternateContact` operation on the `Account` service.
///
Expand Down
12 changes: 12 additions & 0 deletions Sources/Services/AWSAlexaForBusiness/AlexaForBusinessClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,18 @@ public struct AlexaForBusinessClientLogHandlerFactory: ClientRuntime.SDKLogHandl
}
}

public class EndpointPlugin: Plugin {
private var endpointResolver: EndpointResolver
public init(endpointResolver: EndpointResolver) {
self.endpointResolver = endpointResolver
}
public func configureClient(clientConfiguration: ClientRuntime.ClientConfiguration) throws {
if var config = clientConfiguration as? AlexaForBusinessClient.AlexaForBusinessClientConfiguration {
config.endpointResolver = self.endpointResolver
}
}
}

extension AlexaForBusinessClient {
/// Performs the `ApproveSkill` operation on the `AlexaForBusiness` service.
///
Expand Down
12 changes: 12 additions & 0 deletions Sources/Services/AWSAmp/AmpClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,18 @@ public struct AmpClientLogHandlerFactory: ClientRuntime.SDKLogHandlerFactory {
}
}

public class EndpointPlugin: Plugin {
private var endpointResolver: EndpointResolver
public init(endpointResolver: EndpointResolver) {
self.endpointResolver = endpointResolver
}
public func configureClient(clientConfiguration: ClientRuntime.ClientConfiguration) throws {
if var config = clientConfiguration as? AmpClient.AmpClientConfiguration {
config.endpointResolver = self.endpointResolver
}
}
}

extension AmpClient {
/// Performs the `CreateAlertManagerDefinition` operation on the `AmazonPrometheusService` service.
///
Expand Down
12 changes: 12 additions & 0 deletions Sources/Services/AWSAmplify/AmplifyClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,18 @@ public struct AmplifyClientLogHandlerFactory: ClientRuntime.SDKLogHandlerFactory
}
}

public class EndpointPlugin: Plugin {
private var endpointResolver: EndpointResolver
public init(endpointResolver: EndpointResolver) {
self.endpointResolver = endpointResolver
}
public func configureClient(clientConfiguration: ClientRuntime.ClientConfiguration) throws {
if var config = clientConfiguration as? AmplifyClient.AmplifyClientConfiguration {
config.endpointResolver = self.endpointResolver
}
}
}

extension AmplifyClient {
/// Performs the `CreateApp` operation on the `Amplify` service.
///
Expand Down
12 changes: 12 additions & 0 deletions Sources/Services/AWSAmplifyBackend/AmplifyBackendClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,18 @@ public struct AmplifyBackendClientLogHandlerFactory: ClientRuntime.SDKLogHandler
}
}

public class EndpointPlugin: Plugin {
private var endpointResolver: EndpointResolver
public init(endpointResolver: EndpointResolver) {
self.endpointResolver = endpointResolver
}
public func configureClient(clientConfiguration: ClientRuntime.ClientConfiguration) throws {
if var config = clientConfiguration as? AmplifyBackendClient.AmplifyBackendClientConfiguration {
config.endpointResolver = self.endpointResolver
}
}
}

extension AmplifyBackendClient {
/// Performs the `CloneBackend` operation on the `AmplifyBackend` service.
///
Expand Down
12 changes: 12 additions & 0 deletions Sources/Services/AWSAmplifyUIBuilder/AmplifyUIBuilderClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,18 @@ public struct AmplifyUIBuilderClientLogHandlerFactory: ClientRuntime.SDKLogHandl
}
}

public class EndpointPlugin: Plugin {
private var endpointResolver: EndpointResolver
public init(endpointResolver: EndpointResolver) {
self.endpointResolver = endpointResolver
}
public func configureClient(clientConfiguration: ClientRuntime.ClientConfiguration) throws {
if var config = clientConfiguration as? AmplifyUIBuilderClient.AmplifyUIBuilderClientConfiguration {
config.endpointResolver = self.endpointResolver
}
}
}

extension AmplifyUIBuilderClient {
/// Performs the `CreateComponent` operation on the `AmplifyUIBuilder` service.
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,18 @@ public struct ApiGatewayManagementApiClientLogHandlerFactory: ClientRuntime.SDKL
}
}

public class EndpointPlugin: Plugin {
private var endpointResolver: EndpointResolver
public init(endpointResolver: EndpointResolver) {
self.endpointResolver = endpointResolver
}
public func configureClient(clientConfiguration: ClientRuntime.ClientConfiguration) throws {
if var config = clientConfiguration as? ApiGatewayManagementApiClient.ApiGatewayManagementApiClientConfiguration {
config.endpointResolver = self.endpointResolver
}
}
}

extension ApiGatewayManagementApiClient {
/// Performs the `DeleteConnection` operation on the `ApiGatewayManagementApi` service.
///
Expand Down
12 changes: 12 additions & 0 deletions Sources/Services/AWSApiGatewayV2/ApiGatewayV2Client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,18 @@ public struct ApiGatewayV2ClientLogHandlerFactory: ClientRuntime.SDKLogHandlerFa
}
}

public class EndpointPlugin: Plugin {
private var endpointResolver: EndpointResolver
public init(endpointResolver: EndpointResolver) {
self.endpointResolver = endpointResolver
}
public func configureClient(clientConfiguration: ClientRuntime.ClientConfiguration) throws {
if var config = clientConfiguration as? ApiGatewayV2Client.ApiGatewayV2ClientConfiguration {
config.endpointResolver = self.endpointResolver
}
}
}

extension ApiGatewayV2Client {
/// Performs the `CreateApi` operation on the `ApiGatewayV2` service.
///
Expand Down
12 changes: 12 additions & 0 deletions Sources/Services/AWSAppConfig/AppConfigClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,18 @@ public struct AppConfigClientLogHandlerFactory: ClientRuntime.SDKLogHandlerFacto
}
}

public class EndpointPlugin: Plugin {
private var endpointResolver: EndpointResolver
public init(endpointResolver: EndpointResolver) {
self.endpointResolver = endpointResolver
}
public func configureClient(clientConfiguration: ClientRuntime.ClientConfiguration) throws {
if var config = clientConfiguration as? AppConfigClient.AppConfigClientConfiguration {
config.endpointResolver = self.endpointResolver
}
}
}

extension AppConfigClient {
/// Performs the `CreateApplication` operation on the `AmazonAppConfig` service.
///
Expand Down
12 changes: 12 additions & 0 deletions Sources/Services/AWSAppConfigData/AppConfigDataClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,18 @@ public struct AppConfigDataClientLogHandlerFactory: ClientRuntime.SDKLogHandlerF
}
}

public class EndpointPlugin: Plugin {
private var endpointResolver: EndpointResolver
public init(endpointResolver: EndpointResolver) {
self.endpointResolver = endpointResolver
}
public func configureClient(clientConfiguration: ClientRuntime.ClientConfiguration) throws {
if var config = clientConfiguration as? AppConfigDataClient.AppConfigDataClientConfiguration {
config.endpointResolver = self.endpointResolver
}
}
}

extension AppConfigDataClient {
/// Performs the `GetLatestConfiguration` operation on the `AppConfigData` service.
///
Expand Down
12 changes: 12 additions & 0 deletions Sources/Services/AWSAppFabric/AppFabricClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,18 @@ public struct AppFabricClientLogHandlerFactory: ClientRuntime.SDKLogHandlerFacto
}
}

public class EndpointPlugin: Plugin {
private var endpointResolver: EndpointResolver
public init(endpointResolver: EndpointResolver) {
self.endpointResolver = endpointResolver
}
public func configureClient(clientConfiguration: ClientRuntime.ClientConfiguration) throws {
if var config = clientConfiguration as? AppFabricClient.AppFabricClientConfiguration {
config.endpointResolver = self.endpointResolver
}
}
}

extension AppFabricClient {
/// Performs the `BatchGetUserAccessTasks` operation on the `FabricFrontEndService` service.
///
Expand Down
12 changes: 12 additions & 0 deletions Sources/Services/AWSAppIntegrations/AppIntegrationsClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,18 @@ public struct AppIntegrationsClientLogHandlerFactory: ClientRuntime.SDKLogHandle
}
}

public class EndpointPlugin: Plugin {
private var endpointResolver: EndpointResolver
public init(endpointResolver: EndpointResolver) {
self.endpointResolver = endpointResolver
}
public func configureClient(clientConfiguration: ClientRuntime.ClientConfiguration) throws {
if var config = clientConfiguration as? AppIntegrationsClient.AppIntegrationsClientConfiguration {
config.endpointResolver = self.endpointResolver
}
}
}

extension AppIntegrationsClient {
/// Performs the `CreateApplication` operation on the `AmazonAppIntegrationService` service.
///
Expand Down
12 changes: 12 additions & 0 deletions Sources/Services/AWSAppMesh/AppMeshClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,18 @@ public struct AppMeshClientLogHandlerFactory: ClientRuntime.SDKLogHandlerFactory
}
}

public class EndpointPlugin: Plugin {
private var endpointResolver: EndpointResolver
public init(endpointResolver: EndpointResolver) {
self.endpointResolver = endpointResolver
}
public func configureClient(clientConfiguration: ClientRuntime.ClientConfiguration) throws {
if var config = clientConfiguration as? AppMeshClient.AppMeshClientConfiguration {
config.endpointResolver = self.endpointResolver
}
}
}

extension AppMeshClient {
/// Performs the `CreateGatewayRoute` operation on the `AppMesh` service.
///
Expand Down
12 changes: 12 additions & 0 deletions Sources/Services/AWSAppRunner/AppRunnerClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,18 @@ public struct AppRunnerClientLogHandlerFactory: ClientRuntime.SDKLogHandlerFacto
}
}

public class EndpointPlugin: Plugin {
private var endpointResolver: EndpointResolver
public init(endpointResolver: EndpointResolver) {
self.endpointResolver = endpointResolver
}
public func configureClient(clientConfiguration: ClientRuntime.ClientConfiguration) throws {
if var config = clientConfiguration as? AppRunnerClient.AppRunnerClientConfiguration {
config.endpointResolver = self.endpointResolver
}
}
}

extension AppRunnerClient {
/// Performs the `AssociateCustomDomain` operation on the `AppRunner` service.
///
Expand Down
12 changes: 12 additions & 0 deletions Sources/Services/AWSAppStream/AppStreamClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,18 @@ public struct AppStreamClientLogHandlerFactory: ClientRuntime.SDKLogHandlerFacto
}
}

public class EndpointPlugin: Plugin {
private var endpointResolver: EndpointResolver
public init(endpointResolver: EndpointResolver) {
self.endpointResolver = endpointResolver
}
public func configureClient(clientConfiguration: ClientRuntime.ClientConfiguration) throws {
if var config = clientConfiguration as? AppStreamClient.AppStreamClientConfiguration {
config.endpointResolver = self.endpointResolver
}
}
}

extension AppStreamClient {
/// Performs the `AssociateAppBlockBuilderAppBlock` operation on the `PhotonAdminProxyService` service.
///
Expand Down
12 changes: 12 additions & 0 deletions Sources/Services/AWSAppSync/AppSyncClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,18 @@ public struct AppSyncClientLogHandlerFactory: ClientRuntime.SDKLogHandlerFactory
}
}

public class EndpointPlugin: Plugin {
private var endpointResolver: EndpointResolver
public init(endpointResolver: EndpointResolver) {
self.endpointResolver = endpointResolver
}
public func configureClient(clientConfiguration: ClientRuntime.ClientConfiguration) throws {
if var config = clientConfiguration as? AppSyncClient.AppSyncClientConfiguration {
config.endpointResolver = self.endpointResolver
}
}
}

extension AppSyncClient {
/// Performs the `AssociateApi` operation on the `AWSDeepdishControlPlaneService` service.
///
Expand Down
Loading

0 comments on commit bb8178e

Please sign in to comment.