Skip to main content

table_replica_auto_scalings

Creates, updates, deletes, gets or lists a table_replica_auto_scalings resource.

Overview

Nametable_replica_auto_scalings
TypeResource
Idaws.dynamodb.table_replica_auto_scalings

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
replicasarrayRepresents replicas of the global table.
table_namestringThe name of the table. (pattern: <code>[a-zA-Z0-9_.-]+</code>)
table_statusstringThe current state of the table: CREATING - The table is being created. UPDATING - The table is being updated. DELETING - The table is being deleted. ACTIVE - The table is ready for use. (CREATING, UPDATING, DELETING, ACTIVE, INACCESSIBLE_ENCRYPTION_CREDENTIALS, ARCHIVING, ARCHIVED, REPLICATION_NOT_AUTHORIZED)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_table_replica_auto_scalingselectregionDescribes auto scaling settings across replicas of the global table at once.
update_table_replica_auto_scalingupdateregion, TableNameUpdates auto scaling settings on your global tables at once.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Describes auto scaling settings across replicas of the global table at once.

SELECT
replicas,
table_name,
table_status
FROM aws.dynamodb.table_replica_auto_scalings
WHERE region = '{{ region }}' -- required
;

UPDATE examples

Updates auto scaling settings on your global tables at once.

UPDATE aws.dynamodb.table_replica_auto_scalings
SET
GlobalSecondaryIndexUpdates = '{{ GlobalSecondaryIndexUpdates }}',
TableName = '{{ TableName }}',
ProvisionedWriteCapacityAutoScalingUpdate = '{{ ProvisionedWriteCapacityAutoScalingUpdate }}',
ReplicaUpdates = '{{ ReplicaUpdates }}'
WHERE
region = '{{ region }}' --required
AND TableName = '{{ TableName }}' --required
RETURNING
table_auto_scaling_description;