Complete the code to specify the TTL attribute name in DynamoDB.
table.update_time_to_live({
TTLSpecification: {
Enabled: true,
AttributeName: "[1]"
}
})The TTL attribute name must match the attribute you use to store the expiration timestamp. Commonly, it is named ttl.
Complete the code to enable TTL on the DynamoDB table.
table.update_time_to_live({
TTLSpecification: {
Enabled: [1],
AttributeName: "ttl"
}
})TTL must be enabled by setting Enabled to the boolean true, not a string or number.
Fix the error in the TTL setup code by completing the missing part.
const params = {
TableName: "MyTable",
[1]: {
Enabled: true,
AttributeName: "ttl"
}
};The correct parameter name for TTL setup in AWS SDK is TimeToLiveSpecification.
Fill both blanks to correctly configure TTL in the AWS SDK call.
const params = {
TableName: "Orders",
[1]: {
Enabled: [2],
AttributeName: "expireAt"
}
};Use TimeToLiveSpecification as the parameter name and set Enabled to true to activate TTL.
Fill all three blanks to create a TTL update request with correct keys and values.
const ttlParams = {
[1]: "Products",
[2]: {
Enabled: [3],
AttributeName: "deletionTime"
}
};The TableName key specifies the table, TimeToLiveSpecification holds TTL settings, and Enabled must be true to enable TTL.