amazonka-1.4.5: Comprehensive Amazon Web Services SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityprovisional
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.Data

Contents

Description

Re-exports some of the underlying textual and byte serialisation mechanisms for convenience.

Many of the AWS identifiers like S3's ObjectVersionId or ETag, as well as any nullary sum types such as Region have ToText and ToByteString instances, making it convenient to use the type classes to convert a value to its textual representation.

Synopsis

Text

fromTextError :: Text -> Parser a #

Fail parsing with a Text error.

Constrained to the actual attoparsec monad to avoid exposing fail usage directly.

class ToText a where #

Instances

ToText Bool 

Methods

toText :: Bool -> Text #

ToText Char 

Methods

toText :: Char -> Text #

ToText Double 

Methods

toText :: Double -> Text #

ToText Int 

Methods

toText :: Int -> Text #

ToText Int64 

Methods

toText :: Int64 -> Text #

ToText Integer 

Methods

toText :: Integer -> Text #

ToText ByteString 

Methods

toText :: ByteString -> Text #

ToText Scientific 

Methods

toText :: Scientific -> Text #

ToText String 

Methods

toText :: String -> Text #

ToText Text 

Methods

toText :: Text -> Text #

ToText Natural 

Methods

toText :: Natural -> Text #

ToText RFC822 

Methods

toText :: RFC822 -> Text #

ToText ISO8601 

Methods

toText :: ISO8601 -> Text #

ToText BasicTime 

Methods

toText :: BasicTime -> Text #

ToText AWSTime 

Methods

toText :: AWSTime -> Text #

ToText POSIX 

Methods

toText :: POSIX -> Text #

ToText Base64 

Methods

toText :: Base64 -> Text #

ToText Abbrev 

Methods

toText :: Abbrev -> Text #

ToText ErrorCode 

Methods

toText :: ErrorCode -> Text #

ToText ErrorMessage 

Methods

toText :: ErrorMessage -> Text #

ToText RequestId 

Methods

toText :: RequestId -> Text #

ToText LogLevel 

Methods

toText :: LogLevel -> Text #

ToText AccessKey 

Methods

toText :: AccessKey -> Text #

ToText SecretKey 

Methods

toText :: SecretKey -> Text #

ToText SessionToken 

Methods

toText :: SessionToken -> Text #

ToText Region 

Methods

toText :: Region -> Text #

ToText Seconds 

Methods

toText :: Seconds -> Text #

ToText Nat 

Methods

toText :: Nat -> Text #

ToText StdMethod 

Methods

toText :: StdMethod -> Text #

ToText Info # 

Methods

toText :: Info -> Text #

ToText Interface # 

Methods

toText :: Interface -> Text #

ToText Mapping # 

Methods

toText :: Mapping -> Text #

ToText Metadata # 

Methods

toText :: Metadata -> Text #

ToText Dynamic # 

Methods

toText :: Dynamic -> Text #

ToText a => ToText (Sensitive a) 

Methods

toText :: Sensitive a -> Text #

ToText (Digest a) 

Methods

toText :: Digest a -> Text #

ToText a => ToText (CI a) 

Methods

toText :: CI a -> Text #

ByteString

class ToByteString a where #

Minimal complete definition

Nothing

Instances

ToByteString Double 

Methods

toBS :: Double -> ByteString #

ToByteString Int 

Methods

toBS :: Int -> ByteString #

ToByteString Integer 

Methods

toBS :: Integer -> ByteString #

ToByteString ByteString 
ToByteString Builder 

Methods

toBS :: Builder -> ByteString #

ToByteString String 

Methods

toBS :: String -> ByteString #

ToByteString Text 

Methods

toBS :: Text -> ByteString #

ToByteString UTCTime 

Methods

toBS :: UTCTime -> ByteString #

ToByteString Natural 

Methods

toBS :: Natural -> ByteString #

ToByteString RFC822 

Methods

toBS :: RFC822 -> ByteString #

ToByteString ISO8601 

Methods

toBS :: ISO8601 -> ByteString #

ToByteString BasicTime 

Methods

toBS :: BasicTime -> ByteString #

ToByteString AWSTime 

Methods

toBS :: AWSTime -> ByteString #

ToByteString Base64 

Methods

toBS :: Base64 -> ByteString #

ToByteString LogLevel 

Methods

toBS :: LogLevel -> ByteString #

