Skip to content

Commit 117ccc5

Browse files
committed
Describe new ttlInSeconds attribute in DynamoDB state store setup
Signed-off-by: Zeynel Koca <[email protected]>
1 parent d9ce2af commit 117ccc5

File tree

1 file changed

+3
-0
lines changed
  • daprdocs/content/en/reference/components-reference/supported-state-stores

1 file changed

+3
-0
lines changed

daprdocs/content/en/reference/components-reference/supported-state-stores/setup-dynamodb.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ spec:
3434
value: "myTOKEN" # Optional
3535
- name: ttlAttributeName
3636
value: "expiresAt" # Optional
37+
- name: ttlInSeconds
38+
value: <int> # Optional
3739
- name: partitionKey
3840
value: "ContractID" # Optional
3941
# Uncomment this if you wish to use AWS DynamoDB as a state store for actors (optional)
@@ -60,6 +62,7 @@ In order to use DynamoDB as a Dapr state store, the table must have a primary ke
6062
| endpoint | N |AWS endpoint for the component to use. Only used for local development. The `endpoint` is unncessary when running against production AWS | `"http://localhost:4566"`
6163
| sessionToken | N |AWS session token to use. A session token is only required if you are using temporary security credentials. | `"TOKEN"`
6264
| ttlAttributeName | N |The table attribute name which should be used for TTL. | `"expiresAt"`
65+
| ttlInSeconds | N | Allows specifying a default Time-to-live (TTL) in seconds that will be applied to every state store request unless TTL is explicitly defined via the [request metadata]({{% ref "state-store-ttl.md" %}}). | `600`
6366
| partitionKey | N |The table primary key or partition key attribute name. This field is used to replace the default primary key attribute name `"key"`. See the section [Partition Keys]({{% ref "setup-dynamodb.md#partition-keys" %}}). | `"ContractID"`
6467
| actorStateStore | N | Consider this state store for actors. Defaults to "false" | `"true"`, `"false"`
6568

0 commit comments

Comments
 (0)