ALIYUN::PAIDatasetAcc::Endpoint类型用于创建并注册一个数据集加速槽端点。
语法
{
"Type": "ALIYUN::PAIDatasetAcc::Endpoint",
"Properties": {
"InstanceId": String,
"Name": String,
"Type": String,
"VpcId": String,
"VswitchId": String
}
}
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
InstanceId | String | 是 | 否 | 所属加速实例的 ID。 | 无 |
Name | String | 是 | 否 | 挂载点的名称。 | 无 |
Type | String | 否 | 否 | 挂载点的网络类型。 | 根据网络类型不同,下列中需要传入的参数也有所不同。
|
VpcId | String | 否 | 否 | 挂载点使用的专有网络 VPC ID。 | 无 |
VswitchId | String | 否 | 否 | 挂载点使用的交换机 VSwitch ID。 | 无 |
返回值
Fn::GetAtt
EndpointId:数据集加速槽挂载点Id。
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
Type:
Type: String
Description:
en: The network type of the Mount Target.
AllowedValues:
- VPC
- INNER
Required: false
VpcId:
AssociationProperty: ALIYUN::ECS::VPC::VPCId
Type: String
Description:
en: The ID of the VPC.
Required: false
InstanceId:
Type: String
Description:
en: The ID of the acceleration instance
Required: true
VswitchId:
Type: String
Description:
en: The ID of the vSwitch.
Required: false
AssociationProperty: ALIYUN::VPC::VSwitch::VSwitchId
AssociationPropertyMetadata:
VpcId: ${VpcId}
Name:
Type: String
Description:
en: The name of the Mount Target.
Required: true
Resources:
ExtensionResource:
Type: ALIYUN::PAIDatasetAcc::Endpoint
Properties:
Type:
Ref: Type
VpcId:
Ref: VpcId
InstanceId:
Ref: InstanceId
VswitchId:
Ref: VswitchId
Name:
Ref: Name
Outputs:
EndpointId:
Description: The ID of the Mount Target.
Value:
Fn::GetAtt:
- ExtensionResource
- EndpointId
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"Type": {
"Type": "String",
"Description": {
"en": "The network type of the Mount Target."
},
"AllowedValues": [
"VPC",
"INNER"
],
"Required": false
},
"VpcId": {
"AssociationProperty": "ALIYUN::ECS::VPC::VPCId",
"Type": "String",
"Description": {
"en": "The ID of the VPC."
},
"Required": false
},
"InstanceId": {
"Type": "String",
"Description": {
"en": "The ID of the acceleration instance"
},
"Required": true
},
"VswitchId": {
"Type": "String",
"Description": {
"en": "The ID of the vSwitch."
},
"Required": false,
"AssociationProperty": "ALIYUN::VPC::VSwitch::VSwitchId",
"AssociationPropertyMetadata": {
"VpcId": "${VpcId}"
}
},
"Name": {
"Type": "String",
"Description": {
"en": "The name of the Mount Target."
},
"Required": true
}
},
"Resources": {
"ExtensionResource": {
"Type": "ALIYUN::PAIDatasetAcc::Endpoint",
"Properties": {
"Type": {
"Ref": "Type"
},
"VpcId": {
"Ref": "VpcId"
},
"InstanceId": {
"Ref": "InstanceId"
},
"VswitchId": {
"Ref": "VswitchId"
},
"Name": {
"Ref": "Name"
}
}
}
},
"Outputs": {
"EndpointId": {
"Description": "The ID of the Mount Target.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"EndpointId"
]
}
}
}
}
该文章对您有帮助吗?