Aws.DynamoDb.Commands.Table

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

Safe Haskell | None
Language | Haskell2010

Aws.DynamoDb.Commands.Table

Contents

- Commands
- Data passed in the commands

Synopsis

- data CreateTable = CreateTable {
  - createTableName :: Text
  - createAttributeDefinitions :: [AttributeDefinition]
  - createKeySchema :: KeySchema
  - createProvisionedThroughput :: ProvisionedThroughput
  - createLocalSecondaryIndexes :: [LocalSecondaryIndex]
  - createGlobalSecondaryIndexes :: [GlobalSecondaryIndex]
  }
- createTable :: Text -> [AttributeDefinition] -> KeySchema -> ProvisionedThroughput -> CreateTable
- newtype CreateTableResult = CreateTableResult {
  - ctStatus :: TableDescription
  }
- data DescribeTable = DescribeTable {
  - dTableName :: Text
  }
- newtype DescribeTableResult = DescribeTableResult {
  - dtStatus :: TableDescription
  }
- data UpdateTable = UpdateTable {
  - updateTableName :: Text
  - updateProvisionedThroughput :: ProvisionedThroughput
  - updateGlobalSecondaryIndexUpdates :: [GlobalSecondaryIndexUpdate]
  }
- newtype UpdateTableResult = UpdateTableResult {
  - uStatus :: TableDescription
  }
- data DeleteTable = DeleteTable {
  - deleteTableName :: Text
  }
- newtype DeleteTableResult = DeleteTableResult {
  - dStatus :: TableDescription
  }
- data ListTables = ListTables
- newtype ListTablesResult = ListTablesResult {
  - tableNames :: [Text]
  }
- data AttributeType
  - = AttrString
  - | AttrNumber
  - | AttrBinary
- data AttributeDefinition = AttributeDefinition {
  - attributeName :: Text
  - attributeType :: AttributeType
  }
- data KeySchema
  - = HashOnly Text
  - | HashAndRange Text Text
- data Projection
  - = ProjectKeysOnly
  - | ProjectAll
  - | ProjectInclude [Text]
- data LocalSecondaryIndex = LocalSecondaryIndex {
  - localIndexName :: Text
  - localKeySchema :: KeySchema
  - localProjection :: Projection
  }
- data LocalSecondaryIndexStatus = LocalSecondaryIndexStatus {
  - locStatusIndexName :: Text
  - locStatusIndexSizeBytes :: Integer
  - locStatusItemCount :: Integer
  - locStatusKeySchema :: KeySchema
  - locStatusProjection :: Projection
  }
- data ProvisionedThroughput = ProvisionedThroughput {
  - readCapacityUnits :: Int
  - writeCapacityUnits :: Int
  }
- data ProvisionedThroughputStatus = ProvisionedThroughputStatus {
  - statusLastDecreaseDateTime :: UTCTime
  - statusLastIncreaseDateTime :: UTCTime
  - statusNumberOfDecreasesToday :: Int
  - statusReadCapacityUnits :: Int
  - statusWriteCapacityUnits :: Int
  }
- data GlobalSecondaryIndex = GlobalSecondaryIndex {
  - globalIndexName :: Text
  - globalKeySchema :: KeySchema
  - globalProjection :: Projection
  - globalProvisionedThroughput :: ProvisionedThroughput
  }
- data GlobalSecondaryIndexStatus = GlobalSecondaryIndexStatus {
  - gStatusIndexName :: Text
  - gStatusIndexSizeBytes :: Integer
  - gStatusIndexStatus :: Text
  - gStatusItemCount :: Integer
  - gStatusKeySchema :: KeySchema
  - gStatusProjection :: Projection
  - gStatusProvisionedThroughput :: ProvisionedThroughputStatus
  }
- data GlobalSecondaryIndexUpdate = GlobalSecondaryIndexUpdate {
  - gUpdateIndexName :: Text
  - gUpdateProvisionedThroughput :: ProvisionedThroughput
  }
- data TableDescription = TableDescription {
  - rTableName :: Text
  - rTableSizeBytes :: Integer
  - rTableStatus :: Text
  - rCreationDateTime :: Maybe UTCTime
  - rItemCount :: Integer
  - rAttributeDefinitions :: [AttributeDefinition]
  - rKeySchema :: Maybe KeySchema
  - rProvisionedThroughput :: ProvisionedThroughputStatus
  - rLocalSecondaryIndexes :: [LocalSecondaryIndexStatus]
  - rGlobalSecondaryIndexes :: [GlobalSecondaryIndexStatus]
  }

# Commands

data CreateTable #

Constructors

CreateTable |
Fields createTableName :: Text createAttributeDefinitions :: [AttributeDefinition] only attributes appearing in a key must be listed here createKeySchema :: KeySchema createProvisionedThroughput :: ProvisionedThroughput createLocalSecondaryIndexes :: [LocalSecondaryIndex] at most 5 local secondary indices are allowed createGlobalSecondaryIndexes :: [GlobalSecondaryIndex]

Instances

