Get the boto3 structure describing the DynamoDB TTL specification.
(self, ttl_attr_name)
| 277 | ) |
| 278 | |
| 279 | def _get_ttl_specification(self, ttl_attr_name): |
| 280 | """Get the boto3 structure describing the DynamoDB TTL specification.""" |
| 281 | return { |
| 282 | 'TableName': self.table_name, |
| 283 | 'TimeToLiveSpecification': { |
| 284 | 'Enabled': self._has_ttl(), |
| 285 | 'AttributeName': ttl_attr_name |
| 286 | } |
| 287 | } |
| 288 | |
| 289 | def _get_table_ttl_description(self): |
| 290 | # Get the current TTL description. |
no test coverage detected