構文
{
"Type": "ALIYUN::Memcache::Whitelist",
"Properties": {
"InstanceId": String,
"SecurityIpGroupName": String,
"SecurityIpGroupAttribute": String,
"SecurityIps": String
}
}
プロパティ
パラメーター | タイプ | 必須 | 編集可能 | 説明 | 制約 |
InstanceId | String | はい | サポートされていません | インスタンスの ID です。 | なし |
SecurityIpGroupName | String | いいえ | リリース済み | IP アドレス ホワイトリストの名前です。 | なし |
SecurityIpGroupAttribute | String | いいえ | リリース済み | IP アドレス ホワイトリストのプロパティ | このパラメーターはデフォルトでは指定されていません。 このパラメーターを hidden に設定すると、IP アドレス ホワイトリストはコンソールに表示されません。 |
SecurityIps | String | はい | はい | IP ホワイトリスト グループの IP アドレス。 | 最大 1,000 個の IP アドレス。 複数の IP アドレスはカンマ (,) で区切ります。 サポートされている形式には、0.0.0.0/0、10.23.12.24、および 10.23.12.24/24 (CIDR モード) が含まれます。 " /24 " は、アドレスのプレフィックスの長さを示し、1 ~ 32 の範囲です。 |
戻り値
Fn::GetAtt
SecurityIpGroupName: IP アドレス ホワイトリストの名前。
SecurityIpGroupAttribute: IP アドレス ホワイトリストの属性。
SecurityIps: IP アドレス ホワイトリストの IP アドレスのリスト。
例
YAML 形式
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
InstanceId:
Type: String
Description: Memcache Instance Id // Memcache インスタンス ID
Default: '****'
SecurityIpGroupName:
Type: String
Default: mytest
Resources:
Whitelist:
Type: ALIYUN::Memcache::Whitelist
Properties:
InstanceId:
Ref: InstanceId
SecurityIpGroupName:
Ref: SecurityIpGroupName
SecurityIpGroupAttribute: test
SecurityIps: 0.0.0.0/0
Outputs:
SecurityIpGroupName:
Value:
Fn::GetAtt:
- Whitelist
- SecurityIpGroupName
SecurityIpGroupAttribute:
Value:
Fn::GetAtt:
- Whitelist
- SecurityIpGroupAttribute
SecurityIps:
Value:
Fn::GetAtt:
- Whitelist
- SecurityIps
JSON 形式
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"InstanceId": {
"Type": "String",
"Description": "Memcache Instance Id", // Memcache インスタンス ID
"Default": "****"
},
"SecurityIpGroupName": {
"Type": "String",
"Default": "mytest"
}
},
"Resources": {
"Whitelist": {
"Type": "ALIYUN::Memcache::Whitelist",
"Properties": {
"InstanceId": {
"Ref": "InstanceId"
},
"SecurityIpGroupName": {
"Ref": "SecurityIpGroupName"
},
"SecurityIpGroupAttribute": "test",
"SecurityIps": "0.0.0.0/0"
}
}
},
"Outputs": {
"SecurityIpGroupName": {
"Value": {
"Fn::GetAtt": [
"Whitelist",
"SecurityIpGroupName"
]
}
},
"SecurityIpGroupAttribute": {
"Value": {
"Fn::GetAtt": [
"Whitelist",
"SecurityIpGroupAttribute"
]
}
},
"SecurityIps": {
"Value": {
"Fn::GetAtt": [
"Whitelist",
"SecurityIps"
]
}
}
}
}