StaticCredential
extension StaticCredential: CredentialProvider
-
Return static credential
Declaration
Swift
public func getCredential(on eventLoop: EventLoop, logger: Logger) -> EventLoopFuture<Credential>
-
construct static credentaisl from environment variables
AWS_ACCESS_KEY_ID
,AWS_SECRET_ACCESS_KEY
andAWS_SESSION_TOKEN
if it existsDeclaration
Swift
static func fromEnvironment() -> StaticCredential?