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.DeleteItem

Description

    http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_DeleteItem.html

Synopsis

- data DeleteItem = DeleteItem {
  - diTable :: Text
  - diKey :: PrimaryKey
  - diExpect :: Conditions
  - diReturn :: UpdateReturn
  - diRetCons :: ReturnConsumption
  - diRetMet :: ReturnItemCollectionMetrics
  }
- deleteItem :: Text -> PrimaryKey -> DeleteItem
- data DeleteItemResponse = DeleteItemResponse {
  - dirAttrs :: Maybe Item
  - dirConsumed :: Maybe ConsumedCapacity
  - dirColMet :: Maybe ItemCollectionMetrics
  }

# Documentation

data DeleteItem #

Constructors

DeleteItem |
Fields diTable :: Text Target table diKey :: PrimaryKey The item to delete. diExpect :: Conditions (Possible) set of expections for a conditional Put diReturn :: UpdateReturn What to return from this query. diRetCons :: ReturnConsumption diRetMet :: ReturnItemCollectionMetrics

Instances

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

deleteItem #

Arguments

:: Text | A Dynamo table name
-> PrimaryKey | Item to be saved
-> DeleteItem |

Construct a minimal `DeleteItem` request.

data DeleteItemResponse #

Constructors

DeleteItemResponse |
Fields dirAttrs :: Maybe Item Old attributes, if requested dirConsumed :: Maybe ConsumedCapacity Amount of capacity consumed dirColMet :: Maybe ItemCollectionMetrics Collection metrics if they have been requested.

Instances

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