ALIYUN::DLF::Catalog is used to create a catalog in Data Lake Formation (DLF).
Syntax
{
"Type": "ALIYUN::DLF::Catalog",
"Properties": {
"Owner": String,
"LocationUri": String,
"Description": String,
"CatalogId": String
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
Owner | String | No | Yes | The information about the user. | None. |
LocationUri | String | No | Yes | The location Uniform Resource Identifier (URI) of the database. | Example: /hdfs/hivedb/data . |
Description | String | No | Yes | The description of the catalog. | None. |
CatalogId | String | Yes | No | The ID of the catalog. | By default, your Alibaba Cloud account ID is used. |
Return values
Fn::GetAtt
CatalogId: the ID of the catalog.
Examples
JSON
format{ "ROSTemplateFormatVersion": "2015-09-01", "Parameters": { "CatalogId": { "Type": "String", "Description": "Catalog ID", "AllowedPattern": "^[a-zA-Z][a-zA-Z0-9_]{1,255}" } }, "Resources": { "Catalog": { "Type": "ALIYUN::DLF::Catalog", "Properties": { "CatalogId": { "Ref": "CatalogId" } } } }, "Outputs": { "CatalogId": { "Description": "Catalog ID", "Value": { "Fn::GetAtt": [ "Catalog", "CatalogId" ] } } } }