| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
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
- data AwsEndpoint = AwsEndpoint {}
- newAwsEnv :: Maybe Text -> Maybe AwsEndpoint -> Service -> IO Env
- singleAttemptEnv :: Env -> Env
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
| Show AwsEndpoint Source # | |
Defined in Ecluse.Runtime.Aws.Env.Internal Methods showsPrec :: Int -> AwsEndpoint -> ShowS # show :: AwsEndpoint -> String # showList :: [AwsEndpoint] -> ShowS # | |
| Eq AwsEndpoint Source # | |
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.