A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.aws.amazon.com/goto/SdkForRubyV3/dynamodb-2012-08-10/DeleteTable below:

Client — AWS SDK for Ruby V3

Examples:

Example: To modify a table's provisioned throughput



resp = client.update_table({
  provisioned_throughput: {
    read_capacity_units: 10, 
    write_capacity_units: 10, 
  }, 
  table_name: "MusicCollection", 
})

resp.to_h outputs the following:
{
  table_description: {
    attribute_definitions: [
      {
        attribute_name: "Artist", 
        attribute_type: "S", 
      }, 
      {
        attribute_name: "SongTitle", 
        attribute_type: "S", 
      }, 
    ], 
    creation_date_time: Time.parse("1421866952.062"), 
    item_count: 0, 
    key_schema: [
      {
        attribute_name: "Artist", 
        key_type: "HASH", 
      }, 
      {
        attribute_name: "SongTitle", 
        key_type: "RANGE", 
      }, 
    ], 
    provisioned_throughput: {
      last_increase_date_time: Time.parse("1421874759.194"), 
      number_of_decreases_today: 1, 
      read_capacity_units: 1, 
      write_capacity_units: 1, 
    }, 
    table_name: "MusicCollection", 
    table_size_bytes: 0, 
    table_status: "UPDATING", 
  }, 
}

Request syntax with placeholder values


resp = client.update_table({
  attribute_definitions: [
    {
      attribute_name: "KeySchemaAttributeName",       attribute_type: "S",     },
  ],
  table_name: "TableArn",   billing_mode: "PROVISIONED",   provisioned_throughput: {
    read_capacity_units: 1,     write_capacity_units: 1,   },
  global_secondary_index_updates: [
    {
      update: {
        index_name: "IndexName",         provisioned_throughput: {
          read_capacity_units: 1,           write_capacity_units: 1,         },
        on_demand_throughput: {
          max_read_request_units: 1,
          max_write_request_units: 1,
        },
        warm_throughput: {
          read_units_per_second: 1,
          write_units_per_second: 1,
        },
      },
      create: {
        index_name: "IndexName",         key_schema: [           {
            attribute_name: "KeySchemaAttributeName",             key_type: "HASH",           },
        ],
        projection: {           projection_type: "ALL",           non_key_attributes: ["NonKeyAttributeName"],
        },
        provisioned_throughput: {
          read_capacity_units: 1,           write_capacity_units: 1,         },
        on_demand_throughput: {
          max_read_request_units: 1,
          max_write_request_units: 1,
        },
        warm_throughput: {
          read_units_per_second: 1,
          write_units_per_second: 1,
        },
      },
      delete: {
        index_name: "IndexName",       },
    },
  ],
  stream_specification: {
    stream_enabled: false,     stream_view_type: "NEW_IMAGE",   },
  sse_specification: {
    enabled: false,
    sse_type: "AES256",     kms_master_key_id: "KMSMasterKeyId",
  },
  replica_updates: [
    {
      create: {
        region_name: "RegionName",         kms_master_key_id: "KMSMasterKeyId",
        provisioned_throughput_override: {
          read_capacity_units: 1,
        },
        on_demand_throughput_override: {
          max_read_request_units: 1,
        },
        global_secondary_indexes: [
          {
            index_name: "IndexName",             provisioned_throughput_override: {
              read_capacity_units: 1,
            },
            on_demand_throughput_override: {
              max_read_request_units: 1,
            },
          },
        ],
        table_class_override: "STANDARD",       },
      update: {
        region_name: "RegionName",         kms_master_key_id: "KMSMasterKeyId",
        provisioned_throughput_override: {
          read_capacity_units: 1,
        },
        on_demand_throughput_override: {
          max_read_request_units: 1,
        },
        global_secondary_indexes: [
          {
            index_name: "IndexName",             provisioned_throughput_override: {
              read_capacity_units: 1,
            },
            on_demand_throughput_override: {
              max_read_request_units: 1,
            },
          },
        ],
        table_class_override: "STANDARD",       },
      delete: {
        region_name: "RegionName",       },
    },
  ],
  table_class: "STANDARD",   deletion_protection_enabled: false,
  multi_region_consistency: "EVENTUAL",   global_table_witness_updates: [
    {
      create: {
        region_name: "RegionName",       },
      delete: {
        region_name: "RegionName",       },
    },
  ],
  on_demand_throughput: {
    max_read_request_units: 1,
    max_write_request_units: 1,
  },
  warm_throughput: {
    read_units_per_second: 1,
    write_units_per_second: 1,
  },
})

Response structure


