tencentcloud.VpcEndPointService
Explore with Pulumi AI
Provides a resource to create a VPC end point service
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.VpcEndPointService("example", {
autoAcceptFlag: false,
endPointServiceName: "tf-example",
serviceInstanceId: "lb-jvb31e26",
serviceType: "CLB",
vpcId: "vpc-9r35gtih",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.VpcEndPointService("example",
auto_accept_flag=False,
end_point_service_name="tf-example",
service_instance_id="lb-jvb31e26",
service_type="CLB",
vpc_id="vpc-9r35gtih")
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.NewVpcEndPointService(ctx, "example", &tencentcloud.VpcEndPointServiceArgs{
AutoAcceptFlag: pulumi.Bool(false),
EndPointServiceName: pulumi.String("tf-example"),
ServiceInstanceId: pulumi.String("lb-jvb31e26"),
ServiceType: pulumi.String("CLB"),
VpcId: pulumi.String("vpc-9r35gtih"),
})
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.VpcEndPointService("example", new()
{
AutoAcceptFlag = false,
EndPointServiceName = "tf-example",
ServiceInstanceId = "lb-jvb31e26",
ServiceType = "CLB",
VpcId = "vpc-9r35gtih",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.VpcEndPointService;
import com.pulumi.tencentcloud.VpcEndPointServiceArgs;
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 VpcEndPointService("example", VpcEndPointServiceArgs.builder()
.autoAcceptFlag(false)
.endPointServiceName("tf-example")
.serviceInstanceId("lb-jvb31e26")
.serviceType("CLB")
.vpcId("vpc-9r35gtih")
.build());
}
}
resources:
example:
type: tencentcloud:VpcEndPointService
properties:
autoAcceptFlag: false
endPointServiceName: tf-example
serviceInstanceId: lb-jvb31e26
serviceType: CLB
vpcId: vpc-9r35gtih
Create VpcEndPointService Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VpcEndPointService(name: string, args: VpcEndPointServiceArgs, opts?: CustomResourceOptions);
@overload
def VpcEndPointService(resource_name: str,
args: VpcEndPointServiceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def VpcEndPointService(resource_name: str,
opts: Optional[ResourceOptions] = None,
auto_accept_flag: Optional[bool] = None,
end_point_service_name: Optional[str] = None,
service_instance_id: Optional[str] = None,
vpc_id: Optional[str] = None,
service_type: Optional[str] = None,
vpc_end_point_service_id: Optional[str] = None)
func NewVpcEndPointService(ctx *Context, name string, args VpcEndPointServiceArgs, opts ...ResourceOption) (*VpcEndPointService, error)
public VpcEndPointService(string name, VpcEndPointServiceArgs args, CustomResourceOptions? opts = null)
public VpcEndPointService(String name, VpcEndPointServiceArgs args)
public VpcEndPointService(String name, VpcEndPointServiceArgs args, CustomResourceOptions options)
type: tencentcloud:VpcEndPointService
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 VpcEndPointServiceArgs
- 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 VpcEndPointServiceArgs
- 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 VpcEndPointServiceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VpcEndPointServiceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VpcEndPointServiceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
VpcEndPointService 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 VpcEndPointService resource accepts the following input properties:
- Auto
Accept boolFlag - Whether to automatically accept.
- End
Point stringService Name - Name of end point service.
- Service
Instance stringId - Id of service instance, like lb-xxx.
- Vpc
Id string - ID of vpc instance.
- Service
Type string - Type of service instance, like
CLB
,CDB
,CRS
, default isCLB
. - Vpc
End stringPoint Service Id - ID of the resource.
- Auto
Accept boolFlag - Whether to automatically accept.
- End
Point stringService Name - Name of end point service.
- Service
Instance stringId - Id of service instance, like lb-xxx.
- Vpc
Id string - ID of vpc instance.
- Service
Type string - Type of service instance, like
CLB
,CDB
,CRS
, default isCLB
. - Vpc
End stringPoint Service Id - ID of the resource.
- auto
Accept BooleanFlag - Whether to automatically accept.
- end
Point StringService Name - Name of end point service.
- service
Instance StringId - Id of service instance, like lb-xxx.
- vpc
Id String - ID of vpc instance.
- service
Type String - Type of service instance, like
CLB
,CDB
,CRS
, default isCLB
. - vpc
End StringPoint Service Id - ID of the resource.
- auto
Accept booleanFlag - Whether to automatically accept.
- end
Point stringService Name - Name of end point service.
- service
Instance stringId - Id of service instance, like lb-xxx.
- vpc
Id string - ID of vpc instance.
- service
Type string - Type of service instance, like
CLB
,CDB
,CRS
, default isCLB
. - vpc
End stringPoint Service Id - ID of the resource.
- auto_
accept_ boolflag - Whether to automatically accept.
- end_
point_ strservice_ name - Name of end point service.
- service_
instance_ strid - Id of service instance, like lb-xxx.
- vpc_
id str - ID of vpc instance.
- service_
type str - Type of service instance, like
CLB
,CDB
,CRS
, default isCLB
. - vpc_
end_ strpoint_ service_ id - ID of the resource.
- auto
Accept BooleanFlag - Whether to automatically accept.
- end
Point StringService Name - Name of end point service.
- service
Instance StringId - Id of service instance, like lb-xxx.
- vpc
Id String - ID of vpc instance.
- service
Type String - Type of service instance, like
CLB
,CDB
,CRS
, default isCLB
. - vpc
End StringPoint Service Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the VpcEndPointService resource produces the following output properties:
- Cdc
Id string - CDC instance ID.
- Create
Time string - Create Time.
- End
Point doubleCount - Count of end point.
- Id string
- The provider-assigned unique ID for this managed resource.
- Service
Owner string - APPID.
- Service
Vip string - VIP of backend service.
- Cdc
Id string - CDC instance ID.
- Create
Time string - Create Time.
- End
Point float64Count - Count of end point.
- Id string
- The provider-assigned unique ID for this managed resource.
- Service
Owner string - APPID.
- Service
Vip string - VIP of backend service.
- cdc
Id String - CDC instance ID.
- create
Time String - Create Time.
- end
Point DoubleCount - Count of end point.
- id String
- The provider-assigned unique ID for this managed resource.
- service
Owner String - APPID.
- service
Vip String - VIP of backend service.
- cdc
Id string - CDC instance ID.
- create
Time string - Create Time.
- end
Point numberCount - Count of end point.
- id string
- The provider-assigned unique ID for this managed resource.
- service
Owner string - APPID.
- service
Vip string - VIP of backend service.
- cdc_
id str - CDC instance ID.
- create_
time str - Create Time.
- end_
point_ floatcount - Count of end point.
- id str
- The provider-assigned unique ID for this managed resource.
- service_
owner str - APPID.
- service_
vip str - VIP of backend service.
- cdc
Id String - CDC instance ID.
- create
Time String - Create Time.
- end
Point NumberCount - Count of end point.
- id String
- The provider-assigned unique ID for this managed resource.
- service
Owner String - APPID.
- service
Vip String - VIP of backend service.
Look up Existing VpcEndPointService Resource
Get an existing VpcEndPointService 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?: VpcEndPointServiceState, opts?: CustomResourceOptions): VpcEndPointService
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
auto_accept_flag: Optional[bool] = None,
cdc_id: Optional[str] = None,
create_time: Optional[str] = None,
end_point_count: Optional[float] = None,
end_point_service_name: Optional[str] = None,
service_instance_id: Optional[str] = None,
service_owner: Optional[str] = None,
service_type: Optional[str] = None,
service_vip: Optional[str] = None,
vpc_end_point_service_id: Optional[str] = None,
vpc_id: Optional[str] = None) -> VpcEndPointService
func GetVpcEndPointService(ctx *Context, name string, id IDInput, state *VpcEndPointServiceState, opts ...ResourceOption) (*VpcEndPointService, error)
public static VpcEndPointService Get(string name, Input<string> id, VpcEndPointServiceState? state, CustomResourceOptions? opts = null)
public static VpcEndPointService get(String name, Output<String> id, VpcEndPointServiceState state, CustomResourceOptions options)
resources: _: type: tencentcloud:VpcEndPointService 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.
- Auto
Accept boolFlag - Whether to automatically accept.
- Cdc
Id string - CDC instance ID.
- Create
Time string - Create Time.
- End
Point doubleCount - Count of end point.
- End
Point stringService Name - Name of end point service.
- Service
Instance stringId - Id of service instance, like lb-xxx.
- Service
Owner string - APPID.
- Service
Type string - Type of service instance, like
CLB
,CDB
,CRS
, default isCLB
. - Service
Vip string - VIP of backend service.
- Vpc
End stringPoint Service Id - ID of the resource.
- Vpc
Id string - ID of vpc instance.
- Auto
Accept boolFlag - Whether to automatically accept.
- Cdc
Id string - CDC instance ID.
- Create
Time string - Create Time.
- End
Point float64Count - Count of end point.
- End
Point stringService Name - Name of end point service.
- Service
Instance stringId - Id of service instance, like lb-xxx.
- Service
Owner string - APPID.
- Service
Type string - Type of service instance, like
CLB
,CDB
,CRS
, default isCLB
. - Service
Vip string - VIP of backend service.
- Vpc
End stringPoint Service Id - ID of the resource.
- Vpc
Id string - ID of vpc instance.
- auto
Accept BooleanFlag - Whether to automatically accept.
- cdc
Id String - CDC instance ID.
- create
Time String - Create Time.
- end
Point DoubleCount - Count of end point.
- end
Point StringService Name - Name of end point service.
- service
Instance StringId - Id of service instance, like lb-xxx.
- service
Owner String - APPID.
- service
Type String - Type of service instance, like
CLB
,CDB
,CRS
, default isCLB
. - service
Vip String - VIP of backend service.
- vpc
End StringPoint Service Id - ID of the resource.
- vpc
Id String - ID of vpc instance.
- auto
Accept booleanFlag - Whether to automatically accept.
- cdc
Id string - CDC instance ID.
- create
Time string - Create Time.
- end
Point numberCount - Count of end point.
- end
Point stringService Name - Name of end point service.
- service
Instance stringId - Id of service instance, like lb-xxx.
- service
Owner string - APPID.
- service
Type string - Type of service instance, like
CLB
,CDB
,CRS
, default isCLB
. - service
Vip string - VIP of backend service.
- vpc
End stringPoint Service Id - ID of the resource.
- vpc
Id string - ID of vpc instance.
- auto_
accept_ boolflag - Whether to automatically accept.
- cdc_
id str - CDC instance ID.
- create_
time str - Create Time.
- end_
point_ floatcount - Count of end point.
- end_
point_ strservice_ name - Name of end point service.
- service_
instance_ strid - Id of service instance, like lb-xxx.
- service_
owner str - APPID.
- service_
type str - Type of service instance, like
CLB
,CDB
,CRS
, default isCLB
. - service_
vip str - VIP of backend service.
- vpc_
end_ strpoint_ service_ id - ID of the resource.
- vpc_
id str - ID of vpc instance.
- auto
Accept BooleanFlag - Whether to automatically accept.
- cdc
Id String - CDC instance ID.
- create
Time String - Create Time.
- end
Point NumberCount - Count of end point.
- end
Point StringService Name - Name of end point service.
- service
Instance StringId - Id of service instance, like lb-xxx.
- service
Owner String - APPID.
- service
Type String - Type of service instance, like
CLB
,CDB
,CRS
, default isCLB
. - service
Vip String - VIP of backend service.
- vpc
End StringPoint Service Id - ID of the resource.
- vpc
Id String - ID of vpc instance.
Import
VPC end point service can be imported using the id, e.g.
$ pulumi import tencentcloud:index/vpcEndPointService:VpcEndPointService example vpcsvc-l770dxs5
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.