Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
Instances
KMSKey AWSCtx Source # | |
Defined in ConfCrypt.Encryption | |
HasEnv (ConfCryptFile, AWSCtx) Source # | |
Defined in ConfCrypt.Providers.AWS environment :: Lens' (ConfCryptFile, AWSCtx) Env # envRegion :: Lens' (ConfCryptFile, AWSCtx) Region # envLogger :: Lens' (ConfCryptFile, AWSCtx) Logger # envRetryCheck :: Lens' (ConfCryptFile, AWSCtx) (Int -> HttpException -> Bool) # envOverride :: Lens' (ConfCryptFile, AWSCtx) (Dual (Endo Service)) # envManager :: Lens' (ConfCryptFile, AWSCtx) Manager # envAuth :: Lens' (ConfCryptFile, AWSCtx) Auth # envEC2 :: Getter (ConfCryptFile, AWSCtx) (IORef (Maybe Bool)) # | |
MonadEncrypt (ConfCryptM IO (RemoteKey AWSCtx)) (RemoteKey AWSCtx) Source # | |
Defined in ConfCrypt.Encryption | |
MonadDecrypt (ConfCryptM IO (RemoteKey AWSCtx)) (RemoteKey AWSCtx) Source # | |
Defined in ConfCrypt.Encryption |
Wraps a KMS key id. For more on KMS keys, see https://docs.aws.amazon.com/kms/latest/developerguide/crypto-intro.html
loadAwsCtx :: (MonadIO m, MonadCatch m) => KMSKeyId -> m AWSCtx Source #
Load the AWSCtx
. It first checks for configuration in environment variables, then a local config file. The
discovery logic is described in AWs