O recurso ALIYUN::DataWorks::Project cria um workspace do DataWorks.
Sintaxe
{
"Type": "ALIYUN::DataWorks::Project",
"Properties": {
"ProjectIdentifier": String,
"DisableDevelopment": Boolean,
"IsAllowDownload": Boolean,
"ProjectName": String,
"ProjectDescription": String,
"ProjectMode": Integer,
"ResourceGroupId": String,
"Tags": List
}
}
Propriedades
|
Propriedade |
Tipo |
Obrigatória |
Editável |
Descrição |
Restrição |
|
ProjectIdentifier |
String |
Sim |
Não |
Nome do workspace. |
Contém apenas letras, dígitos e sublinhados (_). Deve começar com uma letra ou dígito. |
|
DisableDevelopment |
Boolean |
Não |
Não |
Desativa a função de engenheiro de desenvolvimento. |
Valores válidos:
|
|
IsAllowDownload |
Boolean |
Não |
Não |
Permite baixar resultados de consulta no DataStudio. |
Valores válidos:
|
|
ProjectName |
String |
Não |
Não |
Nome de exibição do workspace. |
Nenhuma |
|
ProjectDescription |
String |
Não |
Não |
Descrição do workspace. |
Nenhuma |
|
ProjectMode |
Integer |
Não |
Não |
Modo do workspace. |
Valores válidos:
|
|
ResourceGroupId |
String |
Não |
Não |
ID do grupo de recursos. |
Nenhuma |
|
Tags |
List |
Não |
Sim |
Tags do workspace. |
Para mais informações, consulte Propriedades de Tags. |
Sintaxe de Tags
"Tags": [
{
"Value": String,
"Key": String
}
]
Propriedades de Tags
|
Propriedade |
Tipo |
Obrigatória |
Editável |
Descrição |
Restrição |
|
Key |
String |
Sim |
Não |
Chave da tag. |
Nenhuma |
|
Value |
String |
Não |
Não |
Valor da tag. |
Nenhuma |
Valores de retorno
Fn::GetAtt
ProjectIdentifier: nome do workspace.
IsDefault: indica se o workspace é o padrão.
SchedulerMaxRetryTimes: número padrão de reexecuções automáticas após erro.
ProtectedMode: indica se a proteção do workspace está ativada.
TablePrivacyMode: visibilidade das tabelas do MaxCompute no tenant.
EnvTypes: ambiente do workspace.
ResidentArea: tipo do workspace.
SchedulerRetryInterval: intervalo entre reexecuções automáticas após erro.
Id: ID do workspace.
Exemplos
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
ProjectIdentifier:
Type: String
Description:
en: The name of the workspace. The name can contain letters, digits, and underscores (_) and must start with a letter or digit.
AllowedPattern: ^[a-zA-Z][a-zA-Z0-9_]{2,27}$
Required: true
Default: test_project
Resources:
Project:
Type: ALIYUN::DataWorks::Project
Properties:
ProjectIdentifier:
Ref: ProjectIdentifier
Outputs:
ProjectIdentifier:
Description: The name of the workspace. The name can contain letters, digits, and underscores (_) and must start with a letter or digit.
Value:
Fn::GetAtt:
- Project
- ProjectIdentifier
IsDefault:
Description: |-
Indicates whether the workspace is the default workspace. Valid values:
1: The workspace is the default workspace.
0: The workspace is not the default workspace.
Value:
Fn::GetAtt:
- Project
- IsDefault
SchedulerMaxRetryTimes:
Description: The default maximum number of automatic reruns that are allowed after an error occurs.
Value:
Fn::GetAtt:
- Project
- SchedulerMaxRetryTimes
ProtectedMode:
Description: |-
Indicates whether the workspace protection feature is enabled. Valid values:
1: The workspace protection feature is enabled.
0: The workspace protection feature is disabled.
Value:
Fn::GetAtt:
- Project
- ProtectedMode
ProjectId:
Description: The ID of the workspace.
Value:
Fn::GetAtt:
- Project
- ProjectId
TablePrivacyMode:
Description: |-
Indicates whether the MaxCompute tables in the workspace are visible to the users within the tenant. Valid values:
0: The MaxCompute tables are invisible to the users within a tenant.
1: The MaxCompute tables are visible to the users within a tenant.
Value:
Fn::GetAtt:
- Project
- TablePrivacyMode
EnvTypes:
Description: |-
The environment of the workspace. Valid values: PROD and DEV.
The value PROD indicates the production environment. Workspaces in basic mode provide only the production environment.
The value DEV indicates the development environment. Workspaces in standard mode provide both the development environment and the production environment.
Value:
Fn::GetAtt:
- Project
- EnvTypes
ResidentArea:
Description: 'The type of the workspace. Valid values: private and swap.'
Value:
Fn::GetAtt:
- Project
- ResidentArea
SchedulerRetryInterval:
Description: 'The interval between automatic reruns after an error occurs. Unit: milliseconds. The maximum interval is 30 minutes. You must pay attention to the conversion between units.'
Value:
Fn::GetAtt:
- Project
- SchedulerRetryInterval
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"ProjectIdentifier": {
"Type": "String",
"Description": {
"en": "The name of the workspace. The name can contain letters, digits, and underscores (_) and must start with a letter or digit."
},
"AllowedPattern": "^[a-zA-Z][a-zA-Z0-9_]{2,27}$",
"Required": true,
"Default": "test_project"
}
},
"Resources": {
"Project": {
"Type": "ALIYUN::DataWorks::Project",
"Properties": {
"ProjectIdentifier": {
"Ref": "ProjectIdentifier"
}
}
}
},
"Outputs": {
"ProjectIdentifier": {
"Description": "The name of the workspace. The name can contain letters, digits, and underscores (_) and must start with a letter or digit.",
"Value": {
"Fn::GetAtt": [
"Project",
"ProjectIdentifier"
]
}
},
"IsDefault": {
"Description": "Indicates whether the workspace is the default workspace. Valid values:\n1: The workspace is the default workspace.\n0: The workspace is not the default workspace.",
"Value": {
"Fn::GetAtt": [
"Project",
"IsDefault"
]
}
},
"SchedulerMaxRetryTimes": {
"Description": "The default maximum number of automatic reruns that are allowed after an error occurs.",
"Value": {
"Fn::GetAtt": [
"Project",
"SchedulerMaxRetryTimes"
]
}
},
"ProtectedMode": {
"Description": "Indicates whether the workspace protection feature is enabled. Valid values:\n1: The workspace protection feature is enabled.\n0: The workspace protection feature is disabled.",
"Value": {
"Fn::GetAtt": [
"Project",
"ProtectedMode"
]
}
},
"ProjectId": {
"Description": "The ID of the workspace.",
"Value": {
"Fn::GetAtt": [
"Project",
"ProjectId"
]
}
},
"TablePrivacyMode": {
"Description": "Indicates whether the MaxCompute tables in the workspace are visible to the users within the tenant. Valid values:\n0: The MaxCompute tables are invisible to the users within a tenant.\n1: The MaxCompute tables are visible to the users within a tenant.",
"Value": {
"Fn::GetAtt": [
"Project",
"TablePrivacyMode"
]
}
},
"EnvTypes": {
"Description": "The environment of the workspace. Valid values: PROD and DEV.\nThe value PROD indicates the production environment. Workspaces in basic mode provide only the production environment.\nThe value DEV indicates the development environment. Workspaces in standard mode provide both the development environment and the production environment.",
"Value": {
"Fn::GetAtt": [
"Project",
"EnvTypes"
]
}
},
"ResidentArea": {
"Description": "The type of the workspace. Valid values: private and swap.",
"Value": {
"Fn::GetAtt": [
"Project",
"ResidentArea"
]
}
},
"SchedulerRetryInterval": {
"Description": "The interval between automatic reruns after an error occurs. Unit: milliseconds. The maximum interval is 30 minutes. You must pay attention to the conversion between units.",
"Value": {
"Fn::GetAtt": [
"Project",
"SchedulerRetryInterval"
]
}
}
}
}