Updated on 2023-12-13 GMT+08:00

VPCEndpoint.EndpointService

Element Description

The VPCEndpoint.EndpointService element is used to create a VPC endpoint service. VPC endpoint services are cloud services or users' private services configured in VPCEP.

Element Properties

Table 1 Property Description

Property

Required

Descripiton

serviceType

No

Type: string

vpcId

No

Type: HuaweiCloud.VPC.VPC.Id

portId

No

Type: string

dnsNames

No

Type: string Array

approvalEnabled

No

Type: boolean

serverType

Yes

Type: string

ports

Yes

Type: VPCEndpoint.Ports Array

Relationships Between Elements

Table 2 Relationship description

Description

Target

ContainedIn

VPC.VPC

Return Value

Property

Type

Description

serverType

string

Type of the VPCendpoint's server

Blueprint Example

tosca_definitions_version: huaweicloud_tosca_version_1_0
inputs:
  my-vpc:
    description: ID of the VPC to which the backend resources of the VPC endpoint service belongs
  my-endpointservice_serverType:
    description: endpoint service type
  my-endpointservice_portId:
    description: ID of the backend resources of the VPC endpoint service
node_templates:
  my-endpointservice:
    type: HuaweiCloud.VPCEndpoint.EndpointService
    properties:
      vpcId:
        get_input: my-vpc
      ports:
        - clientPort: 8080
          serverPort: 80
          protocol: TCP
      serverType:
        get_input: my-endpointservice_serverType
      portId:
        get_input: my-endpointservice_portId