def deploy(environment_options, client, region = 'AWS_REGION')
      super

      puts "Deploying Table: #{@table_name} to Environment: #{environment_options.name}"

      full_table_name = @table_name + (@append_environment_on_deploy ? "-#{environment_options.name}" : '')

      table_details = retrieve_table_details(full_table_name)

      if table_details.nil?
        create_table(full_table_name)
      else
        wait_until_table_is_available(full_table_name) if table_details[:table_status] != 'ACTIVE'
        update_table(full_table_name, table_details)
      end

      puts "Dynamo Table #{full_table_name} is now available."
      full_table_name
    end
def deploy(environment_options, client, region = 'AWS_REGION')
      super

      puts "Deploying Table: #{@table_name} to Environment: #{environment_options.name}"

      full_table_name = @table_name + (@append_environment_on_deploy ? "-#{environment_options.name}" : '')

      table_details = retrieve_table_details(full_table_name)

      if table_details.nil?
        create_table(full_table_name)
      else
        wait_until_table_is_available(full_table_name) if table_details[:table_status] != 'ACTIVE'
        update_table(full_table_name, table_details)
      end

      puts "Dynamo Table #{full_table_name} is now available."
      full_table_name
    end
Sets up the DynamoTable for the Dynamo DB Manager. Preloading the configuration in the constructor.

 @param [Hash] options The configuration for the DynamoDB Table.
 @option options [String] :table_name The name of the DynamoDB Table. A "Base Name" can be used here where the
  environment name can be appended upon deployment.

 @option options [Array<Hash>] :attribute_definitions ([{ attribute_name: 'Id', attribute_type: 'S' }]) An array of
  attributes that describe the key schema for the table and indexes. The Hash must have symbols: :attribute_name &
  :attribute_type. Please see AWS Documentation for the {http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DataModel.html
  Data Model}.

 @option options [Array<Hash>] :key_schema ([{ attribute_name: 'Id', key_type: 'HASH' }]) Specifies the attributes
  that make up the primary key for a table or an index. The attributes in key_schema must also be defined in the
  AttributeDefinitions array. Please see AWS Documentation for the {http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DataModel.html
  Data Model}.

  Each element in the array must be composed of:
  * <tt>:attribute_name</tt> - The name of this key attribute.
  * <tt>:key_type</tt> - The role that the key attribute will assume:
    * <tt>HASH</tt> - partition key
    * <tt>RANGE</tt> - sort key

  The partition key of an item is also known as its hash attribute. The term "hash attribute" derives from
  DynamoDB's usage of an internal hash function to evenly distribute data items across partitions, based on their
  partition key values.

  The sort key of an item is also known as its range attribute. The term "range attribute" derives from the way
  DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key
  value.

  For a simple primary key (partition key), you must provide exactly one element with a <tt>KeyType</tt> of
  <tt>HASH</tt>.

  For a composite primary key (partition key and sort key), you must provide exactly two elements, in this order:
  The first element must have a <tt>KeyType</tt> of <tt>HASH</tt>, and the second element must have a
  <tt>KeyType</tt> of <tt>RANGE</tt>.

  For more information, see {http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#WorkingWithTables.primary.key
  Specifying the Primary Key} in the <em>Amazon DynamoDB Developer Guide</em>.

 @option options [Integer] :read_capacity_units (1) The maximum number of strongly consistent reads consumed per
  second before DynamoDB returns a <tt>ThrottlingException</tt>. Must be at least 1. For current minimum and
  maximum provisioned throughput values, see {http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html
  Limits} in the <em>Amazon DynamoDB Developer Guide</em>.

 @option options [Integer] :write_capacity_units (1) The maximum number of writes consumed per second before
  DynamoDB returns a <tt>ThrottlingException</tt>. Must be at least 1. For current minimum and maximum
  provisioned throughput values, see {http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html
  Limits} in the <em>Amazon DynamoDB Developer Guide</em>.

 @option options [Array<Hash>] :local_secondary_indexes ([]) One or more local secondary indexes (the maximum is
  five) to be created on the table. Each index is scoped to a given partition key value. There is a 10 GB size
  limit per partition key value; otherwise, the size of a local secondary index is unconstrained.

  Each element in the array must be a Hash with these symbols:
  * <tt>:index_name</tt> - The name of the local secondary index. Must be unique only for this table.
  * <tt>:key_schema</tt> - Specifies the key schema for the local secondary index. The key schema must begin with
    the same partition key as the table.
  * <tt>:projection</tt> - Specifies attributes that are copied (projected) from the table into the index. These
    are in addition to the primary key attributes and index key attributes, which are automatically projected. Each
    attribute specification is composed of:
    * <tt>:projection_type</tt> - One of the following:
      * <tt>KEYS_ONLY</tt> - Only the index and primary keys are projected into the index.
      * <tt>INCLUDE</tt> - Only the specified table attributes are projected into the index. The list of projected
        attributes are in <tt>non_key_attributes</tt>.
      * <tt>ALL</tt> - All of the table attributes are projected into the index.
    * <tt>:non_key_attributes</tt> - A list of one or more non-key attribute names that are projected into the
      secondary index. The total count of attributes provided in NonKeyAttributes, summed across all of the
      secondary indexes, must not exceed 20. If you project the same attribute into two different indexes, this
      counts as two distinct attributes when determining the total.

 @option options [Array<Hash>] :global_secondary_indexes ([]) One or more global secondary indexes (the maximum is
  five) to be created on the table. Each global secondary index (Hash) in the array includes the following:
  * <tt>:index_name</tt> - The name of the global secondary index. Must be unique only for this table.
  * <tt>:key_schema</tt> - Specifies the key schema for the global secondary index.
  * <tt>:projection</tt> - Specifies attributes that are copied (projected) from the table into the index. These
    are in addition to the primary key attributes and index key attributes, which are automatically projected. Each
    attribute specification is composed of:
    * <tt>:projection_type</tt> - One of the following:
      * <tt>KEYS_ONLY</tt> - Only the index and primary keys are projected into the index.
      * <tt>INCLUDE</tt> - Only the specified table attributes are projected into the index. The list of projected
        attributes are in <tt>NonKeyAttributes</tt>.
      * <tt>ALL</tt> - All of the table attributes are projected into the index.
    * <tt>non_key_attributes</tt> - A list of one or more non-key attribute names that are projected into the
      secondary index. The total count of attributes provided in NonKeyAttributes, summed across all of the
      secondary indexes, must not exceed 20. If you project the same attribute into two different indexes, this
      counts as two distinct attributes when determining the total.
  * <tt>:provisioned_throughput</tt> - The provisioned throughput settings for the global secondary index,
    consisting of read and write capacity units.

 @option options [Boolean] :append_environment_on_deploy (false) Option to append the name of the environment to
  the table name upon deployment and teardown. DynamoDB Tables cannot shard data in a similar manner as how Lambda
  aliases and API Gateway Environments work. This option is supposed to help the user with naming tables instead
  of managing the environment names on their own.
 Deploys the DynamoDB Table to the target environment. If the @append_environment_on_deploy option is set, the
 table_name will be appended with a hyphen and the environment name. This will attempt to Create or Update with
 the parameters specified from the constructor. This may take a LONG time for it will wait for any new indexes to
 be available.

 @param environment_options [LambdaWrap::Environment] Target environment to deploy.
 @param client [Aws::DynamoDB::Client] Client to use with SDK. Should be passed in by the API class.
 @param region [String] AWS Region string. Should be passed in by the API class.