|
| 1 | +# Snowflake::Database::Database |
| 2 | + |
| 3 | +An example resource schema demonstrating some basic constructs and validation rules. |
| 4 | + |
| 5 | +## Syntax |
| 6 | + |
| 7 | +To declare this entity in your AWS CloudFormation template, use the following syntax: |
| 8 | + |
| 9 | +### JSON |
| 10 | + |
| 11 | +<pre> |
| 12 | +{ |
| 13 | + "Type" : "Snowflake::Database::Database", |
| 14 | + "Properties" : { |
| 15 | + "<a href="#name" title="Name">Name</a>" : <i>String</i>, |
| 16 | + "<a href="#dataretentiontimeindays" title="DataRetentionTimeInDays">DataRetentionTimeInDays</a>" : <i>Integer</i>, |
| 17 | + "<a href="#maxdataextensiontimeindays" title="MaxDataExtensionTimeInDays">MaxDataExtensionTimeInDays</a>" : <i>Integer</i>, |
| 18 | + "<a href="#defaultddlcollation" title="DefaultDdlCollation">DefaultDdlCollation</a>" : <i>String</i>, |
| 19 | + "<a href="#comment" title="Comment">Comment</a>" : <i>String</i>, |
| 20 | + } |
| 21 | +} |
| 22 | +</pre> |
| 23 | + |
| 24 | +### YAML |
| 25 | + |
| 26 | +<pre> |
| 27 | +Type: Snowflake::Database::Database |
| 28 | +Properties: |
| 29 | + <a href="#name" title="Name">Name</a>: <i>String</i> |
| 30 | + <a href="#dataretentiontimeindays" title="DataRetentionTimeInDays">DataRetentionTimeInDays</a>: <i>Integer</i> |
| 31 | + <a href="#maxdataextensiontimeindays" title="MaxDataExtensionTimeInDays">MaxDataExtensionTimeInDays</a>: <i>Integer</i> |
| 32 | + <a href="#defaultddlcollation" title="DefaultDdlCollation">DefaultDdlCollation</a>: <i>String</i> |
| 33 | + <a href="#comment" title="Comment">Comment</a>: <i>String</i> |
| 34 | +</pre> |
| 35 | + |
| 36 | +## Properties |
| 37 | + |
| 38 | +#### Name |
| 39 | + |
| 40 | +Specifies the identifier for the database; must be unique for your account. |
| 41 | + |
| 42 | +_Required_: Yes |
| 43 | + |
| 44 | +_Type_: String |
| 45 | + |
| 46 | +_Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement) |
| 47 | + |
| 48 | +#### DataRetentionTimeInDays |
| 49 | + |
| 50 | +Specifies the number of days for which Time Travel actions can be performed on the database. |
| 51 | + |
| 52 | +_Required_: No |
| 53 | + |
| 54 | +_Type_: Integer |
| 55 | + |
| 56 | +_Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) |
| 57 | + |
| 58 | +#### MaxDataExtensionTimeInDays |
| 59 | + |
| 60 | +The maximum number of days for which Snowflake can extend the data retention period for tables in the database. |
| 61 | + |
| 62 | +_Required_: No |
| 63 | + |
| 64 | +_Type_: Integer |
| 65 | + |
| 66 | +_Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) |
| 67 | + |
| 68 | +#### DefaultDdlCollation |
| 69 | + |
| 70 | +Specifies a default collation specification for all schemas and tables added to the database |
| 71 | + |
| 72 | +_Required_: No |
| 73 | + |
| 74 | +_Type_: String |
| 75 | + |
| 76 | +_Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) |
| 77 | + |
| 78 | +#### Comment |
| 79 | + |
| 80 | +Specifies a comment for the database. |
| 81 | + |
| 82 | +_Required_: No |
| 83 | + |
| 84 | +_Type_: String |
| 85 | + |
| 86 | +_Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) |
| 87 | + |
| 88 | +## Return Values |
| 89 | + |
| 90 | +### Ref |
| 91 | + |
| 92 | +When you pass the logical ID of this resource to the intrinsic `Ref` function, Ref returns the Name. |
| 93 | + |
| 94 | +### Fn::GetAtt |
| 95 | + |
| 96 | +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. |
| 97 | + |
| 98 | +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). |
| 99 | + |
| 100 | +#### Database |
| 101 | + |
| 102 | +Returns the <code>Database</code> value. |
| 103 | + |
0 commit comments