ALIYUN::SAG::ACL類型用于創建訪問控制。
語法
{
"Type": "ALIYUN::SAG::ACL",
"Properties": {
"Name": String
}
}
屬性
屬性名稱 | 類型 | 必須 | 允許更新 | 描述 | 約束 |
Name | String | 是 | 是 | 訪問控制名稱。 | 長度為2-128個字符,必須以字母或中文開頭,可包含數字,點號(.),下劃線(_)和短橫線(-),但不能以http://或https://開頭。 |
返回值
Fn::GetAtt
AclId:訪問控制 ID。
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
Name:
Type: String
Description: |-
Access control name.
The length is 2-128 characters. It must start with a letter or Chinese. It can contain numbers, periods (.), underscores (_) and dashes (-), but cannot start with http:// or https://.
Resources:
ACL:
Type: ALIYUN::SAG::ACL
Properties:
Name:
Ref: Name
Outputs:
AclId:
Description: Access control set ID.
Value:
Fn::GetAtt:
- ACL
- AclId
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"Name": {
"Type": "String",
"Description": "Access control name.\nThe length is 2-128 characters. It must start with a letter or Chinese. It can contain numbers, periods (.), underscores (_) and dashes (-), but cannot start with http:// or https://."
}
},
"Resources": {
"ACL": {
"Type": "ALIYUN::SAG::ACL",
"Properties": {
"Name": {
"Ref": "Name"
}
}
}
},
"Outputs": {
"AclId": {
"Description": "Access control set ID.",
"Value": {
"Fn::GetAtt": [
"ACL",
"AclId"
]
}
}
}
}
文檔內容是否對您有幫助?