-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add CredentialIdentityResolverPlugin related client changes
- Loading branch information
1 parent
c353436
commit 320c3db
Showing
757 changed files
with
21,546 additions
and
6,049 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
// Code generated by smithy-swift-codegen. DO NOT EDIT! | ||
|
||
@_spi(FileBasedConfig) import AWSClientRuntime | ||
import ClientRuntime | ||
|
||
public class ACMClientEndpointPlugin: Plugin { | ||
private var endpointResolver: EndpointResolver | ||
public init(endpointResolver: EndpointResolver) { | ||
self.endpointResolver = endpointResolver | ||
} | ||
public convenience init() throws { | ||
self.init(endpointResolver: try DefaultEndpointResolver()) | ||
} | ||
public func configureClient(clientConfiguration: ClientRuntime.ClientConfiguration) throws { | ||
if var config = clientConfiguration as? ACMClient.ACMClientConfiguration { | ||
config.endpointResolver = self.endpointResolver | ||
} | ||
} | ||
} | ||
|
||
public class DefaultAWSAuthSchemePlugin: Plugin { | ||
public init() { | ||
} | ||
public func configureClient(clientConfiguration: ClientRuntime.ClientConfiguration) throws { | ||
if var config = clientConfiguration as? ACMClient.ACMClientConfiguration { | ||
config.authSchemeResolver = DefaultACMAuthSchemeResolver() | ||
config.authSchemes = [SigV4AuthScheme()] | ||
config.awsCredentialIdentityResolver = try AWSClientConfigDefaultsProvider.awsCredentialIdentityResolver() | ||
} | ||
} | ||
} | ||
|
||
public class ACMClientAuthSchemePlugin: Plugin { | ||
private var authSchemes: [ClientRuntime.AuthScheme]? | ||
private var authSchemeResolver: ClientRuntime.AuthSchemeResolver? | ||
private var awsCredentialIdentityResolver: (any AWSClientRuntime.AWSCredentialIdentityResolver)? | ||
public init(authSchemes: [ClientRuntime.AuthScheme]? = nil, authSchemeResolver: ACMAuthSchemeResolver? = nil, awsCredentialIdentityResolver: (any AWSClientRuntime.AWSCredentialIdentityResolver)? = nil) { | ||
self.authSchemeResolver = authSchemeResolver | ||
self.authSchemes = authSchemes | ||
self.awsCredentialIdentityResolver = awsCredentialIdentityResolver | ||
} | ||
public func configureClient(clientConfiguration: ClientRuntime.ClientConfiguration) throws { | ||
if var config = clientConfiguration as? ACMClient.ACMClientConfiguration { | ||
if (self.authSchemes != nil) { | ||
config.authSchemes = self.authSchemes | ||
} | ||
if (self.authSchemeResolver != nil) { | ||
config.authSchemeResolver = self.authSchemeResolver! | ||
} | ||
if (self.awsCredentialIdentityResolver != nil) { | ||
config.awsCredentialIdentityResolver = self.awsCredentialIdentityResolver! | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
// Code generated by smithy-swift-codegen. DO NOT EDIT! | ||
|
||
@_spi(FileBasedConfig) import AWSClientRuntime | ||
import ClientRuntime | ||
|
||
public class ACMPCAClientEndpointPlugin: Plugin { | ||
private var endpointResolver: EndpointResolver | ||
public init(endpointResolver: EndpointResolver) { | ||
self.endpointResolver = endpointResolver | ||
} | ||
public convenience init() throws { | ||
self.init(endpointResolver: try DefaultEndpointResolver()) | ||
} | ||
public func configureClient(clientConfiguration: ClientRuntime.ClientConfiguration) throws { | ||
if var config = clientConfiguration as? ACMPCAClient.ACMPCAClientConfiguration { | ||
config.endpointResolver = self.endpointResolver | ||
} | ||
} | ||
} | ||
|
||
public class DefaultAWSAuthSchemePlugin: Plugin { | ||
public init() { | ||
} | ||
public func configureClient(clientConfiguration: ClientRuntime.ClientConfiguration) throws { | ||
if var config = clientConfiguration as? ACMPCAClient.ACMPCAClientConfiguration { | ||
config.authSchemeResolver = DefaultACMPCAAuthSchemeResolver() | ||
config.authSchemes = [SigV4AuthScheme()] | ||
config.awsCredentialIdentityResolver = try AWSClientConfigDefaultsProvider.awsCredentialIdentityResolver() | ||
} | ||
} | ||
} | ||
|
||
public class ACMPCAClientAuthSchemePlugin: Plugin { | ||
private var authSchemes: [ClientRuntime.AuthScheme]? | ||
private var authSchemeResolver: ClientRuntime.AuthSchemeResolver? | ||
private var awsCredentialIdentityResolver: (any AWSClientRuntime.AWSCredentialIdentityResolver)? | ||
public init(authSchemes: [ClientRuntime.AuthScheme]? = nil, authSchemeResolver: ACMPCAAuthSchemeResolver? = nil, awsCredentialIdentityResolver: (any AWSClientRuntime.AWSCredentialIdentityResolver)? = nil) { | ||
self.authSchemeResolver = authSchemeResolver | ||
self.authSchemes = authSchemes | ||
self.awsCredentialIdentityResolver = awsCredentialIdentityResolver | ||
} | ||
public func configureClient(clientConfiguration: ClientRuntime.ClientConfiguration) throws { | ||
if var config = clientConfiguration as? ACMPCAClient.ACMPCAClientConfiguration { | ||
if (self.authSchemes != nil) { | ||
config.authSchemes = self.authSchemes | ||
} | ||
if (self.authSchemeResolver != nil) { | ||
config.authSchemeResolver = self.authSchemeResolver! | ||
} | ||
if (self.awsCredentialIdentityResolver != nil) { | ||
config.awsCredentialIdentityResolver = self.awsCredentialIdentityResolver! | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
// Code generated by smithy-swift-codegen. DO NOT EDIT! | ||
|
||
@_spi(FileBasedConfig) import AWSClientRuntime | ||
import ClientRuntime | ||
|
||
public class APIGatewayClientEndpointPlugin: Plugin { | ||
private var endpointResolver: EndpointResolver | ||
public init(endpointResolver: EndpointResolver) { | ||
self.endpointResolver = endpointResolver | ||
} | ||
public convenience init() throws { | ||
self.init(endpointResolver: try DefaultEndpointResolver()) | ||
} | ||
public func configureClient(clientConfiguration: ClientRuntime.ClientConfiguration) throws { | ||
if var config = clientConfiguration as? APIGatewayClient.APIGatewayClientConfiguration { | ||
config.endpointResolver = self.endpointResolver | ||
} | ||
} | ||
} | ||
|
||
public class DefaultAWSAuthSchemePlugin: Plugin { | ||
public init() { | ||
} | ||
public func configureClient(clientConfiguration: ClientRuntime.ClientConfiguration) throws { | ||
if var config = clientConfiguration as? APIGatewayClient.APIGatewayClientConfiguration { | ||
config.authSchemeResolver = DefaultAPIGatewayAuthSchemeResolver() | ||
config.authSchemes = [SigV4AuthScheme()] | ||
config.awsCredentialIdentityResolver = try AWSClientConfigDefaultsProvider.awsCredentialIdentityResolver() | ||
} | ||
} | ||
} | ||
|
||
public class APIGatewayClientAuthSchemePlugin: Plugin { | ||
private var authSchemes: [ClientRuntime.AuthScheme]? | ||
private var authSchemeResolver: ClientRuntime.AuthSchemeResolver? | ||
private var awsCredentialIdentityResolver: (any AWSClientRuntime.AWSCredentialIdentityResolver)? | ||
public init(authSchemes: [ClientRuntime.AuthScheme]? = nil, authSchemeResolver: APIGatewayAuthSchemeResolver? = nil, awsCredentialIdentityResolver: (any AWSClientRuntime.AWSCredentialIdentityResolver)? = nil) { | ||
self.authSchemeResolver = authSchemeResolver | ||
self.authSchemes = authSchemes | ||
self.awsCredentialIdentityResolver = awsCredentialIdentityResolver | ||
} | ||
public func configureClient(clientConfiguration: ClientRuntime.ClientConfiguration) throws { | ||
if var config = clientConfiguration as? APIGatewayClient.APIGatewayClientConfiguration { | ||
if (self.authSchemes != nil) { | ||
config.authSchemes = self.authSchemes | ||
} | ||
if (self.authSchemeResolver != nil) { | ||
config.authSchemeResolver = self.authSchemeResolver! | ||
} | ||
if (self.awsCredentialIdentityResolver != nil) { | ||
config.awsCredentialIdentityResolver = self.awsCredentialIdentityResolver! | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
// Code generated by smithy-swift-codegen. DO NOT EDIT! | ||
|
||
@_spi(FileBasedConfig) import AWSClientRuntime | ||
import ClientRuntime | ||
|
||
public class ARCZonalShiftClientEndpointPlugin: Plugin { | ||
private var endpointResolver: EndpointResolver | ||
public init(endpointResolver: EndpointResolver) { | ||
self.endpointResolver = endpointResolver | ||
} | ||
public convenience init() throws { | ||
self.init(endpointResolver: try DefaultEndpointResolver()) | ||
} | ||
public func configureClient(clientConfiguration: ClientRuntime.ClientConfiguration) throws { | ||
if var config = clientConfiguration as? ARCZonalShiftClient.ARCZonalShiftClientConfiguration { | ||
config.endpointResolver = self.endpointResolver | ||
} | ||
} | ||
} | ||
|
||
public class DefaultAWSAuthSchemePlugin: Plugin { | ||
public init() { | ||
} | ||
public func configureClient(clientConfiguration: ClientRuntime.ClientConfiguration) throws { | ||
if var config = clientConfiguration as? ARCZonalShiftClient.ARCZonalShiftClientConfiguration { | ||
config.authSchemeResolver = DefaultARCZonalShiftAuthSchemeResolver() | ||
config.authSchemes = [SigV4AuthScheme()] | ||
config.awsCredentialIdentityResolver = try AWSClientConfigDefaultsProvider.awsCredentialIdentityResolver() | ||
} | ||
} | ||
} | ||
|
||
public class ARCZonalShiftClientAuthSchemePlugin: Plugin { | ||
private var authSchemes: [ClientRuntime.AuthScheme]? | ||
private var authSchemeResolver: ClientRuntime.AuthSchemeResolver? | ||
private var awsCredentialIdentityResolver: (any AWSClientRuntime.AWSCredentialIdentityResolver)? | ||
public init(authSchemes: [ClientRuntime.AuthScheme]? = nil, authSchemeResolver: ARCZonalShiftAuthSchemeResolver? = nil, awsCredentialIdentityResolver: (any AWSClientRuntime.AWSCredentialIdentityResolver)? = nil) { | ||
self.authSchemeResolver = authSchemeResolver | ||
self.authSchemes = authSchemes | ||
self.awsCredentialIdentityResolver = awsCredentialIdentityResolver | ||
} | ||
public func configureClient(clientConfiguration: ClientRuntime.ClientConfiguration) throws { | ||
if var config = clientConfiguration as? ARCZonalShiftClient.ARCZonalShiftClientConfiguration { | ||
if (self.authSchemes != nil) { | ||
config.authSchemes = self.authSchemes | ||
} | ||
if (self.authSchemeResolver != nil) { | ||
config.authSchemeResolver = self.authSchemeResolver! | ||
} | ||
if (self.awsCredentialIdentityResolver != nil) { | ||
config.awsCredentialIdentityResolver = self.awsCredentialIdentityResolver! | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.