Light Dark

Functions

describe-table

fn (table_name: Str): DescribeTableResponse | AwsError

Get detailed information about a DynamoDB table.

Example

result ::aws::dynamodb::tables/describe-table("my-table")
result.table.table_name    // => "my-table"
result.table.table_status  // => "ACTIVE"
result.table.item_count    // => 1500

list-tables

fn (limit: Int, exclusive_start_table_name: Str): ListTablesResponse | AwsError
fn (limit: Int): ListTablesResponse | AwsError
fn (): ListTablesResponse | AwsError

List all DynamoDB tables in the account/region.

Example

result ::aws::dynamodb::tables/list-tables()
result.table_names
// => ["users", "orders", "products"]

// With limit
result ::aws::dynamodb::tables/list-tables(10)

Types

DescribeTableResponse

DescribeTableResponse type {
    table: TableDescription?
}

ListTablesResponse

ListTablesResponse type {
    table_names: Vec,
    last_evaluated_table_name: Str?
}

TableDescription

TableDescription type {
    table_name: Str?,
    table_status: Str?,
    table_arn: Str?,
    table_id: Str?,
    creation_date_time: Str?,
    key_schema: Vec?,
    attribute_definitions: Vec?,
    provisioned_throughput: Map?,
    billing_mode_summary: Map?,
    item_count: Int?,
    table_size_bytes: Int?,
    global_secondary_indexes: Vec?,
    local_secondary_indexes: Vec?
}