Show CreateTable # |
Methods showsPrec :: Int -> CreateTable -> ShowS # show :: CreateTable -> String # showList :: [CreateTable] -> ShowS #
Generic CreateTable # |
Associated Types type Rep CreateTable :: * -> * # Methods from :: CreateTable -> Rep CreateTable x # to :: Rep CreateTable x -> CreateTable #
ToJSON CreateTable # |
Methods toJSON :: CreateTable -> Value # toEncoding :: CreateTable -> Encoding #
SignQuery CreateTable # | ServiceConfiguration: `DdbConfiguration`
Associated Types type ServiceConfiguration CreateTable :: * -> * # Methods signQuery :: CreateTable -> ServiceConfiguration CreateTable queryType -> SignatureData -> SignedQuery #
Transaction CreateTable CreateTableResult # |
type Rep CreateTable # |
type Rep CreateTable = D1 (MetaData "CreateTable" "Aws.DynamoDb.Commands.Table" "aws-0.14.1-2wyooRymUfh2oivGQtqNoV" False) (C1 (MetaCons "CreateTable" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "createTableName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)) ((:*:) (S1 (MetaSel (Just Symbol "createAttributeDefinitions") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [AttributeDefinition])) (S1 (MetaSel (Just Symbol "createKeySchema") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 KeySchema)))) ((:*:) (S1 (MetaSel (Just Symbol "createProvisionedThroughput") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ProvisionedThroughput)) ((:*:) (S1 (MetaSel (Just Symbol "createLocalSecondaryIndexes") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [LocalSecondaryIndex])) (S1 (MetaSel (Just Symbol "createGlobalSecondaryIndexes") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [GlobalSecondaryIndex]))))))
type ServiceConfiguration CreateTable # |
type ServiceConfiguration CreateTable = DdbConfiguration

createTable #

Arguments

:: Text | Table name
-> [AttributeDefinition] |
-> KeySchema |
-> ProvisionedThroughput |
-> CreateTable |

newtype CreateTableResult #

Constructors

CreateTableResult |
Fields ctStatus :: TableDescription

Instances

Show CreateTableResult # |
Methods showsPrec :: Int -> CreateTableResult -> ShowS # show :: CreateTableResult -> String # showList :: [CreateTableResult] -> ShowS #
FromJSON CreateTableResult # |
Methods parseJSON :: Value -> Parser CreateTableResult #
AsMemoryResponse CreateTableResult # |
Associated Types type MemoryResponse CreateTableResult :: * # Methods loadToMemory :: CreateTableResult -> ResourceT IO (MemoryResponse CreateTableResult) #
Transaction CreateTable CreateTableResult # |
ResponseConsumer r CreateTableResult # |
Associated Types type ResponseMetadata CreateTableResult :: * # Methods responseConsumer :: Request -> r -> IORef (ResponseMetadata CreateTableResult) -> HTTPResponseConsumer CreateTableResult #
type MemoryResponse CreateTableResult # |
type MemoryResponse CreateTableResult = TableDescription
type ResponseMetadata CreateTableResult # |
type ResponseMetadata CreateTableResult = DdbResponse

data DescribeTable #

Constructors

DescribeTable |
Fields dTableName :: Text

Instances

Show DescribeTable # |
Methods showsPrec :: Int -> DescribeTable -> ShowS # show :: DescribeTable -> String # showList :: [DescribeTable] -> ShowS #
Generic DescribeTable # |
Associated Types type Rep DescribeTable :: * -> * # Methods from :: DescribeTable -> Rep DescribeTable x # to :: Rep DescribeTable x -> DescribeTable #
ToJSON DescribeTable # |
Methods toJSON :: DescribeTable -> Value # toEncoding :: DescribeTable -> Encoding #
SignQuery DescribeTable # | ServiceConfiguration: `DdbConfiguration`
Associated Types type ServiceConfiguration DescribeTable :: * -> * # Methods signQuery :: DescribeTable -> ServiceConfiguration DescribeTable queryType -> SignatureData -> SignedQuery #
Transaction DescribeTable DescribeTableResult # |
type Rep DescribeTable # |
type Rep DescribeTable = D1 (MetaData "DescribeTable" "Aws.DynamoDb.Commands.Table" "aws-0.14.1-2wyooRymUfh2oivGQtqNoV" False) (C1 (MetaCons "DescribeTable" PrefixI True) (S1 (MetaSel (Just Symbol "dTableName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))
type ServiceConfiguration DescribeTable # |
type ServiceConfiguration DescribeTable = DdbConfiguration

newtype DescribeTableResult #

Constructors

DescribeTableResult |
Fields dtStatus :: TableDescription

Instances

Show DescribeTableResult # |
Methods showsPrec :: Int -> DescribeTableResult -> ShowS # show :: DescribeTableResult -> String # showList :: [DescribeTableResult] -> ShowS #
FromJSON DescribeTableResult # |
Methods parseJSON :: Value -> Parser DescribeTableResult #
AsMemoryResponse DescribeTableResult # |
Associated Types type MemoryResponse DescribeTableResult :: * # Methods loadToMemory :: DescribeTableResult -> ResourceT IO (MemoryResponse DescribeTableResult) #
Transaction DescribeTable DescribeTableResult # |
ResponseConsumer r DescribeTableResult # |
Associated Types type ResponseMetadata DescribeTableResult :: * # Methods responseConsumer :: Request -> r -> IORef (ResponseMetadata DescribeTableResult) -> HTTPResponseConsumer DescribeTableResult #
type MemoryResponse DescribeTableResult # |
type MemoryResponse DescribeTableResult = TableDescription
type ResponseMetadata DescribeTableResult # |
type ResponseMetadata DescribeTableResult = DdbResponse

data UpdateTable #

Constructors

UpdateTable |
Fields updateTableName :: Text updateProvisionedThroughput :: ProvisionedThroughput updateGlobalSecondaryIndexUpdates :: [GlobalSecondaryIndexUpdate]

Instances

Show UpdateTable # |
Methods showsPrec :: Int -> UpdateTable -> ShowS # show :: UpdateTable -> String # showList :: [UpdateTable] -> ShowS #
Generic UpdateTable # |
Associated Types type Rep UpdateTable :: * -> * # Methods from :: UpdateTable -> Rep UpdateTable x # to :: Rep UpdateTable x -> UpdateTable #
ToJSON UpdateTable # |
Methods toJSON :: UpdateTable -> Value # toEncoding :: UpdateTable -> Encoding #
SignQuery UpdateTable # | ServiceConfiguration: `DdbConfiguration`
Associated Types type ServiceConfiguration UpdateTable :: * -> * # Methods signQuery :: UpdateTable -> ServiceConfiguration UpdateTable queryType -> SignatureData -> SignedQuery #
Transaction UpdateTable UpdateTableResult # |
type Rep UpdateTable # |
type Rep UpdateTable = D1 (MetaData "UpdateTable" "Aws.DynamoDb.Commands.Table" "aws-0.14.1-2wyooRymUfh2oivGQtqNoV" False) (C1 (MetaCons "UpdateTable" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "updateTableName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)) ((:*:) (S1 (MetaSel (Just Symbol "updateProvisionedThroughput") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ProvisionedThroughput)) (S1 (MetaSel (Just Symbol "updateGlobalSecondaryIndexUpdates") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [GlobalSecondaryIndexUpdate])))))
type ServiceConfiguration UpdateTable # |
type ServiceConfiguration UpdateTable = DdbConfiguration

newtype UpdateTableResult #

Constructors

UpdateTableResult |
Fields uStatus :: TableDescription

Instances

Show UpdateTableResult # |
Methods showsPrec :: Int -> UpdateTableResult -> ShowS # show :: UpdateTableResult -> String # showList :: [UpdateTableResult] -> ShowS #
FromJSON UpdateTableResult # |
Methods parseJSON :: Value -> Parser UpdateTableResult #
AsMemoryResponse UpdateTableResult # |
Associated Types type MemoryResponse UpdateTableResult :: * # Methods loadToMemory :: UpdateTableResult -> ResourceT IO (MemoryResponse UpdateTableResult) #
Transaction UpdateTable UpdateTableResult # |
ResponseConsumer r UpdateTableResult # |
Associated Types type ResponseMetadata UpdateTableResult :: * # Methods responseConsumer :: Request -> r -> IORef (ResponseMetadata UpdateTableResult) -> HTTPResponseConsumer UpdateTableResult #
type MemoryResponse UpdateTableResult # |
type MemoryResponse UpdateTableResult = TableDescription
type ResponseMetadata UpdateTableResult # |
type ResponseMetadata UpdateTableResult = DdbResponse

data DeleteTable #

Constructors

DeleteTable |
Fields deleteTableName :: Text

Instances

Show DeleteTable # |
Methods showsPrec :: Int -> DeleteTable -> ShowS # show :: DeleteTable -> String # showList :: [DeleteTable] -> ShowS #
Generic DeleteTable # |
Associated Types type Rep DeleteTable :: * -> * # Methods from :: DeleteTable -> Rep DeleteTable x # to :: Rep DeleteTable x -> DeleteTable #
ToJSON DeleteTable # |
Methods toJSON :: DeleteTable -> Value # toEncoding :: DeleteTable -> Encoding #
SignQuery DeleteTable # | ServiceConfiguration: `DdbConfiguration`
Associated Types type ServiceConfiguration DeleteTable :: * -> * # Methods signQuery :: DeleteTable -> ServiceConfiguration DeleteTable queryType -> SignatureData -> SignedQuery #
Transaction DeleteTable DeleteTableResult # |
type Rep DeleteTable # |
type Rep DeleteTable = D1 (MetaData "DeleteTable" "Aws.DynamoDb.Commands.Table" "aws-0.14.1-2wyooRymUfh2oivGQtqNoV" False) (C1 (MetaCons "DeleteTable" PrefixI True) (S1 (MetaSel (Just Symbol "deleteTableName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))
type ServiceConfiguration DeleteTable # |
type ServiceConfiguration DeleteTable = DdbConfiguration

newtype DeleteTableResult #

Constructors

DeleteTableResult |
Fields dStatus :: TableDescription

Instances

Show DeleteTableResult # |
Methods showsPrec :: Int -> DeleteTableResult -> ShowS # show :: DeleteTableResult -> String # showList :: [DeleteTableResult] -> ShowS #
FromJSON DeleteTableResult # |
Methods parseJSON :: Value -> Parser DeleteTableResult #
AsMemoryResponse DeleteTableResult # |
Associated Types type MemoryResponse DeleteTableResult :: * # Methods loadToMemory :: DeleteTableResult -> ResourceT IO (MemoryResponse DeleteTableResult) #
Transaction DeleteTable DeleteTableResult # |
ResponseConsumer r DeleteTableResult # |
Associated Types type ResponseMetadata DeleteTableResult :: * # Methods responseConsumer :: Request -> r -> IORef (ResponseMetadata DeleteTableResult) -> HTTPResponseConsumer DeleteTableResult #
type MemoryResponse DeleteTableResult # |
type MemoryResponse DeleteTableResult = TableDescription
type ResponseMetadata DeleteTableResult # |
type ResponseMetadata DeleteTableResult = DdbResponse

data ListTables #

TODO: currently this does not support restarting a cutoff query because of size.

Constructors

ListTables |

Instances

Show ListTables # |
Methods showsPrec :: Int -> ListTables -> ShowS # show :: ListTables -> String # showList :: [ListTables] -> ShowS #
ToJSON ListTables # |
Methods toJSON :: ListTables -> Value # toEncoding :: ListTables -> Encoding #
SignQuery ListTables # | ServiceConfiguration: `DdbConfiguration`
Associated Types type ServiceConfiguration ListTables :: * -> * # Methods signQuery :: ListTables -> ServiceConfiguration ListTables queryType -> SignatureData -> SignedQuery #
Transaction ListTables ListTablesResult # |
type ServiceConfiguration ListTables # |
type ServiceConfiguration ListTables = DdbConfiguration

newtype ListTablesResult #

Constructors

ListTablesResult |
Fields tableNames :: [Text]

Instances

Show ListTablesResult # |
Methods showsPrec :: Int -> ListTablesResult -> ShowS # show :: ListTablesResult -> String # showList :: [ListTablesResult] -> ShowS #
Generic ListTablesResult # |
Associated Types type Rep ListTablesResult :: * -> * # Methods from :: ListTablesResult -> Rep ListTablesResult x # to :: Rep ListTablesResult x -> ListTablesResult #
FromJSON ListTablesResult # |
Methods parseJSON :: Value -> Parser ListTablesResult #
AsMemoryResponse ListTablesResult # |
Associated Types type MemoryResponse ListTablesResult :: * # Methods loadToMemory :: ListTablesResult -> ResourceT IO (MemoryResponse ListTablesResult) #
Transaction ListTables ListTablesResult # |
ResponseConsumer r ListTablesResult # |
Associated Types type ResponseMetadata ListTablesResult :: * # Methods responseConsumer :: Request -> r -> IORef (ResponseMetadata ListTablesResult) -> HTTPResponseConsumer ListTablesResult #
type Rep ListTablesResult # |
type Rep ListTablesResult = D1 (MetaData "ListTablesResult" "Aws.DynamoDb.Commands.Table" "aws-0.14.1-2wyooRymUfh2oivGQtqNoV" True) (C1 (MetaCons "ListTablesResult" PrefixI True) (S1 (MetaSel (Just Symbol "tableNames") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [Text])))
type MemoryResponse ListTablesResult # |
type MemoryResponse ListTablesResult = [Text]
type ResponseMetadata ListTablesResult # |
type ResponseMetadata ListTablesResult = DdbResponse

# Data passed in the commands

data AttributeType #

The type of a key attribute that appears in the table key or as a key in one of the indices.

Constructors

AttrString |
AttrNumber |
AttrBinary |

Instances

Bounded AttributeType # |
Methods minBound :: AttributeType # maxBound :: AttributeType #
Enum AttributeType # |
Methods succ :: AttributeType -> AttributeType # pred :: AttributeType -> AttributeType # toEnum :: Int -> AttributeType # fromEnum :: AttributeType -> Int # enumFrom :: AttributeType -> [AttributeType] # enumFromThen :: AttributeType -> AttributeType -> [AttributeType] # enumFromTo :: AttributeType -> AttributeType -> [AttributeType] # enumFromThenTo :: AttributeType -> AttributeType -> AttributeType -> [AttributeType] #
Eq AttributeType # |
Methods (==) :: AttributeType -> AttributeType -> Bool # (/=) :: AttributeType -> AttributeType -> Bool #
Ord AttributeType # |
Methods compare :: AttributeType -> AttributeType -> Ordering # (<) :: AttributeType -> AttributeType -> Bool # (<=) :: AttributeType -> AttributeType -> Bool # (>) :: AttributeType -> AttributeType -> Bool # (>=) :: AttributeType -> AttributeType -> Bool # max :: AttributeType -> AttributeType -> AttributeType # min :: AttributeType -> AttributeType -> AttributeType #
Read AttributeType # |
Methods readsPrec :: Int -> ReadS AttributeType # readList :: ReadS [AttributeType] # readPrec :: ReadPrec AttributeType # readListPrec :: ReadPrec [AttributeType] #
Show AttributeType # |
Methods showsPrec :: Int -> AttributeType -> ShowS # show :: AttributeType -> String # showList :: [AttributeType] -> ShowS #
Generic AttributeType # |
Associated Types type Rep AttributeType :: * -> * # Methods from :: AttributeType -> Rep AttributeType x # to :: Rep AttributeType x -> AttributeType #
ToJSON AttributeType # |
Methods toJSON :: AttributeType -> Value # toEncoding :: AttributeType -> Encoding #
FromJSON AttributeType # |
Methods parseJSON :: Value -> Parser AttributeType #
type Rep AttributeType # |
type Rep AttributeType = D1 (MetaData "AttributeType" "Aws.DynamoDb.Commands.Table" "aws-0.14.1-2wyooRymUfh2oivGQtqNoV" False) ((:+:) (C1 (MetaCons "AttrString" PrefixI False) U1) ((:+:) (C1 (MetaCons "AttrNumber" PrefixI False) U1) (C1 (MetaCons "AttrBinary" PrefixI False) U1)))

data AttributeDefinition #

A key attribute that appears in the table key or as a key in one of the indices.

Constructors

AttributeDefinition |
Fields attributeName :: Text attributeType :: AttributeType

Instances

Eq AttributeDefinition # |
Methods (==) :: AttributeDefinition -> AttributeDefinition -> Bool # (/=) :: AttributeDefinition -> AttributeDefinition -> Bool #
Ord AttributeDefinition # |
Methods compare :: AttributeDefinition -> AttributeDefinition -> Ordering # (<) :: AttributeDefinition -> AttributeDefinition -> Bool # (<=) :: AttributeDefinition -> AttributeDefinition -> Bool # (>) :: AttributeDefinition -> AttributeDefinition -> Bool # (>=) :: AttributeDefinition -> AttributeDefinition -> Bool # max :: AttributeDefinition -> AttributeDefinition -> AttributeDefinition # min :: AttributeDefinition -> AttributeDefinition -> AttributeDefinition #
Read AttributeDefinition # |
Methods readsPrec :: Int -> ReadS AttributeDefinition # readList :: ReadS [AttributeDefinition] # readPrec :: ReadPrec AttributeDefinition # readListPrec :: ReadPrec [AttributeDefinition] #
Show AttributeDefinition # |
Methods showsPrec :: Int -> AttributeDefinition -> ShowS # show :: AttributeDefinition -> String # showList :: [AttributeDefinition] -> ShowS #
Generic AttributeDefinition # |
Associated Types type Rep AttributeDefinition :: * -> * # Methods from :: AttributeDefinition -> Rep AttributeDefinition x # to :: Rep AttributeDefinition x -> AttributeDefinition #
ToJSON AttributeDefinition # |
Methods toJSON :: AttributeDefinition -> Value # toEncoding :: AttributeDefinition -> Encoding #
FromJSON AttributeDefinition # |
Methods parseJSON :: Value -> Parser AttributeDefinition #
type Rep AttributeDefinition # |
type Rep AttributeDefinition = D1 (MetaData "AttributeDefinition" "Aws.DynamoDb.Commands.Table" "aws-0.14.1-2wyooRymUfh2oivGQtqNoV" False) (C1 (MetaCons "AttributeDefinition" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "attributeName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)) (S1 (MetaSel (Just Symbol "attributeType") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 AttributeType))))

data KeySchema #

The key schema can either be a hash of a single attribute name or a hash attribute name and a range attribute name.

Constructors

HashOnly Text |
HashAndRange Text Text |

Instances

Eq KeySchema # |
Methods (==) :: KeySchema -> KeySchema -> Bool # (/=) :: KeySchema -> KeySchema -> Bool #
Ord KeySchema # |
Methods compare :: KeySchema -> KeySchema -> Ordering # (<) :: KeySchema -> KeySchema -> Bool # (<=) :: KeySchema -> KeySchema -> Bool # (>) :: KeySchema -> KeySchema -> Bool # (>=) :: KeySchema -> KeySchema -> Bool # max :: KeySchema -> KeySchema -> KeySchema # min :: KeySchema -> KeySchema -> KeySchema #
Read KeySchema # |
Methods readsPrec :: Int -> ReadS KeySchema # readList :: ReadS [KeySchema] # readPrec :: ReadPrec KeySchema # readListPrec :: ReadPrec [KeySchema] #
Show KeySchema # |
Methods showsPrec :: Int -> KeySchema -> ShowS # show :: KeySchema -> String # showList :: [KeySchema] -> ShowS #
Generic KeySchema # |
Associated Types type Rep KeySchema :: * -> * # Methods from :: KeySchema -> Rep KeySchema x # to :: Rep KeySchema x -> KeySchema #
ToJSON KeySchema # |
Methods toJSON :: KeySchema -> Value # toEncoding :: KeySchema -> Encoding #
FromJSON KeySchema # |
Methods parseJSON :: Value -> Parser KeySchema #
type Rep KeySchema # |
type Rep KeySchema = D1 (MetaData "KeySchema" "Aws.DynamoDb.Commands.Table" "aws-0.14.1-2wyooRymUfh2oivGQtqNoV" False) ((:+:) (C1 (MetaCons "HashOnly" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text))) (C1 (MetaCons "HashAndRange" PrefixI False) ((:*:) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))))

data Projection #

This determines which attributes are projected into a secondary index.

Constructors

ProjectKeysOnly |
ProjectAll |
ProjectInclude [Text] |

Instances

Show Projection # |
Methods showsPrec :: Int -> Projection -> ShowS # show :: Projection -> String # showList :: [Projection] -> ShowS #
ToJSON Projection # |
Methods toJSON :: Projection -> Value # toEncoding :: Projection -> Encoding #
FromJSON Projection # |
Methods parseJSON :: Value -> Parser Projection #

data LocalSecondaryIndex #

Describes a single local secondary index. The KeySchema MUST share the same hash key attribute as the parent table, only the range key can differ.

Constructors

LocalSecondaryIndex |
Fields localIndexName :: Text localKeySchema :: KeySchema localProjection :: Projection

Instances

Show LocalSecondaryIndex # |
Methods showsPrec :: Int -> LocalSecondaryIndex -> ShowS # show :: LocalSecondaryIndex -> String # showList :: [LocalSecondaryIndex] -> ShowS #
Generic LocalSecondaryIndex # |
Associated Types type Rep LocalSecondaryIndex :: * -> * # Methods from :: LocalSecondaryIndex -> Rep LocalSecondaryIndex x # to :: Rep LocalSecondaryIndex x -> LocalSecondaryIndex #
ToJSON LocalSecondaryIndex # |
Methods toJSON :: LocalSecondaryIndex -> Value # toEncoding :: LocalSecondaryIndex -> Encoding #
FromJSON LocalSecondaryIndex # |
Methods parseJSON :: Value -> Parser LocalSecondaryIndex #
type Rep LocalSecondaryIndex # |
type Rep LocalSecondaryIndex = D1 (MetaData "LocalSecondaryIndex" "Aws.DynamoDb.Commands.Table" "aws-0.14.1-2wyooRymUfh2oivGQtqNoV" False) (C1 (MetaCons "LocalSecondaryIndex" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "localIndexName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)) ((:*:) (S1 (MetaSel (Just Symbol "localKeySchema") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 KeySchema)) (S1 (MetaSel (Just Symbol "localProjection") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Projection)))))

data LocalSecondaryIndexStatus #

This is returned by AWS to describe the local secondary index.

Constructors

LocalSecondaryIndexStatus |
Fields locStatusIndexName :: Text locStatusIndexSizeBytes :: Integer locStatusItemCount :: Integer locStatusKeySchema :: KeySchema locStatusProjection :: Projection

Instances

Show LocalSecondaryIndexStatus # |
Methods showsPrec :: Int -> LocalSecondaryIndexStatus -> ShowS # show :: LocalSecondaryIndexStatus -> String # showList :: [LocalSecondaryIndexStatus] -> ShowS #
Generic LocalSecondaryIndexStatus # |
Associated Types type Rep LocalSecondaryIndexStatus :: * -> * # Methods from :: LocalSecondaryIndexStatus -> Rep LocalSecondaryIndexStatus x # to :: Rep LocalSecondaryIndexStatus x -> LocalSecondaryIndexStatus #
FromJSON LocalSecondaryIndexStatus # |
Methods parseJSON :: Value -> Parser LocalSecondaryIndexStatus #
type Rep LocalSecondaryIndexStatus # |
type Rep LocalSecondaryIndexStatus = D1 (MetaData "LocalSecondaryIndexStatus" "Aws.DynamoDb.Commands.Table" "aws-0.14.1-2wyooRymUfh2oivGQtqNoV" False) (C1 (MetaCons "LocalSecondaryIndexStatus" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "locStatusIndexName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)) (S1 (MetaSel (Just Symbol "locStatusIndexSizeBytes") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Integer))) ((:*:) (S1 (MetaSel (Just Symbol "locStatusItemCount") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Integer)) ((:*:) (S1 (MetaSel (Just Symbol "locStatusKeySchema") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 KeySchema)) (S1 (MetaSel (Just Symbol "locStatusProjection") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Projection))))))

data ProvisionedThroughput #

The target provisioned throughput you are requesting for the table or global secondary index.

Constructors

ProvisionedThroughput |
Fields readCapacityUnits :: Int writeCapacityUnits :: Int

Instances

Show ProvisionedThroughput # |
Methods showsPrec :: Int -> ProvisionedThroughput -> ShowS # show :: ProvisionedThroughput -> String # showList :: [ProvisionedThroughput] -> ShowS #
Generic ProvisionedThroughput # |
Associated Types type Rep ProvisionedThroughput :: * -> * # Methods from :: ProvisionedThroughput -> Rep ProvisionedThroughput x # to :: Rep ProvisionedThroughput x -> ProvisionedThroughput #
ToJSON ProvisionedThroughput # |
Methods toJSON :: ProvisionedThroughput -> Value # toEncoding :: ProvisionedThroughput -> Encoding #
FromJSON ProvisionedThroughput # |
Methods parseJSON :: Value -> Parser ProvisionedThroughput #
type Rep ProvisionedThroughput # |
type Rep ProvisionedThroughput = D1 (MetaData "ProvisionedThroughput" "Aws.DynamoDb.Commands.Table" "aws-0.14.1-2wyooRymUfh2oivGQtqNoV" False) (C1 (MetaCons "ProvisionedThroughput" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "readCapacityUnits") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)) (S1 (MetaSel (Just Symbol "writeCapacityUnits") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int))))

data ProvisionedThroughputStatus #

This is returned by AWS as the status of the throughput for a table or global secondary index.

Constructors

ProvisionedThroughputStatus |
Fields statusLastDecreaseDateTime :: UTCTime statusLastIncreaseDateTime :: UTCTime statusNumberOfDecreasesToday :: Int statusReadCapacityUnits :: Int statusWriteCapacityUnits :: Int

Instances

Show ProvisionedThroughputStatus # |
Methods showsPrec :: Int -> ProvisionedThroughputStatus -> ShowS # show :: ProvisionedThroughputStatus -> String # showList :: [ProvisionedThroughputStatus] -> ShowS #
Generic ProvisionedThroughputStatus # |
Associated Types type Rep ProvisionedThroughputStatus :: * -> * # Methods from :: ProvisionedThroughputStatus -> Rep ProvisionedThroughputStatus x # to :: Rep ProvisionedThroughputStatus x -> ProvisionedThroughputStatus #
FromJSON ProvisionedThroughputStatus # |
Methods parseJSON :: Value -> Parser ProvisionedThroughputStatus #
type Rep ProvisionedThroughputStatus # |
type Rep ProvisionedThroughputStatus = D1 (MetaData "ProvisionedThroughputStatus" "Aws.DynamoDb.Commands.Table" "aws-0.14.1-2wyooRymUfh2oivGQtqNoV" False) (C1 (MetaCons "ProvisionedThroughputStatus" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "statusLastDecreaseDateTime") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 UTCTime)) (S1 (MetaSel (Just Symbol "statusLastIncreaseDateTime") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 UTCTime))) ((:*:) (S1 (MetaSel (Just Symbol "statusNumberOfDecreasesToday") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)) ((:*:) (S1 (MetaSel (Just Symbol "statusReadCapacityUnits") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)) (S1 (MetaSel (Just Symbol "statusWriteCapacityUnits") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int))))))

data GlobalSecondaryIndex #

Describes a global secondary index.

Constructors

GlobalSecondaryIndex |
Fields globalIndexName :: Text globalKeySchema :: KeySchema globalProjection :: Projection globalProvisionedThroughput :: ProvisionedThroughput

Instances

Show GlobalSecondaryIndex # |
Methods showsPrec :: Int -> GlobalSecondaryIndex -> ShowS # show :: GlobalSecondaryIndex -> String # showList :: [GlobalSecondaryIndex] -> ShowS #
Generic GlobalSecondaryIndex # |
Associated Types type Rep GlobalSecondaryIndex :: * -> * # Methods from :: GlobalSecondaryIndex -> Rep GlobalSecondaryIndex x # to :: Rep GlobalSecondaryIndex x -> GlobalSecondaryIndex #
ToJSON GlobalSecondaryIndex # |
Methods toJSON :: GlobalSecondaryIndex -> Value # toEncoding :: GlobalSecondaryIndex -> Encoding #
FromJSON GlobalSecondaryIndex # |
Methods parseJSON :: Value -> Parser GlobalSecondaryIndex #
type Rep GlobalSecondaryIndex # |
type Rep GlobalSecondaryIndex = D1 (MetaData "GlobalSecondaryIndex" "Aws.DynamoDb.Commands.Table" "aws-0.14.1-2wyooRymUfh2oivGQtqNoV" False) (C1 (MetaCons "GlobalSecondaryIndex" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "globalIndexName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)) (S1 (MetaSel (Just Symbol "globalKeySchema") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 KeySchema))) ((:*:) (S1 (MetaSel (Just Symbol "globalProjection") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Projection)) (S1 (MetaSel (Just Symbol "globalProvisionedThroughput") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ProvisionedThroughput)))))

data GlobalSecondaryIndexStatus #

This is returned by AWS to describe the status of a global secondary index.

Constructors

GlobalSecondaryIndexStatus |
Fields gStatusIndexName :: Text gStatusIndexSizeBytes :: Integer gStatusIndexStatus :: Text gStatusItemCount :: Integer gStatusKeySchema :: KeySchema gStatusProjection :: Projection gStatusProvisionedThroughput :: ProvisionedThroughputStatus

Instances

Show GlobalSecondaryIndexStatus # |
Methods showsPrec :: Int -> GlobalSecondaryIndexStatus -> ShowS # show :: GlobalSecondaryIndexStatus -> String # showList :: [GlobalSecondaryIndexStatus] -> ShowS #
Generic GlobalSecondaryIndexStatus # |
Associated Types type Rep GlobalSecondaryIndexStatus :: * -> * # Methods from :: GlobalSecondaryIndexStatus -> Rep GlobalSecondaryIndexStatus x # to :: Rep GlobalSecondaryIndexStatus x -> GlobalSecondaryIndexStatus #
FromJSON GlobalSecondaryIndexStatus # |
Methods parseJSON :: Value -> Parser GlobalSecondaryIndexStatus #
type Rep GlobalSecondaryIndexStatus # |
type Rep GlobalSecondaryIndexStatus = D1 (MetaData "GlobalSecondaryIndexStatus" "Aws.DynamoDb.Commands.Table" "aws-0.14.1-2wyooRymUfh2oivGQtqNoV" False) (C1 (MetaCons "GlobalSecondaryIndexStatus" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "gStatusIndexName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)) ((:*:) (S1 (MetaSel (Just Symbol "gStatusIndexSizeBytes") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Integer)) (S1 (MetaSel (Just Symbol "gStatusIndexStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "gStatusItemCount") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Integer)) (S1 (MetaSel (Just Symbol "gStatusKeySchema") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 KeySchema))) ((:*:) (S1 (MetaSel (Just Symbol "gStatusProjection") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Projection)) (S1 (MetaSel (Just Symbol "gStatusProvisionedThroughput") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ProvisionedThroughputStatus))))))

data GlobalSecondaryIndexUpdate #

This is used to request a change in the provisioned throughput of a global secondary index as part of an `UpdateTable` operation.

Constructors

GlobalSecondaryIndexUpdate |
Fields gUpdateIndexName :: Text gUpdateProvisionedThroughput :: ProvisionedThroughput

Instances

Show GlobalSecondaryIndexUpdate # |
Methods showsPrec :: Int -> GlobalSecondaryIndexUpdate -> ShowS # show :: GlobalSecondaryIndexUpdate -> String # showList :: [GlobalSecondaryIndexUpdate] -> ShowS #
Generic GlobalSecondaryIndexUpdate # |
Associated Types type Rep GlobalSecondaryIndexUpdate :: * -> * # Methods from :: GlobalSecondaryIndexUpdate -> Rep GlobalSecondaryIndexUpdate x # to :: Rep GlobalSecondaryIndexUpdate x -> GlobalSecondaryIndexUpdate #
ToJSON GlobalSecondaryIndexUpdate # |
Methods toJSON :: GlobalSecondaryIndexUpdate -> Value # toEncoding :: GlobalSecondaryIndexUpdate -> Encoding #
type Rep GlobalSecondaryIndexUpdate # |
type Rep GlobalSecondaryIndexUpdate = D1 (MetaData "GlobalSecondaryIndexUpdate" "Aws.DynamoDb.Commands.Table" "aws-0.14.1-2wyooRymUfh2oivGQtqNoV" False) (C1 (MetaCons "GlobalSecondaryIndexUpdate" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "gUpdateIndexName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)) (S1 (MetaSel (Just Symbol "gUpdateProvisionedThroughput") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ProvisionedThroughput))))

data TableDescription #

This describes the table and is the return value from AWS for all the table-related commands.

Constructors

TableDescription |
Fields rTableName :: Text rTableSizeBytes :: Integer rTableStatus :: Text one of CREATING, UPDATING, DELETING, ACTIVE rCreationDateTime :: Maybe UTCTime rItemCount :: Integer rAttributeDefinitions :: [AttributeDefinition] rKeySchema :: Maybe KeySchema rProvisionedThroughput :: ProvisionedThroughputStatus rLocalSecondaryIndexes :: [LocalSecondaryIndexStatus] rGlobalSecondaryIndexes :: [GlobalSecondaryIndexStatus]

Instances

Show TableDescription # |
Methods showsPrec :: Int -> TableDescription -> ShowS # show :: TableDescription -> String # showList :: [TableDescription] -> ShowS #
Generic TableDescription # |
Associated Types type Rep TableDescription :: * -> * # Methods from :: TableDescription -> Rep TableDescription x # to :: Rep TableDescription x -> TableDescription #
FromJSON TableDescription # |
Methods parseJSON :: Value -> Parser TableDescription #
type Rep TableDescription # |
type Rep TableDescription = D1 (MetaData "TableDescription" "Aws.DynamoDb.Commands.Table" "aws-0.14.1-2wyooRymUfh2oivGQtqNoV" False) (C1 (MetaCons "TableDescription" PrefixI True) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "rTableName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)) (S1 (MetaSel (Just Symbol "rTableSizeBytes") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Integer))) ((:*:) (S1 (MetaSel (Just Symbol "rTableStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)) ((:*:) (S1 (MetaSel (Just Symbol "rCreationDateTime") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe UTCTime))) (S1 (MetaSel (Just Symbol "rItemCount") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Integer))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "rAttributeDefinitions") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [AttributeDefinition])) (S1 (MetaSel (Just Symbol "rKeySchema") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe KeySchema)))) ((:*:) (S1 (MetaSel (Just Symbol "rProvisionedThroughput") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ProvisionedThroughputStatus)) ((:*:) (S1 (MetaSel (Just Symbol "rLocalSecondaryIndexes") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [LocalSecondaryIndexStatus])) (S1 (MetaSel (Just Symbol "rGlobalSecondaryIndexes") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [GlobalSecondaryIndexStatus])))))))