The ALIYUN::DLF::Catalog resource creates a data catalog for a data lake.
Syntax
{
"Type": "ALIYUN::DLF::Catalog",
"Properties": {
"Owner": String,
"LocationUri": String,
"Description": String,
"CatalogId": String
}
}Properties
| Property name | Type | Required | Update allowed | Description | Constraints |
| Owner | String | No | Yes | User information. | None |
| LocationUri | String | No | Yes | Location details. | Example: /hdfs/hivedb/data. |
| Description | String | No | Yes | The catalog description. | None |
| CatalogId | String | Yes | No | The namespace of the data catalog. | The default value is your Alibaba Cloud account ID. |
Return values
Fn::GetAtt
CatalogId: The namespace of the database classification.
Examples
JSONformat{ "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" ] } } } }
该文章对您有帮助吗?