tencentcloud.PrivateDnsExtendEndPoint
Explore with Pulumi AI
Provides a resource to create a privatedns extend end point
Example Usage
If access_type is CLB
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.PrivateDnsExtendEndPoint("example", {
endPointName: "tf-example",
endPointRegion: "ap-jakarta",
forwardIp: {
accessType: "CLB",
host: "10.0.1.12",
port: 9000,
vpcId: "vpc-1v2i79fc",
},
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.PrivateDnsExtendEndPoint("example",
end_point_name="tf-example",
end_point_region="ap-jakarta",
forward_ip={
"access_type": "CLB",
"host": "10.0.1.12",
"port": 9000,
"vpc_id": "vpc-1v2i79fc",
})
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.NewPrivateDnsExtendEndPoint(ctx, "example", &tencentcloud.PrivateDnsExtendEndPointArgs{
EndPointName: pulumi.String("tf-example"),
EndPointRegion: pulumi.String("ap-jakarta"),
ForwardIp: &tencentcloud.PrivateDnsExtendEndPointForwardIpArgs{
AccessType: pulumi.String("CLB"),
Host: pulumi.String("10.0.1.12"),
Port: pulumi.Float64(9000),
VpcId: pulumi.String("vpc-1v2i79fc"),
},
})
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.PrivateDnsExtendEndPoint("example", new()
{
EndPointName = "tf-example",
EndPointRegion = "ap-jakarta",
ForwardIp = new Tencentcloud.Inputs.PrivateDnsExtendEndPointForwardIpArgs
{
AccessType = "CLB",
Host = "10.0.1.12",
Port = 9000,
VpcId = "vpc-1v2i79fc",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.PrivateDnsExtendEndPoint;
import com.pulumi.tencentcloud.PrivateDnsExtendEndPointArgs;
import com.pulumi.tencentcloud.inputs.PrivateDnsExtendEndPointForwardIpArgs;
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 PrivateDnsExtendEndPoint("example", PrivateDnsExtendEndPointArgs.builder()
.endPointName("tf-example")
.endPointRegion("ap-jakarta")
.forwardIp(PrivateDnsExtendEndPointForwardIpArgs.builder()
.accessType("CLB")
.host("10.0.1.12")
.port(9000)
.vpcId("vpc-1v2i79fc")
.build())
.build());
}
}
resources:
example:
type: tencentcloud:PrivateDnsExtendEndPoint
properties:
endPointName: tf-example
endPointRegion: ap-jakarta
forwardIp:
accessType: CLB
host: 10.0.1.12
port: 9000
vpcId: vpc-1v2i79fc
If access_type is CCN
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.PrivateDnsExtendEndPoint("example", {
endPointName: "tf-example",
endPointRegion: "ap-jakarta",
forwardIp: {
accessGatewayId: "ccn-eo13f8ub",
accessType: "CCN",
host: "1.1.1.1",
port: 8080,
vpcId: "vpc-2qjckjg2",
},
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.PrivateDnsExtendEndPoint("example",
end_point_name="tf-example",
end_point_region="ap-jakarta",
forward_ip={
"access_gateway_id": "ccn-eo13f8ub",
"access_type": "CCN",
"host": "1.1.1.1",
"port": 8080,
"vpc_id": "vpc-2qjckjg2",
})
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.NewPrivateDnsExtendEndPoint(ctx, "example", &tencentcloud.PrivateDnsExtendEndPointArgs{
EndPointName: pulumi.String("tf-example"),
EndPointRegion: pulumi.String("ap-jakarta"),
ForwardIp: &tencentcloud.PrivateDnsExtendEndPointForwardIpArgs{
AccessGatewayId: pulumi.String("ccn-eo13f8ub"),
AccessType: pulumi.String("CCN"),
Host: pulumi.String("1.1.1.1"),
Port: pulumi.Float64(8080),
VpcId: pulumi.String("vpc-2qjckjg2"),
},
})
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.PrivateDnsExtendEndPoint("example", new()
{
EndPointName = "tf-example",
EndPointRegion = "ap-jakarta",
ForwardIp = new Tencentcloud.Inputs.PrivateDnsExtendEndPointForwardIpArgs
{
AccessGatewayId = "ccn-eo13f8ub",
AccessType = "CCN",
Host = "1.1.1.1",
Port = 8080,
VpcId = "vpc-2qjckjg2",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.PrivateDnsExtendEndPoint;
import com.pulumi.tencentcloud.PrivateDnsExtendEndPointArgs;
import com.pulumi.tencentcloud.inputs.PrivateDnsExtendEndPointForwardIpArgs;
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 PrivateDnsExtendEndPoint("example", PrivateDnsExtendEndPointArgs.builder()
.endPointName("tf-example")
.endPointRegion("ap-jakarta")
.forwardIp(PrivateDnsExtendEndPointForwardIpArgs.builder()
.accessGatewayId("ccn-eo13f8ub")
.accessType("CCN")
.host("1.1.1.1")
.port(8080)
.vpcId("vpc-2qjckjg2")
.build())
.build());
}
}
resources:
example:
type: tencentcloud:PrivateDnsExtendEndPoint
properties:
endPointName: tf-example
endPointRegion: ap-jakarta
forwardIp:
accessGatewayId: ccn-eo13f8ub
accessType: CCN
host: 1.1.1.1
port: 8080
vpcId: vpc-2qjckjg2
Create PrivateDnsExtendEndPoint Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PrivateDnsExtendEndPoint(name: string, args: PrivateDnsExtendEndPointArgs, opts?: CustomResourceOptions);
@overload
def PrivateDnsExtendEndPoint(resource_name: str,
args: PrivateDnsExtendEndPointArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PrivateDnsExtendEndPoint(resource_name: str,
opts: Optional[ResourceOptions] = None,
end_point_name: Optional[str] = None,
end_point_region: Optional[str] = None,
forward_ip: Optional[PrivateDnsExtendEndPointForwardIpArgs] = None,
private_dns_extend_end_point_id: Optional[str] = None)
func NewPrivateDnsExtendEndPoint(ctx *Context, name string, args PrivateDnsExtendEndPointArgs, opts ...ResourceOption) (*PrivateDnsExtendEndPoint, error)
public PrivateDnsExtendEndPoint(string name, PrivateDnsExtendEndPointArgs args, CustomResourceOptions? opts = null)
public PrivateDnsExtendEndPoint(String name, PrivateDnsExtendEndPointArgs args)
public PrivateDnsExtendEndPoint(String name, PrivateDnsExtendEndPointArgs args, CustomResourceOptions options)
type: tencentcloud:PrivateDnsExtendEndPoint
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 PrivateDnsExtendEndPointArgs
- 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 PrivateDnsExtendEndPointArgs
- 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 PrivateDnsExtendEndPointArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PrivateDnsExtendEndPointArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PrivateDnsExtendEndPointArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
PrivateDnsExtendEndPoint 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 PrivateDnsExtendEndPoint resource accepts the following input properties:
- End
Point stringName - Outbound endpoint name.
- End
Point stringRegion - The region of the outbound endpoint must be consistent with the region of the forwarding target VIP.
- Forward
Ip PrivateDns Extend End Point Forward Ip - Forwarding target.
- Private
Dns stringExtend End Point Id - ID of the resource.
- End
Point stringName - Outbound endpoint name.
- End
Point stringRegion - The region of the outbound endpoint must be consistent with the region of the forwarding target VIP.
- Forward
Ip PrivateDns Extend End Point Forward Ip Args - Forwarding target.
- Private
Dns stringExtend End Point Id - ID of the resource.
- end
Point StringName - Outbound endpoint name.
- end
Point StringRegion - The region of the outbound endpoint must be consistent with the region of the forwarding target VIP.
- forward
Ip PrivateDns Extend End Point Forward Ip - Forwarding target.
- private
Dns StringExtend End Point Id - ID of the resource.
- end
Point stringName - Outbound endpoint name.
- end
Point stringRegion - The region of the outbound endpoint must be consistent with the region of the forwarding target VIP.
- forward
Ip PrivateDns Extend End Point Forward Ip - Forwarding target.
- private
Dns stringExtend End Point Id - ID of the resource.
- end_
point_ strname - Outbound endpoint name.
- end_
point_ strregion - The region of the outbound endpoint must be consistent with the region of the forwarding target VIP.
- forward_
ip PrivateDns Extend End Point Forward Ip Args - Forwarding target.
- private_
dns_ strextend_ end_ point_ id - ID of the resource.
- end
Point StringName - Outbound endpoint name.
- end
Point StringRegion - The region of the outbound endpoint must be consistent with the region of the forwarding target VIP.
- forward
Ip Property Map - Forwarding target.
- private
Dns StringExtend End Point Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the PrivateDnsExtendEndPoint 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 PrivateDnsExtendEndPoint Resource
Get an existing PrivateDnsExtendEndPoint 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?: PrivateDnsExtendEndPointState, opts?: CustomResourceOptions): PrivateDnsExtendEndPoint
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
end_point_name: Optional[str] = None,
end_point_region: Optional[str] = None,
forward_ip: Optional[PrivateDnsExtendEndPointForwardIpArgs] = None,
private_dns_extend_end_point_id: Optional[str] = None) -> PrivateDnsExtendEndPoint
func GetPrivateDnsExtendEndPoint(ctx *Context, name string, id IDInput, state *PrivateDnsExtendEndPointState, opts ...ResourceOption) (*PrivateDnsExtendEndPoint, error)
public static PrivateDnsExtendEndPoint Get(string name, Input<string> id, PrivateDnsExtendEndPointState? state, CustomResourceOptions? opts = null)
public static PrivateDnsExtendEndPoint get(String name, Output<String> id, PrivateDnsExtendEndPointState state, CustomResourceOptions options)
resources: _: type: tencentcloud:PrivateDnsExtendEndPoint 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 - Outbound endpoint name.
- End
Point stringRegion - The region of the outbound endpoint must be consistent with the region of the forwarding target VIP.
- Forward
Ip PrivateDns Extend End Point Forward Ip - Forwarding target.
- Private
Dns stringExtend End Point Id - ID of the resource.
- End
Point stringName - Outbound endpoint name.
- End
Point stringRegion - The region of the outbound endpoint must be consistent with the region of the forwarding target VIP.
- Forward
Ip PrivateDns Extend End Point Forward Ip Args - Forwarding target.
- Private
Dns stringExtend End Point Id - ID of the resource.
- end
Point StringName - Outbound endpoint name.
- end
Point StringRegion - The region of the outbound endpoint must be consistent with the region of the forwarding target VIP.
- forward
Ip PrivateDns Extend End Point Forward Ip - Forwarding target.
- private
Dns StringExtend End Point Id - ID of the resource.
- end
Point stringName - Outbound endpoint name.
- end
Point stringRegion - The region of the outbound endpoint must be consistent with the region of the forwarding target VIP.
- forward
Ip PrivateDns Extend End Point Forward Ip - Forwarding target.
- private
Dns stringExtend End Point Id - ID of the resource.
- end_
point_ strname - Outbound endpoint name.
- end_
point_ strregion - The region of the outbound endpoint must be consistent with the region of the forwarding target VIP.
- forward_
ip PrivateDns Extend End Point Forward Ip Args - Forwarding target.
- private_
dns_ strextend_ end_ point_ id - ID of the resource.
- end
Point StringName - Outbound endpoint name.
- end
Point StringRegion - The region of the outbound endpoint must be consistent with the region of the forwarding target VIP.
- forward
Ip Property Map - Forwarding target.
- private
Dns StringExtend End Point Id - ID of the resource.
Supporting Types
PrivateDnsExtendEndPointForwardIp, PrivateDnsExtendEndPointForwardIpArgs
- Access
Type string - Forwarding target IP network access type. CLB: The forwarding IP is the internal CLB VIP. CCN: Forwarding IP through CCN routing.
- Host string
- Forwarding target IP address.
- Port double
- Specifies the forwarding IP port number.
- Vpc
Id string - Unique VPC ID.
- Access
Gateway stringId - CCN id. Required when the access type is CCN.
- Proto string
- Specifies the forwarding target IP protocol.
- Snat
Vip stringCidr - The SNAT CIDR block of the outbound endpoint.
- Snat
Vip stringSet - The SNAT IP list of the outbound endpoint.
- Vip string
- Specifies the forwarding target IP proxy IP.
- Vport double
- Specifies the forwarding target IP proxy port.
- Access
Type string - Forwarding target IP network access type. CLB: The forwarding IP is the internal CLB VIP. CCN: Forwarding IP through CCN routing.
- Host string
- Forwarding target IP address.
- Port float64
- Specifies the forwarding IP port number.
- Vpc
Id string - Unique VPC ID.
- Access
Gateway stringId - CCN id. Required when the access type is CCN.
- Proto string
- Specifies the forwarding target IP protocol.
- Snat
Vip stringCidr - The SNAT CIDR block of the outbound endpoint.
- Snat
Vip stringSet - The SNAT IP list of the outbound endpoint.
- Vip string
- Specifies the forwarding target IP proxy IP.
- Vport float64
- Specifies the forwarding target IP proxy port.
- access
Type String - Forwarding target IP network access type. CLB: The forwarding IP is the internal CLB VIP. CCN: Forwarding IP through CCN routing.
- host String
- Forwarding target IP address.
- port Double
- Specifies the forwarding IP port number.
- vpc
Id String - Unique VPC ID.
- access
Gateway StringId - CCN id. Required when the access type is CCN.
- proto String
- Specifies the forwarding target IP protocol.
- snat
Vip StringCidr - The SNAT CIDR block of the outbound endpoint.
- snat
Vip StringSet - The SNAT IP list of the outbound endpoint.
- vip String
- Specifies the forwarding target IP proxy IP.
- vport Double
- Specifies the forwarding target IP proxy port.
- access
Type string - Forwarding target IP network access type. CLB: The forwarding IP is the internal CLB VIP. CCN: Forwarding IP through CCN routing.
- host string
- Forwarding target IP address.
- port number
- Specifies the forwarding IP port number.
- vpc
Id string - Unique VPC ID.
- access
Gateway stringId - CCN id. Required when the access type is CCN.
- proto string
- Specifies the forwarding target IP protocol.
- snat
Vip stringCidr - The SNAT CIDR block of the outbound endpoint.
- snat
Vip stringSet - The SNAT IP list of the outbound endpoint.
- vip string
- Specifies the forwarding target IP proxy IP.
- vport number
- Specifies the forwarding target IP proxy port.
- access_
type str - Forwarding target IP network access type. CLB: The forwarding IP is the internal CLB VIP. CCN: Forwarding IP through CCN routing.
- host str
- Forwarding target IP address.
- port float
- Specifies the forwarding IP port number.
- vpc_
id str - Unique VPC ID.
- access_
gateway_ strid - CCN id. Required when the access type is CCN.
- proto str
- Specifies the forwarding target IP protocol.
- snat_
vip_ strcidr - The SNAT CIDR block of the outbound endpoint.
- snat_
vip_ strset - The SNAT IP list of the outbound endpoint.
- vip str
- Specifies the forwarding target IP proxy IP.
- vport float
- Specifies the forwarding target IP proxy port.
- access
Type String - Forwarding target IP network access type. CLB: The forwarding IP is the internal CLB VIP. CCN: Forwarding IP through CCN routing.
- host String
- Forwarding target IP address.
- port Number
- Specifies the forwarding IP port number.
- vpc
Id String - Unique VPC ID.
- access
Gateway StringId - CCN id. Required when the access type is CCN.
- proto String
- Specifies the forwarding target IP protocol.
- snat
Vip StringCidr - The SNAT CIDR block of the outbound endpoint.
- snat
Vip StringSet - The SNAT IP list of the outbound endpoint.
- vip String
- Specifies the forwarding target IP proxy IP.
- vport Number
- Specifies the forwarding target IP proxy port.
Import
private dns extend end point can be imported using the id, e.g.
$ pulumi import tencentcloud:index/privateDnsExtendEndPoint:PrivateDnsExtendEndPoint example eid-960fb0ee9677
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.