# AWS::Timestream::Database The AWS::Timestream::Database resource creates a Timestream database. ## Syntax To declare this entity in your AWS CloudFormation template, use the following syntax: ### JSON
{
    "Type" : "AWS::Timestream::Database",
    "Properties" : {
        "DatabaseName" : String,
        "KmsKeyId" : String,
        "Tags" : [ Tag, ... ]
    }
}
### YAML
Type: AWS::Timestream::Database
Properties:
    DatabaseName: String
    KmsKeyId: String
    Tags: 
      - Tag
## Properties #### DatabaseName The name for the database. If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the database name. _Required_: No _Type_: String _Pattern_: ^[a-zA-Z0-9_.-]{3,256}$ _Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement) #### KmsKeyId The KMS key for the database. If the KMS key is not specified, the database will be encrypted with a Timestream managed KMS key located in your account. _Required_: No _Type_: String _Minimum_: 1 _Maximum_: 2048 _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) #### Tags An array of key-value pairs to apply to this resource. _Required_: No _Type_: List of Tag _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) ## Return Values ### Ref When you pass the logical ID of this resource to the intrinsic `Ref` function, Ref returns the DatabaseName. ### Fn::GetAtt The `Fn::GetAtt` intrinsic function returns a value for a specified attribute of this type. The following are the available attributes and sample return values. For more information about using the `Fn::GetAtt` intrinsic function, see [Fn::GetAtt](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-getatt.html). #### Arn Returns the Arn value.