ALIYUN::VPC::EIPPro is used to create an elastic IP address (EIP).

Syntax

{
  "Type": "ALIYUN::VPC::EIPPro",
  "Properties": {
    "Description": String,
    "ResourceGroupId": String,
    "InstanceId": String,
    "InstanceChargeType": String,
    "PricingCycle": String,
    "ISP": String,
    "Period": Number,
    "DeletionProtection": Boolean,
    "AutoPay": Boolean,
    "Name": String,
    "InternetChargeType": String,
    "Netmode": String,
    "Bandwidth": Number,
    "IpAddress": String,
    "Tags": List,
    "SecurityProtectionTypes": List,
    "PublicIpAddressPoolId": String
  }
}

Properties

Property Type Required Editable Description Constraint
Description String No Yes The description of the EIP. The description must start with a letter but cannot start with http:// or https://.
ResourceGroupId String No Yes The ID of the resource group to which the EIP belongs. None.
InstanceId String No No The ID of the EIP. You can specify one of the IpAddress and InstanceId properties. If you leave both the IpAddress and InstanceId properties empty, the system randomly allocates an EIP.
InstanceChargeType String No No The billing method of the EIP. Default value: Postpaid. Valid values:
  • Prepaid: subscription
  • Postpaid: pay-as-you-go
PricingCycle String No No The billing cycle of the subscription EIP. This property is required if the InstanceChargeType property is set to Prepaid.

Default value: Month. Valid values:

  • Month
  • Year
ISP String No No The line type. Valid values if your Alibaba Cloud account is added to the whitelist for multi-ISP bandwidth:
  • BGP: BGP (Multi-ISP). This type of line is supported in all regions.
  • BGP_PRO: BGP (Multi-ISP) Pro. This type of line is supported only in the China (Hong Kong) region.
  • BGP_FinanceCloud: This type of line is supported only in the China East 1 Finance region.
Note If your Alibaba Cloud account is added to the whitelist for single-ISP bandwidth, you can set this property to ChinaTelecom, ChinaUnicom, or ChinaMobile.
Period Number No No The subscription duration. This property is required if the InstanceChargeType property is set to Prepaid.

Valid values:

  • Valid values if the PricingCycle property is set to Month: 1 to 9.
  • Valid values if the PricingCycle property is set to Year: 1 to 3.
DeletionProtection Boolean No No Specifies whether to enable deletion protection. Default value: false. Valid values:
  • true
  • false
AutoPay Boolean No No Specifies whether to enable automatic payment. This property is required if the InstanceChargeType property is set to Prepaid.

Default value: true. Valid values:

  • false: disables automatic payment.

    After an order is generated, you must complete the payment on the Orders page in the Billing Management console.

  • true: enables automatic payment.
Name String No Yes The name of the EIP. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). The name must start with a letter but cannot start with http:// or https://.
InternetChargeType String No No The metering method of the EIP. Default value: PayByBandwidth. Valid values:
  • PayByBandwidth: pay-by-bandwidth
  • PayByTraffic: pay-by-data-transfer
Netmode String No No The type of the network. Set the value to public, which specifies the Internet.
Bandwidth Number No Yes The bandwidth of the EIP. Default value: 5. Unit: Mbit/s. If you leave this property empty, the default value is used.
IpAddress String No No The EIP. You can specify one of the IpAddress and InstanceId properties. If you leave both properties empty, the system randomly allocates an EIP.
Tags List No Yes The tags of the EIP. You can add up to 20 tags.

For more information see Tags properties.

SecurityProtectionTypes List No No The editions of Anti-DDoS. Valid values:
  • Null: If you set this property to Null, Anti-DDoS Origin is used by default.
  • AntiDDoS_Enhanced: If you set this property to AntiDDoS_Enhanced, Anti-DDoS Pro or Premium is used.
Note You can specify to 10 editions of Anti-DDoS.
PublicIpAddressPoolId String No No The ID of the IP address pool. EIPs are allocated from the specified IP address pool. The IP address pool feature is available only to users whose accounts are granted the required permissions for trial use. If you want to use the IP address pool feature, submit a ticket.

Tags syntax

"Tags": [
  {
    "Value": String,
    "Key": String
  }
]

Tags properties

