Skip to content

Commit 6189ad2

Browse files
authored
docs(dynamodb): fix typos (#33210)
### Issue # (if applicable) None ### Description of changes Fixed typos in 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 c8de5be commit 6189ad2

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export abstract class Billing {
6262
/**
6363
* Specify the number of reads and writes per second that you need for your application.
6464
*
65-
* @param props specifiy read and write capacity configurations.
65+
* @param props specify read and write capacity configurations.
6666
*/
6767
public static provisioned(props: ThroughputProps): Billing {
6868
return new (class extends Billing {

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

+8-8
Original file line numberDiff line numberDiff line change
@@ -846,14 +846,14 @@ describe('schema details', () => {
846846
});
847847
});
848848

849-
test('get scheama for table with hash key only', () => {
849+
test('get schema for table with hash key only', () => {
850850
expect(table.schema()).toEqual({
851851
partitionKey: TABLE_PARTITION_KEY,
852852
sortKey: undefined,
853853
});
854854
});
855855

856-
test('get scheama for table with hash key + range key', () => {
856+
test('get schema for table with hash key + range key', () => {
857857
table = new Table(stack, 'TableB', {
858858
tableName: TABLE_NAME,
859859
partitionKey: TABLE_PARTITION_KEY,
@@ -866,7 +866,7 @@ describe('schema details', () => {
866866
});
867867
});
868868

869-
test('get scheama for GSI with hash key', () => {
869+
test('get schema for GSI with hash key', () => {
870870
table.addGlobalSecondaryIndex({
871871
indexName: GSI_NAME,
872872
partitionKey: GSI_PARTITION_KEY,
@@ -878,7 +878,7 @@ describe('schema details', () => {
878878
});
879879
});
880880

881-
test('get scheama for GSI with hash key + range key', () => {
881+
test('get schema for GSI with hash key + range key', () => {
882882
table.addGlobalSecondaryIndex({
883883
indexName: GSI_NAME,
884884
partitionKey: GSI_PARTITION_KEY,
@@ -891,7 +891,7 @@ describe('schema details', () => {
891891
});
892892
});
893893

894-
test('get scheama for LSI', () => {
894+
test('get schema for LSI', () => {
895895
table.addLocalSecondaryIndex({
896896
indexName: LSI_NAME,
897897
sortKey: LSI_SORT_KEY,
@@ -903,7 +903,7 @@ describe('schema details', () => {
903903
});
904904
});
905905

906-
test('get scheama for multiple secondary indexes', () => {
906+
test('get schema for multiple secondary indexes', () => {
907907
table.addLocalSecondaryIndex({
908908
indexName: LSI_NAME,
909909
sortKey: LSI_SORT_KEY,
@@ -926,7 +926,7 @@ describe('schema details', () => {
926926
});
927927
});
928928

929-
test('get scheama for unknown secondary index', () => {
929+
test('get schema for unknown secondary index', () => {
930930
expect(() => table.schema(GSI_NAME))
931931
.toThrow(/Cannot find schema for index: MyGSI. Use 'addGlobalSecondaryIndex' or 'addLocalSecondaryIndex' to add index/);
932932
});
@@ -1324,7 +1324,7 @@ test('when adding a global secondary index without specifying read and write cap
13241324
);
13251325
});
13261326

1327-
test.each([true, false])('when adding a global secondary index with contributoreIngishtsEnabled %s', (contributorInsightsEnabled: boolean) => {
1327+
test.each([true, false])('when adding a global secondary index with contributorInsightsEnabled %s', (contributorInsightsEnabled: boolean) => {
13281328
const stack = new Stack();
13291329
const table = new Table(stack, CONSTRUCT_NAME, {
13301330
partitionKey: TABLE_PARTITION_KEY,

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -2312,7 +2312,7 @@ describe('secondary indexes', () => {
23122312
});
23132313
});
23142314

2315-
test('with global secondary index wihtout read capacity inherits from table when billing mode is provisioned', () => {
2315+
test('with global secondary index without read capacity inherits from table when billing mode is provisioned', () => {
23162316
// GIVEN
23172317
const stack = new Stack(undefined, 'Stack');
23182318

0 commit comments

Comments
 (0)