1. Packages
  2. Volcengine
  3. API Docs
  4. privatelink
  5. VpcEndpointServiceResource
Volcengine v0.0.27 published on Tuesday, Dec 10, 2024 by Volcengine

volcengine.privatelink.VpcEndpointServiceResource

Explore with Pulumi AI

Provides a resource to manage privatelink vpc endpoint service resource

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
import * as volcengine from "@volcengine/pulumi";

const fooZones = volcengine.ecs.Zones({});
const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
    vpcName: "acc-test-vpc",
    cidrBlock: "172.16.0.0/16",
});
const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
    subnetName: "acc-test-subnet",
    cidrBlock: "172.16.0.0/24",
    zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
    vpcId: fooVpc.id,
});
const fooClb = new volcengine.clb.Clb("fooClb", {
    type: "public",
    subnetId: fooSubnet.id,
    loadBalancerSpec: "small_1",
    description: "acc-test-demo",
    loadBalancerName: "acc-test-clb",
    loadBalancerBillingType: "PostPaid",
    eipBillingConfig: {
        isp: "BGP",
        eipBillingType: "PostPaidByBandwidth",
        bandwidth: 1,
    },
    tags: [{
        key: "k1",
        value: "v1",
    }],
});
const foo1 = new volcengine.clb.Clb("foo1", {
    type: "public",
    subnetId: fooSubnet.id,
    loadBalancerSpec: "small_1",
    description: "acc-test-demo",
    loadBalancerName: "acc-test-clb-new",
    loadBalancerBillingType: "PostPaid",
    eipBillingConfig: {
        isp: "BGP",
        eipBillingType: "PostPaidByBandwidth",
        bandwidth: 1,
    },
    tags: [{
        key: "k1",
        value: "v1",
    }],
});
const fooVpcEndpointService = new volcengine.privatelink.VpcEndpointService("fooVpcEndpointService", {
    resources: [{
        resourceId: fooClb.id,
        resourceType: "CLB",
    }],
    description: "acc-test",
    autoAcceptEnabled: true,
});
const fooVpcEndpointServiceResource = new volcengine.privatelink.VpcEndpointServiceResource("fooVpcEndpointServiceResource", {
    serviceId: fooVpcEndpointService.id,
    resourceId: foo1.id,
});
Copy
import pulumi
import pulumi_volcengine as volcengine

foo_zones = volcengine.ecs.zones()
foo_vpc = volcengine.vpc.Vpc("fooVpc",
    vpc_name="acc-test-vpc",
    cidr_block="172.16.0.0/16")
foo_subnet = volcengine.vpc.Subnet("fooSubnet",
    subnet_name="acc-test-subnet",
    cidr_block="172.16.0.0/24",
    zone_id=foo_zones.zones[0].id,
    vpc_id=foo_vpc.id)
foo_clb = volcengine.clb.Clb("fooClb",
    type="public",
    subnet_id=foo_subnet.id,
    load_balancer_spec="small_1",
    description="acc-test-demo",
    load_balancer_name="acc-test-clb",
    load_balancer_billing_type="PostPaid",
    eip_billing_config=volcengine.clb.ClbEipBillingConfigArgs(
        isp="BGP",
        eip_billing_type="PostPaidByBandwidth",
        bandwidth=1,
    ),
    tags=[volcengine.clb.ClbTagArgs(
        key="k1",
        value="v1",
    )])
foo1 = volcengine.clb.Clb("foo1",
    type="public",
    subnet_id=foo_subnet.id,
    load_balancer_spec="small_1",
    description="acc-test-demo",
    load_balancer_name="acc-test-clb-new",
    load_balancer_billing_type="PostPaid",
    eip_billing_config=volcengine.clb.ClbEipBillingConfigArgs(
        isp="BGP",
        eip_billing_type="PostPaidByBandwidth",
        bandwidth=1,
    ),
    tags=[volcengine.clb.ClbTagArgs(
        key="k1",
        value="v1",
    )])
foo_vpc_endpoint_service = volcengine.privatelink.VpcEndpointService("fooVpcEndpointService",
    resources=[volcengine.privatelink.VpcEndpointServiceResourceArgs(
        resource_id=foo_clb.id,
        resource_type="CLB",
    )],
    description="acc-test",
    auto_accept_enabled=True)
