Created
November 8, 2021 23:29
-
-
Save anna-geller/8f34b437baa5e3a532352527d53d17d1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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