ALIYUN::ComputeNest::IntranetConnectorEndpoint类型用于创建Endpoint。
语法
{
  "Type": "ALIYUN::ComputeNest::IntranetConnectorEndpoint",
  "Properties": {
    "EnablePrivateZone": Boolean,
    "Type": String,
    "EndpointRegionId": String,
    "Description": String,
    "VpcId": String,
    "ResourceIds": List,
    "Name": String
  }
}属性
| 属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 | 
| EndpointRegionId | String | 是 | 否 | Endpoint的地域。 | 无 | 
| VpcId | String | 是 | 否 | Endpoint绑定的专有网络。 | 无 | 
| Description | String | 否 | 否 | Endpoint描述 | 长度不得超过500个字符。 | 
| EnablePrivateZone | Boolean | 否 | 否 | 是否开启内网可用区。 | 无 | 
| Name | String | 否 | 否 | Endpoint名称。 | 无 | 
| ResourceIds | List | 否 | 否 | Endpoint实例ID。 | 使用ECS作为Endpoint时,请填写该云服务器的实例ID。最多可以指定2个实例 。实例必须位于配置的VPC下。 | 
| Type | String | 否 | 否 | Endpoint的类型。 | 取值: 
 | 
返回值
Fn::GetAtt
EndpointId:Endpoint的ID。
示例
YAML格式
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  Type:
    Type: String
    Description:
      en: |-
        The type of the endpoint. 
        - Private (default) : private access point
        - Managed: managed access point.
    AllowedValues:
      - Private
      - Managed
    Required: false
  EndpointRegionId:
    Type: String
    Description:
      en: The region ID of the endpoint.
    Required: true
  VpcId:
    AssociationProperty: ALIYUN::ECS::VPC::VPCId
    Type: String
    Description:
      en: The ID of the VPC to which the endpoint belongs.
    Required: true
  ResourceIds:
    AssociationPropertyMetadata:
      Parameter:
        Type: String
        Required: false
    AssociationProperty: List[Parameter]
    Type: Json
    Description:
      en: |-
        Endpoint instance ID, when using ECS as an access point, fill in the instance ID of this ECS. Multiple instances can be specified up to a maximum of 2. The instance is required to be under the passed VPC.
        Hosted access points do not require incoming.
    Required: false
    MaxLength: 2
Resources:
  IntranetConnectEndpoint:
    Type: ALIYUN::ComputeNest::IntranetConnectorEndpoint
    Properties:
      Type:
        Ref: Type
      EndpointRegionId:
        Ref: EndpointRegionId
      VpcId:
        Ref: VpcId
      ResourceIds:
        Ref: ResourceIds
Outputs:
  EndpointId:
    Description: The ID of the endpoint.
    Value:
      Fn::GetAtt:
        - IntranetConnectEndpoint
        - EndpointId
JSON格式
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "Type": {
      "Type": "String",
      "Description": {
        "en": "The type of the endpoint.\n- Private (default) : private access point\n- Managed: managed access point."
      },
      "AllowedValues": [
        "Private",
        "Managed"
      ],
      "Required": false
    },
    "EndpointRegionId": {
      "Type": "String",
      "Description": {
        "en": "The region ID of the endpoint."
      },
      "Required": true
    },
    "VpcId": {
      "AssociationProperty": "ALIYUN::ECS::VPC::VPCId",
      "Type": "String",
      "Description": {
        "en": "The ID of the VPC to which the endpoint belongs."
      },
      "Required": true
    },
    "ResourceIds": {
      "AssociationPropertyMetadata": {
        "Parameter": {
          "Type": "String",
          "Required": false
        }
      },
      "AssociationProperty": "List[Parameter]",
      "Type": "Json",
      "Description": {
        "en": "Endpoint instance ID, when using ECS as an access point, fill in the instance ID of this ECS. Multiple instances can be specified up to a maximum of 2. The instance is required to be under the passed VPC.\nHosted access points do not require incoming."
      },
      "Required": false,
      "MaxLength": 2
    }
  },
  "Resources": {
    "IntranetConnectEndpoint": {
      "Type": "ALIYUN::ComputeNest::IntranetConnectorEndpoint",
      "Properties": {
        "Type": {
          "Ref": "Type"
        },
        "EndpointRegionId": {
          "Ref": "EndpointRegionId"
        },
        "VpcId": {
          "Ref": "VpcId"
        },
        "ResourceIds": {
          "Ref": "ResourceIds"
        }
      }
    }
  },
  "Outputs": {
    "EndpointId": {
      "Description": "The ID of the endpoint.",
      "Value": {
        "Fn::GetAtt": [
          "IntranetConnectEndpoint",
          "EndpointId"
        ]
      }
    }
  }
}
                        该文章对您有帮助吗?