ALIYUN::VPC::Ipv6EgressRule

更新时间:
复制为 MD 格式

ALIYUN::VPC::Ipv6EgressRule类型用于为IPv6地址添加仅主动出规则。

语法

{
  "Type": "ALIYUN::VPC::Ipv6EgressRule",
  "Properties": {
    "InstanceId": String,
    "Ipv6GatewayId": String,
    "Description": String,
    "Ipv6EgressRuleName": String,
    "InstanceType": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

InstanceId

String

要创建仅出站规则的IPv6地址ID。

Ipv6GatewayId

String

IPv6网关ID。

Description

String

仅出站规则的描述。

描述长度为0~256个字符,不能以`http://`或`https://`开头。

InstanceType

String

要应用仅出站规则的实例类型。

取值:

  • IPv6Address(默认)

  • IPv6Prefix

Ipv6EgressRuleName

String

仅出站规则的名称。

名称长度为0~128个字符,不能以`http://`或`https://`开头。

返回值

Fn::GetAtt

  • Ipv6EgressRuleId:仅出站规则ID。

  • Description:仅出站规则的描述。

  • InstanceId:要创建仅出站规则的IPv6地址ID。

  • Ipv6EgressRuleName:仅出站规则的名称。

  • InstanceType:要应用仅出站规则的实例类型。

示例

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  InstanceId:
    Type: String
    Description:
      en: The ID of the IPv6 address for which you want to create an egress-only rule.
    Required: true
  Ipv6EgressRuleName:
    Type: String
    Description:
      en: |-
        The name of the egress-only rule.
        The name must be 0 to 128 characters in length and cannot start with `http://` or `https://`.
    MinLength: 0
    MaxLength: 128
    Default: Null
    Required: false
  Description:
    Type: String
    Description:
      en: |-
        The description of the egress-only rule.
        The description must be 0 to 256 characters in length and cannot start with `http://` or `https://`.
    AssociationProperty: TextArea
    MinLength: 0
    MaxLength: 256
    Default: Null
    Required: false
  Ipv6GatewayId:
    Type: String
    Description:
      en: The ID of the IPv6 gateway.
    Required: true
  InstanceType:
    Type: String
    Description:
      en: |-
        The type of the instance to which you want to apply the egress-only rule. Valid values:
        *   IPv6Address (default)
        *   IPv6Prefix.
    AllowedValues:
      - Ipv6Address
      - IPv6Prefix
    Default: Null
    Required: false
Resources:
  ExtensionResource:
    Type: ALIYUN::VPC::Ipv6EgressRule
    Properties:
      InstanceId:
        Ref: InstanceId
      Ipv6EgressRuleName:
        Ref: Ipv6EgressRuleName
      Description:
        Ref: Description
      Ipv6GatewayId:
        Ref: Ipv6GatewayId
      InstanceType:
        Ref: InstanceType
Outputs:
  InstanceId:
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - InstanceId
    Description: The ID of the IPv6 address for which you want to create an egress-only rule.
  Ipv6EgressRuleName:
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - Ipv6EgressRuleName
    Description: The name of the egress-only rule.
  Ipv6EgressRuleId:
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - Ipv6EgressRuleId
    Description: The ID of the egress-only rule that you want to delete.
  Description:
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - Description
    Description: The description of the egress-only rule.
  InstanceType:
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - InstanceType
    Description: The type of the instance to which you want to apply the egress-only rule.
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "InstanceId": {
      "Type": "String",
      "Description": {
        "en": "The ID of the IPv6 address for which you want to create an egress-only rule."
      },
      "Required": true
    },
    "Ipv6EgressRuleName": {
      "Type": "String",
      "Description": {
        "en": "The name of the egress-only rule.\nThe name must be 0 to 128 characters in length and cannot start with `http://` or `https://`."
      },
      "MinLength": 0,
      "MaxLength": 128,
      "Default": null,
      "Required": false
    },
    "Description": {
      "Type": "String",
      "Description": {
        "en": "The description of the egress-only rule.\nThe description must be 0 to 256 characters in length and cannot start with `http://` or `https://`."
      },
      "AssociationProperty": "TextArea",
      "MinLength": 0,
      "MaxLength": 256,
      "Default": null,
      "Required": false
    },
    "Ipv6GatewayId": {
      "Type": "String",
      "Description": {
        "en": "The ID of the IPv6 gateway."
      },
      "Required": true
    },
    "InstanceType": {
      "Type": "String",
      "Description": {
        "en": "The type of the instance to which you want to apply the egress-only rule. Valid values:\n*   IPv6Address (default)\n*   IPv6Prefix."
      },
      "AllowedValues": [
        "Ipv6Address",
        "IPv6Prefix"
      ],
      "Default": null,
      "Required": false
    }
  },
  "Resources": {
    "ExtensionResource": {
      "Type": "ALIYUN::VPC::Ipv6EgressRule",
      "Properties": {
        "InstanceId": {
          "Ref": "InstanceId"
        },
        "Ipv6EgressRuleName": {
          "Ref": "Ipv6EgressRuleName"
        },
        "Description": {
          "Ref": "Description"
        },
        "Ipv6GatewayId": {
          "Ref": "Ipv6GatewayId"
        },
        "InstanceType": {
          "Ref": "InstanceType"
        }
      }
    }
  },
  "Outputs": {
    "InstanceId": {
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "InstanceId"
        ]
      },
      "Description": "The ID of the IPv6 address for which you want to create an egress-only rule."
    },
    "Ipv6EgressRuleName": {
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "Ipv6EgressRuleName"
        ]
      },
      "Description": "The name of the egress-only rule."
    },
    "Ipv6EgressRuleId": {
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "Ipv6EgressRuleId"
        ]
      },
      "Description": "The ID of the egress-only rule that you want to delete."
    },
    "Description": {
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "Description"
        ]
      },
      "Description": "The description of the egress-only rule."
    },
    "InstanceType": {
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "InstanceType"
        ]
      },
      "Description": "The type of the instance to which you want to apply the egress-only rule."
    }
  }
}