La ressource ALIYUN::VPC::AnycastEIPAssociation permet d'associer une adresse IP élastique Anycast (Anycast EIP) à une ressource cloud située dans une région.
Syntaxe
{
"Type": "ALIYUN::VPC::AnycastEIPAssociation",
"Properties": {
"BindInstanceId": String,
"BindInstanceRegionId": String,
"BindInstanceType": String,
"AnycastId": String,
"AssociationMode": String,
"PrivateIpAddress": String,
"PopLocations": List
}
}
Propriétés
Propriété | Type | Obligatoire | Modifiable | Description | Contrainte |
BindInstanceId | String | Oui | Non | ID de la ressource cloud à associer à l'Anycast EIP. | Aucune. |
BindInstanceRegionId | String | Oui | Non | ID de la région de la ressource cloud à associer à l'Anycast EIP. | Aucune. |
BindInstanceType | String | Oui | Non | Type de la ressource cloud à associer à l'Anycast EIP. | Définissez la valeur sur SlbInstance. La valeur SlbInstance spécifie une instance Server Load Balancer (SLB) interne. Vous ne pouvez associer des Anycast EIP qu'aux instances SLB situées dans les régions suivantes :
|
AnycastId | String | Oui | Non | ID de l'Anycast EIP. | Aucune. |
AssociationMode | String | Non | Non | Mode d'association. | Valeurs valides :
|
PrivateIpAddress | String | Non | Non | Adresse IP privée secondaire de l'interface réseau élastique (ENI) à associer à l'Anycast EIP. | Cette propriété est renvoyée uniquement lorsque BindInstanceType est défini sur NetworkInterface. |
PopLocations | List | Non | Non | Points d'accès dans les zones d'accès associées lors de l'association de l'Anycast EIP à la ressource cloud. | Pour plus d'informations, consultez la section « Propriété PopLocations » de cette rubrique. |
Syntaxe de PopLocations
"PopLocations": [
{
"PopLocation": String
}
]
Propriété PopLocations
|
Propriété |
Type |
Obligatoire |
Modifiable |
Description |
Contrainte |
|
PopLocation |
String |
Oui |
Non |
Point d'accès dans les zones d'accès associées lors de l'association de l'Anycast EIP à la ressource cloud. |
Aucune. |
Valeurs de retour
Fn::GetAtt
BindInstanceId : ID de la ressource cloud associée à l'Anycast EIP.
BindInstanceRegionId : ID de la région de la ressource cloud associée à l'Anycast EIP.
BindInstanceType : type de la ressource cloud associée à l'Anycast EIP.
AnycastId : ID de l'Anycast EIP.
Exemples
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
AnycastId:
Description: Anycast EIP instance ID.
Type: String
BindInstanceId:
Description: The ID of the cloud resource instance to be bound.
Type: String
BindInstanceRegionId:
Description: The region ID of the cloud resource instance to be bound.
Type: String
BindInstanceType:
Description: 'The cloud resource instance type to be bound. Valid value: SlbInstance,
SLB instance of private network type.'
Type: String
Resources:
AnycastEIPAssociation:
Properties:
AnycastId:
Ref: AnycastId
BindInstanceId:
Ref: BindInstanceId
BindInstanceRegionId:
Ref: BindInstanceRegionId
BindInstanceType:
Ref: BindInstanceType
Type: ALIYUN::VPC::AnycastEIPAssociation
Outputs:
AnycastId:
Description: Anycast EIP instance ID.
Value:
Fn::GetAtt:
- AnycastEIPAssociation
- AnycastId
BindInstanceId:
Description: The ID of the cloud resource instance to be bound.
Value:
Fn::GetAtt:
- AnycastEIPAssociation
- BindInstanceId
BindInstanceRegionId:
Description: The region ID of the cloud resource instance to be bound.
Value:
Fn::GetAtt:
- AnycastEIPAssociation
- BindInstanceRegionId
BindInstanceType:
Description: The cloud resource instance type to be bound.
Value:
Fn::GetAtt:
- AnycastEIPAssociation
- BindInstanceType{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"BindInstanceId": {
"Type": "String",
"Description": "The ID of the cloud resource instance to be bound."
},
"BindInstanceRegionId": {
"Type": "String",
"Description": "The region ID of the cloud resource instance to be bound."
},
"BindInstanceType": {
"Type": "String",
"Description": "The cloud resource instance type to be bound. Valid value: SlbInstance, SLB instance of private network type."
},
"AnycastId": {
"Type": "String",
"Description": "Anycast EIP instance ID."
}
},
"Resources": {
"AnycastEIPAssociation": {
"Type": "ALIYUN::VPC::AnycastEIPAssociation",
"Properties": {
"BindInstanceId": {
"Ref": "BindInstanceId"
},
"BindInstanceRegionId": {
"Ref": "BindInstanceRegionId"
},
"BindInstanceType": {
"Ref": "BindInstanceType"
},
"AnycastId": {
"Ref": "AnycastId"
}
}
}
},
"Outputs": {
"BindInstanceId": {
"Description": "The ID of the cloud resource instance to be bound.",
"Value": {
"Fn::GetAtt": [
"AnycastEIPAssociation",
"BindInstanceId"
]
}
},
"BindInstanceRegionId": {
"Description": "The region ID of the cloud resource instance to be bound.",
"Value": {
"Fn::GetAtt": [
"AnycastEIPAssociation",
"BindInstanceRegionId"
]
}
},
"BindInstanceType": {
"Description": "The cloud resource instance type to be bound.",
"Value": {
"Fn::GetAtt": [
"AnycastEIPAssociation",
"BindInstanceType"
]
}
},
"AnycastId": {
"Description": "Anycast EIP instance ID.",
"Value": {
"Fn::GetAtt": [
"AnycastEIPAssociation",
"AnycastId"
]
}
}
}
}