Skip to content

Create table

async_boto.validation.dynamodb.create_table

CreateTableRequest

Bases: BaseModel

Creates a new table in DynamoDB.

ATTRIBUTE DESCRIPTION
AttributeDefinitions

An array of attributes that describe the key schema for the table and indexes.

TYPE: List[AttributeDefinition]

KeySchema

Specifies the attributes that make up the primary key for a table or an index.

TYPE: List[KeySchemaElement]

TableName

The name of the table to create.

TYPE: str

BillingMode

Controls how you are charged for read and write throughput and how you manage capacity.

TYPE: Optional[Literal['PROVISIONED', 'PAY_PER_REQUEST']]

DeletionProtectionEnabled

Indicates whether deletion protection is to be enabled (true) or disabled (false) on the table.

TYPE: Optional[bool]

GlobalSecondaryIndexes

One or more global secondary indexes to be created on the table.

TYPE: Optional[List[GlobalSecondaryIndex]]

LocalSecondaryIndexes

One or more local secondary indexes to be created on the table.

TYPE: Optional[List[LocalSecondaryIndex]]

OnDemandThroughput

Sets the maximum number of read and write units for the specified table in on-demand capacity mode.

TYPE: Optional[OnDemandThroughput]

ProvisionedThroughput

Represents the provisioned throughput settings for a specified table or index.

TYPE: Optional[ProvisionedThroughput]

ResourcePolicy

An AWS resource-based policy document in JSON format that will be attached to the table.

TYPE: Optional[str]

SSESpecification

Represents the settings used to enable server-side encryption.

TYPE: Optional[SSESpecification]

StreamSpecification

The settings for DynamoDB Streams on the table.

TYPE: Optional[StreamSpecification]

TableClass

The table class of the new table.

TYPE: Optional[Literal['STANDARD', 'STANDARD_INFREQUENT_ACCESS']]

Tags

A list of key-value pairs to label the table.

TYPE: Optional[List[Tag]]

WarmThroughput

Represents the warm throughput for creating a table.

TYPE: Optional[WarmThroughput]

AttributeDefinitions instance-attribute

AttributeDefinitions

KeySchema instance-attribute

KeySchema

TableName instance-attribute

TableName

BillingMode class-attribute instance-attribute

BillingMode = None

DeletionProtectionEnabled class-attribute instance-attribute

DeletionProtectionEnabled = None

GlobalSecondaryIndexes class-attribute instance-attribute

GlobalSecondaryIndexes = None

LocalSecondaryIndexes class-attribute instance-attribute

LocalSecondaryIndexes = None

OnDemandThroughput class-attribute instance-attribute

OnDemandThroughput = None

ProvisionedThroughput class-attribute instance-attribute

ProvisionedThroughput = None

ResourcePolicy class-attribute instance-attribute

ResourcePolicy = None

SSESpecification class-attribute instance-attribute

SSESpecification = None

StreamSpecification class-attribute instance-attribute

StreamSpecification = None

TableClass class-attribute instance-attribute

TableClass = None

Tags class-attribute instance-attribute

Tags = None

WarmThroughput class-attribute instance-attribute

WarmThroughput = None

CreateTableResponse

Bases: BaseModel

Represents the output of a CreateTable operation.

ATTRIBUTE DESCRIPTION
TableDescription

Represents the properties of the table.

TYPE: dict

TableDescription instance-attribute

TableDescription