ALIYUN::ElasticSearchServerless::Endpoint类型用于创建Endpoint。
语法
{
"Type": "ALIYUN::ElasticSearchServerless::Endpoint",
"Properties": {
"EndpointZones": List,
"Name": String,
"Type": String,
"VpcId": String
}
}
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
EndpointZones | List | 是 | 是 | Endpoint的可用区配置。 | 最多支持配置10组可用区。更多信息,请参考EndpointZones属性。 |
Name | String | 否 | 是 | Endpoint名称。 | 无 |
Type | String | 否 | 否 | Endpoint类型。 | 默认值:VPC。 |
VpcId | String | 否 | 否 | Endpoint绑定的VPC | 无 |
EndpointZones语法
"EndpointZones": [
{
"ZoneId": String,
"VSwitchId": String
}
]
EndpointZones属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
VSwitchId | String | 是 | 否 | 交换机ID。 | 无 |
ZoneId | String | 是 | 否 | 可用区ID。 | 无 |
返回值
Fn::GetAtt
PvlEndpointId:终端节点ID。
EndpointId:Endpoint ID。
Domain:Endpoint 域名。
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
Type:
Type: String
Description:
en: 'Endpoint type, default value: VPC.'
Required: false
VpcId:
AssociationProperty: ALIYUN::ECS::VPC::VPCId
Type: String
Description:
en: The vpc id of the endpoint.
Required: false
EndpointZones:
AssociationPropertyMetadata:
Parameters:
ZoneId:
AssociationProperty: ZoneId
Type: String
Description:
en: Availability zone ID.
Required: true
VSwitchId:
AssociationPropertyMetadata:
VpcId: ${VpcId}
ZoneId: ${ZoneId}
AssociationProperty: ALIYUN::VPC::VSwitch::VSwitchId
Type: String
Description:
en: Virtual switch ID.
Required: true
AssociationProperty: List[Parameters]
Type: Json
Description:
en: The zone configurations of the endpoint.
Required: true
MinLength: 1
MaxLength: 10
Name:
Type: String
Description:
en: The name of the endpoint.
Required: false
Resources:
Endpoint:
Type: ALIYUN::ElasticSearchServerless::Endpoint
Properties:
Type:
Ref: Type
VpcId:
Ref: VpcId
EndpointZones:
Ref: EndpointZones
Name:
Ref: Name
Outputs:
PvlEndpointId:
Description: The Id of the private link endpoint.
Value:
Fn::GetAtt:
- Endpoint
- PvlEndpointId
EndpointId:
Description: The Id of the endpoint.
Value:
Fn::GetAtt:
- Endpoint
- EndpointId
Domain:
Description: The domain of the endpoint.
Value:
Fn::GetAtt:
- Endpoint
- Domain
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"Type": {
"Type": "String",
"Description": {
"en": "Endpoint type, default value: VPC."
},
"Required": false
},
"VpcId": {
"AssociationProperty": "ALIYUN::ECS::VPC::VPCId",
"Type": "String",
"Description": {
"en": "The vpc id of the endpoint."
},
"Required": false
},
"EndpointZones": {
"AssociationPropertyMetadata": {
"Parameters": {
"ZoneId": {
"AssociationProperty": "ZoneId",
"Type": "String",
"Description": {
"en": "Availability zone ID."
},
"Required": true
},
"VSwitchId": {
"AssociationPropertyMetadata": {
"VpcId": "${VpcId}",
"ZoneId": "${ZoneId}"
},
"AssociationProperty": "ALIYUN::VPC::VSwitch::VSwitchId",
"Type": "String",
"Description": {
"en": "Virtual switch ID."
},
"Required": true
}
}
},
"AssociationProperty": "List[Parameters]",
"Type": "Json",
"Description": {
"en": "The zone configurations of the endpoint."
},
"Required": true,
"MinLength": 1,
"MaxLength": 10
},
"Name": {
"Type": "String",
"Description": {
"en": "The name of the endpoint."
},
"Required": false
}
},
"Resources": {
"Endpoint": {
"Type": "ALIYUN::ElasticSearchServerless::Endpoint",
"Properties": {
"Type": {
"Ref": "Type"
},
"VpcId": {
"Ref": "VpcId"
},
"EndpointZones": {
"Ref": "EndpointZones"
},
"Name": {
"Ref": "Name"
}
}
}
},
"Outputs": {
"PvlEndpointId": {
"Description": "The Id of the private link endpoint.",
"Value": {
"Fn::GetAtt": [
"Endpoint",
"PvlEndpointId"
]
}
},
"EndpointId": {
"Description": "The Id of the endpoint.",
"Value": {
"Fn::GetAtt": [
"Endpoint",
"EndpointId"
]
}
},
"Domain": {
"Description": "The domain of the endpoint.",
"Value": {
"Fn::GetAtt": [
"Endpoint",
"Domain"
]
}
}
}
}
该文章对您有帮助吗?