ALIYUN::ApiGateway::LogConfig は、ログ構成を作成するために使用されます。
構文
{
"Type": "ALIYUN::ApiGateway::LogConfig",
"Properties": {
"SlsLogStore": String,
"SlsProject": String
}
}プロパティ
プロパティ | タイプ | 必須 | 編集可能 | 説明 | 制約 |
SlsLogStore | String | はい | はい | Simple Log Service プロジェクトのログストア。 | なし。 |
SlsProject | String | はい | はい | Simple Log Service プロジェクト。 | なし。 |
戻り値
Fn::GetAtt
SlsProject: Simple Log Service プロジェクトの名前。
SlsLogStore: Simple Log Service Logstore の名前。
例
YAML 形式
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
SlsLogStore:
Type: String
Description: SLS のログストア名
MinLength: 3
MaxLength: 63
SlsProject:
Type: String
Description: SLS のプロジェクト名
MinLength: 3
MaxLength: 63
Resources:
LogConfig:
Type: ALIYUN::ApiGateway::LogConfig
Properties:
SlsLogStore:
Ref: SlsLogStore
SlsProject:
Ref: SlsProject
Outputs:
SlsLogStore:
Description: SLS のログストア名
Value:
Fn::GetAtt:
- LogConfig
- SlsLogStore
SlsProject:
Description: SLS のプロジェクト名
Value:
Fn::GetAtt:
- LogConfig
- SlsProjectJSON 形式
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"SlsLogStore": {
"Type": "String",
"Description": "Logstore name of SLS", // SLS のログストア名
"MinLength": 3,
"MaxLength": 63
},
"SlsProject": {
"Type": "String",
"Description": "Project name of SLS", // 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", // SLS のログストア名
"Value": {
"Fn::GetAtt": [
"LogConfig",
"SlsLogStore"
]
}
},
"SlsProject": {
"Description": "Project name of SLS", // SLS のプロジェクト名
"Value": {
"Fn::GetAtt": [
"LogConfig",
"SlsProject"
]
}
}
}
}