aws-0.16: Amazon Web Services (AWS) for Haskell

Copyright | Soostone Inc
License | BSD3
Maintainer | Ozgun Ataman <ozgun.ataman@soostone.com>
Stability | experimental
Safe Haskell | None
Language | Haskell2010

Aws.DynamoDb.Commands.GetItem

Description

Synopsis

- data GetItem = GetItem {
  - giTableName :: Text
  - giKey :: PrimaryKey
  - giAttrs :: Maybe [Text]
  - giConsistent :: Bool
  - giRetCons :: ReturnConsumption
  }
- getItem :: Text -> PrimaryKey -> GetItem
- data GetItemResponse = GetItemResponse {
  - girItem :: Maybe Item
  - girConsumed :: Maybe ConsumedCapacity
  }

# Documentation

data GetItem #

A GetItem query that fetches a specific object from DDB.

See: `http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/API_GetItem.html`

Constructors

GetItem |
Fields giTableName :: Text giKey :: PrimaryKey giAttrs :: Maybe [Text] Attributes to get. `Nothing` grabs everything. giConsistent :: Bool Whether to issue a consistent read. giRetCons :: ReturnConsumption Whether to return consumption stats.

Instances

Eq GetItem # |
Methods (==) :: GetItem -> GetItem -> Bool # (/=) :: GetItem -> GetItem -> Bool #
Ord GetItem # |
Methods compare :: GetItem -> GetItem -> Ordering # (<) :: GetItem -> GetItem -> Bool # (<=) :: GetItem -> GetItem -> Bool # (>) :: GetItem -> GetItem -> Bool # (>=) :: GetItem -> GetItem -> Bool # max :: GetItem -> GetItem -> GetItem # min :: GetItem -> GetItem -> GetItem #
Read GetItem # |
Methods readsPrec :: Int -> ReadS GetItem # readList :: ReadS [GetItem] # readPrec :: ReadPrec GetItem # readListPrec :: ReadPrec [GetItem] #
Show GetItem # |
Methods showsPrec :: Int -> GetItem -> ShowS # show :: GetItem -> String # showList :: [GetItem] -> ShowS #
ToJSON GetItem # |
Methods toJSON :: GetItem -> Value # toEncoding :: GetItem -> Encoding # toJSONList :: [GetItem] -> Value # toEncodingList :: [GetItem] -> Encoding #
SignQuery GetItem # |
Associated Types type ServiceConfiguration GetItem :: * -> * # Methods signQuery :: GetItem -> ServiceConfiguration GetItem queryType -> SignatureData -> SignedQuery #
Transaction GetItem GetItemResponse # |
type ServiceConfiguration GetItem # |
type ServiceConfiguration GetItem = DdbConfiguration

getItem #

Arguments

:: Text | Table name
-> PrimaryKey | Primary key
-> GetItem |

Construct a minimal `GetItem` request.

data GetItemResponse #

Response to a `GetItem` query.

Constructors

GetItemResponse |
Fields girItem :: Maybe Item girConsumed :: Maybe ConsumedCapacity

Instances

Eq GetItemResponse # |
Methods (==) :: GetItemResponse -> GetItemResponse -> Bool # (/=) :: GetItemResponse -> GetItemResponse -> Bool #
Ord GetItemResponse # |
Methods compare :: GetItemResponse -> GetItemResponse -> Ordering # (<) :: GetItemResponse -> GetItemResponse -> Bool # (<=) :: GetItemResponse -> GetItemResponse -> Bool # (>) :: GetItemResponse -> GetItemResponse -> Bool # (>=) :: GetItemResponse -> GetItemResponse -> Bool # max :: GetItemResponse -> GetItemResponse -> GetItemResponse # min :: GetItemResponse -> GetItemResponse -> GetItemResponse #
Read GetItemResponse # |
Methods readsPrec :: Int -> ReadS GetItemResponse # readList :: ReadS [GetItemResponse] # readPrec :: ReadPrec GetItemResponse # readListPrec :: ReadPrec [GetItemResponse] #
Show GetItemResponse # |
Methods showsPrec :: Int -> GetItemResponse -> ShowS # show :: GetItemResponse -> String # showList :: [GetItemResponse] -> ShowS #
FromJSON GetItemResponse # |
Methods parseJSON :: Value -> Parser GetItemResponse # parseJSONList :: Value -> Parser [GetItemResponse] #
AsMemoryResponse GetItemResponse # |
Associated Types type MemoryResponse GetItemResponse :: * # Methods loadToMemory :: GetItemResponse -> ResourceT IO (MemoryResponse GetItemResponse) #
Transaction GetItem GetItemResponse # |
ResponseConsumer r GetItemResponse # |
Associated Types type ResponseMetadata GetItemResponse :: * # Methods responseConsumer :: Request -> r -> IORef (ResponseMetadata GetItemResponse) -> HTTPResponseConsumer GetItemResponse #
type MemoryResponse GetItemResponse # |
type MemoryResponse GetItemResponse = GetItemResponse
type ResponseMetadata GetItemResponse # |
type ResponseMetadata GetItemResponse = DdbResponse