ALIYUN::VPC::Ipv6Gateway类型用于创建IPv6网关。

语法

{
  "Type": "ALIYUN::VPC::Ipv6Gateway",
  "Properties": {
    "Description": String,
    "VpcId": String,
    "Spec": String,
    "Name": String
  }
}

属性

属性名称 类型 必须 允许更新 描述 约束
Description String IPv6网关的描述信息。 长度为2~256个字符。必须以英文字母或汉字开头,不能以http://https://开头。可包含英文字母、汉字、数字、英文句点(.)、下划线(_)和短划线(-)。
VpcId String 要开通IPv6网关的VPC ID。
Spec String IPv6网关的规格。 取值:
  • Small(默认值):免费版。
  • Medium:企业版。
  • Large:企业增强版。
Name String IPv6网关的名称。 长度为2~256个字符。必须以英文字母或汉字开头,不能以http://https://开头。可包含英文字母、汉字、数字、英文句点(.)、下划线(_)和短划线(-)。

返回值

Fn::GetAtt

Ipv6GatewayId:IPv6网关的ID。

示例

JSON格式

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "Description": {
      "Type": "String",
      "Description": "Description of IPv6 gateway.\nLength of 2 to 256 characters, must begin with a letter or Chinese, may contain numbers, numbers, underscore (_) and dot dash (-), but not at the http (.): // or https: // at the beginning ."
    },
    "VpcId": {
      "Type": "String",
      "Description": "To open VPC ID IPv6 gateway."
    },
    "Spec": {
      "Type": "String",
      "Description": "Specifications IPv6 gateway, the value:\nSmall (default): Free.\nMedium: Enterprise Edition.\nLarge: Enterprise Edition.\nDifferent specifications of the IPv6 forwarding capability of the gateway is different. For more information, see IPv6 gateway specification."
    },
    "Name": {
      "Type": "String",
      "Description": "Name of the IPv6 gateway.\nLength of 2 to 128 characters, beginning with a letter or Chinese, can contain numbers, dot, underscore (_) and dash (-), but not at http (.): // or with https: // ."
    }
  },
  "Resources": {
    "Ipv6Gateway": {
      "Type": "ALIYUN::VPC::Ipv6Gateway",
      "Properties": {
        "Description": {
          "Ref": "Description"
        },
        "VpcId": {
          "Ref": "VpcId"
        },
        "Spec": {
          "Ref": "Spec"
        },
        "Name": {
          "Ref": "Name"
        }
      }
    }
  },
  "Outputs": {
    "Ipv6GatewayId": {
      "Description": "ID IPv6 gateway.",
      "Value": {
        "Fn::GetAtt": [
          "Ipv6Gateway",
          "Ipv6GatewayId"
        ]
      }
    }
  }
}

YAML格式

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  Description:
    Type: String
    Description: >-
      Description of IPv6 gateway.

      Length of 2 to 256 characters, must begin with a letter or Chinese, may
      contain numbers, numbers, underscore (_) and dot dash (-), but not at the
      http (.): // or https: // at the beginning .
  VpcId:
    Type: String
    Description: To open VPC ID IPv6 gateway.
  Spec:
    Type: String
    Description: >-
      Specifications IPv6 gateway, the value:

      Small (default): Free.

      Medium: Enterprise Edition.

      Large: Enterprise Edition.

      Different specifications of the IPv6 forwarding capability of the gateway
      is different. For more information, see IPv6 gateway specification.
  Name:
    Type: String
    Description: >-
      Name of the IPv6 gateway.

      Length of 2 to 128 characters, beginning with a letter or Chinese, can
      contain numbers, dot, underscore (_) and dash (-), but not at http (.): //
      or with https: // .
Resources:
  Ipv6Gateway:
    Type: 'ALIYUN::VPC::Ipv6Gateway'
    Properties:
      Description:
        Ref: Description
      VpcId:
        Ref: VpcId
      Spec:
        Ref: Spec
      Name:
        Ref: Name
Outputs:
  Ipv6GatewayId:
    Description: ID IPv6 gateway.
    Value:
      'Fn::GetAtt':
        - Ipv6Gateway
        - Ipv6GatewayId