ecluse:ecluse-runtime
Safe HaskellNone
LanguageGHC2021

Ecluse.Runtime.Aws.Env.Internal

Description

AWS environment construction and SDK retry policy behind Ecluse.Runtime.Aws.Env.

Synopsis

Documentation

data AwsEndpoint Source #

An AWS-compatible endpoint on a non-default host: a local emulator (ministack) in tests, or a VPC endpoint.

Constructors

AwsEndpoint 

Fields

Instances

Instances details
Show AwsEndpoint Source # 
Instance details

Defined in Ecluse.Runtime.Aws.Env.Internal

Eq AwsEndpoint Source # 
Instance details

Defined in Ecluse.Runtime.Aws.Env.Internal

newAwsEnv :: Maybe Text -> Maybe AwsEndpoint -> Service -> IO Env Source #

An env for service over discovered credentials. A failed discovery raises a typed fault from Ecluse.Runtime.Aws.Fault, and an unparseable URL http-client's own exception.

singleAttemptEnv :: Env -> Env Source #

Disable SDK retries without changing the caller's HTTP manager or hooks.

newAwsEnvWith :: (EnvNoAuth -> IO Env) -> Maybe Text -> Maybe AwsEndpoint -> Service -> IO Env Source #

newAwsEnv over a caller's discovery, so a test can fail it at a stub. Discovery and every call read through typedTlsManagerSettings.