amazonka-1.6.0: Comprehensive Amazon Web Services SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@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

class FromText a where #

Minimal complete definition

parser

Methods

parser :: Parser a #

Instances

FromText Bool 

Methods

parser :: Parser Bool #

FromText Char 

Methods

parser :: Parser Char #

FromText Double 

Methods

parser :: Parser Double #

FromText Int 

Methods

parser :: Parser Int #

FromText Integer 
FromText Natural 
FromText ByteString 
FromText Scientific 
FromText Text 

Methods

parser :: Parser Text #

FromText Abbrev 

Methods

parser :: Parser Abbrev #

FromText ErrorCode 
FromText ErrorMessage 
FromText RequestId 
FromText LogLevel 
FromText AccessKey 
FromText SecretKey 
FromText SessionToken 
FromText Region 

Methods

parser :: Parser Region #

FromText Base64 

Methods

parser :: Parser Base64 #

FromText Nat 

Methods

parser :: Parser Nat #

FromText RFC822 

Methods

parser :: Parser RFC822 #

FromText ISO8601 
FromText BasicTime 
FromText AWSTime 
FromText POSIX 

Methods

parser :: Parser POSIX #

FromText StdMethod 
FromText a => FromText (Sensitive a) 

Methods

parser :: Parser (Sensitive a) #

(FoldCase a, FromText a) => FromText (CI a) 

Methods

parser :: Parser (CI a) #

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 #

Minimal complete definition

toText

Methods

toText :: a -> Text #

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 Natural 

Methods

toText :: Natural -> 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 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 Base64 

Methods

toText :: Base64 -> Text #

ToText Nat 

Methods

toText :: Nat -> 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 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 #

Methods

toBS :: a -> ByteString #

Instances

ToByteString Double 

Methods

toBS :: Double -> ByteString #

ToByteString Int 

Methods

toBS :: Int -> ByteString #

ToByteString Integer 

Methods

toBS :: Integer -> ByteString #

ToByteString Natural 

Methods

toBS :: Natural -> 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 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 Base64 

Methods

toBS :: Base64 -> ByteString #

ToByteString Nat 

Methods

toBS :: Nat -> 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 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 #

Minimal complete definition

build

Methods

build :: a -> Builder #

Convert a value to a loggable builder.

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 HttpVersion 

Methods

build :: HttpVersion -> Builder #

ToLog StdMethod 

Methods

build :: StdMethod -> 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 (Sensitive a) 

Methods

build :: Sensitive a -> Builder #

ToLog a => ToLog (CI a) 

Methods

build :: CI a -> Builder #

ToLog (Response a) 

Methods

build :: Response a -> Builder #