Class: Aws::DynamoDB::Types::TimeToLiveSpecification

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-dynamodb/types.rb

Overview

Note:

When making an API call, you may pass TimeToLiveSpecification data as a hash:

{
  enabled: false, # required
  attribute_name: "TimeToLiveAttributeName", # required
}

Represents the settings used to enable or disable Time to Live (TTL) for the specified table.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#attribute_nameString

The name of the TTL attribute used to store the expiration time for items in the table.

Returns:

  • (String)


9240
9241
9242
9243
9244
9245
# File 'lib/aws-sdk-dynamodb/types.rb', line 9240

class TimeToLiveSpecification < Struct.new(
  :enabled,
  :attribute_name)
  SENSITIVE = []
  include Aws::Structure
end

#enabledBoolean

Indicates whether TTL is to be enabled (true) or disabled (false) on the table.

Returns:

  • (Boolean)


9240
9241
9242
9243
9244
9245
# File 'lib/aws-sdk-dynamodb/types.rb', line 9240

class TimeToLiveSpecification < Struct.new(
  :enabled,
  :attribute_name)
  SENSITIVE = []
  include Aws::Structure
end