AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::Timestream::Database

CfnDatabase

Creates a new Timestream database. If the AWS key is not specified, the database will be encrypted with a Timestream managed AWS key located in your account. Refer to [AWS managed AWS keys](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk) for more info. [Service quotas apply](https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html) . See [code sample](https://docs.aws.amazon.com/timestream/latest/developerguide/code-samples.create-db.html) for details.

Import

import { CfnDatabase } from 'aws-cdk-lib/aws-timestream';

Or use the module namespace:

import * as timestream from 'aws-cdk-lib/aws-timestream';
// timestream.CfnDatabase

Properties

Configuration passed to the constructor as CfnDatabaseProps.

databaseNameOptional
string

The name of the Timestream database. *Length Constraints* : Minimum length of 3 bytes. Maximum length of 256 bytes.

kmsKeyIdOptional
string | IKeyRef

The identifier of the AWS key used to encrypt the data stored in the database.

tagsOptional
CfnTag[]

The tags to add to the database.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Facts

LevelL1 (CloudFormation)
Moduleaws-timestream
CFN TypeAWS::Timestream::Database
Properties3

External Links