Adiciona um ou mais endereços IP elásticos (EIPs) a uma instância de largura de banda compartilhada.
Ao adicionar EIPs, observe os seguintes limites:
Somente EIPs com pagamento conforme o uso são compatíveis.
Os EIPs e a instância de largura de banda compartilhada devem estar na mesma região.
Sintaxe
{
"Type": "ALIYUN::VPC::CommonBandwidthPackageIp",
"Properties": {
"Eips": List,
"BandwidthPackageId": String
}
}
Propriedades
|
Parâmetro |
Tipo |
Obrigatório |
Atualização permitida |
Descrição |
Restrições |
|
Eips |
List |
Sim |
Não |
EIPs para adicionar à instância de largura de banda compartilhada. |
Nenhuma. |
|
BandwidthPackageId |
String |
Sim |
Não |
ID da instância de largura de banda compartilhada. |
Nenhuma. |
Sintaxe de Eips
"Eips": [
{
"Bandwidth": Integer,
"AllocationId": String,
"IpType": String
}
]
Propriedades de Eips
|
Parâmetro |
Tipo |
Obrigatório |
Atualize permitida |
Descrição |
Restrições |
|
Bandwidth |
Integer |
Não |
Não |
Largura de banda máxima do EIP. Unidade: Mbit/s. |
O valor 0 indica largura de banda ilimitada. Valor padrão: 0. |
|
AllocationId |
String |
Sim |
Não |
ID da instância de EIP. |
Nenhuma. |
|
IpType |
String |
Não |
Não |
Tipo de rede. |
Valores válidos:
|
Valores de retorno
Fn::GetAtt
AllocationIds: IDs dos EIPs.
IpAddresses: endereços IP dos EIPs.
Exemplos
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"
]
}
}
}
}