create_table
¶
create_table(
database_name: ResourceCreateAPIName,
table_name: ResourceCreateAPIName,
*,
config_overrides: Optional[TimestreamWriteClientConfig] = None,
retention_properties: Optional[RetentionProperties] = None,
tags: Optional[TagList] = None,
magnetic_store_write_properties: Optional[MagneticStoreWriteProperties] = None,
schema: Optional[Schema] = None,
) -> CreateTableResponse
Adds a new table to an existing database in your account. In an Amazon Web Services account, table names must be at least unique within each Region if they are in the same database. You might have identical table names in the same Region if the tables are in separate databases. While creating the table, you must specify the table name, database name, and the retention properties. Service quotas apply. See code sample for details.
Parameters:
-
database_name(ResourceCreateAPIName) –The name of the Timestream database.
-
table_name(ResourceCreateAPIName) –The name of the Timestream table.
-
retention_properties(Optional[RetentionProperties], default:None) –The duration for which your time-series data must be stored in the memory store and the magnetic store.
-
tags(Optional[TagList], default:None) –A list of key-value pairs to label the table.
-
magnetic_store_write_properties(Optional[MagneticStoreWriteProperties], default:None) –Contains properties to set on the table when enabling magnetic store writes.
-
schema(Optional[Schema], default:None) –The schema of the table.
Raises:
-
AccessDeniedException–You are not authorized to perform this action.
-
ConflictException–Timestream was unable to process this request because it contains resource that already exists.
-
InternalServerException–Timestream was unable to fully process this request because of an internal server error.
-
InvalidEndpointException–The requested endpoint was not valid.
-
ResourceNotFoundException–The operation tried to access a nonexistent resource. The resource might not be specified correctly, or its status might not be ACTIVE.
-
ServiceQuotaExceededException–The instance quota of resource exceeded for this account.
-
ThrottlingException–Too many requests were made by a user and they exceeded the service quotas. The request was throttled.
-
ValidationException–An invalid or malformed request.
-
UnknownServiceError–The service returned an error code this client does not model.