| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Ecluse.Runtime.Credential.CodeArtifact.Internal
Contents
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
- data CodeArtifactConfig = CodeArtifactConfig {}
- newCodeArtifactProvider :: CredentialReporters -> CodeArtifactConfig -> IO CredentialProvider
- providerForEnv :: CredentialReporters -> Env -> CodeArtifactConfig -> IO CredentialProvider
Configuration
data CodeArtifactConfig Source #
What the CodeArtifact leaf needs to mint a token. The AWS credentials are not here:
discover finds them in the ambient environment, so the proxy never holds long-lived AWS keys.
Constructors
| CodeArtifactConfig | |
Fields
| |
Instances
| Show CodeArtifactConfig Source # | |
Defined in Ecluse.Runtime.Credential.CodeArtifact.Internal Methods showsPrec :: Int -> CodeArtifactConfig -> ShowS # show :: CodeArtifactConfig -> String # showList :: [CodeArtifactConfig] -> ShowS # | |
| Eq CodeArtifactConfig Source # | |
Defined in Ecluse.Runtime.Credential.CodeArtifact.Internal Methods (==) :: CodeArtifactConfig -> CodeArtifactConfig -> Bool # (/=) :: CodeArtifactConfig -> CodeArtifactConfig -> Bool # | |
| Ord CodeArtifactConfig Source # | |
Defined in Ecluse.Runtime.Credential.CodeArtifact.Internal Methods compare :: CodeArtifactConfig -> CodeArtifactConfig -> Ordering # (<) :: CodeArtifactConfig -> CodeArtifactConfig -> Bool # (<=) :: CodeArtifactConfig -> CodeArtifactConfig -> Bool # (>) :: CodeArtifactConfig -> CodeArtifactConfig -> Bool # (>=) :: CodeArtifactConfig -> CodeArtifactConfig -> Bool # max :: CodeArtifactConfig -> CodeArtifactConfig -> CodeArtifactConfig # min :: CodeArtifactConfig -> CodeArtifactConfig -> CodeArtifactConfig # | |
The provider
newCodeArtifactProvider :: CredentialReporters -> CodeArtifactConfig -> IO CredentialProvider Source #
Build a refreshing CredentialProvider backed by CodeArtifact GetAuthorizationToken. It
mints once eagerly, so a misconfiguration fails at construction, not on the first mirror write.
providerForEnv :: CredentialReporters -> Env -> CodeArtifactConfig -> IO CredentialProvider Source #
Build the provider over a caller-supplied amazonka Env, minting through the policy of
Ecluse.Core.Credential.Refresh. Exposed so a test can drive the mint against a stub endpoint.