ecluse:ecluse-runtime
Safe HaskellNone
LanguageGHC2021

Ecluse.Runtime.Aws.Env

Description

The amazonka environment every AWS adapter builds. The SQS backend, the S3 clients, and the CodeArtifact mint all build theirs through newAwsEnv, so an emulator or a VPC endpoint is configured the same way on every path.

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.