stratosphere-0.2.1: EDSL for AWS CloudFormation

Safe HaskellNone
LanguageHaskell2010

Stratosphere.Resources.DynamoDBTable

Description

Creates a DynamoDB table.

Synopsis

Documentation

data DynamoDBTable Source #

Full data type definition for DynamoDBTable. See dynamoDBTable for a more convenient constructor.

Instances

Show DynamoDBTable Source # 
Generic DynamoDBTable Source # 

Associated Types

type Rep DynamoDBTable :: * -> * #

ToJSON DynamoDBTable Source # 
FromJSON DynamoDBTable Source # 
type Rep DynamoDBTable Source # 
type Rep DynamoDBTable = D1 (MetaData "DynamoDBTable" "Stratosphere.Resources.DynamoDBTable" "stratosphere-0.2.1-7UjeTxLOKRACY1vyFAxa7V" False) (C1 (MetaCons "DynamoDBTable" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_dynamoDBTableAttributeDefinitions") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [DynamoDBAttributeDefinition])) ((:*:) (S1 (MetaSel (Just Symbol "_dynamoDBTableGlobalSecondaryIndexes") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe [DynamoDBGlobalSecondaryIndex]))) (S1 (MetaSel (Just Symbol "_dynamoDBTableKeySchema") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [DynamoDBKeySchema])))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_dynamoDBTableLocalSecondaryIndexes") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe [DynamoDBLocalSecondaryIndex]))) (S1 (MetaSel (Just Symbol "_dynamoDBTableProvisionedThroughput") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 DynamoDBProvisionedThroughput))) ((:*:) (S1 (MetaSel (Just Symbol "_dynamoDBTableStreamSpecification") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe DynamoDBStreamSpecification))) (S1 (MetaSel (Just Symbol "_dynamoDBTableTableName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe (Val Text))))))))

ddbtAttributeDefinitions :: Lens' DynamoDBTable [DynamoDBAttributeDefinition] Source #

A list of AttributeName and AttributeType objects that describe the key schema for the table and indexes.

ddbtGlobalSecondaryIndexes :: Lens' DynamoDBTable (Maybe [DynamoDBGlobalSecondaryIndex]) Source #

Global secondary indexes to be created on the table. You can create up to 5 global secondary indexes. Important If you update a table to include a new global secondary index, AWS CloudFormation initiates the index creation and then proceeds with the stack update. AWS CloudFormation doesn't wait for the index to complete creation because the backfilling phase can take a long time, depending on the size of the table. You cannot use the index or update the table until the index's status is ACTIVE. You can track its status by using the DynamoDB DescribeTable command. If you add or delete an index during an update, we recommend that you don't update any other resources. If your stack fails to update and is rolled back while adding a new index, you must manually delete the index.

ddbtKeySchema :: Lens' DynamoDBTable [DynamoDBKeySchema] Source #

Specifies the attributes that make up the primary key for the table. The attributes in the KeySchema property must also be defined in the AttributeDefinitions property.

ddbtLocalSecondaryIndexes :: Lens' DynamoDBTable (Maybe [DynamoDBLocalSecondaryIndex]) Source #

Local secondary indexes to be created on the table. You can create up to 5 local secondary indexes. Each index is scoped to a given hash key value. The size of each hash key can be up to 10 gigabytes.

ddbtProvisionedThroughput :: Lens' DynamoDBTable DynamoDBProvisionedThroughput Source #

Throughput for the specified table, consisting of values for ReadCapacityUnits and WriteCapacityUnits. For more information about the contents of a provisioned throughput structure, see DynamoDB Provisioned Throughput.

ddbtStreamSpecification :: Lens' DynamoDBTable (Maybe DynamoDBStreamSpecification) Source #

The settings for the DynamoDB table stream, which capture changes to items stored in the table.

ddbtTableName :: Lens' DynamoDBTable (Maybe (Val Text)) Source #

A name for the table. If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the table name. For more information, see Name Type. Important If you specify a name, you cannot do updates that require this resource to be replaced. You can still do updates that require no or some interruption. If you must replace the resource, specify a new name.