class Aws::DynamoDB::Types::CreateTableInput


@see docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/CreateTableInput AWS API Documentation
@return [Boolean]
disabled (false) on the table.
Indicates whether deletion protection is to be enabled (true) or
@!attribute [rw] deletion_protection_enabled
@return [String]
‘STANDARD_INFREQUENT_ACCESS`.
The table class of the new table. Valid values are `STANDARD` and
@!attribute [rw] table_class
@return [Array<Types::Tag>]<br>: docs.aws.amazon.com/amazondynamodb/latest/developerguide/Tagging.html<br><br><br><br>see [Tagging for DynamoDB].
A list of key-value pairs to label the table. For more information,
@!attribute [rw] tags
@return [Types::SSESpecification]
Represents the settings used to enable server-side encryption.
@!attribute [rw] sse_specification
@return [Types::StreamSpecification]
the item are written to the stream.
* `NEW_AND_OLD_IMAGES` - Both the new and the old item images of
modified, is written to the stream.
* `OLD_IMAGE` - The entire item, as it appeared before it was
modified, is written to the stream.
* `NEW_IMAGE` - The entire item, as it appears after it was
written to the stream.
* `KEYS_ONLY` - Only the key attributes of the modified item are
table’s stream. Valid values for ‘StreamViewType` are:
`StreamViewType` determines what information is written to the
* `StreamViewType` - When an item in the table is modified,
enabled (true) or disabled (false).
* `StreamEnabled` - Indicates whether DynamoDB Streams is to be
consist of:
The settings for DynamoDB Streams on the table. These settings
@!attribute [rw] stream_specification
@return [Types::ProvisionedThroughput]<br>: docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html<br><br><br><br>Developer Guide*.
[Service, Account, and Table Quotas] in the *Amazon DynamoDB
For current minimum and maximum provisioned throughput values, see
specify this property.
property. If you set BillingMode as `PAY_PER_REQUEST`, you cannot
If you set BillingMode as `PROVISIONED`, you must specify this
operation.
or index. The settings can be modified using the `UpdateTable`
Represents the provisioned throughput settings for a specified table
@!attribute [rw] provisioned_throughput
@return [String]<br>: docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.ReadWriteCapacityMode.html#HowItWorks.OnDemand<br>[1]: docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.ReadWriteCapacityMode.html#HowItWorks.ProvisionedThroughput.Manual<br><br><br><br>to [On-Demand Mode].
unpredictable workloads. `PAY_PER_REQUEST` sets the billing mode
* `PAY_PER_REQUEST` - We recommend using `PAY_PER_REQUEST` for<br><br>Mode].
workloads. `PROVISIONED` sets the billing mode to [Provisioned
* `PROVISIONED` - We recommend using `PROVISIONED` for predictable
you manage capacity. This setting can be changed later.
Controls how you are charged for read and write throughput and how
@!attribute [rw] billing_mode
@return [Array<Types::GlobalSecondaryIndex>]
units.
the global secondary index, consisting of read and write capacity
* `ProvisionedThroughput` - The provisioned throughput settings for
counts as two distinct attributes when determining the total.
project the same attribute into two different indexes, this
across all of the secondary indexes, must not exceed 100. If you
count of attributes provided in `NonKeyAttributes`, summed
names that are projected into the secondary index. The total
* `NonKeyAttributes` - A list of one or more non-key attribute
index.
* `ALL` - All of the table attributes are projected into the
`NonKeyAttributes`.
into the index. The list of projected attributes is in
* `INCLUDE` - Only the specified table attributes are projected
into the index.
* `KEYS_ONLY` - Only the index and primary keys are projected
* `ProjectionType` - One of the following:
of:
automatically projected. Each attribute specification is composed
primary key attributes and index key attributes, which are
from the table into the index. These are in addition to the
* `Projection` - Specifies attributes that are copied (projected)
index.
* `KeySchema` - Specifies the key schema for the global secondary
unique only for this table.
* `IndexName` - The name of the global secondary index. Must be
includes the following:
created on the table. Each global secondary index in the array
One or more global secondary indexes (the maximum is 20) to be
@!attribute [rw] global_secondary_indexes
@return [Array<Types::LocalSecondaryIndex>]
counts as two distinct attributes when determining the total.
project the same attribute into two different indexes, this
across all of the secondary indexes, must not exceed 100. If you
count of attributes provided in `NonKeyAttributes`, summed
names that are projected into the secondary index. The total
* `NonKeyAttributes` - A list of one or more non-key attribute
index.
* `ALL` - All of the table attributes are projected into the
`NonKeyAttributes`.
into the index. The list of projected attributes is in
* `INCLUDE` - Only the specified table attributes are projected
into the index.
* `KEYS_ONLY` - Only the index and primary keys are projected
* `ProjectionType` - One of the following:
of:
automatically projected. Each attribute specification is composed
primary key attributes and index key attributes, which are
from the table into the index. These are in addition to the
* `Projection` - Specifies attributes that are copied (projected)
the table.
index. The key schema must begin with the same partition key as
* `KeySchema` - Specifies the key schema for the local secondary
unique only for this table.
* `IndexName` - The name of the local secondary index. Must be
Each local secondary index in the array includes the following:
size of a local secondary index is unconstrained.
There is a 10 GB size limit per partition key value; otherwise, the
on the table. Each index is scoped to a given partition key value.
One or more local secondary indexes (the maximum is 5) to be created
@!attribute [rw] local_secondary_indexes
@return [Array<Types::KeySchemaElement>]<br>: docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#WorkingWithTables.primary.key<br>[1]: docs.aws.amazon.com/amazondynamodb/latest/developerguide/DataModel.html<br><br><br><br>DynamoDB Developer Guide*.
For more information, see [Working with Tables] in the *Amazon
`KeyType` of `RANGE`.
have a `KeyType` of `HASH`, and the second element must have a
provide exactly two elements, in this order: The first element must
For a composite primary key (partition key and sort key), you must
one element with a `KeyType` of `HASH`.
For a simple primary key (partition key), you must provide exactly
</note>
order by the sort key value.
with the same partition key physically close together, in sorted
term “range attribute” derives from the way DynamoDB stores items
The sort key of an item is also known as its *range attribute*. The
partitions, based on their partition key values.
internal hash function to evenly distribute data items across
The term “hash attribute” derives from the DynamoDB usage of an
<note markdown=“1”> The partition key of an item is also known as its *hash attribute*.
* `RANGE` - sort key
* `HASH` - partition key
* `KeyType` - The role that the key attribute will assume:
* `AttributeName` - The name of this key attribute.
Each `KeySchemaElement` in the array is composed of:<br><br>Model] in the *Amazon DynamoDB Developer Guide*.
`AttributeDefinitions` array. For more information, see [Data
an index. The attributes in `KeySchema` must also be defined in the
Specifies the attributes that make up the primary key for a table or
@!attribute [rw] key_schema
@return [String]
The name of the table to create.
@!attribute [rw] table_name
@return [Array<Types::AttributeDefinition>]
and indexes.
An array of attributes that describe the key schema for the table
@!attribute [rw] attribute_definitions
Represents the input of a `CreateTable` operation.