tencentcloud.PrivateDnsInboundEndpoint
Provides a resource to create a Private Dns inbound endpoint
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.PrivateDnsInboundEndpoint("example", {
endpointName: "tf-example",
endpointRegion: "ap-guangzhou",
endpointVpc: "vpc-i5yyodl9",
subnetIps: [
{
subnetId: "subnet-hhi88a58",
subnetVip: "10.0.30.2",
},
{
subnetId: "subnet-5rrirqyc",
subnetVip: "10.0.0.11",
},
{
subnetId: "subnet-60ut6n10",
},
],
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.PrivateDnsInboundEndpoint("example",
endpoint_name="tf-example",
endpoint_region="ap-guangzhou",
endpoint_vpc="vpc-i5yyodl9",
subnet_ips=[
{
"subnet_id": "subnet-hhi88a58",
"subnet_vip": "10.0.30.2",
},
{
"subnet_id": "subnet-5rrirqyc",
"subnet_vip": "10.0.0.11",
},
{
"subnet_id": "subnet-60ut6n10",
},
])
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.NewPrivateDnsInboundEndpoint(ctx, "example", &tencentcloud.PrivateDnsInboundEndpointArgs{
EndpointName: pulumi.String("tf-example"),
EndpointRegion: pulumi.String("ap-guangzhou"),
EndpointVpc: pulumi.String("vpc-i5yyodl9"),
SubnetIps: tencentcloud.PrivateDnsInboundEndpointSubnetIpArray{
&tencentcloud.PrivateDnsInboundEndpointSubnetIpArgs{
SubnetId: pulumi.String("subnet-hhi88a58"),
SubnetVip: pulumi.String("10.0.30.2"),
},
&tencentcloud.PrivateDnsInboundEndpointSubnetIpArgs{
SubnetId: pulumi.String("subnet-5rrirqyc"),
SubnetVip: pulumi.String("10.0.0.11"),
},
&tencentcloud.PrivateDnsInboundEndpointSubnetIpArgs{
SubnetId: pulumi.String("subnet-60ut6n10"),
},
},
})
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.PrivateDnsInboundEndpoint("example", new()
{
EndpointName = "tf-example",
EndpointRegion = "ap-guangzhou",
EndpointVpc = "vpc-i5yyodl9",
SubnetIps = new[]
{
new Tencentcloud.Inputs.PrivateDnsInboundEndpointSubnetIpArgs
{
SubnetId = "subnet-hhi88a58",
SubnetVip = "10.0.30.2",
},
new Tencentcloud.Inputs.PrivateDnsInboundEndpointSubnetIpArgs
{
SubnetId = "subnet-5rrirqyc",
SubnetVip = "10.0.0.11",
},
new Tencentcloud.Inputs.PrivateDnsInboundEndpointSubnetIpArgs
{
SubnetId = "subnet-60ut6n10",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.PrivateDnsInboundEndpoint;
import com.pulumi.tencentcloud.PrivateDnsInboundEndpointArgs;
import com.pulumi.tencentcloud.inputs.PrivateDnsInboundEndpointSubnetIpArgs;
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 PrivateDnsInboundEndpoint("example", PrivateDnsInboundEndpointArgs.builder()
.endpointName("tf-example")
.endpointRegion("ap-guangzhou")
.endpointVpc("vpc-i5yyodl9")
.subnetIps(
PrivateDnsInboundEndpointSubnetIpArgs.builder()
.subnetId("subnet-hhi88a58")
.subnetVip("10.0.30.2")
.build(),
PrivateDnsInboundEndpointSubnetIpArgs.builder()
.subnetId("subnet-5rrirqyc")
.subnetVip("10.0.0.11")
.build(),
PrivateDnsInboundEndpointSubnetIpArgs.builder()
.subnetId("subnet-60ut6n10")
.build())
.build());
}
}
resources:
example:
type: tencentcloud:PrivateDnsInboundEndpoint
properties:
endpointName: tf-example
endpointRegion: ap-guangzhou
endpointVpc: vpc-i5yyodl9
subnetIps:
- subnetId: subnet-hhi88a58
subnetVip: 10.0.30.2
- subnetId: subnet-5rrirqyc
subnetVip: 10.0.0.11
- subnetId: subnet-60ut6n10
Create PrivateDnsInboundEndpoint Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PrivateDnsInboundEndpoint(name: string, args: PrivateDnsInboundEndpointArgs, opts?: CustomResourceOptions);@overload
def PrivateDnsInboundEndpoint(resource_name: str,
args: PrivateDnsInboundEndpointArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PrivateDnsInboundEndpoint(resource_name: str,
opts: Optional[ResourceOptions] = None,
endpoint_name: Optional[str] = None,
endpoint_region: Optional[str] = None,
endpoint_vpc: Optional[str] = None,
subnet_ips: Optional[Sequence[PrivateDnsInboundEndpointSubnetIpArgs]] = None,
private_dns_inbound_endpoint_id: Optional[str] = None)func NewPrivateDnsInboundEndpoint(ctx *Context, name string, args PrivateDnsInboundEndpointArgs, opts ...ResourceOption) (*PrivateDnsInboundEndpoint, error)public PrivateDnsInboundEndpoint(string name, PrivateDnsInboundEndpointArgs args, CustomResourceOptions? opts = null)
public PrivateDnsInboundEndpoint(String name, PrivateDnsInboundEndpointArgs args)
public PrivateDnsInboundEndpoint(String name, PrivateDnsInboundEndpointArgs args, CustomResourceOptions options)
type: tencentcloud:PrivateDnsInboundEndpoint
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 PrivateDnsInboundEndpointArgs
- 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 PrivateDnsInboundEndpointArgs
- 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 PrivateDnsInboundEndpointArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PrivateDnsInboundEndpointArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PrivateDnsInboundEndpointArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
PrivateDnsInboundEndpoint 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 PrivateDnsInboundEndpoint resource accepts the following input properties:
- Endpoint
Name string - Name.
- Endpoint
Region string - Region.
- Endpoint
Vpc string - VPC ID.
- Subnet
Ips List<PrivateDns Inbound Endpoint Subnet Ip> - Subnet information.
- Private
Dns stringInbound Endpoint Id - ID of the resource.
- Endpoint
Name string - Name.
- Endpoint
Region string - Region.
- Endpoint
Vpc string - VPC ID.
- Subnet
Ips []PrivateDns Inbound Endpoint Subnet Ip Args - Subnet information.
- Private
Dns stringInbound Endpoint Id - ID of the resource.
- endpoint
Name String - Name.
- endpoint
Region String - Region.
- endpoint
Vpc String - VPC ID.
- subnet
Ips List<PrivateDns Inbound Endpoint Subnet Ip> - Subnet information.
- private
Dns StringInbound Endpoint Id - ID of the resource.
- endpoint
Name string - Name.
- endpoint
Region string - Region.
- endpoint
Vpc string - VPC ID.
- subnet
Ips PrivateDns Inbound Endpoint Subnet Ip[] - Subnet information.
- private
Dns stringInbound Endpoint Id - ID of the resource.
- endpoint_
name str - Name.
- endpoint_
region str - Region.
- endpoint_
vpc str - VPC ID.
- subnet_
ips Sequence[PrivateDns Inbound Endpoint Subnet Ip Args] - Subnet information.
- private_
dns_ strinbound_ endpoint_ id - ID of the resource.
- endpoint
Name String - Name.
- endpoint
Region String - Region.
- endpoint
Vpc String - VPC ID.
- subnet
Ips List<Property Map> - Subnet information.
- private
Dns StringInbound Endpoint Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the PrivateDnsInboundEndpoint 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 PrivateDnsInboundEndpoint Resource
Get an existing PrivateDnsInboundEndpoint 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?: PrivateDnsInboundEndpointState, opts?: CustomResourceOptions): PrivateDnsInboundEndpoint@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
endpoint_name: Optional[str] = None,
endpoint_region: Optional[str] = None,
endpoint_vpc: Optional[str] = None,
private_dns_inbound_endpoint_id: Optional[str] = None,
subnet_ips: Optional[Sequence[PrivateDnsInboundEndpointSubnetIpArgs]] = None) -> PrivateDnsInboundEndpointfunc GetPrivateDnsInboundEndpoint(ctx *Context, name string, id IDInput, state *PrivateDnsInboundEndpointState, opts ...ResourceOption) (*PrivateDnsInboundEndpoint, error)public static PrivateDnsInboundEndpoint Get(string name, Input<string> id, PrivateDnsInboundEndpointState? state, CustomResourceOptions? opts = null)public static PrivateDnsInboundEndpoint get(String name, Output<String> id, PrivateDnsInboundEndpointState state, CustomResourceOptions options)resources: _: type: tencentcloud:PrivateDnsInboundEndpoint 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.
- Endpoint
Name string - Name.
- Endpoint
Region string - Region.
- Endpoint
Vpc string - VPC ID.
- Private
Dns stringInbound Endpoint Id - ID of the resource.
- Subnet
Ips List<PrivateDns Inbound Endpoint Subnet Ip> - Subnet information.
- Endpoint
Name string - Name.
- Endpoint
Region string - Region.
- Endpoint
Vpc string - VPC ID.
- Private
Dns stringInbound Endpoint Id - ID of the resource.
- Subnet
Ips []PrivateDns Inbound Endpoint Subnet Ip Args - Subnet information.
- endpoint
Name String - Name.
- endpoint
Region String - Region.
- endpoint
Vpc String - VPC ID.
- private
Dns StringInbound Endpoint Id - ID of the resource.
- subnet
Ips List<PrivateDns Inbound Endpoint Subnet Ip> - Subnet information.
- endpoint
Name string - Name.
- endpoint
Region string - Region.
- endpoint
Vpc string - VPC ID.
- private
Dns stringInbound Endpoint Id - ID of the resource.
- subnet
Ips PrivateDns Inbound Endpoint Subnet Ip[] - Subnet information.
- endpoint_
name str - Name.
- endpoint_
region str - Region.
- endpoint_
vpc str - VPC ID.
- private_
dns_ strinbound_ endpoint_ id - ID of the resource.
- subnet_
ips Sequence[PrivateDns Inbound Endpoint Subnet Ip Args] - Subnet information.
- endpoint
Name String - Name.
- endpoint
Region String - Region.
- endpoint
Vpc String - VPC ID.
- private
Dns StringInbound Endpoint Id - ID of the resource.
- subnet
Ips List<Property Map> - Subnet information.
Supporting Types
PrivateDnsInboundEndpointSubnetIp, PrivateDnsInboundEndpointSubnetIpArgs
- subnet_
id str - Subnet ID.
- subnet_
vip str - IP address.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
