Skip to content

UpdateTimeToLive

Source: src/AWS/DynamoDB/UpdateTimeToLive.ts

Runtime binding for dynamodb:UpdateTimeToLive.

Bind this operation to a Table inside a function runtime to get a callable that enables or disables TTL expiry on an attribute. Provide the UpdateTimeToLiveHttp layer on the Function to satisfy the binding.

const updateTimeToLive = yield* AWS.DynamoDB.UpdateTimeToLive(table);
yield* updateTimeToLive({
TimeToLiveSpecification: {
AttributeName: "expiresAt",
Enabled: true,
},
});