describe_global_table
(**kwargs)¶Returns information about the specified global table.
Note
This operation only applies to Version 2017.11.29 of global tables. If you are using global tables Version 2019.11.21 you can use DescribeTable instead.
See also: AWS API Documentation
Request Syntax
response = client.describe_global_table(
GlobalTableName='string'
)
[REQUIRED]
The name of the global table.
{
'GlobalTableDescription': {
'ReplicationGroup': [
{
'RegionName': 'string',
'ReplicaStatus': 'CREATING'|'CREATION_FAILED'|'UPDATING'|'DELETING'|'ACTIVE'|'REGION_DISABLED'|'INACCESSIBLE_ENCRYPTION_CREDENTIALS',
'ReplicaStatusDescription': 'string',
'ReplicaStatusPercentProgress': 'string',
'KMSMasterKeyId': 'string',
'ProvisionedThroughputOverride': {
'ReadCapacityUnits': 123
},
'GlobalSecondaryIndexes': [
{
'IndexName': 'string',
'ProvisionedThroughputOverride': {
'ReadCapacityUnits': 123
}
},
],
'ReplicaInaccessibleDateTime': datetime(2015, 1, 1),
'ReplicaTableClassSummary': {
'TableClass': 'STANDARD'|'STANDARD_INFREQUENT_ACCESS',
'LastUpdateDateTime': datetime(2015, 1, 1)
}
},
],
'GlobalTableArn': 'string',
'CreationDateTime': datetime(2015, 1, 1),
'GlobalTableStatus': 'CREATING'|'ACTIVE'|'DELETING'|'UPDATING',
'GlobalTableName': 'string'
}
}
Response Structure
Contains the details of the global table.
The Regions where the global table has replicas.
Contains the details of the replica.
The name of the Region.
The current state of the replica:
CREATING
- The replica is being created.UPDATING
- The replica is being updated.DELETING
- The replica is being deleted.ACTIVE
- The replica is ready for use.REGION_DISABLED
- The replica is inaccessible because the Amazon Web Services Region has been disabled.Note
If the Amazon Web Services Region remains inaccessible for more than 20 hours, DynamoDB will remove this replica from the replication group. The replica will not be deleted and replication will stop from and to this region.
INACCESSIBLE_ENCRYPTION_CREDENTIALS
- The KMS key used to encrypt the table is inaccessible.Note
If the KMS key remains inaccessible for more than 20 hours, DynamoDB will remove this replica from the replication group. The replica will not be deleted and replication will stop from and to this region.
Detailed information about the replica status.
Specifies the progress of a Create, Update, or Delete action on the replica as a percentage.
The KMS key of the replica that will be used for KMS encryption.
Replica-specific provisioned throughput. If not described, uses the source table's provisioned throughput settings.
Replica-specific read capacity units. If not specified, uses the source table's read capacity settings.
Replica-specific global secondary index settings.
Represents the properties of a replica global secondary index.
The name of the global secondary index.
If not described, uses the source table GSI's read capacity settings.
Replica-specific read capacity units. If not specified, uses the source table's read capacity settings.
The time at which the replica was first detected as inaccessible. To determine cause of inaccessibility check the ReplicaStatus
property.
Contains details of the table class.
The table class of the specified table. Valid values are STANDARD
and STANDARD_INFREQUENT_ACCESS
.
The date and time at which the table class was last updated.
The unique identifier of the global table.
The creation time of the global table.
The current state of the global table:
CREATING
- The global table is being created.UPDATING
- The global table is being updated.DELETING
- The global table is being deleted.ACTIVE
- The global table is ready for use.The global table name.
Exceptions
DynamoDB.Client.exceptions.InternalServerError
DynamoDB.Client.exceptions.GlobalTableNotFoundException