tencentcloud.DlcUserVpcConnection
Provides a resource to create a DLC user vpc connection
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.DlcUserVpcConnection("example", {
engineNetworkId: "DataEngine-Network-2mfg9icb",
userSubnetId: "subnet-ds2t3udw",
userVpcEndpointName: "tf-example",
userVpcId: "vpc-f7fa1fu5",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.DlcUserVpcConnection("example",
engine_network_id="DataEngine-Network-2mfg9icb",
user_subnet_id="subnet-ds2t3udw",
user_vpc_endpoint_name="tf-example",
user_vpc_id="vpc-f7fa1fu5")
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.NewDlcUserVpcConnection(ctx, "example", &tencentcloud.DlcUserVpcConnectionArgs{
EngineNetworkId: pulumi.String("DataEngine-Network-2mfg9icb"),
UserSubnetId: pulumi.String("subnet-ds2t3udw"),
UserVpcEndpointName: pulumi.String("tf-example"),
UserVpcId: pulumi.String("vpc-f7fa1fu5"),
})
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.DlcUserVpcConnection("example", new()
{
EngineNetworkId = "DataEngine-Network-2mfg9icb",
UserSubnetId = "subnet-ds2t3udw",
UserVpcEndpointName = "tf-example",
UserVpcId = "vpc-f7fa1fu5",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.DlcUserVpcConnection;
import com.pulumi.tencentcloud.DlcUserVpcConnectionArgs;
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 DlcUserVpcConnection("example", DlcUserVpcConnectionArgs.builder()
.engineNetworkId("DataEngine-Network-2mfg9icb")
.userSubnetId("subnet-ds2t3udw")
.userVpcEndpointName("tf-example")
.userVpcId("vpc-f7fa1fu5")
.build());
}
}
resources:
example:
type: tencentcloud:DlcUserVpcConnection
properties:
engineNetworkId: DataEngine-Network-2mfg9icb
userSubnetId: subnet-ds2t3udw
userVpcEndpointName: tf-example
userVpcId: vpc-f7fa1fu5
Or
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.DlcUserVpcConnection("example", {
engineNetworkId: "DataEngine-Network-2mfg9icb",
userSubnetId: "subnet-ds2t3udw",
userVpcEndpointName: "tf-example",
userVpcEndpointVip: "10.0.1.10",
userVpcId: "vpc-f7fa1fu5",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.DlcUserVpcConnection("example",
engine_network_id="DataEngine-Network-2mfg9icb",
user_subnet_id="subnet-ds2t3udw",
user_vpc_endpoint_name="tf-example",
user_vpc_endpoint_vip="10.0.1.10",
user_vpc_id="vpc-f7fa1fu5")
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.NewDlcUserVpcConnection(ctx, "example", &tencentcloud.DlcUserVpcConnectionArgs{
EngineNetworkId: pulumi.String("DataEngine-Network-2mfg9icb"),
UserSubnetId: pulumi.String("subnet-ds2t3udw"),
UserVpcEndpointName: pulumi.String("tf-example"),
UserVpcEndpointVip: pulumi.String("10.0.1.10"),
UserVpcId: pulumi.String("vpc-f7fa1fu5"),
})
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.DlcUserVpcConnection("example", new()
{
EngineNetworkId = "DataEngine-Network-2mfg9icb",
UserSubnetId = "subnet-ds2t3udw",
UserVpcEndpointName = "tf-example",
UserVpcEndpointVip = "10.0.1.10",
UserVpcId = "vpc-f7fa1fu5",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.DlcUserVpcConnection;
import com.pulumi.tencentcloud.DlcUserVpcConnectionArgs;
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 DlcUserVpcConnection("example", DlcUserVpcConnectionArgs.builder()
.engineNetworkId("DataEngine-Network-2mfg9icb")
.userSubnetId("subnet-ds2t3udw")
.userVpcEndpointName("tf-example")
.userVpcEndpointVip("10.0.1.10")
.userVpcId("vpc-f7fa1fu5")
.build());
}
}
resources:
example:
type: tencentcloud:DlcUserVpcConnection
properties:
engineNetworkId: DataEngine-Network-2mfg9icb
userSubnetId: subnet-ds2t3udw
userVpcEndpointName: tf-example
userVpcEndpointVip: 10.0.1.10
userVpcId: vpc-f7fa1fu5
Create DlcUserVpcConnection Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DlcUserVpcConnection(name: string, args: DlcUserVpcConnectionArgs, opts?: CustomResourceOptions);
@overload
def DlcUserVpcConnection(resource_name: str,
args: DlcUserVpcConnectionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DlcUserVpcConnection(resource_name: str,
opts: Optional[ResourceOptions] = None,
engine_network_id: Optional[str] = None,
user_subnet_id: Optional[str] = None,
user_vpc_endpoint_name: Optional[str] = None,
user_vpc_id: Optional[str] = None,
dlc_user_vpc_connection_id: Optional[str] = None,
user_vpc_endpoint_vip: Optional[str] = None)
func NewDlcUserVpcConnection(ctx *Context, name string, args DlcUserVpcConnectionArgs, opts ...ResourceOption) (*DlcUserVpcConnection, error)
public DlcUserVpcConnection(string name, DlcUserVpcConnectionArgs args, CustomResourceOptions? opts = null)
public DlcUserVpcConnection(String name, DlcUserVpcConnectionArgs args)
public DlcUserVpcConnection(String name, DlcUserVpcConnectionArgs args, CustomResourceOptions options)
type: tencentcloud:DlcUserVpcConnection
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 DlcUserVpcConnectionArgs
- 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 DlcUserVpcConnectionArgs
- 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 DlcUserVpcConnectionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DlcUserVpcConnectionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DlcUserVpcConnectionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
DlcUserVpcConnection 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 DlcUserVpcConnection resource accepts the following input properties:
- Engine
Network stringId - Engine network ID.
- User
Subnet stringId - User subnet ID.
- User
Vpc stringEndpoint Name - User vpc endpoint name.
- User
Vpc stringId - User vpc ID.
- Dlc
User stringVpc Connection Id - ID of the resource.
- User
Vpc stringEndpoint Vip - Manually specify VIP, if not filled in, an IP address under the subnet will be automatically assigned.
- Engine
Network stringId - Engine network ID.
- User
Subnet stringId - User subnet ID.
- User
Vpc stringEndpoint Name - User vpc endpoint name.
- User
Vpc stringId - User vpc ID.
- Dlc
User stringVpc Connection Id - ID of the resource.
- User
Vpc stringEndpoint Vip - Manually specify VIP, if not filled in, an IP address under the subnet will be automatically assigned.
- engine
Network StringId - Engine network ID.
- user
Subnet StringId - User subnet ID.
- user
Vpc StringEndpoint Name - User vpc endpoint name.
- user
Vpc StringId - User vpc ID.
- dlc
User StringVpc Connection Id - ID of the resource.
- user
Vpc StringEndpoint Vip - Manually specify VIP, if not filled in, an IP address under the subnet will be automatically assigned.
- engine
Network stringId - Engine network ID.
- user
Subnet stringId - User subnet ID.
- user
Vpc stringEndpoint Name - User vpc endpoint name.
- user
Vpc stringId - User vpc ID.
- dlc
User stringVpc Connection Id - ID of the resource.
- user
Vpc stringEndpoint Vip - Manually specify VIP, if not filled in, an IP address under the subnet will be automatically assigned.
- engine_
network_ strid - Engine network ID.
- user_
subnet_ strid - User subnet ID.
- user_
vpc_ strendpoint_ name - User vpc endpoint name.
- user_
vpc_ strid - User vpc ID.
- dlc_
user_ strvpc_ connection_ id - ID of the resource.
- user_
vpc_ strendpoint_ vip - Manually specify VIP, if not filled in, an IP address under the subnet will be automatically assigned.
- engine
Network StringId - Engine network ID.
- user
Subnet StringId - User subnet ID.
- user
Vpc StringEndpoint Name - User vpc endpoint name.
- user
Vpc StringId - User vpc ID.
- dlc
User StringVpc Connection Id - ID of the resource.
- user
Vpc StringEndpoint Vip - Manually specify VIP, if not filled in, an IP address under the subnet will be automatically assigned.
Outputs
All input properties are implicitly available as output properties. Additionally, the DlcUserVpcConnection resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- User
Vpc stringEndpoint Id - User endpoint ID.
- Id string
- The provider-assigned unique ID for this managed resource.
- User
Vpc stringEndpoint Id - User endpoint ID.
- id String
- The provider-assigned unique ID for this managed resource.
- user
Vpc StringEndpoint Id - User endpoint ID.
- id string
- The provider-assigned unique ID for this managed resource.
- user
Vpc stringEndpoint Id - User endpoint ID.
- id str
- The provider-assigned unique ID for this managed resource.
- user_
vpc_ strendpoint_ id - User endpoint ID.
- id String
- The provider-assigned unique ID for this managed resource.
- user
Vpc StringEndpoint Id - User endpoint ID.
Look up Existing DlcUserVpcConnection Resource
Get an existing DlcUserVpcConnection 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?: DlcUserVpcConnectionState, opts?: CustomResourceOptions): DlcUserVpcConnection
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
dlc_user_vpc_connection_id: Optional[str] = None,
engine_network_id: Optional[str] = None,
user_subnet_id: Optional[str] = None,
user_vpc_endpoint_id: Optional[str] = None,
user_vpc_endpoint_name: Optional[str] = None,
user_vpc_endpoint_vip: Optional[str] = None,
user_vpc_id: Optional[str] = None) -> DlcUserVpcConnection
func GetDlcUserVpcConnection(ctx *Context, name string, id IDInput, state *DlcUserVpcConnectionState, opts ...ResourceOption) (*DlcUserVpcConnection, error)
public static DlcUserVpcConnection Get(string name, Input<string> id, DlcUserVpcConnectionState? state, CustomResourceOptions? opts = null)
public static DlcUserVpcConnection get(String name, Output<String> id, DlcUserVpcConnectionState state, CustomResourceOptions options)
resources: _: type: tencentcloud:DlcUserVpcConnection 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.
- Dlc
User stringVpc Connection Id - ID of the resource.
- Engine
Network stringId - Engine network ID.
- User
Subnet stringId - User subnet ID.
- User
Vpc stringEndpoint Id - User endpoint ID.
- User
Vpc stringEndpoint Name - User vpc endpoint name.
- User
Vpc stringEndpoint Vip - Manually specify VIP, if not filled in, an IP address under the subnet will be automatically assigned.
- User
Vpc stringId - User vpc ID.
- Dlc
User stringVpc Connection Id - ID of the resource.
- Engine
Network stringId - Engine network ID.
- User
Subnet stringId - User subnet ID.
- User
Vpc stringEndpoint Id - User endpoint ID.
- User
Vpc stringEndpoint Name - User vpc endpoint name.
- User
Vpc stringEndpoint Vip - Manually specify VIP, if not filled in, an IP address under the subnet will be automatically assigned.
- User
Vpc stringId - User vpc ID.
- dlc
User StringVpc Connection Id - ID of the resource.
- engine
Network StringId - Engine network ID.
- user
Subnet StringId - User subnet ID.
- user
Vpc StringEndpoint Id - User endpoint ID.
- user
Vpc StringEndpoint Name - User vpc endpoint name.
- user
Vpc StringEndpoint Vip - Manually specify VIP, if not filled in, an IP address under the subnet will be automatically assigned.
- user
Vpc StringId - User vpc ID.
- dlc
User stringVpc Connection Id - ID of the resource.
- engine
Network stringId - Engine network ID.
- user
Subnet stringId - User subnet ID.
- user
Vpc stringEndpoint Id - User endpoint ID.
- user
Vpc stringEndpoint Name - User vpc endpoint name.
- user
Vpc stringEndpoint Vip - Manually specify VIP, if not filled in, an IP address under the subnet will be automatically assigned.
- user
Vpc stringId - User vpc ID.
- dlc_
user_ strvpc_ connection_ id - ID of the resource.
- engine_
network_ strid - Engine network ID.
- user_
subnet_ strid - User subnet ID.
- user_
vpc_ strendpoint_ id - User endpoint ID.
- user_
vpc_ strendpoint_ name - User vpc endpoint name.
- user_
vpc_ strendpoint_ vip - Manually specify VIP, if not filled in, an IP address under the subnet will be automatically assigned.
- user_
vpc_ strid - User vpc ID.
- dlc
User StringVpc Connection Id - ID of the resource.
- engine
Network StringId - Engine network ID.
- user
Subnet StringId - User subnet ID.
- user
Vpc StringEndpoint Id - User endpoint ID.
- user
Vpc StringEndpoint Name - User vpc endpoint name.
- user
Vpc StringEndpoint Vip - Manually specify VIP, if not filled in, an IP address under the subnet will be automatically assigned.
- user
Vpc StringId - User vpc ID.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.