ALIYUN::PAIDatasetAcc::Endpoint

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

挂载点的网络类型。

根据网络类型不同,下列中需要传入的参数也有所不同。

  • VPC:挂载点处于 VPC 网络。

  • INNER:挂载点处于PAI内部网络中,用于 PAI 其他产品进行访问。

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"
        ]
      }
    }
  }
}