Skip to content

UpdateTableInput

Source code in docs_src/capo_dynamodb/types/update_table_input.py
class UpdateTableInput(TypedDict, closed=True):
    attribute_definitions: NotRequired[
        "capo_dynamodb.types.attribute_definitions.AttributeDefinitions"
    ]
    """<p>An array of attributes that describe the key schema for the table and indexes. If you are adding a new global secondary index to the table, <code>AttributeDefinitions</code> must include the key element(s) of the new index.</p>"""
    table_name: "capo_dynamodb.types.table_arn.TableArn"
    """<p>The name of the table to be updated. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.</p>"""
    billing_mode: NotRequired["capo_dynamodb.types.billing_mode.BillingMode"]
    """<p>Controls how you are charged for read and write throughput and how you manage capacity. When switching from pay-per-request to provisioned capacity, initial provisioned capacity values must be set. The initial provisioned capacity values are estimated based on the consumed read and write capacity of your table and global secondary indexes over the past 30 minutes.</p> <ul> <li> <p> <code>PAY_PER_REQUEST</code> - We recommend using <code>PAY_PER_REQUEST</code> for most DynamoDB workloads. <code>PAY_PER_REQUEST</code> sets the billing mode to <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/on-demand-capacity-mode.html">On-demand capacity mode</a>. </p> </li> <li> <p> <code>PROVISIONED</code> - We recommend using <code>PROVISIONED</code> for steady workloads with predictable growth where capacity requirements can be reliably forecasted. <code>PROVISIONED</code> sets the billing mode to <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/provisioned-capacity-mode.html">Provisioned capacity mode</a>.</p> </li> </ul>"""
    provisioned_throughput: NotRequired[
        "capo_dynamodb.types.provisioned_throughput.ProvisionedThroughput"
    ]
    """<p>The new provisioned throughput settings for the specified table or index.</p>"""
    global_secondary_index_updates: NotRequired[
        "capo_dynamodb.types.global_secondary_index_update_list.GlobalSecondaryIndexUpdateList"
    ]
    """<p>An array of one or more global secondary indexes for the table. For each index in the array, you can request one action:</p> <ul> <li> <p> <code>Create</code> - add a new global secondary index to the table.</p> </li> <li> <p> <code>Update</code> - modify the provisioned throughput settings of an existing global secondary index.</p> </li> <li> <p> <code>Delete</code> - remove a global secondary index from the table.</p> </li> </ul> <p>You can create or delete only one global secondary index per <code>UpdateTable</code> operation.</p> <p>For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/GSI.OnlineOps.html">Managing Global Secondary Indexes</a> in the <i>Amazon DynamoDB Developer Guide</i>. </p>"""
    stream_specification: NotRequired[
        "capo_dynamodb.types.stream_specification.StreamSpecification"
    ]
    """<p>Represents the DynamoDB Streams configuration for the table.</p> <note> <p>You receive a <code>ValidationException</code> if you try to enable a stream on a table that already has a stream, or if you try to disable a stream on a table that doesn't have a stream.</p> </note>"""
    sse_specification: NotRequired[
        "capo_dynamodb.types.sse_specification.SSESpecification"
    ]
    """<p>The new server-side encryption settings for the specified table.</p>"""
    replica_updates: NotRequired[
        "capo_dynamodb.types.replication_group_update_list.ReplicationGroupUpdateList"
    ]
    """<p>A list of replica update actions (create, delete, or update) for the table.</p>"""
    table_class: NotRequired["capo_dynamodb.types.table_class.TableClass"]
    """<p>The table class of the table to be updated. Valid values are <code>STANDARD</code> and <code>STANDARD_INFREQUENT_ACCESS</code>.</p>"""
    deletion_protection_enabled: NotRequired[
        "capo_dynamodb.types.deletion_protection_enabled.DeletionProtectionEnabled"
    ]
    """<p>Indicates whether deletion protection is to be enabled (true) or disabled (false) on the table.</p>"""
    multi_region_consistency: NotRequired[
        "capo_dynamodb.types.multi_region_consistency.MultiRegionConsistency"
    ]
    """<p>Specifies the consistency mode for a new global table. This parameter is only valid when you create a global table by specifying one or more <a href="https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_ReplicationGroupUpdate.html#DDB-Type-ReplicationGroupUpdate-Create">Create</a> actions in the <a href="https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_UpdateTable.html#DDB-UpdateTable-request-ReplicaUpdates">ReplicaUpdates</a> action list.</p> <p>You can specify one of the following consistency modes:</p> <ul> <li> <p> <code>EVENTUAL</code>: Configures a new global table for multi-Region eventual consistency (MREC). This is the default consistency mode for global tables.</p> </li> <li> <p> <code>STRONG</code>: Configures a new global table for multi-Region strong consistency (MRSC).</p> </li> </ul> <p>If you don't specify this field, the global table consistency mode defaults to <code>EVENTUAL</code>. For more information about global tables consistency modes, see <a href="https://docs.aws.amazon.com/V2globaltables_HowItWorks.html#V2globaltables_HowItWorks.consistency-modes"> Consistency modes</a> in DynamoDB developer guide. </p>"""
    global_table_witness_updates: NotRequired[
        "capo_dynamodb.types.global_table_witness_group_update_list.GlobalTableWitnessGroupUpdateList"
    ]
    """<p>A list of witness updates for a MRSC global table. A witness provides a cost-effective alternative to a full replica in a MRSC global table by maintaining replicated change data written to global table replicas. You cannot perform read or write operations on a witness. For each witness, you can request one action:</p> <ul> <li> <p> <code>Create</code> - add a new witness to the global table.</p> </li> <li> <p> <code>Delete</code> - remove a witness from the global table.</p> </li> </ul> <p>You can create or delete only one witness per <code>UpdateTable</code> operation.</p> <p>For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/V2globaltables_HowItWorks.html#V2globaltables_HowItWorks.consistency-modes">Multi-Region strong consistency (MRSC)</a> in the Amazon DynamoDB Developer Guide</p>"""
    on_demand_throughput: NotRequired[
        "capo_dynamodb.types.on_demand_throughput.OnDemandThroughput"
    ]
    """<p>Updates the maximum number of read and write units for the specified table in on-demand capacity mode. If you use this parameter, you must specify <code>MaxReadRequestUnits</code>, <code>MaxWriteRequestUnits</code>, or both.</p>"""
    warm_throughput: NotRequired["capo_dynamodb.types.warm_throughput.WarmThroughput"]
    """<p>Represents the warm throughput (in read units per second and write units per second) for updating a table.</p>"""
    global_table_settings_replication_mode: NotRequired[
        "capo_dynamodb.types.global_table_settings_replication_mode.GlobalTableSettingsReplicationMode"
    ]
    """<p>Controls the settings replication mode for a global table replica. This attribute can be defined using UpdateTable operation only on a regional table with values:</p> <ul> <li> <p> <code>ENABLED</code>: Defines settings replication on a regional table to be used as a source table for creating Multi-Account Global Table.</p> </li> <li> <p> <code>DISABLED</code>: Remove settings replication on a regional table. Settings replication needs to be defined to ENABLED again in order to create a Multi-Account Global Table using this table. </p> </li> </ul>"""
    vector_index_updates: NotRequired[
        "capo_dynamodb.types.vector_index_update_list.VectorIndexUpdateList"
    ]
    """<p>A list of vector indexes to be added to or removed from the table. You can add or remove one vector index for each <code>UpdateTable</code> operation.</p> <p>To add a vector index, specify <code>IndexName</code>, <code>VectorAttribute</code>, <code>Dimensions</code>, <code>DistanceFunction</code>, and <code>Projection</code>. To remove a vector index, specify only the <code>IndexName</code>.</p>"""

