1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. VpcepService
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.VpcepService

Explore with Pulumi AI

flexibleengine logo
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

    Provides a resource to manage a VPC endpoint service resource.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const config = new pulumi.Config();
    const vmPort = config.requireObject("vmPort");
    const exampleVpc = new flexibleengine.VpcV1("exampleVpc", {cidr: "192.168.0.0/16"});
    const demo = new flexibleengine.VpcepService("demo", {
        serverType: "VM",
        vpcId: exampleVpc.vpcV1Id,
        portId: vmPort,
        portMappings: [{
            servicePort: 8080,
            terminalPort: 80,
        }],
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    config = pulumi.Config()
    vm_port = config.require_object("vmPort")
    example_vpc = flexibleengine.VpcV1("exampleVpc", cidr="192.168.0.0/16")
    demo = flexibleengine.VpcepService("demo",
        server_type="VM",
        vpc_id=example_vpc.vpc_v1_id,
        port_id=vm_port,
        port_mappings=[{
            "service_port": 8080,
            "terminal_port": 80,
        }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		vmPort := cfg.RequireObject("vmPort")
    		exampleVpc, err := flexibleengine.NewVpcV1(ctx, "exampleVpc", &flexibleengine.VpcV1Args{
    			Cidr: pulumi.String("192.168.0.0/16"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = flexibleengine.NewVpcepService(ctx, "demo", &flexibleengine.VpcepServiceArgs{
    			ServerType: pulumi.String("VM"),
    			VpcId:      exampleVpc.VpcV1Id,
    			PortId:     pulumi.Any(vmPort),
    			PortMappings: flexibleengine.VpcepServicePortMappingArray{
    				&flexibleengine.VpcepServicePortMappingArgs{
    					ServicePort:  pulumi.Float64(8080),
    					TerminalPort: pulumi.Float64(80),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Flexibleengine = Pulumi.Flexibleengine;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var vmPort = config.RequireObject<dynamic>("vmPort");
        var exampleVpc = new Flexibleengine.VpcV1("exampleVpc", new()
        {
            Cidr = "192.168.0.0/16",
        });
    
        var demo = new Flexibleengine.VpcepService("demo", new()
        {
            ServerType = "VM",
            VpcId = exampleVpc.VpcV1Id,
            PortId = vmPort,
            PortMappings = new[]
            {
                new Flexibleengine.Inputs.VpcepServicePortMappingArgs
                {
                    ServicePort = 8080,
                    TerminalPort = 80,
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.VpcV1;
    import com.pulumi.flexibleengine.VpcV1Args;
    import com.pulumi.flexibleengine.VpcepService;
    import com.pulumi.flexibleengine.VpcepServiceArgs;
    import com.pulumi.flexibleengine.inputs.VpcepServicePortMappingArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var config = ctx.config();
            final var vmPort = config.get("vmPort");
            var exampleVpc = new VpcV1("exampleVpc", VpcV1Args.builder()
                .cidr("192.168.0.0/16")
                .build());
    
            var demo = new VpcepService("demo", VpcepServiceArgs.builder()
                .serverType("VM")
                .vpcId(exampleVpc.vpcV1Id())
                .portId(vmPort)
                .portMappings(VpcepServicePortMappingArgs.builder()
                    .servicePort(8080)
                    .terminalPort(80)
                    .build())
                .build());
    
        }
    }
    
    configuration:
      vmPort:
        type: dynamic
    resources:
      exampleVpc:
        type: flexibleengine:VpcV1
        properties:
          cidr: 192.168.0.0/16
      demo:
        type: flexibleengine:VpcepService
        properties:
          serverType: VM
          vpcId: ${exampleVpc.vpcV1Id}
          portId: ${vmPort}
          portMappings:
            - servicePort: 8080
              terminalPort: 80
    

    Create VpcepService Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new VpcepService(name: string, args: VpcepServiceArgs, opts?: CustomResourceOptions);
    @overload
    def VpcepService(resource_name: str,
                     args: VpcepServiceArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def VpcepService(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     port_id: Optional[str] = None,
                     port_mappings: Optional[Sequence[VpcepServicePortMappingArgs]] = None,
                     server_type: Optional[str] = None,
                     vpc_id: Optional[str] = None,
                     approval: Optional[bool] = None,
                     name: Optional[str] = None,
                     permissions: Optional[Sequence[str]] = None,
                     region: Optional[str] = None,
                     service_type: Optional[str] = None,
                     tags: Optional[Mapping[str, str]] = None,
                     timeouts: Optional[VpcepServiceTimeoutsArgs] = None,
                     vpcep_service_id: Optional[str] = None)
    func NewVpcepService(ctx *Context, name string, args VpcepServiceArgs, opts ...ResourceOption) (*VpcepService, error)
    public VpcepService(string name, VpcepServiceArgs args, CustomResourceOptions? opts = null)
    public VpcepService(String name, VpcepServiceArgs args)
    public VpcepService(String name, VpcepServiceArgs args, CustomResourceOptions options)
    
    type: flexibleengine:VpcepService
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args VpcepServiceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args VpcepServiceArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args VpcepServiceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VpcepServiceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VpcepServiceArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var vpcepServiceResource = new Flexibleengine.VpcepService("vpcepServiceResource", new()
    {
        PortId = "string",
        PortMappings = new[]
        {
            new Flexibleengine.Inputs.VpcepServicePortMappingArgs
            {
                Protocol = "string",
                ServicePort = 0,
                TerminalPort = 0,
            },
        },
        ServerType = "string",
        VpcId = "string",
        Approval = false,
        Name = "string",
        Permissions = new[]
        {
            "string",
        },
        Region = "string",
        ServiceType = "string",
        Tags = 
        {
            { "string", "string" },
        },
        Timeouts = new Flexibleengine.Inputs.VpcepServiceTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
        },
        VpcepServiceId = "string",
    });
    
    example, err := flexibleengine.NewVpcepService(ctx, "vpcepServiceResource", &flexibleengine.VpcepServiceArgs{
    	PortId: pulumi.String("string"),
    	PortMappings: flexibleengine.VpcepServicePortMappingArray{
    		&flexibleengine.VpcepServicePortMappingArgs{
    			Protocol:     pulumi.String("string"),
    			ServicePort:  pulumi.Float64(0),
    			TerminalPort: pulumi.Float64(0),
    		},
    	},
    	ServerType: pulumi.String("string"),
    	VpcId:      pulumi.String("string"),
    	Approval:   pulumi.Bool(false),
    	Name:       pulumi.String("string"),
    	Permissions: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Region:      pulumi.String("string"),
    	ServiceType: pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Timeouts: &flexibleengine.VpcepServiceTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    	},
    	VpcepServiceId: pulumi.String("string"),
    })
    
    var vpcepServiceResource = new VpcepService("vpcepServiceResource", VpcepServiceArgs.builder()
        .portId("string")
        .portMappings(VpcepServicePortMappingArgs.builder()
            .protocol("string")
            .servicePort(0)
            .terminalPort(0)
            .build())
        .serverType("string")
        .vpcId("string")
        .approval(false)
        .name("string")
        .permissions("string")
        .region("string")
        .serviceType("string")
        .tags(Map.of("string", "string"))
        .timeouts(VpcepServiceTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .build())
        .vpcepServiceId("string")
        .build());
    
    vpcep_service_resource = flexibleengine.VpcepService("vpcepServiceResource",
        port_id="string",
        port_mappings=[{
            "protocol": "string",
            "service_port": 0,
            "terminal_port": 0,
        }],
        server_type="string",
        vpc_id="string",
        approval=False,
        name="string",
        permissions=["string"],
        region="string",
        service_type="string",
        tags={
            "string": "string",
        },
        timeouts={
            "create": "string",
            "delete": "string",
        },
        vpcep_service_id="string")
    
    const vpcepServiceResource = new flexibleengine.VpcepService("vpcepServiceResource", {
        portId: "string",
        portMappings: [{
            protocol: "string",
            servicePort: 0,
            terminalPort: 0,
        }],
        serverType: "string",
        vpcId: "string",
        approval: false,
        name: "string",
        permissions: ["string"],
        region: "string",
        serviceType: "string",
        tags: {
            string: "string",
        },
        timeouts: {
            create: "string",
            "delete": "string",
        },
        vpcepServiceId: "string",
    });
    
    type: flexibleengine:VpcepService
    properties:
        approval: false
        name: string
        permissions:
            - string
        portId: string
        portMappings:
            - protocol: string
              servicePort: 0
              terminalPort: 0
        region: string
        serverType: string
        serviceType: string
        tags:
            string: string
        timeouts:
            create: string
            delete: string
        vpcId: string
        vpcepServiceId: string
    

    VpcepService Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The VpcepService resource accepts the following input properties:

    PortId string
    Specifies the ID for identifying the backend resource of the VPC endpoint service.

    • If the server_type is VM, the value is the NIC ID of the ECS where the VPC endpoint service is deployed.
    • If the server_type is VIP, the value is the NIC ID of the physical server where virtual resources are created.
    • If the server_type is LB, the value is the ID of the port bound to the private IP address of the load balancer.
    PortMappings List<VpcepServicePortMapping>
    Specified the port mappings opened to the VPC endpoint service. Structure is documented below.
    ServerType string
    Specifies the backend resource type. The value can be VM, VIP or LB. Changing this creates a new VPC endpoint service.
    VpcId string
    Specifies the ID of the VPC to which the backend resource of the VPC endpoint service belongs. Changing this creates a new VPC endpoint service.
    Approval bool
    Specifies whether connection approval is required. The default value is false.
    Name string
    Specifies the name of the VPC endpoint service. The value contains a maximum of 16 characters, including letters, digits, underscores (_), and hyphens (-).
    Permissions List<string>
    Specifies the list of accounts to access the VPC endpoint service. The record is in the iam:domain::domain_id format, while * allows all users to access the VPC endpoint service.
    Region string
    The region in which to create the VPC endpoint service. If omitted, the provider-level region will be used. Changing this creates a new VPC endpoint service resource.
    ServiceType string
    Tags Dictionary<string, string>
    The key/value pairs to associate with the VPC endpoint service.
    Timeouts VpcepServiceTimeouts
    VpcepServiceId string
    The unique ID of the VPC endpoint service.
    PortId string
    Specifies the ID for identifying the backend resource of the VPC endpoint service.

    • If the server_type is VM, the value is the NIC ID of the ECS where the VPC endpoint service is deployed.
    • If the server_type is VIP, the value is the NIC ID of the physical server where virtual resources are created.
    • If the server_type is LB, the value is the ID of the port bound to the private IP address of the load balancer.
    PortMappings []VpcepServicePortMappingArgs
    Specified the port mappings opened to the VPC endpoint service. Structure is documented below.
    ServerType string
    Specifies the backend resource type. The value can be VM, VIP or LB. Changing this creates a new VPC endpoint service.
    VpcId string
    Specifies the ID of the VPC to which the backend resource of the VPC endpoint service belongs. Changing this creates a new VPC endpoint service.
    Approval bool
    Specifies whether connection approval is required. The default value is false.
    Name string
    Specifies the name of the VPC endpoint service. The value contains a maximum of 16 characters, including letters, digits, underscores (_), and hyphens (-).
    Permissions []string
    Specifies the list of accounts to access the VPC endpoint service. The record is in the iam:domain::domain_id format, while * allows all users to access the VPC endpoint service.
    Region string
    The region in which to create the VPC endpoint service. If omitted, the provider-level region will be used. Changing this creates a new VPC endpoint service resource.
    ServiceType string
    Tags map[string]string
    The key/value pairs to associate with the VPC endpoint service.
    Timeouts VpcepServiceTimeoutsArgs
    VpcepServiceId string
    The unique ID of the VPC endpoint service.
    portId String
    Specifies the ID for identifying the backend resource of the VPC endpoint service.

    • If the server_type is VM, the value is the NIC ID of the ECS where the VPC endpoint service is deployed.
    • If the server_type is VIP, the value is the NIC ID of the physical server where virtual resources are created.
    • If the server_type is LB, the value is the ID of the port bound to the private IP address of the load balancer.
    portMappings List<VpcepServicePortMapping>
    Specified the port mappings opened to the VPC endpoint service. Structure is documented below.
    serverType String
    Specifies the backend resource type. The value can be VM, VIP or LB. Changing this creates a new VPC endpoint service.
    vpcId String
    Specifies the ID of the VPC to which the backend resource of the VPC endpoint service belongs. Changing this creates a new VPC endpoint service.
    approval Boolean
    Specifies whether connection approval is required. The default value is false.
    name String
    Specifies the name of the VPC endpoint service. The value contains a maximum of 16 characters, including letters, digits, underscores (_), and hyphens (-).
    permissions List<String>
    Specifies the list of accounts to access the VPC endpoint service. The record is in the iam:domain::domain_id format, while * allows all users to access the VPC endpoint service.
    region String
    The region in which to create the VPC endpoint service. If omitted, the provider-level region will be used. Changing this creates a new VPC endpoint service resource.
    serviceType String
    tags Map<String,String>
    The key/value pairs to associate with the VPC endpoint service.
    timeouts VpcepServiceTimeouts
    vpcepServiceId String
    The unique ID of the VPC endpoint service.
    portId string
    Specifies the ID for identifying the backend resource of the VPC endpoint service.

    • If the server_type is VM, the value is the NIC ID of the ECS where the VPC endpoint service is deployed.
    • If the server_type is VIP, the value is the NIC ID of the physical server where virtual resources are created.
    • If the server_type is LB, the value is the ID of the port bound to the private IP address of the load balancer.
    portMappings VpcepServicePortMapping[]
    Specified the port mappings opened to the VPC endpoint service. Structure is documented below.
    serverType string
    Specifies the backend resource type. The value can be VM, VIP or LB. Changing this creates a new VPC endpoint service.
    vpcId string
    Specifies the ID of the VPC to which the backend resource of the VPC endpoint service belongs. Changing this creates a new VPC endpoint service.
    approval boolean
    Specifies whether connection approval is required. The default value is false.
    name string
    Specifies the name of the VPC endpoint service. The value contains a maximum of 16 characters, including letters, digits, underscores (_), and hyphens (-).
    permissions string[]
    Specifies the list of accounts to access the VPC endpoint service. The record is in the iam:domain::domain_id format, while * allows all users to access the VPC endpoint service.
    region string
    The region in which to create the VPC endpoint service. If omitted, the provider-level region will be used. Changing this creates a new VPC endpoint service resource.
    serviceType string
    tags {[key: string]: string}
    The key/value pairs to associate with the VPC endpoint service.
    timeouts VpcepServiceTimeouts
    vpcepServiceId string
    The unique ID of the VPC endpoint service.
    port_id str
    Specifies the ID for identifying the backend resource of the VPC endpoint service.

    • If the server_type is VM, the value is the NIC ID of the ECS where the VPC endpoint service is deployed.
    • If the server_type is VIP, the value is the NIC ID of the physical server where virtual resources are created.
    • If the server_type is LB, the value is the ID of the port bound to the private IP address of the load balancer.
    port_mappings Sequence[VpcepServicePortMappingArgs]
    Specified the port mappings opened to the VPC endpoint service. Structure is documented below.
    server_type str
    Specifies the backend resource type. The value can be VM, VIP or LB. Changing this creates a new VPC endpoint service.
    vpc_id str
    Specifies the ID of the VPC to which the backend resource of the VPC endpoint service belongs. Changing this creates a new VPC endpoint service.
    approval bool
    Specifies whether connection approval is required. The default value is false.
    name str
    Specifies the name of the VPC endpoint service. The value contains a maximum of 16 characters, including letters, digits, underscores (_), and hyphens (-).
    permissions Sequence[str]
    Specifies the list of accounts to access the VPC endpoint service. The record is in the iam:domain::domain_id format, while * allows all users to access the VPC endpoint service.
    region str
    The region in which to create the VPC endpoint service. If omitted, the provider-level region will be used. Changing this creates a new VPC endpoint service resource.
    service_type str
    tags Mapping[str, str]
    The key/value pairs to associate with the VPC endpoint service.
    timeouts VpcepServiceTimeoutsArgs
    vpcep_service_id str
    The unique ID of the VPC endpoint service.
    portId String
    Specifies the ID for identifying the backend resource of the VPC endpoint service.

    • If the server_type is VM, the value is the NIC ID of the ECS where the VPC endpoint service is deployed.
    • If the server_type is VIP, the value is the NIC ID of the physical server where virtual resources are created.
    • If the server_type is LB, the value is the ID of the port bound to the private IP address of the load balancer.
    portMappings List<Property Map>
    Specified the port mappings opened to the VPC endpoint service. Structure is documented below.
    serverType String
    Specifies the backend resource type. The value can be VM, VIP or LB. Changing this creates a new VPC endpoint service.
    vpcId String
    Specifies the ID of the VPC to which the backend resource of the VPC endpoint service belongs. Changing this creates a new VPC endpoint service.
    approval Boolean
    Specifies whether connection approval is required. The default value is false.
    name String
    Specifies the name of the VPC endpoint service. The value contains a maximum of 16 characters, including letters, digits, underscores (_), and hyphens (-).
    permissions List<String>
    Specifies the list of accounts to access the VPC endpoint service. The record is in the iam:domain::domain_id format, while * allows all users to access the VPC endpoint service.
    region String
    The region in which to create the VPC endpoint service. If omitted, the provider-level region will be used. Changing this creates a new VPC endpoint service resource.
    serviceType String
    tags Map<String>
    The key/value pairs to associate with the VPC endpoint service.
    timeouts Property Map
    vpcepServiceId String
    The unique ID of the VPC endpoint service.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the VpcepService resource produces the following output properties:

    Connections List<VpcepServiceConnection>
    An array of VPC endpoints connect to the VPC endpoint service. Structure is documented below.
    Id string
    The provider-assigned unique ID for this managed resource.
    ServiceName string
    The full name of the VPC endpoint service in the format: region.name.id.
    Status string
    The connection status of the VPC endpoint.
    Connections []VpcepServiceConnection
    An array of VPC endpoints connect to the VPC endpoint service. Structure is documented below.
    Id string
    The provider-assigned unique ID for this managed resource.
    ServiceName string
    The full name of the VPC endpoint service in the format: region.name.id.
    Status string
    The connection status of the VPC endpoint.
    connections List<VpcepServiceConnection>
    An array of VPC endpoints connect to the VPC endpoint service. Structure is documented below.
    id String
    The provider-assigned unique ID for this managed resource.
    serviceName String
    The full name of the VPC endpoint service in the format: region.name.id.
    status String
    The connection status of the VPC endpoint.
    connections VpcepServiceConnection[]
    An array of VPC endpoints connect to the VPC endpoint service. Structure is documented below.
    id string
    The provider-assigned unique ID for this managed resource.
    serviceName string
    The full name of the VPC endpoint service in the format: region.name.id.
    status string
    The connection status of the VPC endpoint.
    connections Sequence[VpcepServiceConnection]
    An array of VPC endpoints connect to the VPC endpoint service. Structure is documented below.
    id str
    The provider-assigned unique ID for this managed resource.
    service_name str
    The full name of the VPC endpoint service in the format: region.name.id.
    status str
    The connection status of the VPC endpoint.
    connections List<Property Map>
    An array of VPC endpoints connect to the VPC endpoint service. Structure is documented below.
    id String
    The provider-assigned unique ID for this managed resource.
    serviceName String
    The full name of the VPC endpoint service in the format: region.name.id.
    status String
    The connection status of the VPC endpoint.

    Look up Existing VpcepService Resource

    Get an existing VpcepService resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: VpcepServiceState, opts?: CustomResourceOptions): VpcepService
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            approval: Optional[bool] = None,
            connections: Optional[Sequence[VpcepServiceConnectionArgs]] = None,
            name: Optional[str] = None,
            permissions: Optional[Sequence[str]] = None,
            port_id: Optional[str] = None,
            port_mappings: Optional[Sequence[VpcepServicePortMappingArgs]] = None,
            region: Optional[str] = None,
            server_type: Optional[str] = None,
            service_name: Optional[str] = None,
            service_type: Optional[str] = None,
            status: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            timeouts: Optional[VpcepServiceTimeoutsArgs] = None,
            vpc_id: Optional[str] = None,
            vpcep_service_id: Optional[str] = None) -> VpcepService
    func GetVpcepService(ctx *Context, name string, id IDInput, state *VpcepServiceState, opts ...ResourceOption) (*VpcepService, error)
    public static VpcepService Get(string name, Input<string> id, VpcepServiceState? state, CustomResourceOptions? opts = null)
    public static VpcepService get(String name, Output<String> id, VpcepServiceState state, CustomResourceOptions options)
    resources:  _:    type: flexibleengine:VpcepService    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Approval bool
    Specifies whether connection approval is required. The default value is false.
    Connections List<VpcepServiceConnection>
    An array of VPC endpoints connect to the VPC endpoint service. Structure is documented below.
    Name string
    Specifies the name of the VPC endpoint service. The value contains a maximum of 16 characters, including letters, digits, underscores (_), and hyphens (-).
    Permissions List<string>
    Specifies the list of accounts to access the VPC endpoint service. The record is in the iam:domain::domain_id format, while * allows all users to access the VPC endpoint service.
    PortId string
    Specifies the ID for identifying the backend resource of the VPC endpoint service.

    • If the server_type is VM, the value is the NIC ID of the ECS where the VPC endpoint service is deployed.
    • If the server_type is VIP, the value is the NIC ID of the physical server where virtual resources are created.
    • If the server_type is LB, the value is the ID of the port bound to the private IP address of the load balancer.
    PortMappings List<VpcepServicePortMapping>
    Specified the port mappings opened to the VPC endpoint service. Structure is documented below.
    Region string
    The region in which to create the VPC endpoint service. If omitted, the provider-level region will be used. Changing this creates a new VPC endpoint service resource.
    ServerType string
    Specifies the backend resource type. The value can be VM, VIP or LB. Changing this creates a new VPC endpoint service.
    ServiceName string
    The full name of the VPC endpoint service in the format: region.name.id.
    ServiceType string
    Status string
    The connection status of the VPC endpoint.
    Tags Dictionary<string, string>
    The key/value pairs to associate with the VPC endpoint service.
    Timeouts VpcepServiceTimeouts
    VpcId string
    Specifies the ID of the VPC to which the backend resource of the VPC endpoint service belongs. Changing this creates a new VPC endpoint service.
    VpcepServiceId string
    The unique ID of the VPC endpoint service.
    Approval bool
    Specifies whether connection approval is required. The default value is false.
    Connections []VpcepServiceConnectionArgs
    An array of VPC endpoints connect to the VPC endpoint service. Structure is documented below.
    Name string
    Specifies the name of the VPC endpoint service. The value contains a maximum of 16 characters, including letters, digits, underscores (_), and hyphens (-).
    Permissions []string
    Specifies the list of accounts to access the VPC endpoint service. The record is in the iam:domain::domain_id format, while * allows all users to access the VPC endpoint service.
    PortId string
    Specifies the ID for identifying the backend resource of the VPC endpoint service.

    • If the server_type is VM, the value is the NIC ID of the ECS where the VPC endpoint service is deployed.
    • If the server_type is VIP, the value is the NIC ID of the physical server where virtual resources are created.
    • If the server_type is LB, the value is the ID of the port bound to the private IP address of the load balancer.
    PortMappings []VpcepServicePortMappingArgs
    Specified the port mappings opened to the VPC endpoint service. Structure is documented below.
    Region string
    The region in which to create the VPC endpoint service. If omitted, the provider-level region will be used. Changing this creates a new VPC endpoint service resource.
    ServerType string
    Specifies the backend resource type. The value can be VM, VIP or LB. Changing this creates a new VPC endpoint service.
    ServiceName string
    The full name of the VPC endpoint service in the format: region.name.id.
    ServiceType string
    Status string
    The connection status of the VPC endpoint.
    Tags map[string]string
    The key/value pairs to associate with the VPC endpoint service.
    Timeouts VpcepServiceTimeoutsArgs
    VpcId string
    Specifies the ID of the VPC to which the backend resource of the VPC endpoint service belongs. Changing this creates a new VPC endpoint service.
    VpcepServiceId string
    The unique ID of the VPC endpoint service.
    approval Boolean
    Specifies whether connection approval is required. The default value is false.
    connections List<VpcepServiceConnection>
    An array of VPC endpoints connect to the VPC endpoint service. Structure is documented below.
    name String
    Specifies the name of the VPC endpoint service. The value contains a maximum of 16 characters, including letters, digits, underscores (_), and hyphens (-).
    permissions List<String>
    Specifies the list of accounts to access the VPC endpoint service. The record is in the iam:domain::domain_id format, while * allows all users to access the VPC endpoint service.
    portId String
    Specifies the ID for identifying the backend resource of the VPC endpoint service.

    • If the server_type is VM, the value is the NIC ID of the ECS where the VPC endpoint service is deployed.
    • If the server_type is VIP, the value is the NIC ID of the physical server where virtual resources are created.
    • If the server_type is LB, the value is the ID of the port bound to the private IP address of the load balancer.
    portMappings List<VpcepServicePortMapping>
    Specified the port mappings opened to the VPC endpoint service. Structure is documented below.
    region String
    The region in which to create the VPC endpoint service. If omitted, the provider-level region will be used. Changing this creates a new VPC endpoint service resource.
    serverType String
    Specifies the backend resource type. The value can be VM, VIP or LB. Changing this creates a new VPC endpoint service.
    serviceName String
    The full name of the VPC endpoint service in the format: region.name.id.
    serviceType String
    status String
    The connection status of the VPC endpoint.
    tags Map<String,String>
    The key/value pairs to associate with the VPC endpoint service.
    timeouts VpcepServiceTimeouts
    vpcId String
    Specifies the ID of the VPC to which the backend resource of the VPC endpoint service belongs. Changing this creates a new VPC endpoint service.
    vpcepServiceId String
    The unique ID of the VPC endpoint service.
    approval boolean
    Specifies whether connection approval is required. The default value is false.
    connections VpcepServiceConnection[]
    An array of VPC endpoints connect to the VPC endpoint service. Structure is documented below.
    name string
    Specifies the name of the VPC endpoint service. The value contains a maximum of 16 characters, including letters, digits, underscores (_), and hyphens (-).
    permissions string[]
    Specifies the list of accounts to access the VPC endpoint service. The record is in the iam:domain::domain_id format, while * allows all users to access the VPC endpoint service.
    portId string
    Specifies the ID for identifying the backend resource of the VPC endpoint service.

    • If the server_type is VM, the value is the NIC ID of the ECS where the VPC endpoint service is deployed.
    • If the server_type is VIP, the value is the NIC ID of the physical server where virtual resources are created.
    • If the server_type is LB, the value is the ID of the port bound to the private IP address of the load balancer.
    portMappings VpcepServicePortMapping[]
    Specified the port mappings opened to the VPC endpoint service. Structure is documented below.
    region string
    The region in which to create the VPC endpoint service. If omitted, the provider-level region will be used. Changing this creates a new VPC endpoint service resource.
    serverType string
    Specifies the backend resource type. The value can be VM, VIP or LB. Changing this creates a new VPC endpoint service.
    serviceName string
    The full name of the VPC endpoint service in the format: region.name.id.
    serviceType string
    status string
    The connection status of the VPC endpoint.
    tags {[key: string]: string}
    The key/value pairs to associate with the VPC endpoint service.
    timeouts VpcepServiceTimeouts
    vpcId string
    Specifies the ID of the VPC to which the backend resource of the VPC endpoint service belongs. Changing this creates a new VPC endpoint service.
    vpcepServiceId string
    The unique ID of the VPC endpoint service.
    approval bool
    Specifies whether connection approval is required. The default value is false.
    connections Sequence[VpcepServiceConnectionArgs]
    An array of VPC endpoints connect to the VPC endpoint service. Structure is documented below.
    name str
    Specifies the name of the VPC endpoint service. The value contains a maximum of 16 characters, including letters, digits, underscores (_), and hyphens (-).
    permissions Sequence[str]
    Specifies the list of accounts to access the VPC endpoint service. The record is in the iam:domain::domain_id format, while * allows all users to access the VPC endpoint service.
    port_id str
    Specifies the ID for identifying the backend resource of the VPC endpoint service.

    • If the server_type is VM, the value is the NIC ID of the ECS where the VPC endpoint service is deployed.
    • If the server_type is VIP, the value is the NIC ID of the physical server where virtual resources are created.
    • If the server_type is LB, the value is the ID of the port bound to the private IP address of the load balancer.
    port_mappings Sequence[VpcepServicePortMappingArgs]
    Specified the port mappings opened to the VPC endpoint service. Structure is documented below.
    region str
    The region in which to create the VPC endpoint service. If omitted, the provider-level region will be used. Changing this creates a new VPC endpoint service resource.
    server_type str
    Specifies the backend resource type. The value can be VM, VIP or LB. Changing this creates a new VPC endpoint service.
    service_name str
    The full name of the VPC endpoint service in the format: region.name.id.
    service_type str
    status str
    The connection status of the VPC endpoint.
    tags Mapping[str, str]
    The key/value pairs to associate with the VPC endpoint service.
    timeouts VpcepServiceTimeoutsArgs
    vpc_id str
    Specifies the ID of the VPC to which the backend resource of the VPC endpoint service belongs. Changing this creates a new VPC endpoint service.
    vpcep_service_id str
    The unique ID of the VPC endpoint service.
    approval Boolean
    Specifies whether connection approval is required. The default value is false.
    connections List<Property Map>
    An array of VPC endpoints connect to the VPC endpoint service. Structure is documented below.
    name String
    Specifies the name of the VPC endpoint service. The value contains a maximum of 16 characters, including letters, digits, underscores (_), and hyphens (-).
    permissions List<String>
    Specifies the list of accounts to access the VPC endpoint service. The record is in the iam:domain::domain_id format, while * allows all users to access the VPC endpoint service.
    portId String
    Specifies the ID for identifying the backend resource of the VPC endpoint service.

    • If the server_type is VM, the value is the NIC ID of the ECS where the VPC endpoint service is deployed.
    • If the server_type is VIP, the value is the NIC ID of the physical server where virtual resources are created.
    • If the server_type is LB, the value is the ID of the port bound to the private IP address of the load balancer.
    portMappings List<Property Map>
    Specified the port mappings opened to the VPC endpoint service. Structure is documented below.
    region String
    The region in which to create the VPC endpoint service. If omitted, the provider-level region will be used. Changing this creates a new VPC endpoint service resource.
    serverType String
    Specifies the backend resource type. The value can be VM, VIP or LB. Changing this creates a new VPC endpoint service.
    serviceName String
    The full name of the VPC endpoint service in the format: region.name.id.
    serviceType String
    status String
    The connection status of the VPC endpoint.
    tags Map<String>
    The key/value pairs to associate with the VPC endpoint service.
    timeouts Property Map
    vpcId String
    Specifies the ID of the VPC to which the backend resource of the VPC endpoint service belongs. Changing this creates a new VPC endpoint service.
    vpcepServiceId String
    The unique ID of the VPC endpoint service.

    Supporting Types

    VpcepServiceConnection, VpcepServiceConnectionArgs

    DomainId string
    The user's domain ID.
    EndpointId string
    The unique ID of the VPC endpoint.
    PacketId double
    The packet ID of the VPC endpoint.
    Status string
    The connection status of the VPC endpoint.
    DomainId string
    The user's domain ID.
    EndpointId string
    The unique ID of the VPC endpoint.
    PacketId float64
    The packet ID of the VPC endpoint.
    Status string
    The connection status of the VPC endpoint.
    domainId String
    The user's domain ID.
    endpointId String
    The unique ID of the VPC endpoint.
    packetId Double
    The packet ID of the VPC endpoint.
    status String
    The connection status of the VPC endpoint.
    domainId string
    The user's domain ID.
    endpointId string
    The unique ID of the VPC endpoint.
    packetId number
    The packet ID of the VPC endpoint.
    status string
    The connection status of the VPC endpoint.
    domain_id str
    The user's domain ID.
    endpoint_id str
    The unique ID of the VPC endpoint.
    packet_id float
    The packet ID of the VPC endpoint.
    status str
    The connection status of the VPC endpoint.
    domainId String
    The user's domain ID.
    endpointId String
    The unique ID of the VPC endpoint.
    packetId Number
    The packet ID of the VPC endpoint.
    status String
    The connection status of the VPC endpoint.

    VpcepServicePortMapping, VpcepServicePortMappingArgs

    Protocol string
    Specifies the protocol used in port mappings. The value can be TCP or UDP. The default value is TCP.
    ServicePort double
    Specifies the port for accessing the VPC endpoint service. This port is provided by the backend service to provide services. The value ranges from 1 to 65535.
    TerminalPort double
    Specifies the port for accessing the VPC endpoint. This port is provided by the VPC endpoint, allowing you to access the VPC endpoint service. The value ranges from 1 to 65535.
    Protocol string
    Specifies the protocol used in port mappings. The value can be TCP or UDP. The default value is TCP.
    ServicePort float64
    Specifies the port for accessing the VPC endpoint service. This port is provided by the backend service to provide services. The value ranges from 1 to 65535.
    TerminalPort float64
    Specifies the port for accessing the VPC endpoint. This port is provided by the VPC endpoint, allowing you to access the VPC endpoint service. The value ranges from 1 to 65535.
    protocol String
    Specifies the protocol used in port mappings. The value can be TCP or UDP. The default value is TCP.
    servicePort Double
    Specifies the port for accessing the VPC endpoint service. This port is provided by the backend service to provide services. The value ranges from 1 to 65535.
    terminalPort Double
    Specifies the port for accessing the VPC endpoint. This port is provided by the VPC endpoint, allowing you to access the VPC endpoint service. The value ranges from 1 to 65535.
    protocol string
    Specifies the protocol used in port mappings. The value can be TCP or UDP. The default value is TCP.
    servicePort number
    Specifies the port for accessing the VPC endpoint service. This port is provided by the backend service to provide services. The value ranges from 1 to 65535.
    terminalPort number
    Specifies the port for accessing the VPC endpoint. This port is provided by the VPC endpoint, allowing you to access the VPC endpoint service. The value ranges from 1 to 65535.
    protocol str
    Specifies the protocol used in port mappings. The value can be TCP or UDP. The default value is TCP.
    service_port float
    Specifies the port for accessing the VPC endpoint service. This port is provided by the backend service to provide services. The value ranges from 1 to 65535.
    terminal_port float
    Specifies the port for accessing the VPC endpoint. This port is provided by the VPC endpoint, allowing you to access the VPC endpoint service. The value ranges from 1 to 65535.
    protocol String
    Specifies the protocol used in port mappings. The value can be TCP or UDP. The default value is TCP.
    servicePort Number
    Specifies the port for accessing the VPC endpoint service. This port is provided by the backend service to provide services. The value ranges from 1 to 65535.
    terminalPort Number
    Specifies the port for accessing the VPC endpoint. This port is provided by the VPC endpoint, allowing you to access the VPC endpoint service. The value ranges from 1 to 65535.

    VpcepServiceTimeouts, VpcepServiceTimeoutsArgs

    Create string
    Delete string
    Create string
    Delete string
    create String
    delete String
    create string
    delete string
    create str
    delete str
    create String
    delete String

    Import

    VPC endpoint services can be imported using the id, e.g.

    $ pulumi import flexibleengine:index/vpcepService:VpcepService test_service 950cd3ba-9d0e-4451-97c1-3e97dd515d46
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
    License
    Notes
    This Pulumi package is based on the flexibleengine Terraform Provider.
    flexibleengine logo
    flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud