ALIYUN::VPC::FullNatEntry

更新时间:
复制为 MD 格式

ALIYUN::VPC::FullNatEntry类型用于在FULLNAT列表中添加FULLNAT条目。

语法

{
  "Type": "ALIYUN::VPC::FullNatEntry",
  "Properties": {
    "NatIp": String,
    "FullNatEntryDescription": String,
    "AccessIp": String,
    "FullNatTableId": String,
    "FullNatEntryName": String,
    "NatIpPort": String,
    "IpProtocol": String,
    "AccessPort": String,
    "AccessDomain": String,
    "NetworkInterfaceId": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

NatIp

String

提供地址转换的NAT IP地址。

FullNatEntryDescription

String

FULLNAT条目的描述信息。

描述可以为空或填写2~256个字符,不能以http://https://开头。

AccessIp

String

需要修改的FULLNAT地址转换的后端IP地址。

FullNatTableId

String

FullNAT条目所属的FullNAT列表的ID。

FullNatEntryName

String

FULLNAT条目的名称。

长度为2~128个字符,必须以大小写字母或中文开头,但不能以http://https://开头。

NatIpPort

String

需要修改的FULLNAT端口映射的前端端口。

取值范围:1~65535

IpProtocol

String

转发端口的协议类型。

取值:

  • TCP:转发TCP协议的报文。

  • UDP:转发UDP协议的报文。

AccessPort

String

需要修改的FULLNAT端口映射的后端端口。

取值范围:1~65535

NetworkInterfaceId

String

弹性网卡ID。

AccessDomain

String

FULLNAT 地址转换的后端域名。

返回值

Fn::GetAtt

FullNatEntryId:FULLNAT条目的ID。

示例

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  AccessIp:
    Description:
      en: The backend IP address to be modified in FULLNAT address translation.
    Required: true
    Type: String
  AccessPort:
    Description:
      en: 'The backend port to be modified in the mapping of FULLNAT port. Valid values:
        1 to 65535.'
    Required: true
    Type: String
  FullNatEntryDescription:
    Description:
      en: 'The description of the FULLNAT entry.

        This parameter is optional. If you enter a description, the description must
        be 2 to 256 characters in length, and cannot start with http:// or https://.'
    Required: false
    Type: String
  FullNatEntryName:
    Description:
      en: The FULLNAT entry name. The name must be 2 to 128 characters in length.
        It must start with a letter but cannot start with http:// or https://.
    Required: false
    Type: String
  FullNatTableId:
    Description:
      en: The ID of the FULLNAT table to which the FULLNAT entry belongs.
    Required: true
    Type: String
  IpProtocol:
    AllowedValues:
    - TCP
    - UDP
    Description:
      en: 'The protocol of the packets that are forwarded by the port. Valid values:

        TCP

        UDP'
    Required: true
    Type: String
  NatIp:
    Description:
      en: The NAT IP address that provides address translation.
    Required: true
    Type: String
  NatIpPort:
    Description:
      en: 'The frontend port to be modified in the mapping of FULLNAT port. Valid
        values: 1 to 65535.'
    Required: true
    Type: String
  NetworkInterfaceId:
    Description:
      en: The elastic network interface (ENI) ID.
    Required: true
    Type: String
Resources:
  FullNatEntry:
    Properties:
      AccessIp:
        Ref: AccessIp
      AccessPort:
        Ref: AccessPort
      FullNatEntryDescription:
        Ref: FullNatEntryDescription
      FullNatEntryName:
        Ref: FullNatEntryName
      FullNatTableId:
        Ref: FullNatTableId
      IpProtocol:
        Ref: IpProtocol
      NatIp:
        Ref: NatIp
      NatIpPort:
        Ref: NatIpPort
      NetworkInterfaceId:
        Ref: NetworkInterfaceId
    Type: ALIYUN::VPC::FullNatEntry
Outputs:
  FullNatEntryId:
    Description: The FULLNAT entry ID.
    Value:
      Fn::GetAtt:
      - FullNatEntry
      - FullNatEntryId
                        
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "NatIp": {
      "Type": "String",
      "Description": {
        "en": "The NAT IP address that provides address translation."
      },
      "Required": true
    },
    "FullNatEntryDescription": {
      "Type": "String",
      "Description": {
        "en": "The description of the FULLNAT entry.\nThis parameter is optional. If you enter a description, the description must be 2 to 256 characters in length, and cannot start with http:// or https://."
      },
      "Required": false
    },
    "AccessIp": {
      "Type": "String",
      "Description": {
        "en": "The backend IP address to be modified in FULLNAT address translation."
      },
      "Required": true
    },
    "FullNatTableId": {
      "Type": "String",
      "Description": {
        "en": "The ID of the FULLNAT table to which the FULLNAT entry belongs."
      },
      "Required": true
    },
    "FullNatEntryName": {
      "Type": "String",
      "Description": {
        "en": "The FULLNAT entry name. The name must be 2 to 128 characters in length. It must start with a letter but cannot start with http:// or https://."
      },
      "Required": false
    },
    "IpProtocol": {
      "Type": "String",
      "Description": {
        "en": "The protocol of the packets that are forwarded by the port. Valid values:\nTCP\nUDP"
      },
      "AllowedValues": [
        "TCP",
        "UDP"
      ],
      "Required": true
    },
    "NatIpPort": {
      "Type": "String",
      "Description": {
        "en": "The frontend port to be modified in the mapping of FULLNAT port. Valid values: 1 to 65535."
      },
      "Required": true
    },
    "AccessPort": {
      "Type": "String",
      "Description": {
        "en": "The backend port to be modified in the mapping of FULLNAT port. Valid values: 1 to 65535."
      },
      "Required": true
    },
    "NetworkInterfaceId": {
      "Type": "String",
      "Description": {
        "en": "The elastic network interface (ENI) ID."
      },
      "Required": true
    }
  },
  "Resources": {
    "FullNatEntry": {
      "Type": "ALIYUN::VPC::FullNatEntry",
      "Properties": {
        "NatIp": {
          "Ref": "NatIp"
        },
        "FullNatEntryDescription": {
          "Ref": "FullNatEntryDescription"
        },
        "AccessIp": {
          "Ref": "AccessIp"
        },
        "FullNatTableId": {
          "Ref": "FullNatTableId"
        },
        "FullNatEntryName": {
          "Ref": "FullNatEntryName"
        },
        "IpProtocol": {
          "Ref": "IpProtocol"
        },
        "NatIpPort": {
          "Ref": "NatIpPort"
        },
        "AccessPort": {
          "Ref": "AccessPort"
        },
        "NetworkInterfaceId": {
          "Ref": "NetworkInterfaceId"
        }
      }
    }
  },
  "Outputs": {
    "FullNatEntryId": {
      "Description": "The FULLNAT entry ID.",
      "Value": {
        "Fn::GetAtt": [
          "FullNatEntry",
          "FullNatEntryId"
        ]
      }
    }
  }
}