Skip to content

Commit

Permalink
Use SotoCore 7.0.0-beta.1
Browse files Browse the repository at this point in the history
Replace usage of `httpClientProvider`
  • Loading branch information
adam-fowler committed Apr 10, 2024
1 parent d8423bc commit 0c11c09
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ let package = Package(
.library(name: "SotoXRay", targets: ["SotoXRay"])
],
dependencies: [
.package(url: "https://github.com/soto-project/soto-core.git", branch: "7.x.x")
.package(url: "https://github.com/soto-project/soto-core.git", from: "7.0.0-beta.1")
],
targets: [
.target(name: "SotoACM", dependencies: [.product(name: "SotoCore", package: "soto-core")], path: "./Sources/Soto/Services/ACM", swiftSettings: swiftSettings),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ extension CognitoIdentity {
httpClient: any AWSHTTPClient,
logger: Logger = AWSClient.loggingDisabled
) {
self.client = AWSClient(credentialProvider: .empty, httpClientProvider: .shared(httpClient), logger: logger)
self.client = AWSClient(credentialProvider: .empty, httpClient: httpClient, logger: logger)
self.cognitoIdentity = CognitoIdentity(client: self.client, region: region)
self.identityPoolId = identityPoolId
let context = IdentityProviderFactory.Context(cognitoIdentity: self.cognitoIdentity, identityPoolId: identityPoolId, logger: logger)
Expand Down
10 changes: 5 additions & 5 deletions Sources/Soto/Extensions/STS/STS+CredentialProvider.swift
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ extension STS {
region: Region,
httpClient: any AWSHTTPClient
) {
self.client = AWSClient(credentialProvider: credentialProvider, httpClientProvider: .shared(httpClient))
self.client = AWSClient(credentialProvider: credentialProvider, httpClient: httpClient)
self.sts = STS(client: self.client, region: region)
self.requestProvider = requestProvider
}
Expand All @@ -85,7 +85,7 @@ extension STS {
let sts: STS

init(requestProvider: RequestProvider<STS.AssumeRoleWithSAMLRequest>, region: Region, httpClient: any AWSHTTPClient) {
self.client = AWSClient(credentialProvider: .empty, httpClientProvider: .shared(httpClient))
self.client = AWSClient(credentialProvider: .empty, httpClient: httpClient)
self.sts = STS(client: self.client, region: region)
self.requestProvider = requestProvider
}
Expand All @@ -110,7 +110,7 @@ extension STS {
let sts: STS

init(requestProvider: RequestProvider<STS.AssumeRoleWithWebIdentityRequest>, region: Region, httpClient: any AWSHTTPClient) {
self.client = AWSClient(credentialProvider: .empty, httpClientProvider: .shared(httpClient))
self.client = AWSClient(credentialProvider: .empty, httpClient: httpClient)
self.sts = STS(client: self.client, region: region)
self.requestProvider = requestProvider
}
Expand Down Expand Up @@ -189,7 +189,7 @@ extension STS {
let sts: STS

init(requestProvider: RequestProvider<STS.GetFederationTokenRequest>, credentialProvider: CredentialProviderFactory, region: Region, httpClient: any AWSHTTPClient) {
self.client = AWSClient(credentialProvider: credentialProvider, httpClientProvider: .shared(httpClient))
self.client = AWSClient(credentialProvider: credentialProvider, httpClient: httpClient)
self.sts = STS(client: self.client, region: region)
self.requestProvider = requestProvider
}
Expand All @@ -214,7 +214,7 @@ extension STS {
let sts: STS

init(requestProvider: RequestProvider<STS.GetSessionTokenRequest>, credentialProvider: CredentialProviderFactory, region: Region, httpClient: any AWSHTTPClient) {
self.client = AWSClient(credentialProvider: credentialProvider, httpClientProvider: .shared(httpClient))
self.client = AWSClient(credentialProvider: credentialProvider, httpClient: httpClient)
self.sts = STS(client: self.client, region: region)
self.requestProvider = requestProvider
}
Expand Down

0 comments on commit 0c11c09

Please sign in to comment.