table_replica_auto_scalings
Creates, updates, deletes, gets or lists a table_replica_auto_scalings resource.
Overview
| Name | table_replica_auto_scalings |
| Type | Resource |
| Id | aws.dynamodb.table_replica_auto_scalings |
Fields
The following fields are returned by SELECT queries:
- describe_table_replica_auto_scaling
| Name | Datatype | Description |
|---|---|---|
replicas | array | Represents replicas of the global table. |
table_name | string | The name of the table. (pattern: <code>[a-zA-Z0-9_.-]+</code>) |
table_status | string | The 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:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
describe_table_replica_auto_scaling | select | region | Describes auto scaling settings across replicas of the global table at once. | |
update_table_replica_auto_scaling | update | region, TableName | Updates 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.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- describe_table_replica_auto_scaling
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
- update_table_replica_auto_scaling
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;