Skip to content

Commit

Permalink
chore(dynamodb): fix typos (#32852)
Browse files Browse the repository at this point in the history
### 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*
  • Loading branch information
kdnakt authored Jan 12, 2025
1 parent f3b0feb commit f77903c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions packages/aws-cdk-lib/aws-dynamodb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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' },
Expand Down Expand Up @@ -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);
```

Expand Down Expand Up @@ -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);
```

Expand Down Expand Up @@ -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 {
Expand All @@ -824,7 +824,7 @@ class FooStack extends cdk.Stack {
public constructor(scope: Construct, id: string, props: cdk.StackProps) {
super(scope, id, props);

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

interface BarStack extends cdk.StackProps {
interface BarStackProps extends cdk.StackProps {
readonly replicaTable: dynamodb.ITableV2;
}

Expand Down
2 changes: 1 addition & 1 deletion packages/aws-cdk-lib/aws-dynamodb/lib/table-v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
2 changes: 1 addition & 1 deletion packages/aws-cdk-lib/aws-dynamodb/lib/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down

0 comments on commit f77903c

Please sign in to comment.