tencentcloud.VpcEndPoint
Explore with Pulumi AI
Provides a resource to create a VPC end point
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.VpcEndPoint("example", {
endPointName: "tf-example",
endPointServiceId: "vpcsvc-69y13tdb",
endPointVip: "10.0.2.1",
securityGroupsIds: [
"sg-ghvp9djf",
"sg-if748odn",
"sg-3k7vtgf7",
],
subnetId: "subnet-ljyn7h30",
vpcId: "vpc-391sv4w3",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.VpcEndPoint("example",
end_point_name="tf-example",
end_point_service_id="vpcsvc-69y13tdb",
end_point_vip="10.0.2.1",
security_groups_ids=[
"sg-ghvp9djf",
"sg-if748odn",
"sg-3k7vtgf7",
],
subnet_id="subnet-ljyn7h30",
vpc_id="vpc-391sv4w3")
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.NewVpcEndPoint(ctx, "example", &tencentcloud.VpcEndPointArgs{
EndPointName: pulumi.String("tf-example"),
EndPointServiceId: pulumi.String("vpcsvc-69y13tdb"),
EndPointVip: pulumi.String("10.0.2.1"),
SecurityGroupsIds: pulumi.StringArray{
pulumi.String("sg-ghvp9djf"),
pulumi.String("sg-if748odn"),
pulumi.String("sg-3k7vtgf7"),
},
SubnetId: pulumi.String("subnet-ljyn7h30"),
VpcId: pulumi.String("vpc-391sv4w3"),
})
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 example = new Tencentcloud.VpcEndPoint("example", new()
{
EndPointName = "tf-example",
EndPointServiceId = "vpcsvc-69y13tdb",
EndPointVip = "10.0.2.1",
SecurityGroupsIds = new[]
{
"sg-ghvp9djf",
"sg-if748odn",
"sg-3k7vtgf7",
},
SubnetId = "subnet-ljyn7h30",
VpcId = "vpc-391sv4w3",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.VpcEndPoint;
import com.pulumi.tencentcloud.VpcEndPointArgs;
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 example = new VpcEndPoint("example", VpcEndPointArgs.builder()
.endPointName("tf-example")
.endPointServiceId("vpcsvc-69y13tdb")
.endPointVip("10.0.2.1")
.securityGroupsIds(
"sg-ghvp9djf",
"sg-if748odn",
"sg-3k7vtgf7")
.subnetId("subnet-ljyn7h30")
.vpcId("vpc-391sv4w3")
.build());
}
}
resources:
example:
type: tencentcloud:VpcEndPoint
properties:
endPointName: tf-example
endPointServiceId: vpcsvc-69y13tdb
endPointVip: 10.0.2.1
securityGroupsIds:
- sg-ghvp9djf
- sg-if748odn
- sg-3k7vtgf7
subnetId: subnet-ljyn7h30
vpcId: vpc-391sv4w3
Create VpcEndPoint Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VpcEndPoint(name: string, args: VpcEndPointArgs, opts?: CustomResourceOptions);
@overload
def VpcEndPoint(resource_name: str,
args: VpcEndPointArgs,
opts: Optional[ResourceOptions] = None)
@overload
def VpcEndPoint(resource_name: str,
opts: Optional[ResourceOptions] = None,
end_point_name: Optional[str] = None,
end_point_service_id: Optional[str] = None,
subnet_id: Optional[str] = None,
vpc_id: Optional[str] = None,
end_point_vip: Optional[str] = None,
security_groups_ids: Optional[Sequence[str]] = None,
vpc_end_point_id: Optional[str] = None)
func NewVpcEndPoint(ctx *Context, name string, args VpcEndPointArgs, opts ...ResourceOption) (*VpcEndPoint, error)
public VpcEndPoint(string name, VpcEndPointArgs args, CustomResourceOptions? opts = null)
public VpcEndPoint(String name, VpcEndPointArgs args)
public VpcEndPoint(String name, VpcEndPointArgs args, CustomResourceOptions options)
type: tencentcloud:VpcEndPoint
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 VpcEndPointArgs
- 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 VpcEndPointArgs
- 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 VpcEndPointArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VpcEndPointArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VpcEndPointArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
VpcEndPoint 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 VpcEndPoint resource accepts the following input properties:
- End
Point stringName - Name of endpoint.
- End
Point stringService Id - ID of endpoint service.
- Subnet
Id string - ID of subnet instance.
- Vpc
Id string - ID of vpc instance.
- End
Point stringVip - VIP of endpoint ip.
- Security
Groups List<string>Ids - Ordered security groups associated with the endpoint.
- Vpc
End stringPoint Id - ID of the resource.
- End
Point stringName - Name of endpoint.
- End
Point stringService Id - ID of endpoint service.
- Subnet
Id string - ID of subnet instance.
- Vpc
Id string - ID of vpc instance.
- End
Point stringVip - VIP of endpoint ip.
- Security
Groups []stringIds - Ordered security groups associated with the endpoint.
- Vpc
End stringPoint Id - ID of the resource.
- end
Point StringName - Name of endpoint.
- end
Point StringService Id - ID of endpoint service.
- subnet
Id String - ID of subnet instance.
- vpc
Id String - ID of vpc instance.
- end
Point StringVip - VIP of endpoint ip.
- security
Groups List<String>Ids - Ordered security groups associated with the endpoint.
- vpc
End StringPoint Id - ID of the resource.
- end
Point stringName - Name of endpoint.
- end
Point stringService Id - ID of endpoint service.
- subnet
Id string - ID of subnet instance.
- vpc
Id string - ID of vpc instance.
- end
Point stringVip - VIP of endpoint ip.
- security
Groups string[]Ids - Ordered security groups associated with the endpoint.
- vpc
End stringPoint Id - ID of the resource.
- end_
point_ strname - Name of endpoint.
- end_
point_ strservice_ id - ID of endpoint service.
- subnet_
id str - ID of subnet instance.
- vpc_
id str - ID of vpc instance.
- end_
point_ strvip - VIP of endpoint ip.
- security_
groups_ Sequence[str]ids - Ordered security groups associated with the endpoint.
- vpc_
end_ strpoint_ id - ID of the resource.
- end
Point StringName - Name of endpoint.
- end
Point StringService Id - ID of endpoint service.
- subnet
Id String - ID of subnet instance.
- vpc
Id String - ID of vpc instance.
- end
Point StringVip - VIP of endpoint ip.
- security
Groups List<String>Ids - Ordered security groups associated with the endpoint.
- vpc
End StringPoint Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the VpcEndPoint resource produces the following output properties:
- Cdc
Id string - CDC instance ID.
- Create
Time string - Create Time.
- End
Point stringOwner - APPID.
- Id string
- The provider-assigned unique ID for this managed resource.
- State string
- state of end point.
- Cdc
Id string - CDC instance ID.
- Create
Time string - Create Time.
- End
Point stringOwner - APPID.
- Id string
- The provider-assigned unique ID for this managed resource.
- State string
- state of end point.
- cdc
Id String - CDC instance ID.
- create
Time String - Create Time.
- end
Point StringOwner - APPID.
- id String
- The provider-assigned unique ID for this managed resource.
- state String
- state of end point.
- cdc
Id string - CDC instance ID.
- create
Time string - Create Time.
- end
Point stringOwner - APPID.
- id string
- The provider-assigned unique ID for this managed resource.
- state string
- state of end point.
- cdc_
id str - CDC instance ID.
- create_
time str - Create Time.
- end_
point_ strowner - APPID.
- id str
- The provider-assigned unique ID for this managed resource.
- state str
- state of end point.
- cdc
Id String - CDC instance ID.
- create
Time String - Create Time.
- end
Point StringOwner - APPID.
- id String
- The provider-assigned unique ID for this managed resource.
- state String
- state of end point.
Look up Existing VpcEndPoint Resource
Get an existing VpcEndPoint 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?: VpcEndPointState, opts?: CustomResourceOptions): VpcEndPoint
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cdc_id: Optional[str] = None,
create_time: Optional[str] = None,
end_point_name: Optional[str] = None,
end_point_owner: Optional[str] = None,
end_point_service_id: Optional[str] = None,
end_point_vip: Optional[str] = None,
security_groups_ids: Optional[Sequence[str]] = None,
state: Optional[str] = None,
subnet_id: Optional[str] = None,
vpc_end_point_id: Optional[str] = None,
vpc_id: Optional[str] = None) -> VpcEndPoint
func GetVpcEndPoint(ctx *Context, name string, id IDInput, state *VpcEndPointState, opts ...ResourceOption) (*VpcEndPoint, error)
public static VpcEndPoint Get(string name, Input<string> id, VpcEndPointState? state, CustomResourceOptions? opts = null)
public static VpcEndPoint get(String name, Output<String> id, VpcEndPointState state, CustomResourceOptions options)
resources: _: type: tencentcloud:VpcEndPoint 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.
- Cdc
Id string - CDC instance ID.
- Create
Time string - Create Time.
- End
Point stringName - Name of endpoint.
- End
Point stringOwner - APPID.
- End
Point stringService Id - ID of endpoint service.
- End
Point stringVip - VIP of endpoint ip.
- Security
Groups List<string>Ids - Ordered security groups associated with the endpoint.
- State string
- state of end point.
- Subnet
Id string - ID of subnet instance.
- Vpc
End stringPoint Id - ID of the resource.
- Vpc
Id string - ID of vpc instance.
- Cdc
Id string - CDC instance ID.
- Create
Time string - Create Time.
- End
Point stringName - Name of endpoint.
- End
Point stringOwner - APPID.
- End
Point stringService Id - ID of endpoint service.
- End
Point stringVip - VIP of endpoint ip.
- Security
Groups []stringIds - Ordered security groups associated with the endpoint.
- State string
- state of end point.
- Subnet
Id string - ID of subnet instance.
- Vpc
End stringPoint Id - ID of the resource.
- Vpc
Id string - ID of vpc instance.
- cdc
Id String - CDC instance ID.
- create
Time String - Create Time.
- end
Point StringName - Name of endpoint.
- end
Point StringOwner - APPID.
- end
Point StringService Id - ID of endpoint service.
- end
Point StringVip - VIP of endpoint ip.
- security
Groups List<String>Ids - Ordered security groups associated with the endpoint.
- state String
- state of end point.
- subnet
Id String - ID of subnet instance.
- vpc
End StringPoint Id - ID of the resource.
- vpc
Id String - ID of vpc instance.
- cdc
Id string - CDC instance ID.
- create
Time string - Create Time.
- end
Point stringName - Name of endpoint.
- end
Point stringOwner - APPID.
- end
Point stringService Id - ID of endpoint service.
- end
Point stringVip - VIP of endpoint ip.
- security
Groups string[]Ids - Ordered security groups associated with the endpoint.
- state string
- state of end point.
- subnet
Id string - ID of subnet instance.
- vpc
End stringPoint Id - ID of the resource.
- vpc
Id string - ID of vpc instance.
- cdc_
id str - CDC instance ID.
- create_
time str - Create Time.
- end_
point_ strname - Name of endpoint.
- end_
point_ strowner - APPID.
- end_
point_ strservice_ id - ID of endpoint service.
- end_
point_ strvip - VIP of endpoint ip.
- security_
groups_ Sequence[str]ids - Ordered security groups associated with the endpoint.
- state str
- state of end point.
- subnet_
id str - ID of subnet instance.
- vpc_
end_ strpoint_ id - ID of the resource.
- vpc_
id str - ID of vpc instance.
- cdc
Id String - CDC instance ID.
- create
Time String - Create Time.
- end
Point StringName - Name of endpoint.
- end
Point StringOwner - APPID.
- end
Point StringService Id - ID of endpoint service.
- end
Point StringVip - VIP of endpoint ip.
- security
Groups List<String>Ids - Ordered security groups associated with the endpoint.
- state String
- state of end point.
- subnet
Id String - ID of subnet instance.
- vpc
End StringPoint Id - ID of the resource.
- vpc
Id String - ID of vpc instance.
Import
VPC end point can be imported using the id, e.g.
$ pulumi import tencentcloud:index/vpcEndPoint:VpcEndPoint example vpce-ntv3vy9k
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.