O recurso ALIYUN::ApiGateway::LogConfig cria uma configuração de log.
Sintaxe
{
"Type": "ALIYUN::ApiGateway::LogConfig",
"Properties": {
"SlsLogStore": String,
"SlsProject": String
}
}
Propriedades
|
Propriedade |
Tipo |
Obrigatória |
Editável |
Descrição |
Restrição |
|
SlsLogStore |
String |
Sim |
Sim |
Logstore do projeto do Simple Log Service. |
Nenhuma. |
|
SlsProject |
String |
Sim |
Sim |
Projeto do Simple Log Service. |
Nenhuma. |
Valores de retorno
Fn::GetAtt
SlsProject: nome do projeto do Simple Log Service.
SlsLogStore: nome do Logstore do Simple Log Service.
Exemplos
Formato YAML
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
SlsLogStore:
Type: String
Description: Logstore name of SLS
MinLength: 3
MaxLength: 63
SlsProject:
Type: String
Description: Project name of SLS
MinLength: 3
MaxLength: 63
Resources:
LogConfig:
Type: ALIYUN::ApiGateway::LogConfig
Properties:
SlsLogStore:
Ref: SlsLogStore
SlsProject:
Ref: SlsProject
Outputs:
SlsLogStore:
Description: Logstore name of SLS
Value:
Fn::GetAtt:
- LogConfig
- SlsLogStore
SlsProject:
Description: Project name of SLS
Value:
Fn::GetAtt:
- LogConfig
- SlsProject
Formato JSON
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"SlsLogStore": {
"Type": "String",
"Description": "Logstore name of SLS",
"MinLength": 3,
"MaxLength": 63
},
"SlsProject": {
"Type": "String",
"Description": "Project name of SLS",
"MinLength": 3,
"MaxLength": 63
}
},
"Resources": {
"LogConfig": {
"Type": "ALIYUN::ApiGateway::LogConfig",
"Properties": {
"SlsLogStore": {
"Ref": "SlsLogStore"
},
"SlsProject": {
"Ref": "SlsProject"
}
}
}
},
"Outputs": {
"SlsLogStore": {
"Description": "Logstore name of SLS",
"Value": {
"Fn::GetAtt": [
"LogConfig",
"SlsLogStore"
]
}
},
"SlsProject": {
"Description": "Project name of SLS",
"Value": {
"Fn::GetAtt": [
"LogConfig",
"SlsProject"
]
}
}
}
}