语法
{
"Type": "ALIYUN::PrivateLink::VpcEndpointServiceAttachment",
"Properties": {
"ResourceId": String,
"ResourceType": String,
"ServiceId": String
}
}
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
ResourceId | String | 是 | 否 | 服务资源ID。 | 无 |
ResourceType | String | 是 | 否 | 服务资源类型。 | 取值: slb:表示服务资源类型为传统型负载均衡CLB(Classic Load Balancer)。 alb:表示服务资源类型为应用型负载均衡ALB(Application Load Balancer)。 nlb:表示服务资源类型为网络型负载均衡NLB(Network Load Balancer )。
|
ServiceId | String | 是 | 否 | 要添加服务资源的终端节点服务ID。 | 无 |
示例
YAML
格式
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
ResourceId:
Description: 'The resource id. '
Type: String
ResourceType:
Description: 'The resource type. '
Type: String
ServiceId:
Description: 'The endpoint service that is associated with the endpoint. '
Type: String
Resources:
VpcEndpointServiceAttachment:
Properties:
ResourceId:
Ref: ResourceId
ResourceType:
Ref: ResourceType
ServiceId:
Ref: ServiceId
Type: ALIYUN::PrivateLink::VpcEndpointServiceAttachment
Outputs:
ResourceId:
Description: 'The resource id. '
Value:
Fn::GetAtt:
- VpcEndpointServiceAttachment
- ResourceId
ResourceType:
Description: 'The resource type. '
Value:
Fn::GetAtt:
- VpcEndpointServiceAttachment
- ResourceType
ServiceId:
Description: 'The endpoint service that is associated with the endpoint. '
Value:
Fn::GetAtt:
- VpcEndpointServiceAttachment
- ServiceId
JSON
格式
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"ResourceId": {
"Type": "String",
"Description": "The resource id. "
},
"ResourceType": {
"Type": "String",
"Description": "The resource type. "
},
"ServiceId": {
"Type": "String",
"Description": "The endpoint service that is associated with the endpoint. "
}
},
"Resources": {
"VpcEndpointServiceAttachment": {
"Type": "ALIYUN::PrivateLink::VpcEndpointServiceAttachment",
"Properties": {
"ResourceId": {
"Ref": "ResourceId"
},
"ResourceType": {
"Ref": "ResourceType"
},
"ServiceId": {
"Ref": "ServiceId"
}
}
}
},
"Outputs": {
"ResourceId": {
"Description": "The resource id. ",
"Value": {
"Fn::GetAtt": [
"VpcEndpointServiceAttachment",
"ResourceId"
]
}
},
"ResourceType": {
"Description": "The resource type. ",
"Value": {
"Fn::GetAtt": [
"VpcEndpointServiceAttachment",
"ResourceType"
]
}
},
"ServiceId": {
"Description": "The endpoint service that is associated with the endpoint. ",
"Value": {
"Fn::GetAtt": [
"VpcEndpointServiceAttachment",
"ServiceId"
]
}
}
}
}