Skip to content

Commit 0729ea7

Browse files
committed
Update JS DynamoDB examples to use on-demand rather than provisioned
1 parent 9c8eef5 commit 0729ea7

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# AWS SDK Code Examples
66

7-
This repository contains code examples demonstrating how to use the [AWS SDKs](https://aws.amazon.com/developer/tools/) to interact with [AWS services](https://aws.amazon.com/products).
7+
This repository contains code examples that demonstrate how to use the [AWS SDKs](https://aws.amazon.com/developer/tools/) to interact with [AWS services](https://aws.amazon.com/products).
88

99
Many examples are injected into the [AWS Documentation](https://docs.aws.amazon.com).
1010

javascriptv3/example_code/dynamodb/actions/create-table.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,7 @@ export const main = async () => {
2626
KeyType: "HASH",
2727
},
2828
],
29-
ProvisionedThroughput: {
30-
ReadCapacityUnits: 1,
31-
WriteCapacityUnits: 1,
32-
},
29+
BillingMode: "PAY_PER_REQUEST",
3330
});
3431

3532
const response = await client.send(command);

javascriptv3/example_code/dynamodb/tests/delete-table.integration.test.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,7 @@ describe("delete-table", () => {
2828
KeyType: "HASH",
2929
},
3030
],
31-
ProvisionedThroughput: {
32-
ReadCapacityUnits: 1,
33-
WriteCapacityUnits: 1,
34-
},
31+
BillingMode: "PAY_PER_REQUEST",
3532
});
3633

3734
await client.send(createTableCommand);

0 commit comments

Comments
 (0)