ecluse:ecluse-runtime
Safe HaskellNone
LanguageGHC2021

Ecluse.Runtime.Credential.CodeArtifact.Internal

Description

The mint closure and its amazonka environment behind Ecluse.Runtime.Credential.CodeArtifact, which documents the leaf and re-exports the curated surface. Importing this module opts out of that stability promise, the convention text and bytestring use, so production code imports the public one.

Synopsis

Configuration

data CodeArtifactConfig Source #

What the CodeArtifact leaf needs to mint a token. discover finds the AWS credentials in the ambient environment, so the proxy holds no long-lived AWS key.

Constructors

CodeArtifactConfig 

Fields

The provider

newCodeArtifactProvider :: CredentialReporters -> CodeArtifactConfig -> IO CredentialProvider Source #

A refreshing provider over CodeArtifact GetAuthorizationToken. It mints once at construction, so a misconfiguration fails there, not on the first mirror write.

providerForEnv :: CredentialReporters -> Env -> CodeArtifactConfig -> IO CredentialProvider Source #

newCodeArtifactProvider over a caller's amazonka env, so a test can drive the mint against a stub endpoint.