The ALIYUN::POLARDB::ApplicationEndpointAddress resource creates a public endpoint for a PolarDB cluster.
Syntax
{
"Type": "ALIYUN::POLARDB::ApplicationEndpointAddress",
"Properties": {
"ApplicationId": String,
"EndpointId": String,
"NetType": String
}
}Properties
Property Name | Type | Required | Updatable | Description | Constraint |
ApplicationId | String | Yes | No | The application ID. | None |
EndpointId | String | Yes | No | The endpoint ID. | None |
NetType | String | Yes | No | The network type for the new connection address. | Values:
|
Return Values
Fn::GetAtt
PrivateEndpoint: The VPC endpoint.PublicEndpoint: The public endpoint.
Examples
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
EndpointId:
Type: String
Description:
en: The id of the endpoint.
Required: true
ApplicationId:
Type: String
Description:
en: The id of the application.
Required: true
NetType:
AssociationPropertyMetadata:
LocaleKey: NetType
Type: String
Description:
en: Network type for adding connection address.
AllowedValues:
- Public
Required: true
Resources:
ApplicationEndpointAddress:
Type: ALIYUN::POLARDB::ApplicationEndpointAddress
Properties:
EndpointId:
Ref: EndpointId
ApplicationId:
Ref: ApplicationId
NetType:
Ref: NetType
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"EndpointId": {
"Type": "String",
"Description": {
"en": "The id of the endpoint."
},
"Required": true
},
"ApplicationId": {
"Type": "String",
"Description": {
"en": "The id of the application."
},
"Required": true
},
"NetType": {
"AssociationPropertyMetadata": {
"LocaleKey": "NetType"
},
"Type": "String",
"Description": {
"en": "Network type for adding connection address."
},
"AllowedValues": [
"Public"
],
"Required": true
}
},
"Resources": {
"ApplicationEndpointAddress": {
"Type": "ALIYUN::POLARDB::ApplicationEndpointAddress",
"Properties": {
"EndpointId": {
"Ref": "EndpointId"
},
"ApplicationId": {
"Ref": "ApplicationId"
},
"NetType": {
"Ref": "NetType"
}
}
}
}
}