# Snowflake::Database::Database Allows for the creation and modification of a Snowflake Database. https://docs.snowflake.com/en/user-guide/databases.html ## Syntax To declare this entity in your AWS CloudFormation template, use the following syntax: ### JSON
{
"Type" : "Snowflake::Database::Database",
"Properties" : {
"Name" : String,
"DataRetentionTimeInDays" : Integer,
"MaxDataExtensionTimeInDays" : Integer,
"DefaultDdlCollation" : String,
"Comment" : String
}
}
### YAML
Type: Snowflake::Database::Database
Properties:
Name: String
DataRetentionTimeInDays: Integer
MaxDataExtensionTimeInDays: Integer
DefaultDdlCollation: String
Comment: String
## Properties
#### Name
Specifies the identifier for the database; must be unique for your account.
_Required_: Yes
_Type_: String
_Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)
#### DataRetentionTimeInDays
Specifies the number of days for which Time Travel actions can be performed on the database.
_Required_: No
_Type_: Integer
_Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)
#### MaxDataExtensionTimeInDays
The maximum number of days for which Snowflake can extend the data retention period for tables in the database.
_Required_: No
_Type_: Integer
_Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)
#### DefaultDdlCollation
Specifies a default collation specification for all schemas and tables added to the database
_Required_: No
_Type_: String
_Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)
#### Comment
Specifies a comment for the database.
_Required_: No
_Type_: String
_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 Name.