1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. VpcEnableEndPointConnect
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.VpcEnableEndPointConnect

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Provides a resource to create a vpc enable_end_point_connect

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const enableEndPointConnect = new tencentcloud.VpcEnableEndPointConnect("enableEndPointConnect", {
        acceptFlag: true,
        endPointIds: ["vpce-6q0ftmke"],
        endPointServiceId: "vpcsvc-98jddhcz",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    enable_end_point_connect = tencentcloud.VpcEnableEndPointConnect("enableEndPointConnect",
        accept_flag=True,
        end_point_ids=["vpce-6q0ftmke"],
        end_point_service_id="vpcsvc-98jddhcz")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.NewVpcEnableEndPointConnect(ctx, "enableEndPointConnect", &tencentcloud.VpcEnableEndPointConnectArgs{
    			AcceptFlag: pulumi.Bool(true),
    			EndPointIds: pulumi.StringArray{
    				pulumi.String("vpce-6q0ftmke"),
    			},
    			EndPointServiceId: pulumi.String("vpcsvc-98jddhcz"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var enableEndPointConnect = new Tencentcloud.VpcEnableEndPointConnect("enableEndPointConnect", new()
        {
            AcceptFlag = true,
            EndPointIds = new[]
            {
                "vpce-6q0ftmke",
            },
            EndPointServiceId = "vpcsvc-98jddhcz",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.VpcEnableEndPointConnect;
    import com.pulumi.tencentcloud.VpcEnableEndPointConnectArgs;
    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) {
            var enableEndPointConnect = new VpcEnableEndPointConnect("enableEndPointConnect", VpcEnableEndPointConnectArgs.builder()
                .acceptFlag(true)
                .endPointIds("vpce-6q0ftmke")
                .endPointServiceId("vpcsvc-98jddhcz")
                .build());
    
        }
    }
    
    resources:
      enableEndPointConnect:
        type: tencentcloud:VpcEnableEndPointConnect
        properties:
          acceptFlag: true
          endPointIds:
            - vpce-6q0ftmke
          endPointServiceId: vpcsvc-98jddhcz
    

    Create VpcEnableEndPointConnect Resource

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

    Constructor syntax

    new VpcEnableEndPointConnect(name: string, args: VpcEnableEndPointConnectArgs, opts?: CustomResourceOptions);
    @overload
    def VpcEnableEndPointConnect(resource_name: str,
                                 args: VpcEnableEndPointConnectArgs,
                                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def VpcEnableEndPointConnect(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 accept_flag: Optional[bool] = None,
                                 end_point_ids: Optional[Sequence[str]] = None,
                                 end_point_service_id: Optional[str] = None,
                                 vpc_enable_end_point_connect_id: Optional[str] = None)
    func NewVpcEnableEndPointConnect(ctx *Context, name string, args VpcEnableEndPointConnectArgs, opts ...ResourceOption) (*VpcEnableEndPointConnect, error)
    public VpcEnableEndPointConnect(string name, VpcEnableEndPointConnectArgs args, CustomResourceOptions? opts = null)
    public VpcEnableEndPointConnect(String name, VpcEnableEndPointConnectArgs args)
    public VpcEnableEndPointConnect(String name, VpcEnableEndPointConnectArgs args, CustomResourceOptions options)
    
    type: tencentcloud:VpcEnableEndPointConnect
    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 VpcEnableEndPointConnectArgs
    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 VpcEnableEndPointConnectArgs
    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 VpcEnableEndPointConnectArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VpcEnableEndPointConnectArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VpcEnableEndPointConnectArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    AcceptFlag bool
    Whether to accept endpoint connection requests. true: Accept automatically. false: Do not automatically accept.
    EndPointIds List<string>
    Endpoint ID.
    EndPointServiceId string
    Endpoint service ID.
    VpcEnableEndPointConnectId string
    ID of the resource.
    AcceptFlag bool
    Whether to accept endpoint connection requests. true: Accept automatically. false: Do not automatically accept.
    EndPointIds []string
    Endpoint ID.
    EndPointServiceId string
    Endpoint service ID.
    VpcEnableEndPointConnectId string
    ID of the resource.
    acceptFlag Boolean
    Whether to accept endpoint connection requests. true: Accept automatically. false: Do not automatically accept.
    endPointIds List<String>
    Endpoint ID.
    endPointServiceId String
    Endpoint service ID.
    vpcEnableEndPointConnectId String
    ID of the resource.
    acceptFlag boolean
    Whether to accept endpoint connection requests. true: Accept automatically. false: Do not automatically accept.
    endPointIds string[]
    Endpoint ID.
    endPointServiceId string
    Endpoint service ID.
    vpcEnableEndPointConnectId string
    ID of the resource.
    accept_flag bool
    Whether to accept endpoint connection requests. true: Accept automatically. false: Do not automatically accept.
    end_point_ids Sequence[str]
    Endpoint ID.
    end_point_service_id str
    Endpoint service ID.
    vpc_enable_end_point_connect_id str
    ID of the resource.
    acceptFlag Boolean
    Whether to accept endpoint connection requests. true: Accept automatically. false: Do not automatically accept.
    endPointIds List<String>
    Endpoint ID.
    endPointServiceId String
    Endpoint service ID.
    vpcEnableEndPointConnectId String
    ID of the resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the VpcEnableEndPointConnect 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 VpcEnableEndPointConnect Resource

    Get an existing VpcEnableEndPointConnect 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?: VpcEnableEndPointConnectState, opts?: CustomResourceOptions): VpcEnableEndPointConnect
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            accept_flag: Optional[bool] = None,
            end_point_ids: Optional[Sequence[str]] = None,
            end_point_service_id: Optional[str] = None,
            vpc_enable_end_point_connect_id: Optional[str] = None) -> VpcEnableEndPointConnect
    func GetVpcEnableEndPointConnect(ctx *Context, name string, id IDInput, state *VpcEnableEndPointConnectState, opts ...ResourceOption) (*VpcEnableEndPointConnect, error)
    public static VpcEnableEndPointConnect Get(string name, Input<string> id, VpcEnableEndPointConnectState? state, CustomResourceOptions? opts = null)
    public static VpcEnableEndPointConnect get(String name, Output<String> id, VpcEnableEndPointConnectState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:VpcEnableEndPointConnect    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:
    AcceptFlag bool
    Whether to accept endpoint connection requests. true: Accept automatically. false: Do not automatically accept.
    EndPointIds List<string>
    Endpoint ID.
    EndPointServiceId string
    Endpoint service ID.
    VpcEnableEndPointConnectId string
    ID of the resource.
    AcceptFlag bool
    Whether to accept endpoint connection requests. true: Accept automatically. false: Do not automatically accept.
    EndPointIds []string
    Endpoint ID.
    EndPointServiceId string
    Endpoint service ID.
    VpcEnableEndPointConnectId string
    ID of the resource.
    acceptFlag Boolean
    Whether to accept endpoint connection requests. true: Accept automatically. false: Do not automatically accept.
    endPointIds List<String>
    Endpoint ID.
    endPointServiceId String
    Endpoint service ID.
    vpcEnableEndPointConnectId String
    ID of the resource.
    acceptFlag boolean
    Whether to accept endpoint connection requests. true: Accept automatically. false: Do not automatically accept.
    endPointIds string[]
    Endpoint ID.
    endPointServiceId string
    Endpoint service ID.
    vpcEnableEndPointConnectId string
    ID of the resource.
    accept_flag bool
    Whether to accept endpoint connection requests. true: Accept automatically. false: Do not automatically accept.
    end_point_ids Sequence[str]
    Endpoint ID.
    end_point_service_id str
    Endpoint service ID.
    vpc_enable_end_point_connect_id str
    ID of the resource.
    acceptFlag Boolean
    Whether to accept endpoint connection requests. true: Accept automatically. false: Do not automatically accept.
    endPointIds List<String>
    Endpoint ID.
    endPointServiceId String
    Endpoint service ID.
    vpcEnableEndPointConnectId String
    ID of the resource.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack