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 and AWS_SESSION_TOKEN if it exists

    Declaration

    Swift

    static func fromEnvironment() -> StaticCredential?