Skip to content

Commit

Permalink
Delete unnecessary any keyword.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sichan Yoo committed Oct 11, 2023
1 parent dc8f7a9 commit ded6a9d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ import ClientRuntime

public struct SigV4AuthScheme: ClientRuntime.AuthScheme {
public let schemeId: String = "aws.auth#sigv4"
public let signer: any ClientRuntime.Signer = AWSSigV4Signer()
public let idType: ClientRuntime.IdentityType = .aws
public let signer: ClientRuntime.Signer = AWSSigV4Signer()
public let idType: ClientRuntime.IdentityKind = .aws
}
13 changes: 12 additions & 1 deletion Sources/Services/AWSACM/ACMClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,20 @@ extension ACMClient {
public var serviceName: String { "ACM" }
public var clientName: String { "ACMClient" }
public var endpointResolver: EndpointResolver
public var authSchemes: Array<ClientRuntime.AuthScheme>
public var authSchemeResolver: ClientRuntime.AuthSchemeResolver

public init(endpointResolver: EndpointResolver? = nil) throws {
public init(
endpointResolver: EndpointResolver? = nil,
authSchemeResolver: ClientRuntime.AuthSchemeResolver? = nil,
authSchemes: Array<ClientRuntime.AuthScheme>? = nil
) throws {
self.endpointResolver = try endpointResolver ?? DefaultEndpointResolver()

self.authSchemeResolver = authSchemeResolver ?? DefaultACMAuthSchemeResolver()
var modeledSchemes: Array<ClientRuntime.AuthScheme> = Array()
modeledSchemes.append(SigV4AuthScheme())
self.authSchemes = authSchemes ?? modeledSchemes
}
}
}
Expand Down

0 comments on commit ded6a9d

Please sign in to comment.