O tipo de recurso ALIYUN::DataLakeFormation::Permissions concede permissões em lote.
Sintaxe
{
"Type": "ALIYUN::DataLakeFormation::Permissions",
"Properties": {
"CatalogId": String,
"RefreshUserSync": Boolean,
"Permissions": List
}
}
Propriedades
|
Nome da propriedade |
Tipo |
Obrigatória |
Atualização permitida |
Descrição |
Restrições |
|
CatalogId |
String |
Sim |
Não |
ID do catálogo de dados. |
Nenhuma |
|
Permissions |
List |
Sim |
Sim |
Lista de permissões. |
Para mais informações, consulte a propriedade Permissions. |
|
RefreshUserSync |
Boolean |
Não |
Não |
Define se a sincronização de usuários deve ser atualizada antes da criação das permissões. |
Usuários recém-criados no Resource Access Management (RAM) podem não ser sincronizados imediatamente. Uma atualização é necessária para garantir a disponibilidade do usuário. Defina este parâmetro como true para ativar a atualização da sincronização, o que pode causar uma espera de 30 segundos. Defina como false para ignorar a atualização e evitar essa espera. Valor padrão: false. |
Sintaxe de Permissions
"Permissions": [
{
"Access": String,
"ResourceType": String,
"Principal": String
}
]
Propriedades de Permissions
Nome da propriedade | Tipo | Obrigatória | Atualização permitida | Descrição | Restrições |
Access | String | Sim | Não | Tipo de acesso. | Valores válidos:
|
Principal | String | Sim | Não | Descritor do recurso de usuário. | Nenhuma |
ResourceType | String | Sim | Não | Tipo de recurso da permissão. | Valores válidos:
|
Valor de retorno
Fn::GetAtt
Nenhum
Exemplos
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
Permissions:
AssociationPropertyMetadata:
Parameters:
Access:
Type: String
Description:
en: The access action of the granted permission.
AllowedValues:
- ALL
- GRANT
- CREATEDATABASE
- ALTER
- DROP
- UPDATE
- SELECT
- DESCRIBE
- LIST
- CREATETABLE
Required: true
ResourceType:
Type: String
Description:
en: The resource type of the granted permission.
AllowedValues:
- CATALOG
- CATALOG_ALL
Required: true
Principal:
Type: String
Description:
en: The role of the granted permissions.
Required: true
AssociationProperty: List[Parameters]
Type: Json
Description:
en: The permissions list.
Required: true
MinLength: 1
MaxLength: 10
CatalogId:
Type: String
Description:
en: The catalog id.
Required: true
Resources:
DataLakeFormationPermissions:
Type: ALIYUN::DataLakeFormation::Permissions
Properties:
Permissions:
Ref: Permissions
CatalogId:
Ref: CatalogId
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"Permissions": {
"AssociationPropertyMetadata": {
"Parameters": {
"Access": {
"Type": "String",
"Description": {
"en": "The access action of the granted permission."
},
"AllowedValues": [
"ALL",
"GRANT",
"CREATEDATABASE",
"ALTER",
"DROP",
"UPDATE",
"SELECT",
"DESCRIBE",
"LIST",
"CREATETABLE"
],
"Required": true
},
"ResourceType": {
"Type": "String",
"Description": {
"en": "The resource type of the granted permission."
},
"AllowedValues": [
"CATALOG",
"CATALOG_ALL"
],
"Required": true
},
"Principal": {
"Type": "String",
"Description": {
"en": "The role of the granted permissions."
},
"Required": true
}
}
},
"AssociationProperty": "List[Parameters]",
"Type": "Json",
"Description": {
"en": "The permissions list."
},
"Required": true,
"MinLength": 1,
"MaxLength": 10
},
"CatalogId": {
"Type": "String",
"Description": {
"en": "The catalog id."
},
"Required": true
}
},
"Resources": {
"DataLakeFormationPermissions": {
"Type": "ALIYUN::DataLakeFormation::Permissions",
"Properties": {
"Permissions": {
"Ref": "Permissions"
},
"CatalogId": {
"Ref": "CatalogId"
}
}
}
}
}