resp.table_description.attribute_definitions resp.table_description.attribute_definitions[0].attribute_name resp.table_description.attribute_definitions[0].attribute_type resp.table_description.table_name resp.table_description.key_schema resp.table_description.key_schema[0].attribute_name resp.table_description.key_schema[0].key_type resp.table_description.table_status resp.table_description.creation_date_time resp.table_description.provisioned_throughput.last_increase_date_time resp.table_description.provisioned_throughput.last_decrease_date_time resp.table_description.provisioned_throughput.number_of_decreases_today resp.table_description.provisioned_throughput.read_capacity_units resp.table_description.provisioned_throughput.write_capacity_units resp.table_description.table_size_bytes resp.table_description.item_count resp.table_description.table_arn resp.table_description.table_id resp.table_description.billing_mode_summary.billing_mode resp.table_description.billing_mode_summary.last_update_to_pay_per_request_date_time resp.table_description.local_secondary_indexes resp.table_description.local_secondary_indexes[0].index_name resp.table_description.local_secondary_indexes[0].key_schema resp.table_description.local_secondary_indexes[0].key_schema[0].attribute_name resp.table_description.local_secondary_indexes[0].key_schema[0].key_type resp.table_description.local_secondary_indexes[0].projection.projection_type resp.table_description.local_secondary_indexes[0].projection.non_key_attributes resp.table_description.local_secondary_indexes[0].projection.non_key_attributes[0] resp.table_description.local_secondary_indexes[0].index_size_bytes resp.table_description.local_secondary_indexes[0].item_count resp.table_description.local_secondary_indexes[0].index_arn resp.table_description.global_secondary_indexes resp.table_description.global_secondary_indexes[0].index_name resp.table_description.global_secondary_indexes[0].key_schema resp.table_description.global_secondary_indexes[0].key_schema[0].attribute_name resp.table_description.global_secondary_indexes[0].key_schema[0].key_type resp.table_description.global_secondary_indexes[0].projection.projection_type resp.table_description.global_secondary_indexes[0].projection.non_key_attributes resp.table_description.global_secondary_indexes[0].projection.non_key_attributes[0] resp.table_description.global_secondary_indexes[0].index_status resp.table_description.global_secondary_indexes[0].backfilling resp.table_description.global_secondary_indexes[0].provisioned_throughput.last_increase_date_time resp.table_description.global_secondary_indexes[0].provisioned_throughput.last_decrease_date_time resp.table_description.global_secondary_indexes[0].provisioned_throughput.number_of_decreases_today resp.table_description.global_secondary_indexes[0].provisioned_throughput.read_capacity_units resp.table_description.global_secondary_indexes[0].provisioned_throughput.write_capacity_units resp.table_description.global_secondary_indexes[0].index_size_bytes resp.table_description.global_secondary_indexes[0].item_count resp.table_description.global_secondary_indexes[0].index_arn resp.table_description.global_secondary_indexes[0].on_demand_throughput.max_read_request_units resp.table_description.global_secondary_indexes[0].on_demand_throughput.max_write_request_units resp.table_description.global_secondary_indexes[0].warm_throughput.read_units_per_second resp.table_description.global_secondary_indexes[0].warm_throughput.write_units_per_second resp.table_description.global_secondary_indexes[0].warm_throughput.status resp.table_description.stream_specification.stream_enabled resp.table_description.stream_specification.stream_view_type resp.table_description.latest_stream_label resp.table_description.latest_stream_arn resp.table_description.global_table_version resp.table_description.replicas resp.table_description.replicas[0].region_name resp.table_description.replicas[0].replica_status resp.table_description.replicas[0].replica_status_description resp.table_description.replicas[0].replica_status_percent_progress resp.table_description.replicas[0].kms_master_key_id resp.table_description.replicas[0].provisioned_throughput_override.read_capacity_units resp.table_description.replicas[0].on_demand_throughput_override.max_read_request_units resp.table_description.replicas[0].warm_throughput.read_units_per_second resp.table_description.replicas[0].warm_throughput.write_units_per_second resp.table_description.replicas[0].warm_throughput.status resp.table_description.replicas[0].global_secondary_indexes resp.table_description.replicas[0].global_secondary_indexes[0].index_name resp.table_description.replicas[0].global_secondary_indexes[0].provisioned_throughput_override.read_capacity_units resp.table_description.replicas[0].global_secondary_indexes[0].on_demand_throughput_override.max_read_request_units resp.table_description.replicas[0].global_secondary_indexes[0].warm_throughput.read_units_per_second resp.table_description.replicas[0].global_secondary_indexes[0].warm_throughput.write_units_per_second resp.table_description.replicas[0].global_secondary_indexes[0].warm_throughput.status resp.table_description.replicas[0].replica_inaccessible_date_time resp.table_description.replicas[0].replica_table_class_summary.table_class resp.table_description.replicas[0].replica_table_class_summary.last_update_date_time resp.table_description.global_table_witnesses resp.table_description.global_table_witnesses[0].region_name resp.table_description.global_table_witnesses[0].witness_status resp.table_description.restore_summary.source_backup_arn resp.table_description.restore_summary.source_table_arn resp.table_description.restore_summary.restore_date_time resp.table_description.restore_summary.restore_in_progress resp.table_description.sse_description.status resp.table_description.sse_description.sse_type resp.table_description.sse_description.kms_master_key_arn resp.table_description.sse_description.inaccessible_encryption_date_time resp.table_description.archival_summary.archival_date_time resp.table_description.archival_summary.archival_reason resp.table_description.archival_summary.archival_backup_arn resp.table_description.table_class_summary.table_class resp.table_description.table_class_summary.last_update_date_time resp.table_description.deletion_protection_enabled resp.table_description.on_demand_throughput.max_read_request_units resp.table_description.on_demand_throughput.max_write_request_units resp.table_description.warm_throughput.read_units_per_second resp.table_description.warm_throughput.write_units_per_second resp.table_description.warm_throughput.status resp.table_description.multi_region_consistency 

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4