Examples:
Request syntax with placeholder values
table = dynamo_db.create_table({
attribute_definitions: [ {
attribute_name: "KeySchemaAttributeName", attribute_type: "S", },
],
table_name: "TableArn", key_schema: [ {
attribute_name: "KeySchemaAttributeName", key_type: "HASH", },
],
local_secondary_indexes: [
{
index_name: "IndexName", key_schema: [ {
attribute_name: "KeySchemaAttributeName", key_type: "HASH", },
],
projection: { projection_type: "ALL", non_key_attributes: ["NonKeyAttributeName"],
},
},
],
global_secondary_indexes: [
{
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,
},
},
],
billing_mode: "PROVISIONED", provisioned_throughput: {
read_capacity_units: 1, write_capacity_units: 1, },
stream_specification: {
stream_enabled: false, stream_view_type: "NEW_IMAGE", },
sse_specification: {
enabled: false,
sse_type: "AES256", kms_master_key_id: "KMSMasterKeyId",
},
tags: [
{
key: "TagKeyString", value: "TagValueString", },
],
table_class: "STANDARD", deletion_protection_enabled: false,
warm_throughput: {
read_units_per_second: 1,
write_units_per_second: 1,
},
resource_policy: "ResourcePolicy",
on_demand_throughput: {
max_read_request_units: 1,
max_write_request_units: 1,
},
})