enum GlobalTableSettingsReplicationMode
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.DynamoDB.GlobalTableSettingsReplicationMode |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsdynamodb#GlobalTableSettingsReplicationMode |
Java | software.amazon.awscdk.services.dynamodb.GlobalTableSettingsReplicationMode |
Python | aws_cdk.aws_dynamodb.GlobalTableSettingsReplicationMode |
TypeScript (source) | aws-cdk-lib » aws_dynamodb » GlobalTableSettingsReplicationMode |
The replication mode for global table settings across multiple accounts.
Note: In a multi-account global table, you cannot make changes to a synchronized setting using CDK.
Example
import * as cdk from 'aws-cdk-lib';
const app = new cdk.App();
// Source table in Account A
const sourceStack = new cdk.Stack(app, 'SourceStack', {
env: { region: 'us-east-1', account: '111111111111' },
});
// Region us-west-2
const sourceTable = new dynamodb.TableV2(sourceStack, 'SourceTable', {
tableName: 'MyMultiAccountTable',
partitionKey: { name: 'pk', type: dynamodb.AttributeType.STRING },
globalTableSettingsReplicationMode: dynamodb.GlobalTableSettingsReplicationMode.ALL,
});
// After replica is deployed, update source stack with the ARN
sourceTable.grants.multiAccountReplicationTo('arn:aws:dynamodb:us-east-1:222222222222:table/MyMultiAccountTable');
Members
| Name | Description |
|---|---|
| ALL | All synchronizable settings are replicated across all replicas. |
ALL
All synchronizable settings are replicated across all replicas.
Synchronizable settings include: billing mode, provisioned throughput, auto-scaling, on-demand throughput, warm throughput, TTL, streams view type, and GSIs.
Note: Some settings are always synchronized (key schema, LSIs) and some are never synchronized (table class, SSE, deletion protection, PITR, tags, resource policy, CCI).

.NET
Go
Java
Python
TypeScript (