ALIYUN::VPC::CustomerGateway is used to create a customer gateway.
Syntax
{
"Type": "ALIYUN::VPC::CustomerGateway",
"Properties": {
"IpAddress": String,
"Description": String,
"Name": String
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
---|---|---|---|---|---|
IpAddress | String | Yes | No | The IP address of the customer gateway. | None |
Description | String | No | Yes | The description of the customer gateway. | The description must be 2 to 256 characters in length. It must start with a letter but cannot start with http:// or https://. |
Name | String | No | Yes | The name of the customer gateway. | The name must be 2 to 128 characters in length and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It must start with a letter but cannot start with http:// or https://. |
Response parameters
Fn::GetAtt
CustomerGatewayId: the ID of the customer gateway.
Examples
{
"ROSTemplateFormatVersion": "2015-09-01",
"Resources": {
"CustomerGateway": {
"Type": "ALIYUN::VPC::CustomerGateway",
"Properties": {
"IpAddress": {
"Ref": "IpAddress"
},
"Description": {
"Ref": "Description"
},
"Name": {
"Ref": "Name"
}
}
}
},
"Parameters": {
"IpAddress": {
"Type": "String",
"Description": "The IP address of the user gateway."
},
"Description": {
"MinLength": 2,
"Type": "String",
"Description": "Description of the user gateway. The length is 2-256 characters and must start with a letter or Chinese, but cannot start with http:// or https://.",
"MaxLength": 256
},
"Name": {
"MinLength": 2,
"Type": "String",
"Description": "The name of the user gateway. The length is 2-128 characters and must start with a letter or Chinese. It can contain numbers, periods (.), underscores (_), and dashes (-). But it can't start with http:// or https://.",
"MaxLength": 128
}
},
"Outputs": {
"CustomerGatewayId": {
"Description": "The ID of the user gateway.",
"Value": {
"Fn::GetAtt": [
"CustomerGateway",
"CustomerGatewayId"
]
}
}
}
}