attribute_definitions instance-attribute

attribute_definitions: NotRequired[AttributeDefinitions]

An array of attributes that describe the key schema for the table and indexes. If you are adding a new global secondary index to the table, AttributeDefinitions must include the key element(s) of the new index.

billing_mode instance-attribute

billing_mode: NotRequired[BillingMode]

Controls how you are charged for read and write throughput and how you manage capacity. When switching from pay-per-request to provisioned capacity, initial provisioned capacity values must be set. The initial provisioned capacity values are estimated based on the consumed read and write capacity of your table and global secondary indexes over the past 30 minutes.

  • PAY_PER_REQUEST - We recommend using PAY_PER_REQUEST for most DynamoDB workloads. PAY_PER_REQUEST sets the billing mode to On-demand capacity mode.

  • PROVISIONED - We recommend using PROVISIONED for steady workloads with predictable growth where capacity requirements can be reliably forecasted. PROVISIONED sets the billing mode to Provisioned capacity mode.

deletion_protection_enabled instance-attribute

deletion_protection_enabled: NotRequired[DeletionProtectionEnabled]

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

global_secondary_index_updates instance-attribute

global_secondary_index_updates: NotRequired[GlobalSecondaryIndexUpdateList]

An array of one or more global secondary indexes for the table. For each index in the array, you can request one action:

  • Create - add a new global secondary index to the table.

  • Update - modify the provisioned throughput settings of an existing global secondary index.

  • Delete - remove a global secondary index from the table.

