O recurso ALIYUN::SLS::Project cria um projeto do Simple Log Service (SLS).
Sintaxe
{
"Type": "ALIYUN::SLS::Project",
"Properties": {
"Name": String,
"Description": String,
"Tags": List,
"ResourceGroupId": String,
"DataRedundancyType": String
}
}
Propriedades
|
Propriedade |
Tipo |
Obrigatória |
Editável |
Descrição |
Restrição |
|
Name |
String |
Sim |
Não |
Nome do projeto. |
O nome deve ter de 3 a 63 caracteres. Deve começar e terminar com letra minúscula ou dígito. Pode conter letras minúsculas, dígitos e hifens (-). |
|
Description |
String |
Não |
Não |
Descrição do projeto. |
A descrição pode ter até 64 caracteres e não deve incluir os seguintes caracteres especiais: |
|
Tags |
List |
Não |
Sim |
As tags. |
Adicione até 20 tags. Para mais informações, consulte Sintaxe de Tags e Propriedades de Tags. |
|
ResourceGroupId |
String |
Não |
Sim |
ID do grupo de recursos ao qual o projeto pertence. |
Nenhuma. |
|
DataRedundancyType |
String |
Não |
Não |
Tipo de redundância de dados. |
Nenhuma. |
Sintaxe de Tags
"Tags": [
{
"Key": String,
"Value": String
}
]
Propriedades de Tags
|
Propriedade |
Tipo |
Obrigatória |
Editável |
Descrição |
Restrição |
|
Key |
String |
Sim |
Não |
Chave da tag. |
A chave deve ter de 1 a 128 caracteres e não pode conter |
|
Value |
String |
Não |
Não |
Valor da tag. |
O valor pode ter até 128 caracteres e não pode conter |
Valores de retorno
Fn::GetAtt
Name: nome do projeto.
Exemplos
ROSTemplateFormatVersion: '2015-09-01'
Parameters: {}
Resources:
Project:
Type: ALIYUN::SLS::Project
Properties:
Name: TestProject
Outputs:
Name:
Description: Project name.
Value:
Fn::GetAtt:
- Project
- Name
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
},
"Resources": {
"Project": {
"Type": "ALIYUN::SLS::Project",
"Properties": {
"Name": "TestProject"
}
}
},
"Outputs": {
"Name": {
"Description": "Project name.",
"Value": {
"Fn::GetAtt": [
"Project",
"Name"
]
}
}
}
}