Adds one or more elastic IP addresses (EIPs) to a shared bandwidth instance.
When you add EIPs, note the following limits:
-
Only pay-as-you-go EIPs are supported.
-
The EIPs and the shared bandwidth instance must be in the same region.
Syntax
{
"Type": "ALIYUN::VPC::CommonBandwidthPackageIp",
"Properties": {
"Eips": List,
"BandwidthPackageId": String
}
}
Properties
|
Parameter |
Type |
Required |
Update allowed |
Description |
Constraints |
|
Eips |
List |
Yes |
No |
The EIPs to add to the shared bandwidth instance. |
None. |
|
BandwidthPackageId |
String |
Yes |
No |
The ID of the shared bandwidth instance. |
None. |
Eips syntax
"Eips": [
{
"Bandwidth": Integer,
"AllocationId": String,
"IpType": String
}
]
Eips properties
|
Parameter |
Type |
Required |
Update allowed |
Description |
Constraints |
|
Bandwidth |
Integer |
No |
No |
The maximum bandwidth of the EIP. Unit: Mbit/s. |
A value of 0 indicates unlimited bandwidth. Default value: 0. |
|
AllocationId |
String |
Yes |
No |
The ID of the EIP instance. |
None. |
|
IpType |
String |
No |
No |
The network type. |
Valid values:
|
Return values
Fn::GetAtt
-
AllocationIds: The IDs of the EIPs.
-
IpAddresses: The IP addresses of the EIPs.
Examples
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
BandwidthPackageId:
Type: String
Description: The ID of the shared bandwidth instance.
Resources:
CommonBandwidthPackageIp:
Type: ALIYUN::VPC::CommonBandwidthPackageIp
Properties:
Eips:
- Bandwidth: 5
AllocationId: eip-8vbwv47kgXXXXXXXXX
BandwidthPackageId:
Ref: BandwidthPackageId
Outputs:
AllocationIds:
Description: The allocation IDs of the EIPs in the shared bandwidth package.
Value:
Fn::GetAtt:
- CommonBandwidthPackageIp
- AllocationIds
IpAddresses:
Description: The IP addresses of the EIPs in the shared bandwidth package.
Value:
Fn::GetAtt:
- CommonBandwidthPackageIp
- IpAddresses{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"BandwidthPackageId": {
"Type": "String",
"Description": "The ID of the shared bandwidth instance."
}
},
"Resources": {
"CommonBandwidthPackageIp": {
"Type": "ALIYUN::VPC::CommonBandwidthPackageIp",
"Properties": {
"Eips": [
{
"Bandwidth": 5,
"AllocationId": "eip-8vbwv47kgXXXXXXXXX"
}
],
"BandwidthPackageId": {
"Ref": "BandwidthPackageId"
}
}
}
},
"Outputs": {
"AllocationIds": {
"Description": "The allocation IDs of the EIPs in the shared bandwidth package.",
"Value": {
"Fn::GetAtt": [
"CommonBandwidthPackageIp",
"AllocationIds"
]
}
},
"IpAddresses": {
"Description": "The IP addresses of the EIPs in the shared bandwidth package.",
"Value": {
"Fn::GetAtt": [
"CommonBandwidthPackageIp",
"IpAddresses"
]
}
}
}
}