You can create or delete only one global secondary index per UpdateTable operation.

For more information, see Managing Global Secondary Indexes in the Amazon DynamoDB Developer Guide.

global_table_settings_replication_mode instance-attribute

global_table_settings_replication_mode: NotRequired[GlobalTableSettingsReplicationMode]

Controls the settings replication mode for a global table replica. This attribute can be defined using UpdateTable operation only on a regional table with values:

  • ENABLED: Defines settings replication on a regional table to be used as a source table for creating Multi-Account Global Table.

  • DISABLED: Remove settings replication on a regional table. Settings replication needs to be defined to ENABLED again in order to create a Multi-Account Global Table using this table.

global_table_witness_updates instance-attribute

global_table_witness_updates: NotRequired[GlobalTableWitnessGroupUpdateList]

A list of witness updates for a MRSC global table. A witness provides a cost-effective alternative to a full replica in a MRSC global table by maintaining replicated change data written to global table replicas. You cannot perform read or write operations on a witness. For each witness, you can request one action:

  • Create - add a new witness to the global table.

  • Delete - remove a witness from the global table.

You can create or delete only one witness per UpdateTable operation.

For more information, see Multi-Region strong consistency (MRSC) in the Amazon DynamoDB Developer Guide

multi_region_consistency instance-attribute

multi_region_consistency: NotRequired[MultiRegionConsistency]

Specifies the consistency mode for a new global table. This parameter is only valid when you create a global table by specifying one or more Create actions in the ReplicaUpdates action list.

You can specify one of the following consistency modes:

  • EVENTUAL: Configures a new global table for multi-Region eventual consistency (MREC). This is the default consistency mode for global tables.

  • STRONG: Configures a new global table for multi-Region strong consistency (MRSC).

If you don't specify this field, the global table consistency mode defaults to EVENTUAL. For more information about global tables consistency modes, see Consistency modes in DynamoDB developer guide.

on_demand_throughput instance-attribute

on_demand_throughput: NotRequired[OnDemandThroughput]

Updates the maximum number of read and write units for the specified table in on-demand capacity mode. If you use this parameter, you must specify MaxReadRequestUnits, MaxWriteRequestUnits, or both.

provisioned_throughput instance-attribute

provisioned_throughput: NotRequired[ProvisionedThroughput]

The new provisioned throughput settings for the specified table or index.

replica_updates instance-attribute

replica_updates: NotRequired[ReplicationGroupUpdateList]

A list of replica update actions (create, delete, or update) for the table.

sse_specification instance-attribute

sse_specification: NotRequired[SSESpecification]

The new server-side encryption settings for the specified table.

stream_specification instance-attribute

stream_specification: NotRequired[StreamSpecification]

Represents the DynamoDB Streams configuration for the table.

You receive a ValidationException if you try to enable a stream on a table that already has a stream, or if you try to disable a stream on a table that doesn't have a stream.

table_class instance-attribute

table_class: NotRequired[TableClass]

The table class of the table to be updated. Valid values are STANDARD and STANDARD_INFREQUENT_ACCESS.

table_name instance-attribute

table_name: TableArn

The name of the table to be updated. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.

vector_index_updates instance-attribute

vector_index_updates: NotRequired[VectorIndexUpdateList]

A list of vector indexes to be added to or removed from the table. You can add or remove one vector index for each UpdateTable operation.

To add a vector index, specify IndexName, VectorAttribute, Dimensions, DistanceFunction, and Projection. To remove a vector index, specify only the IndexName.

warm_throughput instance-attribute

warm_throughput: NotRequired[WarmThroughput]

Represents the warm throughput (in read units per second and write units per second) for updating a table.