update_global_table_settings
async
¶
update_global_table_settings(
global_table_name: TableName,
*,
config_overrides: Optional[AsyncDynamoDBClientConfig] = None,
global_table_billing_mode: Optional[BillingMode] = None,
global_table_provisioned_write_capacity_units: Optional[PositiveLongObject] = None,
global_table_provisioned_write_capacity_auto_scaling_settings_update: Optional[
AutoScalingSettingsUpdate
] = None,
global_table_global_secondary_index_settings_update: Optional[
GlobalTableGlobalSecondaryIndexSettingsUpdateList
] = None,
replica_settings_update: Optional[ReplicaSettingsUpdateList] = None,
) -> UpdateGlobalTableSettingsOutput
Updates settings for a global table.
This documentation is for version 2017.11.29 (Legacy) of global tables, which should be avoided for new global tables. Customers should use Global Tables version 2019.11.21 (Current) when possible, because it provides greater flexibility, higher efficiency, and consumes less write capacity than 2017.11.29 (Legacy).
To determine which version you're using, see Determining the global table version you are using. To update existing global tables from version 2017.11.29 (Legacy) to version 2019.11.21 (Current), see Upgrading global tables.
Parameters:
-
global_table_name(TableName) –The name of the global table
-
global_table_billing_mode(Optional[BillingMode], default:None) –The billing mode of the global table. If
GlobalTableBillingModeis not specified, the global table defaults toPROVISIONEDcapacity billing mode.-
PROVISIONED- We recommend usingPROVISIONEDfor predictable workloads.PROVISIONEDsets the billing mode to Provisioned capacity mode. -
PAY_PER_REQUEST- We recommend usingPAY_PER_REQUESTfor unpredictable workloads.PAY_PER_REQUESTsets the billing mode to On-demand capacity mode.
-
-
global_table_provisioned_write_capacity_units(Optional[PositiveLongObject], default:None) –The maximum number of writes consumed per second before DynamoDB returns a
ThrottlingException. -
global_table_provisioned_write_capacity_auto_scaling_settings_update(Optional[AutoScalingSettingsUpdate], default:None) –Auto scaling settings for managing provisioned write capacity for the global table.
-
global_table_global_secondary_index_settings_update(Optional[GlobalTableGlobalSecondaryIndexSettingsUpdateList], default:None) –Represents the settings of a global secondary index for a global table that will be modified.
-
replica_settings_update(Optional[ReplicaSettingsUpdateList], default:None) –Represents the settings for a global table in a Region that will be modified.
Raises:
-
GlobalTableNotFoundException–The specified global table does not exist.
-
IndexNotFoundException–The operation tried to access a nonexistent index.
-
InternalServerError–An error occurred on the server side.
-
LimitExceededException–There is no limit to the number of daily on-demand backups that can be taken.
For most purposes, up to 500 simultaneous table operations are allowed per account. These operations include
CreateTable,UpdateTable,DeleteTable,UpdateTimeToLive,RestoreTableFromBackup, andRestoreTableToPointInTime.When you are creating a table with one or more secondary indexes, you can have up to 250 such requests running at a time. However, if the table or index specifications are complex, then DynamoDB might temporarily reduce the number of concurrent operations.
When importing into DynamoDB, up to 50 simultaneous import table operations are allowed per account.
There is a soft account quota of 2,500 tables.
GetRecords was called with a value of more than 1000 for the limit request parameter.
More than 2 processes are reading from the same streams shard at the same time. Exceeding this limit may result in request throttling.
-
ReplicaNotFoundException–The specified replica is no longer part of the global table.
-
ResourceInUseException–The operation conflicts with the resource's availability. For example:
-
You attempted to recreate an existing table.
-
You tried to delete a table currently in the
CREATINGstate. -
You tried to update a resource that was already being updated.
When appropriate, wait for the ongoing update to complete and attempt the request again.
-
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_dynamodb/_services/async_dynamo_db.py
4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 | |