Property Type Required Editable Description Constraint
Value String No No The value of the tag. The tag value can be up to 128 characters in length, and cannot contain http:// or https://. The tag value cannot start with aliyun or acs:.
Key String No No The key of the tag. The tag key must be 1 to 128 characters in length, and cannot contain http:// or https://. The tag key cannot start with aliyun or acs:.

Return values

Fn::GetAtt

  • ISP: the line type.
  • AllocationId: the ID of the instance to which the EIP is allocated.
  • EipAddress: the EIP.
  • OrderId: the order ID of the subscription EIP.

Examples

  • JSON format

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "Description": {
          "Type": "String",
          "Description": "Optional. The description of the EIP. The description must be 2 to 256 characters in length. It must start with a letter. It cannot start with http://  or https://.",
          "Default": "test"
        },
        "InstanceId": {
          "Type": "String",
          "Description": "The ID of the requested EIP.",
          "Default": "eip-25877c70gddh****"
        },
        "Name": {
          "Type": "String",
          "Description": "The name of the EIP. The name must be 2 to 128 characters in length. It must start with a letter. It can contain numbers, periods (.), underscores (_), and hyphens (-). It cannot start with http://  or https://",
          "Default": "test"
        },
        "Bandwidth": {
          "Type": "Number",
          "Description": "Bandwidth for the output network. Default is 5MB.",
          "Default": 5
        }
      },
      "Resources": {
        "ElasticIpPro": {
          "Type": "ALIYUN::VPC::EIPPro",
          "Properties": {
            "Description": {
              "Ref": "Description"
            },
            "InstanceId": {
              "Ref": "InstanceId"
            },
            "Name": {
              "Ref": "Name"
            },
            "Bandwidth": {
              "Ref": "Bandwidth"
            }
          }
        }
      },
      "Outputs": {
        "ISP": {
          "Description": "The line type.",
          "Value": {
            "Fn::GetAtt": [
              "ElasticIpPro",
              "ISP"
            ]
          }
        },
        "AllocationId": {
          "Description": "ID that Aliyun assigns to represent the allocation of the address for use with VPC. Returned only for VPC elastic IP addresses.",
          "Value": {
            "Fn::GetAtt": [
              "ElasticIpPro",
              "AllocationId"
            ]
          }
        },
        "EipAddress": {
          "Description": "IP address of created EIP.",
          "Value": {
            "Fn::GetAtt": [
              "ElasticIpPro",
              "EipAddress"
            ]
          }
        },
        "OrderId": {
          "Description": "Order ID of prepaid EIP instance.",
          "Value": {
            "Fn::GetAtt": [
              "ElasticIpPro",
              "OrderId"
            ]
          }
        }
      }
    }
  • YAML format

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      Description:
        Type: String
        Description: Optional. The description of the EIP. The description must be 2 to 256 characters in length. It must start with a letter. It cannot start with http://  or https://.
        Default: test
      InstanceId:
        Type: String
        Description: The ID of the requested EIP.
        Default: eip-25877c70gddh****
      Name:
        Type: String
        Description: The name of the EIP. The name must be 2 to 128 characters in length. It must start with a letter. It can contain numbers, periods (.), underscores (_), and hyphens (-). It cannot start with http://  or https://
        Default: test
      Bandwidth:
        Type: Number
        Description: Bandwidth for the output network. Default is 5MB.
        Default: 5
    Resources:
      ElasticIpPro:
        Type: ALIYUN::VPC::EIPPro
        Properties:
          Description:
            Ref: Description
          InstanceId:
            Ref: InstanceId
          Name:
            Ref: Name
          Bandwidth:
            Ref: Bandwidth
    Outputs:
      ISP:
        Description: The line type.
        Value:
          Fn::GetAtt:
            - ElasticIpPro
            - ISP
      AllocationId:
        Description: ID that Aliyun assigns to represent the allocation of the address for use with VPC. Returned only for VPC elastic IP addresses.
        Value:
          Fn::GetAtt:
            - ElasticIpPro
            - AllocationId
      EipAddress:
        Description: IP address of created EIP.
        Value:
          Fn::GetAtt:
            - ElasticIpPro
            - EipAddress
      OrderId:
        Description: Order ID of prepaid EIP instance.
        Value:
          Fn::GetAtt:
            - ElasticIpPro
            - OrderId