Skip to content

Instantly share code, notes, and snippets.

@anna-geller
Created November 8, 2021 23:29
Show Gist options
  • Save anna-geller/8f34b437baa5e3a532352527d53d17d1 to your computer and use it in GitHub Desktop.
Save anna-geller/8f34b437baa5e3a532352527d53d17d1 to your computer and use it in GitHub Desktop.
import boto3
write_client = boto3.client("timestream-write")
db_arn = write_client.create_database(DatabaseName="demo")
tbl_arn = write_client.create_table(
DatabaseName="demo",
TableName="data",
RetentionProperties={
"MemoryStoreRetentionPeriodInHours": 1,
"MagneticStoreRetentionPeriodInDays": 365,
},
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment