ecluse:ecluse-runtime
Safe HaskellNone
LanguageGHC2021

Ecluse.Runtime.Aws.Env

Description

The amazonka environment every AWS adapter builds: credentials discovered the standard AWS way, an optional region, and an optional endpoint override.

AwsEndpoint is the one endpoint-override record in the tree. The SQS backend, the S3 advisory client, and the CodeArtifact mint all reach amazonka through newAwsEnv, so an emulator or a VPC endpoint is configured the same way on every path.

Synopsis

Documentation

data AwsEndpoint Source #

Where an AWS-compatible endpoint lives, for pointing an adapter at 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

Eq AwsEndpoint Source # 
Instance details

Defined in Ecluse.Runtime.Aws.Env

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

Build an env for service. A region scopes it only when given, and an override reconfigures service only when given, so an absent value keeps amazonka's own resolution.