diff --git a/packages/aws-cdk-lib/aws-dynamodb/README.md b/packages/aws-cdk-lib/aws-dynamodb/README.md index 133c1b9efa296..c3c8d29ae26a0 100644 --- a/packages/aws-cdk-lib/aws-dynamodb/README.md +++ b/packages/aws-cdk-lib/aws-dynamodb/README.md @@ -585,7 +585,7 @@ const stack = new cdk.Stack(app, 'Stack', { env: { region: 'us-west-2' } }); const globalTable = new dynamodb.TableV2(stack, 'GlobalTable', { partitionKey: { name: 'pk', type: dynamodb.AttributeType.STRING }, - // applys to all replicas, i.e., us-west-2, us-east-1, us-east-2 + // applies to all replicas, i.e., us-west-2, us-east-1, us-east-2 removalPolicy: cdk.RemovalPolicy.DESTROY, replicas: [ { region: 'us-east-1' }, @@ -749,7 +749,7 @@ const globalTable = new dynamodb.TableV2(stack, 'GlobalTable', { ], }); -// grantReadData only applys to the table in us-west-2 and the tableKey +// grantReadData only applies to the table in us-west-2 and the tableKey globalTable.grantReadData(user); ``` @@ -779,7 +779,7 @@ const globalTable = new dynamodb.TableV2(stack, 'GlobalTable', { ], }); -// grantReadData applys to the table in us-east-2 and the key arn for the key in us-east-2 +// grantReadData applies to the table in us-east-2 and the key arn for the key in us-east-2 globalTable.replica('us-east-2').grantReadData(user); ``` @@ -815,7 +815,7 @@ new cloudwatch.Alarm(this, 'Alarm', { The `replica` method can be used to generate a metric for a specific replica table: ```ts -import * as cdk form 'aws-cdk-lib'; +import * as cdk from 'aws-cdk-lib'; import * as cloudwatch from 'aws-cdk-lib/aws-cloudwatch'; class FooStack extends cdk.Stack { diff --git a/packages/aws-cdk-lib/aws-dynamodb/lib/table-v2.ts b/packages/aws-cdk-lib/aws-dynamodb/lib/table-v2.ts index 1dd55b0ba23f6..66fd85e68cbb8 100644 --- a/packages/aws-cdk-lib/aws-dynamodb/lib/table-v2.ts +++ b/packages/aws-cdk-lib/aws-dynamodb/lib/table-v2.ts @@ -201,7 +201,7 @@ export interface ReplicaTableProps extends TableOptionsV2 { readonly readCapacity?: Capacity; /** - * The maxium read request units. + * The maximum read request units. * * Note: This can only be configured if the primary table billing is PAY_PER_REQUEST. * diff --git a/packages/aws-cdk-lib/aws-dynamodb/lib/table.ts b/packages/aws-cdk-lib/aws-dynamodb/lib/table.ts index 55ed1082a717a..b10e5ab5a6442 100644 --- a/packages/aws-cdk-lib/aws-dynamodb/lib/table.ts +++ b/packages/aws-cdk-lib/aws-dynamodb/lib/table.ts @@ -442,7 +442,7 @@ export interface TableProps extends TableOptions { readonly kinesisStream?: kinesis.IStream; /** - * Kinesis Data Stream approximate creation timestamp prescision + * Kinesis Data Stream approximate creation timestamp precision * * @default ApproximateCreationDateTimePrecision.MICROSECOND */