tencentcloud.PrivateDnsEndPoint
Explore with Pulumi AI
Provides a resource to create a privatedns end point
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.PrivateDnsEndPoint("example", {
endPointName: "tf-example",
endPointRegion: "ap-guangzhou",
endPointServiceId: "vpcsvc-61wcwmar",
ipNum: 1,
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.PrivateDnsEndPoint("example",
end_point_name="tf-example",
end_point_region="ap-guangzhou",
end_point_service_id="vpcsvc-61wcwmar",
ip_num=1)
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.NewPrivateDnsEndPoint(ctx, "example", &tencentcloud.PrivateDnsEndPointArgs{
EndPointName: pulumi.String("tf-example"),
EndPointRegion: pulumi.String("ap-guangzhou"),
EndPointServiceId: pulumi.String("vpcsvc-61wcwmar"),
IpNum: pulumi.Float64(1),
})
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.PrivateDnsEndPoint("example", new()
{
EndPointName = "tf-example",
EndPointRegion = "ap-guangzhou",
EndPointServiceId = "vpcsvc-61wcwmar",
IpNum = 1,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.PrivateDnsEndPoint;
import com.pulumi.tencentcloud.PrivateDnsEndPointArgs;
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 PrivateDnsEndPoint("example", PrivateDnsEndPointArgs.builder()
.endPointName("tf-example")
.endPointRegion("ap-guangzhou")
.endPointServiceId("vpcsvc-61wcwmar")
.ipNum(1)
.build());
}
}
resources:
example:
type: tencentcloud:PrivateDnsEndPoint
properties:
endPointName: tf-example
endPointRegion: ap-guangzhou
endPointServiceId: vpcsvc-61wcwmar
ipNum: 1
Create PrivateDnsEndPoint Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PrivateDnsEndPoint(name: string, args: PrivateDnsEndPointArgs, opts?: CustomResourceOptions);
@overload
def PrivateDnsEndPoint(resource_name: str,
args: PrivateDnsEndPointArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PrivateDnsEndPoint(resource_name: str,
opts: Optional[ResourceOptions] = None,
end_point_name: Optional[str] = None,
end_point_region: Optional[str] = None,
end_point_service_id: Optional[str] = None,
ip_num: Optional[float] = None,
private_dns_end_point_id: Optional[str] = None)
func NewPrivateDnsEndPoint(ctx *Context, name string, args PrivateDnsEndPointArgs, opts ...ResourceOption) (*PrivateDnsEndPoint, error)
public PrivateDnsEndPoint(string name, PrivateDnsEndPointArgs args, CustomResourceOptions? opts = null)
public PrivateDnsEndPoint(String name, PrivateDnsEndPointArgs args)
public PrivateDnsEndPoint(String name, PrivateDnsEndPointArgs args, CustomResourceOptions options)
type: tencentcloud:PrivateDnsEndPoint
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 PrivateDnsEndPointArgs
- 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 PrivateDnsEndPointArgs
- 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 PrivateDnsEndPointArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PrivateDnsEndPointArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PrivateDnsEndPointArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
PrivateDnsEndPoint 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 PrivateDnsEndPoint resource accepts the following input properties:
- End
Point stringName - Endpoint name.
- End
Point stringRegion - Endpoint region, which should be consistent with the region of the endpoint service.
- End
Point stringService Id - Endpoint service ID (namely, VPC endpoint service ID).
- Ip
Num double - Number of endpoint IP addresses.
- Private
Dns stringEnd Point Id - ID of the resource.
- End
Point stringName - Endpoint name.
- End
Point stringRegion - Endpoint region, which should be consistent with the region of the endpoint service.
- End
Point stringService Id - Endpoint service ID (namely, VPC endpoint service ID).
- Ip
Num float64 - Number of endpoint IP addresses.
- Private
Dns stringEnd Point Id - ID of the resource.
- end
Point StringName - Endpoint name.
- end
Point StringRegion - Endpoint region, which should be consistent with the region of the endpoint service.
- end
Point StringService Id - Endpoint service ID (namely, VPC endpoint service ID).
- ip
Num Double - Number of endpoint IP addresses.
- private
Dns StringEnd Point Id - ID of the resource.
- end
Point stringName - Endpoint name.
- end
Point stringRegion - Endpoint region, which should be consistent with the region of the endpoint service.
- end
Point stringService Id - Endpoint service ID (namely, VPC endpoint service ID).
- ip
Num number - Number of endpoint IP addresses.
- private
Dns stringEnd Point Id - ID of the resource.
- end_
point_ strname - Endpoint name.
- end_
point_ strregion - Endpoint region, which should be consistent with the region of the endpoint service.
- end_
point_ strservice_ id - Endpoint service ID (namely, VPC endpoint service ID).
- ip_
num float - Number of endpoint IP addresses.
- private_
dns_ strend_ point_ id - ID of the resource.
- end
Point StringName - Endpoint name.
- end
Point StringRegion - Endpoint region, which should be consistent with the region of the endpoint service.
- end
Point StringService Id - Endpoint service ID (namely, VPC endpoint service ID).
- ip
Num Number - Number of endpoint IP addresses.
- private
Dns StringEnd Point Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the PrivateDnsEndPoint resource produces the following output properties:
- End
Point List<string>Vip Sets - Vip list of endpoint.
- Id string
- The provider-assigned unique ID for this managed resource.
- End
Point []stringVip Sets - Vip list of endpoint.
- Id string
- The provider-assigned unique ID for this managed resource.
- end
Point List<String>Vip Sets - Vip list of endpoint.
- id String
- The provider-assigned unique ID for this managed resource.
- end
Point string[]Vip Sets - Vip list of endpoint.
- id string
- The provider-assigned unique ID for this managed resource.
- end_
point_ Sequence[str]vip_ sets - Vip list of endpoint.
- id str
- The provider-assigned unique ID for this managed resource.
- end
Point List<String>Vip Sets - Vip list of endpoint.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing PrivateDnsEndPoint Resource
Get an existing PrivateDnsEndPoint 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?: PrivateDnsEndPointState, opts?: CustomResourceOptions): PrivateDnsEndPoint
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
end_point_name: Optional[str] = None,
end_point_region: Optional[str] = None,
end_point_service_id: Optional[str] = None,
end_point_vip_sets: Optional[Sequence[str]] = None,
ip_num: Optional[float] = None,
private_dns_end_point_id: Optional[str] = None) -> PrivateDnsEndPoint
func GetPrivateDnsEndPoint(ctx *Context, name string, id IDInput, state *PrivateDnsEndPointState, opts ...ResourceOption) (*PrivateDnsEndPoint, error)
public static PrivateDnsEndPoint Get(string name, Input<string> id, PrivateDnsEndPointState? state, CustomResourceOptions? opts = null)
public static PrivateDnsEndPoint get(String name, Output<String> id, PrivateDnsEndPointState state, CustomResourceOptions options)
resources: _: type: tencentcloud:PrivateDnsEndPoint 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.
- End
Point stringName - Endpoint name.
- End
Point stringRegion - Endpoint region, which should be consistent with the region of the endpoint service.
- End
Point stringService Id - Endpoint service ID (namely, VPC endpoint service ID).
- End
Point List<string>Vip Sets - Vip list of endpoint.
- Ip
Num double - Number of endpoint IP addresses.
- Private
Dns stringEnd Point Id - ID of the resource.
- End
Point stringName - Endpoint name.
- End
Point stringRegion - Endpoint region, which should be consistent with the region of the endpoint service.
- End
Point stringService Id - Endpoint service ID (namely, VPC endpoint service ID).
- End
Point []stringVip Sets - Vip list of endpoint.
- Ip
Num float64 - Number of endpoint IP addresses.
- Private
Dns stringEnd Point Id - ID of the resource.
- end
Point StringName - Endpoint name.
- end
Point StringRegion - Endpoint region, which should be consistent with the region of the endpoint service.
- end
Point StringService Id - Endpoint service ID (namely, VPC endpoint service ID).
- end
Point List<String>Vip Sets - Vip list of endpoint.
- ip
Num Double - Number of endpoint IP addresses.
- private
Dns StringEnd Point Id - ID of the resource.
- end
Point stringName - Endpoint name.
- end
Point stringRegion - Endpoint region, which should be consistent with the region of the endpoint service.
- end
Point stringService Id - Endpoint service ID (namely, VPC endpoint service ID).
- end
Point string[]Vip Sets - Vip list of endpoint.
- ip
Num number - Number of endpoint IP addresses.
- private
Dns stringEnd Point Id - ID of the resource.
- end_
point_ strname - Endpoint name.
- end_
point_ strregion - Endpoint region, which should be consistent with the region of the endpoint service.
- end_
point_ strservice_ id - Endpoint service ID (namely, VPC endpoint service ID).
- end_
point_ Sequence[str]vip_ sets - Vip list of endpoint.
- ip_
num float - Number of endpoint IP addresses.
- private_
dns_ strend_ point_ id - ID of the resource.
- end
Point StringName - Endpoint name.
- end
Point StringRegion - Endpoint region, which should be consistent with the region of the endpoint service.
- end
Point StringService Id - Endpoint service ID (namely, VPC endpoint service ID).
- end
Point List<String>Vip Sets - Vip list of endpoint.
- ip
Num Number - Number of endpoint IP addresses.
- private
Dns StringEnd Point Id - ID of the resource.
Import
private dns end point can be imported using the id, e.g.
$ pulumi import tencentcloud:index/privateDnsEndPoint:PrivateDnsEndPoint example eid-77a246c867
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.