Skip to content

aws.timestream_write.list_tables

Example SQL Queries

SELECT * FROM
aws.timestream_write.list_tables;

Description

Provides a list of tables, along with the name, status, and retention properties of each table. See code sample for details.

Table Definition

Column NameColumn Data Type
database_name Input Column

The name of the Timestream database.

VARCHAR
max_results Input Column

The total number of items to return in the output. If the total number of items available is more than the value specified, a NextToken is provided in the output. To resume pagination, provide the NextToken value as argument of a subsequent API invocation.

BIGINT
next_token Input Column

A token to specify where to start paginating. This is the NextToken from a previously truncated response.

VARCHAR
_aws_profile Input Column

The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role.

STRUCT(
"type" VARCHAR,
"name" VARCHAR,
"account_id" VARCHAR,
"via_profile_name" VARCHAR,
"assumed_role_arn" VARCHAR,
"organization" STRUCT(
"account_name" VARCHAR,
"id" VARCHAR,
"tags" STRUCT(
"key" VARCHAR,
"value" VARCHAR
)[],
"master_account" STRUCT(
"id" VARCHAR,
"email" VARCHAR
),
"parents" STRUCT(
"type" VARCHAR,
"id" VARCHAR,
"name" VARCHAR,
"tags" STRUCT(
"key" VARCHAR,
"value" VARCHAR
)[]
)[]
)
)
Show child fields
_aws_profile.account_id

The AWS account id

_aws_profile.assumed_role_arn

The ARN of the assumed role

_aws_profile.name

The unique name of the profile.

_aws_profile.organization

Information about this profile's membership in the AWS organization.

Show child fields
_aws_profile.organization.account_name

The name of account speciifed by the organization

_aws_profile.organization.id

The organization id

_aws_profile.organization.master_account
Show child fields
_aws_profile.organization.master_account.email

The organization master account email address

_aws_profile.organization.master_account.id

The organization master account id

_aws_profile.organization.parents[]
Show child fields
_aws_profile.organization.parents[].id

The id of the parent

_aws_profile.organization.parents[].name

The name of the parent

_aws_profile.organization.parents[].tags[]
Show child fields
_aws_profile.organization.parents[].tags[].key
_aws_profile.organization.parents[].tags[].value
_aws_profile.organization.parents[].type

The type of parent can be an organization unit or a root

_aws_profile.organization.tags[]
Show child fields
_aws_profile.organization.tags[].key
_aws_profile.organization.tags[].value
_aws_profile.type

The type of profile, either 'credentials' or 'assumed_role'

_aws_profile.via_profile_name

This IAM role for this profile is assumed by first utilizing another profile with this name to obtain credentials.

tables

A list of tables.

STRUCT(
"arn" VARCHAR,
"table_name" VARCHAR,
"database_name" VARCHAR,
"table_status" VARCHAR,
"retention_properties" STRUCT(
"memory_store_retention_period_in_hours" BIGINT,
"magnetic_store_retention_period_in_days" BIGINT
),
"creation_time" TIMESTAMP_S,
"last_updated_time" TIMESTAMP_S,
"magnetic_store_write_properties" STRUCT(
"enable_magnetic_store_writes" BOOLEAN,
"magnetic_store_rejected_data_location" STRUCT(
"s3_configuration" STRUCT(
"bucket_name" VARCHAR,
"object_key_prefix" VARCHAR,
"encryption_option" VARCHAR,
"kms_key_id" VARCHAR
)
)
),
"schema" STRUCT(
"composite_partition_key" STRUCT(
"type" VARCHAR,
"name" VARCHAR,
"enforcement_in_record" VARCHAR
)[]
)
)[]
Show child fields
tables[]
Show child fields
tables[].arn

The Amazon Resource Name that uniquely identifies this table.

tables[].creation_time

The time when the Timestream table was created.

tables[].database_name

The name of the Timestream database that contains this table.

tables[].last_updated_time

The time when the Timestream table was last updated.

tables[].magnetic_store_write_properties

Contains properties to set on the table when enabling magnetic store writes.

Show child fields
tables[].magnetic_store_write_properties.enable_magnetic_store_writes

A flag to enable magnetic store writes.

tables[].magnetic_store_write_properties.magnetic_store_rejected_data_location

The location to write error reports for records rejected asynchronously during magnetic store writes.

Show child fields
tables[].magnetic_store_write_properties.magnetic_store_rejected_data_location.s3_configuration

Configuration of an S3 location to write error reports for records rejected, asynchronously, during magnetic store writes.

Show child fields
tables[].magnetic_store_write_properties.magnetic_store_rejected_data_location.s3_configuration.bucket_name

The bucket name of the customer S3 bucket.

tables[].magnetic_store_write_properties.magnetic_store_rejected_data_location.s3_configuration.encryption_option

The encryption option for the customer S3 location. Options are S3 server-side encryption with an S3 managed key or Amazon Web Services managed key.

tables[].magnetic_store_write_properties.magnetic_store_rejected_data_location.s3_configuration.kms_key_id

The KMS key ID for the customer S3 location when encrypting with an Amazon Web Services managed key.

tables[].magnetic_store_write_properties.magnetic_store_rejected_data_location.s3_configuration.object_key_prefix

The object key preview for the customer S3 location.

tables[].retention_properties

The retention duration for the memory store and magnetic store.

Show child fields
tables[].retention_properties.magnetic_store_retention_period_in_days

The duration for which data must be stored in the magnetic store.

tables[].retention_properties.memory_store_retention_period_in_hours

The duration for which data must be stored in the memory store.

tables[].schema

The schema of the table.

Show child fields
tables[].schema.composite_partition_key[]
Show child fields
tables[].schema.composite_partition_key[].enforcement_in_record

The level of enforcement for the specification of a dimension key in ingested records. Options are REQUIRED (dimension key must be specified) and OPTIONAL (dimension key does not have to be specified).

tables[].schema.composite_partition_key[].name

The name of the attribute used for a dimension key.

tables[].schema.composite_partition_key[].type

The type of the partition key. Options are DIMENSION (dimension key) and MEASURE (measure key).

tables[].table_name

The name of the Timestream table.

tables[].table_status

The current state of the table:

  • DELETING - The table is being deleted.

  • ACTIVE - The table is ready for use.