Skip to content

Commit f77903c

Browse files
authored
chore(dynamodb): fix typos (#32852)
### Issue # (if applicable) N/A ### Reason for this change Fixed typos in README and code comments. ### Checklist - [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent f3b0feb commit f77903c

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

packages/aws-cdk-lib/aws-dynamodb/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ const stack = new cdk.Stack(app, 'Stack', { env: { region: 'us-west-2' } });
585585

586586
const globalTable = new dynamodb.TableV2(stack, 'GlobalTable', {
587587
partitionKey: { name: 'pk', type: dynamodb.AttributeType.STRING },
588-
// applys to all replicas, i.e., us-west-2, us-east-1, us-east-2
588+
// applies to all replicas, i.e., us-west-2, us-east-1, us-east-2
589589
removalPolicy: cdk.RemovalPolicy.DESTROY,
590590
replicas: [
591591
{ region: 'us-east-1' },
@@ -749,7 +749,7 @@ const globalTable = new dynamodb.TableV2(stack, 'GlobalTable', {
749749
],
750750
});
751751

752-
// grantReadData only applys to the table in us-west-2 and the tableKey
752+
// grantReadData only applies to the table in us-west-2 and the tableKey
753753
globalTable.grantReadData(user);
754754
```
755755

@@ -779,7 +779,7 @@ const globalTable = new dynamodb.TableV2(stack, 'GlobalTable', {
779779
],
780780
});
781781

782-
// grantReadData applys to the table in us-east-2 and the key arn for the key in us-east-2
782+
// grantReadData applies to the table in us-east-2 and the key arn for the key in us-east-2
783783
globalTable.replica('us-east-2').grantReadData(user);
784784
```
785785

@@ -815,7 +815,7 @@ new cloudwatch.Alarm(this, 'Alarm', {
815815
The `replica` method can be used to generate a metric for a specific replica table:
816816

817817
```ts
818-
import * as cdk form 'aws-cdk-lib';
818+
import * as cdk from 'aws-cdk-lib';
819819
import * as cloudwatch from 'aws-cdk-lib/aws-cloudwatch';
820820

821821
class FooStack extends cdk.Stack {
@@ -824,7 +824,7 @@ class FooStack extends cdk.Stack {
824824
public constructor(scope: Construct, id: string, props: cdk.StackProps) {
825825
super(scope, id, props);
826826

827-
this.globalTable = new dynamodb.Tablev2(this, 'GlobalTable', {
827+
this.globalTable = new dynamodb.TableV2(this, 'GlobalTable', {
828828
partitionKey: { name: 'pk', type: dynamodb.AttributeType.STRING },
829829
replicas: [
830830
{ region: 'us-east-1' },
@@ -834,7 +834,7 @@ class FooStack extends cdk.Stack {
834834
}
835835
}
836836

837-
interface BarStack extends cdk.StackProps {
837+
interface BarStackProps extends cdk.StackProps {
838838
readonly replicaTable: dynamodb.ITableV2;
839839
}
840840

packages/aws-cdk-lib/aws-dynamodb/lib/table-v2.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ export interface ReplicaTableProps extends TableOptionsV2 {
201201
readonly readCapacity?: Capacity;
202202

203203
/**
204-
* The maxium read request units.
204+
* The maximum read request units.
205205
*
206206
* Note: This can only be configured if the primary table billing is PAY_PER_REQUEST.
207207
*

packages/aws-cdk-lib/aws-dynamodb/lib/table.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ export interface TableProps extends TableOptions {
442442
readonly kinesisStream?: kinesis.IStream;
443443

444444
/**
445-
* Kinesis Data Stream approximate creation timestamp prescision
445+
* Kinesis Data Stream approximate creation timestamp precision
446446
*
447447
* @default ApproximateCreationDateTimePrecision.MICROSECOND
448448
*/

0 commit comments

Comments
 (0)