ToByteString AccessKey 

Methods

toBS :: AccessKey -> ByteString #

ToByteString SecretKey 

Methods

toBS :: SecretKey -> ByteString #

ToByteString SessionToken 
ToByteString Region 

Methods

toBS :: Region -> ByteString #

ToByteString Seconds 

Methods

toBS :: Seconds -> ByteString #

ToByteString Nat 

Methods

toBS :: Nat -> ByteString #

ToByteString EscapedPath 
ToByteString QueryString 
ToByteString LazyByteString 
ToByteString StdMethod 

Methods

toBS :: StdMethod -> ByteString #

ToByteString a => ToByteString (Sensitive a) 

Methods

toBS :: Sensitive a -> ByteString #

ToByteString a => ToByteString (CI a) 

Methods

toBS :: CI a -> ByteString #

Log Messages

class ToLog a where #

Instances

ToLog Bool 

Methods

build :: Bool -> Builder #

ToLog Char 

Methods

build :: Char -> Builder #

ToLog Double 

Methods

build :: Double -> Builder #

ToLog Float 

Methods

build :: Float -> Builder #

ToLog Int 

Methods

build :: Int -> Builder #

ToLog Int8 

Methods

build :: Int8 -> Builder #

ToLog Int16 

Methods

build :: Int16 -> Builder #

ToLog Int32 

Methods

build :: Int32 -> Builder #

ToLog Int64 

Methods

build :: Int64 -> Builder #

ToLog Integer 

Methods

build :: Integer -> Builder #

ToLog Word 

Methods

build :: Word -> Builder #

ToLog Word8 

Methods

build :: Word8 -> Builder #

ToLog Word16 

Methods

build :: Word16 -> Builder #

ToLog Word32 

Methods

build :: Word32 -> Builder #

ToLog Word64 

Methods

build :: Word64 -> Builder #

ToLog ByteString 

Methods

build :: ByteString -> Builder #

ToLog ByteString 

Methods

build :: ByteString -> Builder #

ToLog Builder 

Methods

build :: Builder -> Builder #

ToLog Text 

Methods

build :: Text -> Builder #

ToLog UTCTime 

Methods

build :: UTCTime -> Builder #

ToLog Status 

Methods

build :: Status -> Builder #

ToLog Accept 

Methods

build :: Accept -> Builder #

ToLog Abbrev 

Methods

build :: Abbrev -> Builder #

ToLog ErrorCode 

Methods

build :: ErrorCode -> Builder #

ToLog ErrorMessage 
ToLog RequestId 

Methods

build :: RequestId -> Builder #

ToLog Error 

Methods

build :: Error -> Builder #

ToLog SerializeError 
ToLog ServiceError 
ToLog Meta 

Methods

build :: Meta -> Builder #

ToLog AccessKey 

Methods

build :: AccessKey -> Builder #

ToLog AuthEnv 

Methods

build :: AuthEnv -> Builder #

ToLog Auth 

Methods

build :: Auth -> Builder #

ToLog Region 

Methods

build :: Region -> Builder #

ToLog Seconds 

Methods

build :: Seconds -> Builder #

ToLog ChunkSize 

Methods

build :: ChunkSize -> Builder #

ToLog EscapedPath 

Methods

build :: EscapedPath -> Builder #

ToLog QueryString 

Methods

build :: QueryString -> Builder #

ToLog HttpException 
ToLog Text 

Methods

build :: Text -> Builder #

ToLog HttpExceptionContent 
ToLog RequestBody 

Methods

build :: RequestBody -> Builder #

ToLog Request 

Methods

build :: Request -> Builder #

ToLog StdMethod 

Methods

build :: StdMethod -> Builder #

ToLog HttpVersion 

Methods

build :: HttpVersion -> Builder #

ToLog AuthError # 

Methods

build :: AuthError -> Builder #

ToLog Credentials # 

Methods

build :: Credentials -> Builder #

ToLog Env # 

Methods

build :: Env -> Builder #

ToLog [Char] 

Methods

build :: [Char] -> Builder #

ToLog [Header] 

Methods

build :: [Header] -> Builder #

ToLog a => ToLog (Maybe a) 

Methods

build :: Maybe a -> Builder #

ToLog a => ToLog (CI a) 

Methods

build :: CI a -> Builder #

ToLog (Response a) 

Methods

build :: Response a -> Builder #