ALIYUN::VPC::Ipv6Gateway is used to create an IPv6 gateway.

Syntax

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

Properties

Property Type Required Editable Description Constraint
Description String No Yes The description of the IPv6 gateway. The description must be 2 to 256 characters in length. The name must start with a letter and cannot start with http:// or https://. A tag value can contain English letters, Chinese characters, digits, periods (.), underscores (_), and hyphens (-),
VpcId String Yes No The ID of the VPC for which you want to create the IPv6 gateway. None
Spec String No Yes The specification of the IPv6 gateway. Valid values:
  • Small (default): Free version
  • Medium: Enterprise Edition
  • Large: Enhanced Enterprise Edition
Name String No Yes The name of the IPv6 gateway. The description must be 2 to 256 characters in length. The name must start with a letter and cannot start with http:// or https://. A tag value can contain English letters, Chinese characters, digits, periods (.), underscores (_), and hyphens (-),

Response parameters

Fn::GetAtt

Ipv6GatewayId: the ID of the IPv6 gateway.

Examples

JSON format

{
  "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 format

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