DATASOURCE::SLS::Project类型用于获取指定Project。
语法
{
"Type": "DATASOURCE::SLS::Project",
"Properties": {
"ProjectName": String,
"RefreshOptions": String
}
}
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
ProjectName | String | 是 | 是 | Project 名称。 | 无 |
RefreshOptions | String | 否 | 是 | 当资源栈更新时,数据源资源的刷新策略。 | 有效值:
|
返回值
Fn::GetAtt
Status:Project 状态。
Owner:Project 所属得阿里云账号。
Description:Project 描述信息。
Quota:Project的配额。
ResourceGroupId:Project 所属的资源组 ID。
ProjectName:Project 名称。
CreateTime:创建 Project 的时间。
DataRedundancyType:数据冗余类型。
Region:Project 所属地域。
LastModifyTime:最后一次更新 Project 时间。
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
ProjectName:
Type: String
Description:
en: The name of the project.
Required: true
Resources:
ExtensionDataSource:
Type: DATASOURCE::SLS::Project
Properties:
ProjectName:
Ref: ProjectName
Outputs:
Status:
Description: The status of the project.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Status
Owner:
Description: The ID of the Alibaba Cloud account that is used to create the project.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Owner
Description:
Description: The description of the project.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Description
Quota:
Description: Project quota.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Quota
ResourceGroupId:
Description: The ID of the resource group to which the project belongs.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ResourceGroupId
ProjectName:
Description: The name of the project.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ProjectName
CreateTime:
Description: The time at which the project was created.
Value:
Fn::GetAtt:
- ExtensionDataSource
- CreateTime
DataRedundancyType:
Description: Data redundancy type.
Value:
Fn::GetAtt:
- ExtensionDataSource
- DataRedundancyType
Region:
Description: The region to which the project belongs.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Region
LastModifyTime:
Description: The time at which the project was last modified.
Value:
Fn::GetAtt:
- ExtensionDataSource
- LastModifyTime
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"ProjectName": {
"Type": "String",
"Description": {
"en": "The name of the project."
},
"Required": true
}
},
"Resources": {
"ExtensionDataSource": {
"Type": "DATASOURCE::SLS::Project",
"Properties": {
"ProjectName": {
"Ref": "ProjectName"
}
}
}
},
"Outputs": {
"Status": {
"Description": "The status of the project.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Status"
]
}
},
"Owner": {
"Description": "The ID of the Alibaba Cloud account that is used to create the project.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Owner"
]
}
},
"Description": {
"Description": "The description of the project.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Description"
]
}
},
"Quota": {
"Description": "Project quota.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Quota"
]
}
},
"ResourceGroupId": {
"Description": "The ID of the resource group to which the project belongs.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ResourceGroupId"
]
}
},
"ProjectName": {
"Description": "The name of the project.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ProjectName"
]
}
},
"CreateTime": {
"Description": "The time at which the project was created.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"CreateTime"
]
}
},
"DataRedundancyType": {
"Description": "Data redundancy type.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"DataRedundancyType"
]
}
},
"Region": {
"Description": "The region to which the project belongs.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Region"
]
}
},
"LastModifyTime": {
"Description": "The time at which the project was last modified.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"LastModifyTime"
]
}
}
}
}
该文章对您有帮助吗?