update-global-table-settings
Description
Updates settings for a global table.
Warning
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 .
See also: AWS API Documentation
Synopsis
update-global-table-settings
--global-table-name <value>
[--global-table-billing-mode <value>]
[--global-table-provisioned-write-capacity-units <value>]
[--global-table-provisioned-write-capacity-auto-scaling-settings-update <value>]
[--global-table-global-secondary-index-settings-update <value>]
[--replica-settings-update <value>]
[--cli-input-json | --cli-input-yaml]
[--generate-cli-skeleton <value>]
[--debug]
[--endpoint-url <value>]
[--no-verify-ssl]
[--no-paginate]
[--output <value>]
[--query <value>]
[--profile <value>]
[--region <value>]
[--version <value>]
[--color <value>]
[--no-sign-request]
[--ca-bundle <value>]
[--cli-read-timeout <value>]
[--cli-connect-timeout <value>]
[--cli-binary-format <value>]
[--no-cli-pager]
[--cli-auto-prompt]
[--no-cli-auto-prompt]
Options
--global-table-name (string)
--global-table-billing-mode (string)
The billing mode of the global table. If GlobalTableBillingMode is not specified, the global table defaults to PROVISIONED capacity 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 .
Possible values:
PROVISIONEDPAY_PER_REQUEST
--global-table-provisioned-write-capacity-units (long)
ThrottlingException.
--global-table-provisioned-write-capacity-auto-scaling-settings-update (structure)
Auto scaling settings for managing provisioned write capacity for the global table.
MinimumUnits -> (long)
MaximumUnits -> (long)
AutoScalingDisabled -> (boolean)
AutoScalingRoleArn -> (string)
ScalingPolicyUpdate -> (structure)
The scaling policy to apply for scaling target global table or global secondary index capacity units.
PolicyName -> (string)
TargetTrackingScalingPolicyConfiguration -> (structure)
Represents a target tracking scaling policy configuration.
DisableScaleIn -> (boolean)
ScaleInCooldown -> (integer)
ScaleOutCooldown -> (integer)
TargetValue -> (double)
Shorthand Syntax:
MinimumUnits=long,MaximumUnits=long,AutoScalingDisabled=boolean,AutoScalingRoleArn=string,ScalingPolicyUpdate={PolicyName=string,TargetTrackingScalingPolicyConfiguration={DisableScaleIn=boolean,ScaleInCooldown=integer,ScaleOutCooldown=integer,TargetValue=double}}
JSON Syntax:
{
"MinimumUnits": long,
"MaximumUnits": long,
"AutoScalingDisabled": true|false,
"AutoScalingRoleArn": "string",
"ScalingPolicyUpdate": {
"PolicyName": "string",
"TargetTrackingScalingPolicyConfiguration": {
"DisableScaleIn": true|false,
"ScaleInCooldown": integer,
"ScaleOutCooldown": integer,
"TargetValue": double
}
}
}
--global-table-global-secondary-index-settings-update (list)
Represents the settings of a global secondary index for a global table that will be modified.
(structure)
Represents the settings of a global secondary index for a global table that will be modified.
IndexName -> (string)
ProvisionedWriteCapacityUnits -> (long)
ThrottlingException.
ProvisionedWriteCapacityAutoScalingSettingsUpdate -> (structure)
Auto scaling settings for managing a global secondary index’s write capacity units.
MinimumUnits -> (long)
MaximumUnits -> (long)
AutoScalingDisabled -> (boolean)
AutoScalingRoleArn -> (string)
ScalingPolicyUpdate -> (structure)
The scaling policy to apply for scaling target global table or global secondary index capacity units.
PolicyName -> (string)
TargetTrackingScalingPolicyConfiguration -> (structure)
Represents a target tracking scaling policy configuration.
DisableScaleIn -> (boolean)
ScaleInCooldown -> (integer)
ScaleOutCooldown -> (integer)
TargetValue -> (double)
JSON Syntax:
[
{
"IndexName": "string",
"ProvisionedWriteCapacityUnits": long,
"ProvisionedWriteCapacityAutoScalingSettingsUpdate": {
"MinimumUnits": long,
"MaximumUnits": long,
"AutoScalingDisabled": true|false,
"AutoScalingRoleArn": "string",
"ScalingPolicyUpdate": {
"PolicyName": "string",
"TargetTrackingScalingPolicyConfiguration": {
"DisableScaleIn": true|false,
"ScaleInCooldown": integer,
"ScaleOutCooldown": integer,
"TargetValue": double
}
}
}
}
...
]
--replica-settings-update (list)
Represents the settings for a global table in a Region that will be modified.
(structure)
Represents the settings for a global table in a Region that will be modified.
RegionName -> (string)
ReplicaProvisionedReadCapacityUnits -> (long)
ThrottlingException . For more information, see Specifying Read and Write Requirements in the Amazon DynamoDB Developer Guide .ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate -> (structure)
Auto scaling settings for managing a global table replica’s read capacity units.
MinimumUnits -> (long)
MaximumUnits -> (long)
AutoScalingDisabled -> (boolean)
AutoScalingRoleArn -> (string)
ScalingPolicyUpdate -> (structure)
The scaling policy to apply for scaling target global table or global secondary index capacity units.
PolicyName -> (string)
TargetTrackingScalingPolicyConfiguration -> (structure)
Represents a target tracking scaling policy configuration.
DisableScaleIn -> (boolean)
ScaleInCooldown -> (integer)
ScaleOutCooldown -> (integer)
TargetValue -> (double)
ReplicaGlobalSecondaryIndexSettingsUpdate -> (list)
Represents the settings of a global secondary index for a global table that will be modified.
(structure)
Represents the settings of a global secondary index for a global table that will be modified.
IndexName -> (string)
ProvisionedReadCapacityUnits -> (long)
ThrottlingException .ProvisionedReadCapacityAutoScalingSettingsUpdate -> (structure)
Auto scaling settings for managing a global secondary index replica’s read capacity units.
MinimumUnits -> (long)
MaximumUnits -> (long)
AutoScalingDisabled -> (boolean)
AutoScalingRoleArn -> (string)
ScalingPolicyUpdate -> (structure)
The scaling policy to apply for scaling target global table or global secondary index capacity units.
PolicyName -> (string)
TargetTrackingScalingPolicyConfiguration -> (structure)
Represents a target tracking scaling policy configuration.
DisableScaleIn -> (boolean)
ScaleInCooldown -> (integer)
ScaleOutCooldown -> (integer)
TargetValue -> (double)
ReplicaTableClass -> (string)
JSON Syntax:
[
{
"RegionName": "string",
"ReplicaProvisionedReadCapacityUnits": long,
"ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate": {
"MinimumUnits": long,
"MaximumUnits": long,
"AutoScalingDisabled": true|false,
"AutoScalingRoleArn": "string",
"ScalingPolicyUpdate": {
"PolicyName": "string",
"TargetTrackingScalingPolicyConfiguration": {
"DisableScaleIn": true|false,
"ScaleInCooldown": integer,
"ScaleOutCooldown": integer,
"TargetValue": double
}
}
},
"ReplicaGlobalSecondaryIndexSettingsUpdate": [
{
"IndexName": "string",
"ProvisionedReadCapacityUnits": long,
"ProvisionedReadCapacityAutoScalingSettingsUpdate": {
"MinimumUnits": long,
"MaximumUnits": long,
"AutoScalingDisabled": true|false,
"AutoScalingRoleArn": "string",
"ScalingPolicyUpdate": {
"PolicyName": "string",
"TargetTrackingScalingPolicyConfiguration": {
"DisableScaleIn": true|false,
"ScaleInCooldown": integer,
"ScaleOutCooldown": integer,
"TargetValue": double
}
}
}
}
...
],
"ReplicaTableClass": "STANDARD"|"STANDARD_INFREQUENT_ACCESS"
}
...
]
--cli-input-json | --cli-input-yaml (string) Reads arguments from the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton. If other arguments are provided on the command line, those values will override the JSON-provided values. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally. This may not be specified along with --cli-input-yaml.
--generate-cli-skeleton (string) Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value input, prints a sample input JSON that can be used as an argument for --cli-input-json. Similarly, if provided yaml-input it will print a sample input YAML that can be used with --cli-input-yaml. If provided with the value output, it validates the command inputs and returns a sample output JSON for that command. The generated JSON skeleton is not stable between versions of the AWS CLI and there are no backwards compatibility guarantees in the JSON skeleton generated.
Global Options
--debug (boolean)
Turn on debug logging.
--endpoint-url (string)
Override command’s default URL with the given URL.
--no-verify-ssl (boolean)
By default, the AWS CLI uses SSL when communicating with AWS services. For each SSL connection, the AWS CLI will verify SSL certificates. This option overrides the default behavior of verifying SSL certificates.
--no-paginate (boolean)
Disable automatic pagination. If automatic pagination is disabled, the AWS CLI will only make one call, for the first page of results.
--output (string)
The formatting style for command output.
- json
- text
- table
- yaml
- yaml-stream
--query (string)
A JMESPath query to use in filtering the response data.
--profile (string)
Use a specific profile from your credential file.
--region (string)
The region to use. Overrides config/env settings.
--version (string)
Display the version of this tool.
--color (string)
Turn on/off color output.
- on
- off
- auto
--no-sign-request (boolean)
Do not sign requests. Credentials will not be loaded if this argument is provided.
--ca-bundle (string)
The CA certificate bundle to use when verifying SSL certificates. Overrides config/env settings.
--cli-read-timeout (int)
The maximum socket read time in seconds. If the value is set to 0, the socket read will be blocking and not timeout. The default value is 60 seconds.
--cli-connect-timeout (int)
The maximum socket connect time in seconds. If the value is set to 0, the socket connect will be blocking and not timeout. The default value is 60 seconds.
--cli-binary-format (string)
The formatting style to be used for binary blobs. The default format is base64. The base64 format expects binary blobs to be provided as a base64 encoded string. The raw-in-base64-out format preserves compatibility with AWS CLI V1 behavior and binary values must be passed literally. When providing contents from a file that map to a binary blob fileb:// will always be treated as binary and use the file contents directly regardless of the cli-binary-format setting. When using file:// the file contents will need to properly formatted for the configured cli-binary-format.
- base64
- raw-in-base64-out
--no-cli-pager (boolean)
Disable cli pager for output.
--cli-auto-prompt (boolean)
Automatically prompt for CLI input parameters.
--no-cli-auto-prompt (boolean)
Disable automatically prompt for CLI input parameters.
Examples
Note
To use the following examples, you must have the AWS CLI installed and configured. See the Getting started guide in the AWS CLI User Guide for more information.
Unless otherwise stated, all examples have unix-like quotation rules. These examples will need to be adapted to your terminal’s quoting rules. See Using quotation marks with strings in the AWS CLI User Guide .
To update provisioned write capacity settings on a DynamoDB global table
The following update-global-table-settings example sets the provisioned write capacity of the MusicCollection global table to 15.
aws dynamodb update-global-table-settings \
--global-table-name MusicCollection \
--global-table-provisioned-write-capacity-units 15
Output:
{
"GlobalTableName": "MusicCollection",
"ReplicaSettings": [
{
"RegionName": "eu-west-1",
"ReplicaStatus": "UPDATING",
"ReplicaProvisionedReadCapacityUnits": 10,
"ReplicaProvisionedReadCapacityAutoScalingSettings": {
"AutoScalingDisabled": true
},
"ReplicaProvisionedWriteCapacityUnits": 10,
"ReplicaProvisionedWriteCapacityAutoScalingSettings": {
"AutoScalingDisabled": true
}
},
{
"RegionName": "us-east-1",
"ReplicaStatus": "UPDATING",
"ReplicaProvisionedReadCapacityUnits": 10,
"ReplicaProvisionedReadCapacityAutoScalingSettings": {
"AutoScalingDisabled": true
},
"ReplicaProvisionedWriteCapacityUnits": 10,
"ReplicaProvisionedWriteCapacityAutoScalingSettings": {
"AutoScalingDisabled": true
}
},
{
"RegionName": "us-east-2",
"ReplicaStatus": "UPDATING",
"ReplicaProvisionedReadCapacityUnits": 10,
"ReplicaProvisionedReadCapacityAutoScalingSettings": {
"AutoScalingDisabled": true
},
"ReplicaProvisionedWriteCapacityUnits": 10,
"ReplicaProvisionedWriteCapacityAutoScalingSettings": {
"AutoScalingDisabled": true
}
}
]
}
For more information, see DynamoDB Global Tables in the Amazon DynamoDB Developer Guide.
Output
GlobalTableName -> (string)
ReplicaSettings -> (list)
The Region-specific settings for the global table.
(structure)
Represents the properties of a replica.
RegionName -> (string)
ReplicaStatus -> (string)
The current state of the Region:
-
CREATING- The Region is being created. -
UPDATING- The Region is being updated. -
DELETING- The Region is being deleted. -
ACTIVE- The Region is ready for use.
ReplicaBillingModeSummary -> (structure)
The read/write capacity mode of the replica.
BillingMode -> (string)
Controls how you are charged for read and write throughput and how you manage capacity. This setting can be changed later.
-
PROVISIONED- Sets the read/write capacity mode toPROVISIONED. We recommend usingPROVISIONEDfor predictable workloads. -
PAY_PER_REQUEST- Sets the read/write capacity mode toPAY_PER_REQUEST. We recommend usingPAY_PER_REQUESTfor unpredictable workloads.
LastUpdateToPayPerRequestDateTime -> (timestamp)
PAY_PER_REQUEST was last set as the read/write capacity mode.ReplicaProvisionedReadCapacityUnits -> (long)
ThrottlingException . For more information, see Specifying Read and Write Requirements in the Amazon DynamoDB Developer Guide .ReplicaProvisionedReadCapacityAutoScalingSettings -> (structure)
Auto scaling settings for a global table replica’s read capacity units.
MinimumUnits -> (long)
MaximumUnits -> (long)
AutoScalingDisabled -> (boolean)
AutoScalingRoleArn -> (string)
ScalingPolicies -> (list)
Information about the scaling policies.
(structure)
Represents the properties of the scaling policy.
PolicyName -> (string)
TargetTrackingScalingPolicyConfiguration -> (structure)
Represents a target tracking scaling policy configuration.
DisableScaleIn -> (boolean)
ScaleInCooldown -> (integer)
ScaleOutCooldown -> (integer)
TargetValue -> (double)
ReplicaProvisionedWriteCapacityUnits -> (long)
ThrottlingException . For more information, see Specifying Read and Write Requirements in the Amazon DynamoDB Developer Guide .ReplicaProvisionedWriteCapacityAutoScalingSettings -> (structure)
Auto scaling settings for a global table replica’s write capacity units.
MinimumUnits -> (long)
MaximumUnits -> (long)
AutoScalingDisabled -> (boolean)
AutoScalingRoleArn -> (string)
ScalingPolicies -> (list)
Information about the scaling policies.
(structure)
Represents the properties of the scaling policy.
PolicyName -> (string)
TargetTrackingScalingPolicyConfiguration -> (structure)
Represents a target tracking scaling policy configuration.
DisableScaleIn -> (boolean)
ScaleInCooldown -> (integer)
ScaleOutCooldown -> (integer)
TargetValue -> (double)
ReplicaGlobalSecondaryIndexSettings -> (list)
Replica global secondary index settings for the global table.
(structure)
Represents the properties of a global secondary index.
IndexName -> (string)
IndexStatus -> (string)
The current status of the global secondary index:
-
CREATING- The global secondary index is being created. -
UPDATING- The global secondary index is being updated. -
DELETING- The global secondary index is being deleted. -
ACTIVE- The global secondary index is ready for use.
ProvisionedReadCapacityUnits -> (long)
ThrottlingException .ProvisionedReadCapacityAutoScalingSettings -> (structure)
Auto scaling settings for a global secondary index replica’s read capacity units.
MinimumUnits -> (long)
MaximumUnits -> (long)
AutoScalingDisabled -> (boolean)
AutoScalingRoleArn -> (string)
ScalingPolicies -> (list)
Information about the scaling policies.
(structure)
Represents the properties of the scaling policy.
PolicyName -> (string)
TargetTrackingScalingPolicyConfiguration -> (structure)
Represents a target tracking scaling policy configuration.
DisableScaleIn -> (boolean)
ScaleInCooldown -> (integer)
ScaleOutCooldown -> (integer)
TargetValue -> (double)
ProvisionedWriteCapacityUnits -> (long)
ThrottlingException .ProvisionedWriteCapacityAutoScalingSettings -> (structure)
Auto scaling settings for a global secondary index replica’s write capacity units.
MinimumUnits -> (long)
MaximumUnits -> (long)
AutoScalingDisabled -> (boolean)
AutoScalingRoleArn -> (string)
ScalingPolicies -> (list)
Information about the scaling policies.
(structure)
Represents the properties of the scaling policy.
PolicyName -> (string)
TargetTrackingScalingPolicyConfiguration -> (structure)
Represents a target tracking scaling policy configuration.
DisableScaleIn -> (boolean)
ScaleInCooldown -> (integer)
ScaleOutCooldown -> (integer)
TargetValue -> (double)
ReplicaTableClassSummary -> (structure)
Contains details of the table class.
TableClass -> (string)
STANDARD and STANDARD_INFREQUENT_ACCESS .LastUpdateDateTime -> (timestamp)
© Copyright 2025, Amazon Web Services. Created using Sphinx.