amazonka-mtl: MTL-style type-class and deriving-via newtypes for Amazonka
This package allows incorporation of AWS actions into any MTL-style function,
import Amazonka.Data.Text (ToText(..)) import Amazonka.S3.ListObjects import Amazonka.S3.Types.Object import Blammo.Logging import Conduit import Control.Lens hiding ((.=)) import Control.Monad.AWS as AWS someAction :: ( MonadIO m , MonadLogger m , MonadAWS m , MonadReader env m , HasSettings env ) => m () someAction = do Settings {..} <- view settingsL keys <- runConduit $ paginate (newListObjects settingsBucketName) .| concatMapC (^. listObjectsResponse_contents) .| concatC .| mapC (^. object_key . to toText) .| iterMC (\k -> logDebug $ k :# []) .| sinkList logInfo $ "Bucket contents" :# ["keys" .= keys]
This package also provides a number of options for execution:
Through a concrete transformer: Control.Monad.AWS.EnvT
Through your own reader env and deriving-via: Control.Monad.AWS.ViaReader
This package also provides mechanisms for mocking AWS in tests:
Through a concrete transformer: Control.Monad.AWS.MockT
Through your own reader env and deriving-via: Control.Monad.AWS.ViaMock
Please see individual module documentation for all the details.
[Skip to Readme]
Modules
[Index] [Quick Jump]
Downloads
- amazonka-mtl-0.1.1.1.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
Versions [RSS] | 0.1.0.0, 0.1.1.0, 0.1.1.1 |
---|---|
Change log | CHANGELOG.md |
Dependencies | amazonka (>=2.0), amazonka-core (>=2.0), base (>=4.14.3.0 && <5), conduit (>=1.3.4.2), lens (>=4.19.2), monad-logger (>=0.3.36), mtl (>=2.2.2), resourcet (>=1.2.4.3), unliftio-core (>=0.2.0.1) [details] |
License | MIT |
Author | |
Maintainer | Freckle Education |
Category | Utils |
Home page | https://github.com/freckle/amazonka-mtl#readme |
Bug tracker | https://github.com/freckle/amazonka-mtl/issues |
Source repo | head: git clone https://github.com/freckle/amazonka-mtl |
Uploaded | by PatrickBrisbin at 2025-02-18T15:39:55Z |
Distributions | NixOS:0.1.1.0 |
Reverse Dependencies | 1 direct, 0 indirect [details] |
Downloads | 133 total (20 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs available [build log] Last success reported on 2025-02-18 [all 1 reports] |