ALIYUN::REDIS::Whitelist は、ApsaraDB for Redis インスタンスの IP アドレス ホワイトリストを設定するために使用されます。
構文
{
"Type": "ALIYUN::REDIS::Whitelist",
"Properties": {
"InstanceId": String,
"SecurityIpGroupName": String,
"SecurityIpGroupAttribute": String,
"SecurityIps": String
}
}プロパティ
| プロパティ | タイプ | 必須 | 編集可能 | 説明 | 制約 |
| InstanceId | String | はい | いいえ | ApsaraDB for Redis インスタンスのグローバルに一意な ID。 | なし。 |
| SecurityIpGroupName | String | いいえ | いいえ | ホワイトリストの名前。デフォルト値:default。 | なし。 |
| SecurityIpGroupAttribute | String | いいえ | いいえ | ホワイトリストの属性値。デフォルトでは、このプロパティは空です。属性値が hidden に設定されているホワイトリストは、コンソールに表示されません。 | なし。 |
| SecurityIps | String | はい | はい | ホワイトリスト内の IP アドレス。複数の IP アドレスはカンマ (,) で区切ります。0.0.0.0/0 や 10.23.12.24 などの IP アドレス、10.23.12.24/24 などの CIDR ブロックがサポートされています。サンプルの CIDR ブロックでは、/24 は IP アドレスプレフィックスの長さを示します。IP アドレスプレフィックスの長さは 1 ~ 32 ビットである必要があります。 | 最大値:1000。 |
戻り値
Fn::GetAtt
- SecurityIpGroupName:ホワイトリストの名前。
- SecurityIpGroupAttribute:ホワイトリストの属性値。
- SecurityIps:ホワイトリスト内の IP アドレス。
例
JSON形式{ "ROSTemplateFormatVersion": "2015-09-01", "Parameters": { "InstanceId": { "Type": "String", "Description": "The globally unique ID of the ApsaraDB for Redis instance." // ApsaraDB for Redis インスタンスのグローバルに一意な ID。 } }, "Resources": { "Whitelist": { "Type": "ALIYUN::REDIS::Whitelist", "Properties": { "InstanceId": { "Ref": "InstanceId" }, "SecurityIpGroupName": "ros", "SecurityIpGroupAttribute": "show", "SecurityIps": "0.0.0.0/0" } } }, "Outputs": { "SecurityIpGroupName": { "Description": "The name of the whitelist.", // ホワイトリストの名前。 "Value": { "Fn::GetAtt": [ "Whitelist", "SecurityIpGroupName" ] } }, "SecurityIpGroupAttribute": { "Description": "The attribute value of the whitelist.", // ホワイトリストの属性値。 "Value": { "Fn::GetAtt": [ "Whitelist", "SecurityIpGroupAttribute" ] } }, "SecurityIps": { "Description": "The IP addresses in the whitelist.", // ホワイトリスト内の IP アドレス。 "Value": { "Fn::GetAtt": [ "Whitelist", "SecurityIps" ] } } } }