ecluse:ecluse-runtime
Safe HaskellNone
LanguageGHC2021

Ecluse.Runtime.Aws.S3

Description

The S3 edge of the amazonka adapters: build an S3-configured amazonka env, honouring an optional custom endpoint override.

Ecosystem-agnostic and free of the composition shell: the caller (Pilot's export loop or the proxy's advisory sync) resolves the (secure, host, port) override from configuration and passes the pre-parsed tuple in. The env is the private state a cloud capability's smart constructor captures (the boundary docs/architecture/cloud-backends.md describes), so it is built here and sealed by the capability that owns it: newS3CveSource for the sync consumer, exportToS3 for the producer.

Synopsis

Documentation

buildS3Env :: Maybe (Bool, Text, Int) -> IO Env Source #

Build an amazonka env for S3, applying an optional custom endpoint override (the pre-parsed (secure, host, port)). With Nothing the env uses amazonka's default endpoint and credential resolution.