Todos os produtos
Search
Central de documentação

Resource Orchestration Service:ALIYUN::VPC::VpcGatewayEndpoint

Última atualização: Jun 27, 2026

Crie um gateway endpoint.

Sintaxe

{
  "Type": "ALIYUN::VPC::VpcGatewayEndpoint",
  "Properties": {
    "ServiceName": String,
    "VpcId": String,
    "EndpointName": String,
    "EndpointDescription": String,
    "PolicyDocument": String,
    "ResourceGroupId": String,
    "Tags": List
  }
}

Propriedades

Propriedade

Tipo

Obrigatória

Editável

Descrição

Restrição

ServiceName

String

Sim

Não

Nome do serviço de endpoint.

Nenhuma.

VpcId

String

Sim

Não

ID da Virtual Private Cloud (VPC) onde você deseja criar o gateway endpoint.

Nenhuma.

EndpointName

String

Não

Sim

Nome do gateway endpoint.

O nome deve ter de 1 a 128 caracteres.

EndpointDescription

String

Não

Sim

Descrição do gateway endpoint.

A descrição deve ter de 1 a 255 caracteres.

PolicyDocument

String

Não

Sim

Política de acesso ao serviço de nuvem.

Para obter mais informações sobre a sintaxe e a estrutura das políticas de acesso, consulte Sintaxe e estrutura de políticas.

Nota
  • Especifique esta propriedade se o serviço de endpoint selecionado oferecer suporte a políticas de acesso.

  • Deixe esta propriedade vazia caso o serviço de endpoint selecionado não ofereça suporte a políticas de acesso.

  • Chame a operação ListVpcEndpointServicesByEndUser para verificar se o serviço de endpoint oferece suporte a políticas de acesso. Se o valor SupportPolicy na resposta for true, o serviço oferece esse suporte.

ResourceGroupId

String

Não

Não

ID do grupo de recursos ao qual o gateway endpoint pertence.

Nenhuma.

Tags

List

Não

Não

Tags a adicionar ao gateway endpoint.

Adicione até 20 tags. Para obter mais informações, consulte Propriedades de Tags.

Sintaxe de Tags

"Tags": [
  {
    "Value": String,
    "Key": String
  }
]

Propriedades de Tags

Propriedade

Tipo

Obrigatória

Editável

Descrição

Restrição

Key

String

Sim

Não

Chave da tag a adicionar ao gateway endpoint.

A chave da tag não pode ser uma string vazia.

A chave da tag pode ter até 128 caracteres e não pode começar com aliyun ou acs:. Não pode conter http:// ou https://.

Value

String

Não

Não

Valor da tag a adicionar ao gateway endpoint.

O valor da tag pode ser uma string vazia.

O valor da tag pode ter até 128 caracteres e não pode começar com aliyun ou acs:. Não pode conter http:// ou https://.

Valores de retorno

Fn::GetAtt

EndpointId: ID do gateway endpoint.

Exemplos

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  VpcId:
    AssociationProperty: ALIYUN::ECS::VPC::VPCId
    Type: String
    Description:
      en: |-
        The VPC ID of the gateway endpoint is to be created.
        The VPC must be in the same region as the gateway endpoint.
    Required: true
  ServiceName:
    Type: String
    Description:
      en: Terminal service name.
    Required: true
Resources:
  VpcGatewayEndpoint:
    Type: ALIYUN::VPC::VpcGatewayEndpoint
    Properties:
      VpcId:
        Ref: VpcId
      ServiceName:
        Ref: ServiceName
Outputs:
  EndpointId:
    Description: Gateway endpoint instance ID.
    Value:
      Fn::GetAtt:
        - VpcGatewayEndpoint
        - EndpointId
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "VpcId": {
      "AssociationProperty": "ALIYUN::ECS::VPC::VPCId",
      "Type": "String",
      "Description": {
        "en": "The VPC ID of the gateway endpoint is to be created.\nThe VPC must be in the same region as the gateway endpoint."
      },
      "Required": true
    },
    "ServiceName": {
      "Type": "String",
      "Description": {
        "en": "Terminal service name."
      },
      "Required": true
    }
  },
  "Resources": {
    "VpcGatewayEndpoint": {
      "Type": "ALIYUN::VPC::VpcGatewayEndpoint",
      "Properties": {
        "VpcId": {
          "Ref": "VpcId"
        },
        "ServiceName": {
          "Ref": "ServiceName"
        }
      }
    }
  },
  "Outputs": {
    "EndpointId": {
      "Description": "Gateway endpoint instance ID.",
      "Value": {
        "Fn::GetAtt": [
          "VpcGatewayEndpoint",
          "EndpointId"
        ]
      }
    }
  }
}