_ttl_compatibility_check

in lib/aws-record/record/table_config.rb [294:306]


      def _ttl_compatibility_check
        if @ttl_attribute
          ttl_status = @client.describe_time_to_live(
            table_name: @model_class.table_name
          )
          desc = ttl_status.time_to_live_description
          %w[ENABLED ENABLING].include?(desc.time_to_live_status) &&
            desc.attribute_name == @ttl_attribute
        else
          true
        end
      end