summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorJordan Cook <jordan.cook@pioneer.com>2022-04-19 21:34:49 -0500
committerJordan Cook <jordan.cook@pioneer.com>2022-04-20 13:37:44 -0500
commita2a65250d61997935763cf958f16a914930f1b43 (patch)
tree4b2c37d54ea29a33dedbc0e61c610b1013b7231c /examples
parent3fb12461d847e04884f66dcf64ff5cabc79cce91 (diff)
downloadrequests-cache-a2a65250d61997935763cf958f16a914930f1b43.tar.gz
Add support for DynamoDB TTL
Diffstat (limited to 'examples')
-rw-r--r--examples/cloudformation.yml18
1 files changed, 12 insertions, 6 deletions
diff --git a/examples/cloudformation.yml b/examples/cloudformation.yml
index ef5d749..e88e0ab 100644
--- a/examples/cloudformation.yml
+++ b/examples/cloudformation.yml
@@ -24,9 +24,15 @@ Resources:
KeyType: HASH
- AttributeName: key
KeyType: RANGE
- BillingMode: PAY_PER_REQUEST
- # Uncomment for provisioned throughput instead of on-demand
- # BillingMode: PROVISIONED
- # ProvisionedThroughput:
- # WriteCapacityUnits: 2
- # ReadCapacityUnits: 2
+ # BillingMode: PAY_PER_REQUEST
+
+ # Optional: Use provisioned throughput instead of on-demand
+ BillingMode: PROVISIONED
+ ProvisionedThroughput:
+ WriteCapacityUnits: 2
+ ReadCapacityUnits: 2
+
+ # Optional: Enable DynamoDB's TTL feature
+ TimeToLiveSpecification:
+ AttributeName: ttl
+ Enabled: true