All Products
Search
Document Center

Resource Orchestration Service:ALIYUN::Memcache::Whitelist

Last Updated:Apr 18, 2023

ALIYUN::Memcache::Whitelist is used to create a Whitelist.

Syntax

{
  "Type": "ALIYUN::Memcache::Whitelist",
  "Properties": {
    "InstanceId": String,
    "SecurityIpGroupName": String,
    "SecurityIpGroupAttribute": String,
    "SecurityIps": String
  }
}

Properties

Parameter

Type

Required

Editable

Description

Constraint

InstanceId

String

Yes

Not supported

The ID of the instance.

None

SecurityIpGroupName

String

No

Released

The name of the IP address whitelist.

None

SecurityIpGroupAttribute

String

No

Released

Properties of the IP address whitelist

This parameter is not specified by default. If you set this parameter to hidden, the IP address whitelist will not be displayed in the console.

SecurityIps

String

Yes

Yes

IP addresses in the IP whitelist group.

Up to 1,000 IP addresses. Separate multiple IP addresses with commas (,). Supported formats include 0.0.0.0/0,10.23.12.24, and 10.23.12.24/24(CIDR mode). " /24 "indicates the length of the prefix in the address, ranging from 1 to 32.

Return value

Fn::GetAtt

  • SecurityIpGroupName: The name of the IP address whitelist.

  • SecurityIpGroupAttribute: The attribute of the IP address whitelist.

  • SecurityIps: The list of IP addresses in the IP address whitelist.

Examples

YAML format

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  InstanceId:
    Type: String
    Description: Memcache Instance 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 format

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "InstanceId": {
      "Type": "String",
      "Description": "Memcache Instance 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"
        ]
      }
    }
  }
}