foo_vpc_endpoint_service_resource = volcengine.privatelink.VpcEndpointServiceResource("fooVpcEndpointServiceResource",
    service_id=foo_vpc_endpoint_service.id,
    resource_id=foo1.id)
Copy
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/clb"
	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/ecs"
	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/privatelink"
	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vpc"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		fooZones, err := ecs.Zones(ctx, nil, nil)
		if err != nil {
			return err
		}
		fooVpc, err := vpc.NewVpc(ctx, "fooVpc", &vpc.VpcArgs{
			VpcName:   pulumi.String("acc-test-vpc"),
			CidrBlock: pulumi.String("172.16.0.0/16"),
		})
		if err != nil {
			return err
		}
		fooSubnet, err := vpc.NewSubnet(ctx, "fooSubnet", &vpc.SubnetArgs{
			SubnetName: pulumi.String("acc-test-subnet"),
			CidrBlock:  pulumi.String("172.16.0.0/24"),
			ZoneId:     pulumi.String(fooZones.Zones[0].Id),
			VpcId:      fooVpc.ID(),
		})
		if err != nil {
			return err
		}
		fooClb, err := clb.NewClb(ctx, "fooClb", &clb.ClbArgs{
			Type:                    pulumi.String("public"),
			SubnetId:                fooSubnet.ID(),
			LoadBalancerSpec:        pulumi.String("small_1"),
			Description:             pulumi.String("acc-test-demo"),
			LoadBalancerName:        pulumi.String("acc-test-clb"),
			LoadBalancerBillingType: pulumi.String("PostPaid"),
			EipBillingConfig: &clb.ClbEipBillingConfigArgs{
				Isp:            pulumi.String("BGP"),
				EipBillingType: pulumi.String("PostPaidByBandwidth"),
				Bandwidth:      pulumi.Int(1),
			},
			Tags: clb.ClbTagArray{
				&clb.ClbTagArgs{
					Key:   pulumi.String("k1"),
					Value: pulumi.String("v1"),
				},
			},
		})
		if err != nil {
			return err
		}
		foo1, err := clb.NewClb(ctx, "foo1", &clb.ClbArgs{
			Type:                    pulumi.String("public"),
			SubnetId:                fooSubnet.ID(),
			LoadBalancerSpec:        pulumi.String("small_1"),
			Description:             pulumi.String("acc-test-demo"),
			LoadBalancerName:        pulumi.String("acc-test-clb-new"),
			LoadBalancerBillingType: pulumi.String("PostPaid"),
			EipBillingConfig: &clb.ClbEipBillingConfigArgs{
				Isp:            pulumi.String("BGP"),
				EipBillingType: pulumi.String("PostPaidByBandwidth"),
				Bandwidth:      pulumi.Int(1),
			},
			Tags: clb.ClbTagArray{
				&clb.ClbTagArgs{
					Key:   pulumi.String("k1"),
					Value: pulumi.String("v1"),
				},
			},
		})
		if err != nil {
			return err
		}
		fooVpcEndpointService, err := privatelink.NewVpcEndpointService(ctx, "fooVpcEndpointService", &privatelink.VpcEndpointServiceArgs{
			Resources: privatelink.VpcEndpointServiceResourceTypeArray{
				&privatelink.VpcEndpointServiceResourceTypeArgs{
					ResourceId:   fooClb.ID(),
					ResourceType: pulumi.String("CLB"),
				},
			},
			Description:       pulumi.String("acc-test"),
			AutoAcceptEnabled: pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		_, err = privatelink.NewVpcEndpointServiceResource(ctx, "fooVpcEndpointServiceResource", &privatelink.VpcEndpointServiceResourceArgs{
			ServiceId:  fooVpcEndpointService.ID(),
			ResourceId: foo1.ID(),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;

return await Deployment.RunAsync(() => 
{
    var fooZones = Volcengine.Ecs.Zones.Invoke();

    var fooVpc = new Volcengine.Vpc.Vpc("fooVpc", new()
    {
        VpcName = "acc-test-vpc",
        CidrBlock = "172.16.0.0/16",
    });

    var fooSubnet = new Volcengine.Vpc.Subnet("fooSubnet", new()
    {
        SubnetName = "acc-test-subnet",
        CidrBlock = "172.16.0.0/24",
        ZoneId = fooZones.Apply(zonesResult => zonesResult.Zones[0]?.Id),
        VpcId = fooVpc.Id,
    });

    var fooClb = new Volcengine.Clb.Clb("fooClb", new()
    {
        Type = "public",
        SubnetId = fooSubnet.Id,
        LoadBalancerSpec = "small_1",
        Description = "acc-test-demo",
        LoadBalancerName = "acc-test-clb",
        LoadBalancerBillingType = "PostPaid",
        EipBillingConfig = new Volcengine.Clb.Inputs.ClbEipBillingConfigArgs
        {
            Isp = "BGP",
            EipBillingType = "PostPaidByBandwidth",
            Bandwidth = 1,
        },
        Tags = new[]
        {
            new Volcengine.Clb.Inputs.ClbTagArgs
            {
                Key = "k1",
                Value = "v1",
            },
        },
    });

    var foo1 = new Volcengine.Clb.Clb("foo1", new()
    {
        Type = "public",
        SubnetId = fooSubnet.Id,
        LoadBalancerSpec = "small_1",
        Description = "acc-test-demo",
        LoadBalancerName = "acc-test-clb-new",
        LoadBalancerBillingType = "PostPaid",
        EipBillingConfig = new Volcengine.Clb.Inputs.ClbEipBillingConfigArgs
        {
            Isp = "BGP",
            EipBillingType = "PostPaidByBandwidth",
            Bandwidth = 1,
        },
        Tags = new[]
        {
            new Volcengine.Clb.Inputs.ClbTagArgs
            {
                Key = "k1",
                Value = "v1",
            },
        },
    });

    var fooVpcEndpointService = new Volcengine.Privatelink.VpcEndpointService("fooVpcEndpointService", new()
    {
        Resources = new[]
        {
            new Volcengine.Privatelink.Inputs.VpcEndpointServiceResourceArgs
            {
                ResourceId = fooClb.Id,
                ResourceType = "CLB",
            },
        },
        Description = "acc-test",
        AutoAcceptEnabled = true,
    });

    var fooVpcEndpointServiceResource = new Volcengine.Privatelink.VpcEndpointServiceResource("fooVpcEndpointServiceResource", new()
    {
        ServiceId = fooVpcEndpointService.Id,
        ResourceId = foo1.Id,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.ecs.EcsFunctions;
import com.pulumi.volcengine.ecs.inputs.ZonesArgs;
import com.pulumi.volcengine.vpc.Vpc;
import com.pulumi.volcengine.vpc.VpcArgs;
import com.pulumi.volcengine.vpc.Subnet;
import com.pulumi.volcengine.vpc.SubnetArgs;
import com.pulumi.volcengine.clb.Clb;
import com.pulumi.volcengine.clb.ClbArgs;
import com.pulumi.volcengine.clb.inputs.ClbEipBillingConfigArgs;
import com.pulumi.volcengine.clb.inputs.ClbTagArgs;
import com.pulumi.volcengine.privatelink.VpcEndpointService;
import com.pulumi.volcengine.privatelink.VpcEndpointServiceArgs;
import com.pulumi.volcengine.privatelink.inputs.VpcEndpointServiceResourceArgs;
import com.pulumi.volcengine.privatelink.VpcEndpointServiceResource;
import com.pulumi.volcengine.privatelink.VpcEndpointServiceResourceArgs;
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 fooZones = EcsFunctions.Zones();

        var fooVpc = new Vpc("fooVpc", VpcArgs.builder()        
            .vpcName("acc-test-vpc")
            .cidrBlock("172.16.0.0/16")
            .build());

        var fooSubnet = new Subnet("fooSubnet", SubnetArgs.builder()        
            .subnetName("acc-test-subnet")
            .cidrBlock("172.16.0.0/24")
            .zoneId(fooZones.applyValue(zonesResult -> zonesResult.zones()[0].id()))
            .vpcId(fooVpc.id())
            .build());

        var fooClb = new Clb("fooClb", ClbArgs.builder()        
            .type("public")
            .subnetId(fooSubnet.id())
            .loadBalancerSpec("small_1")
            .description("acc-test-demo")
            .loadBalancerName("acc-test-clb")
            .loadBalancerBillingType("PostPaid")
            .eipBillingConfig(ClbEipBillingConfigArgs.builder()
                .isp("BGP")
                .eipBillingType("PostPaidByBandwidth")
                .bandwidth(1)
                .build())
            .tags(ClbTagArgs.builder()
                .key("k1")
                .value("v1")
                .build())
            .build());

        var foo1 = new Clb("foo1", ClbArgs.builder()        
            .type("public")
            .subnetId(fooSubnet.id())
            .loadBalancerSpec("small_1")
            .description("acc-test-demo")
            .loadBalancerName("acc-test-clb-new")
            .loadBalancerBillingType("PostPaid")
            .eipBillingConfig(ClbEipBillingConfigArgs.builder()
                .isp("BGP")
                .eipBillingType("PostPaidByBandwidth")
                .bandwidth(1)
                .build())
            .tags(ClbTagArgs.builder()
                .key("k1")
                .value("v1")
                .build())
            .build());

        var fooVpcEndpointService = new VpcEndpointService("fooVpcEndpointService", VpcEndpointServiceArgs.builder()        
            .resources(VpcEndpointServiceResourceArgs.builder()
                .resourceId(fooClb.id())
                .resourceType("CLB")
                .build())
            .description("acc-test")
            .autoAcceptEnabled(true)
            .build());

        var fooVpcEndpointServiceResource = new VpcEndpointServiceResource("fooVpcEndpointServiceResource", VpcEndpointServiceResourceArgs.builder()        
            .serviceId(fooVpcEndpointService.id())
            .resourceId(foo1.id())
            .build());

    }
}
Copy
resources:
  fooVpc:
    type: volcengine:vpc:Vpc
    properties:
      vpcName: acc-test-vpc
      cidrBlock: 172.16.0.0/16
  fooSubnet:
    type: volcengine:vpc:Subnet
    properties:
      subnetName: acc-test-subnet
      cidrBlock: 172.16.0.0/24
      zoneId: ${fooZones.zones[0].id}
      vpcId: ${fooVpc.id}
  fooClb:
    type: volcengine:clb:Clb
    properties:
      type: public
      subnetId: ${fooSubnet.id}
      loadBalancerSpec: small_1
      description: acc-test-demo
      loadBalancerName: acc-test-clb
      loadBalancerBillingType: PostPaid
      eipBillingConfig:
        isp: BGP
        eipBillingType: PostPaidByBandwidth
        bandwidth: 1
      tags:
        - key: k1
          value: v1
  foo1:
    type: volcengine:clb:Clb
    properties:
      type: public
      subnetId: ${fooSubnet.id}
      loadBalancerSpec: small_1
      description: acc-test-demo
      loadBalancerName: acc-test-clb-new
      loadBalancerBillingType: PostPaid
      eipBillingConfig:
        isp: BGP
        eipBillingType: PostPaidByBandwidth
        bandwidth: 1
      tags:
        - key: k1
          value: v1
  fooVpcEndpointService:
    type: volcengine:privatelink:VpcEndpointService
    properties:
      resources:
        - resourceId: ${fooClb.id}
          resourceType: CLB
      description: acc-test
      autoAcceptEnabled: true
  fooVpcEndpointServiceResource:
    type: volcengine:privatelink:VpcEndpointServiceResource
    properties:
      serviceId: ${fooVpcEndpointService.id}
      resourceId: ${foo1.id}
variables:
  fooZones:
    fn::invoke:
      Function: volcengine:ecs:Zones
      Arguments: {}
Copy

Create VpcEndpointServiceResource Resource

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

Constructor syntax

new VpcEndpointServiceResource(name: string, args: VpcEndpointServiceResourceArgs, opts?: CustomResourceOptions);
@overload
def VpcEndpointServiceResource(resource_name: str,
                               args: VpcEndpointServiceResourceInitArgs,
                               opts: Optional[ResourceOptions] = None)

@overload
def VpcEndpointServiceResource(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               resource_id: Optional[str] = None,
                               service_id: Optional[str] = None)
func NewVpcEndpointServiceResource(ctx *Context, name string, args VpcEndpointServiceResourceArgs, opts ...ResourceOption) (*VpcEndpointServiceResource, error)
public VpcEndpointServiceResource(string name, VpcEndpointServiceResourceArgs args, CustomResourceOptions? opts = null)
public VpcEndpointServiceResource(String name, VpcEndpointServiceResourceArgs args)
public VpcEndpointServiceResource(String name, VpcEndpointServiceResourceArgs args, CustomResourceOptions options)
type: volcengine:privatelink:VpcEndpointServiceResource
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. VpcEndpointServiceResourceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. VpcEndpointServiceResourceInitArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. VpcEndpointServiceResourceArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. VpcEndpointServiceResourceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. VpcEndpointServiceResourceArgs
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 vpcEndpointServiceResourceResource = new Volcengine.Privatelink.VpcEndpointServiceResource("vpcEndpointServiceResourceResource", new()
{
    ResourceId = "string",
    ServiceId = "string",
});
Copy
example, err := privatelink.NewVpcEndpointServiceResource(ctx, "vpcEndpointServiceResourceResource", &privatelink.VpcEndpointServiceResourceArgs{
	ResourceId: pulumi.String("string"),
	ServiceId:  pulumi.String("string"),
})
Copy
var vpcEndpointServiceResourceResource = new VpcEndpointServiceResource("vpcEndpointServiceResourceResource", VpcEndpointServiceResourceArgs.builder()
    .resourceId("string")
    .serviceId("string")
    .build());
Copy
vpc_endpoint_service_resource_resource = volcengine.privatelink.VpcEndpointServiceResource("vpcEndpointServiceResourceResource",
    resource_id="string",
    service_id="string")
Copy
const vpcEndpointServiceResourceResource = new volcengine.privatelink.VpcEndpointServiceResource("vpcEndpointServiceResourceResource", {
    resourceId: "string",
    serviceId: "string",
});
Copy
type: volcengine:privatelink:VpcEndpointServiceResource
properties:
    resourceId: string
    serviceId: string
Copy

VpcEndpointServiceResource 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 VpcEndpointServiceResource resource accepts the following input properties:

ResourceId
This property is required.
Changes to this property will trigger replacement.
string
The id of resource. It is not recommended to use this resource for binding resources, it is recommended to use the resources field of vpc_endpoint_service for binding. If using this resource and vpc_endpoint_service jointly for operations, use lifecycle ignore_changes to suppress changes to the resources field in vpc_endpoint_service.
ServiceId
This property is required.
Changes to this property will trigger replacement.
string
The id of service.
ResourceId
This property is required.
Changes to this property will trigger replacement.
string
The id of resource. It is not recommended to use this resource for binding resources, it is recommended to use the resources field of vpc_endpoint_service for binding. If using this resource and vpc_endpoint_service jointly for operations, use lifecycle ignore_changes to suppress changes to the resources field in vpc_endpoint_service.
ServiceId
This property is required.
Changes to this property will trigger replacement.
string
The id of service.
resourceId
This property is required.
Changes to this property will trigger replacement.
String
The id of resource. It is not recommended to use this resource for binding resources, it is recommended to use the resources field of vpc_endpoint_service for binding. If using this resource and vpc_endpoint_service jointly for operations, use lifecycle ignore_changes to suppress changes to the resources field in vpc_endpoint_service.
serviceId
This property is required.
Changes to this property will trigger replacement.
String
The id of service.
resourceId
This property is required.
Changes to this property will trigger replacement.
string
The id of resource. It is not recommended to use this resource for binding resources, it is recommended to use the resources field of vpc_endpoint_service for binding. If using this resource and vpc_endpoint_service jointly for operations, use lifecycle ignore_changes to suppress changes to the resources field in vpc_endpoint_service.
serviceId
This property is required.
Changes to this property will trigger replacement.
string
The id of service.
resource_id
This property is required.
Changes to this property will trigger replacement.
str
The id of resource. It is not recommended to use this resource for binding resources, it is recommended to use the resources field of vpc_endpoint_service for binding. If using this resource and vpc_endpoint_service jointly for operations, use lifecycle ignore_changes to suppress changes to the resources field in vpc_endpoint_service.
service_id
This property is required.
Changes to this property will trigger replacement.
str
The id of service.
resourceId
This property is required.
Changes to this property will trigger replacement.
String
The id of resource. It is not recommended to use this resource for binding resources, it is recommended to use the resources field of vpc_endpoint_service for binding. If using this resource and vpc_endpoint_service jointly for operations, use lifecycle ignore_changes to suppress changes to the resources field in vpc_endpoint_service.
serviceId
This property is required.
Changes to this property will trigger replacement.
String
The id of service.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing VpcEndpointServiceResource Resource

Get an existing VpcEndpointServiceResource 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?: VpcEndpointServiceResourceState, opts?: CustomResourceOptions): VpcEndpointServiceResource
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        resource_id: Optional[str] = None,
        service_id: Optional[str] = None) -> VpcEndpointServiceResource
func GetVpcEndpointServiceResource(ctx *Context, name string, id IDInput, state *VpcEndpointServiceResourceState, opts ...ResourceOption) (*VpcEndpointServiceResource, error)
public static VpcEndpointServiceResource Get(string name, Input<string> id, VpcEndpointServiceResourceState? state, CustomResourceOptions? opts = null)
public static VpcEndpointServiceResource get(String name, Output<String> id, VpcEndpointServiceResourceState state, CustomResourceOptions options)
resources:  _:    type: volcengine:privatelink:VpcEndpointServiceResource    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
ResourceId Changes to this property will trigger replacement. string
The id of resource. It is not recommended to use this resource for binding resources, it is recommended to use the resources field of vpc_endpoint_service for binding. If using this resource and vpc_endpoint_service jointly for operations, use lifecycle ignore_changes to suppress changes to the resources field in vpc_endpoint_service.
ServiceId Changes to this property will trigger replacement. string
The id of service.
ResourceId Changes to this property will trigger replacement. string
The id of resource. It is not recommended to use this resource for binding resources, it is recommended to use the resources field of vpc_endpoint_service for binding. If using this resource and vpc_endpoint_service jointly for operations, use lifecycle ignore_changes to suppress changes to the resources field in vpc_endpoint_service.
ServiceId Changes to this property will trigger replacement. string
The id of service.
resourceId Changes to this property will trigger replacement. String
The id of resource. It is not recommended to use this resource for binding resources, it is recommended to use the resources field of vpc_endpoint_service for binding. If using this resource and vpc_endpoint_service jointly for operations, use lifecycle ignore_changes to suppress changes to the resources field in vpc_endpoint_service.
serviceId Changes to this property will trigger replacement. String
The id of service.
resourceId Changes to this property will trigger replacement. string
The id of resource. It is not recommended to use this resource for binding resources, it is recommended to use the resources field of vpc_endpoint_service for binding. If using this resource and vpc_endpoint_service jointly for operations, use lifecycle ignore_changes to suppress changes to the resources field in vpc_endpoint_service.
serviceId Changes to this property will trigger replacement. string
The id of service.
resource_id Changes to this property will trigger replacement. str
The id of resource. It is not recommended to use this resource for binding resources, it is recommended to use the resources field of vpc_endpoint_service for binding. If using this resource and vpc_endpoint_service jointly for operations, use lifecycle ignore_changes to suppress changes to the resources field in vpc_endpoint_service.
service_id Changes to this property will trigger replacement. str
The id of service.
resourceId Changes to this property will trigger replacement. String
The id of resource. It is not recommended to use this resource for binding resources, it is recommended to use the resources field of vpc_endpoint_service for binding. If using this resource and vpc_endpoint_service jointly for operations, use lifecycle ignore_changes to suppress changes to the resources field in vpc_endpoint_service.
serviceId Changes to this property will trigger replacement. String
The id of service.

Import

VpcEndpointServiceResource can be imported using the serviceId:resourceId, e.g.

$ pulumi import volcengine:privatelink/vpcEndpointServiceResource:VpcEndpointServiceResource default epsvc-2fe630gurkl37k5gfuy33****:clb-bp1o94dp5i6ea****
Copy

It is not recommended to use this resource for binding resources, it is recommended to use the resources field of vpc_endpoint_service for binding. If using this resource and vpc_endpoint_service jointly for operations, use lifecycle ignore_changes to suppress changes to the resources field in vpc_endpoint_service.

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

Package Details

Repository
volcengine volcengine/pulumi-volcengine
License
Apache-2.0
Notes
This Pulumi package is based on the volcengine Terraform Provider.