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 |
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 must specify one of the IpAddress and InstanceId properties. If you leave both properties empty, the system randomly allocates an EIP. |
InstanceChargeType | String | No | No | The billing method of the EIP. | Valid values:
|
PricingCycle | String | No | No | The billing cycle of the subscription EIP. | You must specify this property if InstanceChargeType is set to Prepaid. Valid values:
|
ISP | String | No | No | The line type of the EIP. | Valid values:
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 period. | You must specify this property if InstanceChargeType is set to Prepaid.
|
DeletionProtection | Boolean | No | Yes | Specifies whether to enable deletion protection. | Valid values:
|
AutoPay | Boolean | No | No | Specifies whether to enable automatic payment. | You must specify this property if InstanceChargeType is set to Prepaid. Valid values:
|
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 |
InternetChargeType | String | No | No | The metering method of the EIP. | Valid values:
|
Netmode | String | No | No | The network type of the EIP. | Set the value to public. A value of public specifies that data is transferred over the Internet. |
Bandwidth | Number | No | Yes | The bandwidth of the EIP. | Default value: 5. Unit: Mbit/s. |
IpAddress | String | No | No | The IP address of the EIP. | You must 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. | You can specify up to 20 tags. For more information, see Tags properties. |
SecurityProtectionTypes | List | No | No | The editions of Anti-DDoS. | Valid values:
Note You can specify up 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. To use the feature, submit a ticket. |
Tags syntax
"Tags": [
{
"Value": String,
"Key": String
}
]
Tags properties
Property | Type | Required | Editable | Description | Constraint |
Value | String | No | No | The tag value. | The tag value can be up to 128 characters in length, and cannot contain |
Key | String | Yes | No | The tag key. | The tag key must be 1 to 128 characters in length, and cannot contain |
Return values
Fn::GetAtt
ISP: the line type.
AllocationId: the EIP ID.
EipAddress: the EIP.
OrderId: the order ID of the subscription EIP.