volcengine.private_zone.ResolverEndpoint
Explore with Pulumi AI
Provides a resource to manage private zone resolver endpoint
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var foo = new Volcengine.Private_zone.ResolverEndpoint("foo", new()
{
IpConfigs = new[]
{
new Volcengine.Private_zone.Inputs.ResolverEndpointIpConfigArgs
{
AzId = "cn-beijing-a",
Ip = "172.16.0.2",
SubnetId = "subnet-mj2o4co2m2v45smt1bx1****",
},
new Volcengine.Private_zone.Inputs.ResolverEndpointIpConfigArgs
{
AzId = "cn-beijing-a",
Ip = "172.16.0.3",
SubnetId = "subnet-mj2o4co2m2v45smt1bx1****",
},
new Volcengine.Private_zone.Inputs.ResolverEndpointIpConfigArgs
{
AzId = "cn-beijing-a",
Ip = "172.16.0.4",
SubnetId = "subnet-mj2o4co2m2v45smt1bx1****",
},
new Volcengine.Private_zone.Inputs.ResolverEndpointIpConfigArgs
{
AzId = "cn-beijing-a",
Ip = "172.16.0.5",
SubnetId = "subnet-mj2o4co2m2v45smt1bx1****",
},
},
SecurityGroupId = "sg-mj2nsckay29s5smt1b0d****",
VpcId = "vpc-13f9uuuqfdjb43n6nu5p1****",
VpcRegion = "cn-beijing",
});
});
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/private_zone"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := private_zone.NewResolverEndpoint(ctx, "foo", &private_zone.ResolverEndpointArgs{
IpConfigs: private_zone.ResolverEndpointIpConfigArray{
&private_zone.ResolverEndpointIpConfigArgs{
AzId: pulumi.String("cn-beijing-a"),
Ip: pulumi.String("172.16.0.2"),
SubnetId: pulumi.String("subnet-mj2o4co2m2v45smt1bx1****"),
},
&private_zone.ResolverEndpointIpConfigArgs{
AzId: pulumi.String("cn-beijing-a"),
Ip: pulumi.String("172.16.0.3"),
SubnetId: pulumi.String("subnet-mj2o4co2m2v45smt1bx1****"),
},
&private_zone.ResolverEndpointIpConfigArgs{
AzId: pulumi.String("cn-beijing-a"),
Ip: pulumi.String("172.16.0.4"),
SubnetId: pulumi.String("subnet-mj2o4co2m2v45smt1bx1****"),
},
&private_zone.ResolverEndpointIpConfigArgs{
AzId: pulumi.String("cn-beijing-a"),
Ip: pulumi.String("172.16.0.5"),
SubnetId: pulumi.String("subnet-mj2o4co2m2v45smt1bx1****"),
},
},
SecurityGroupId: pulumi.String("sg-mj2nsckay29s5smt1b0d****"),
VpcId: pulumi.String("vpc-13f9uuuqfdjb43n6nu5p1****"),
VpcRegion: pulumi.String("cn-beijing"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.private_zone.ResolverEndpoint;
import com.pulumi.volcengine.private_zone.ResolverEndpointArgs;
import com.pulumi.volcengine.private_zone.inputs.ResolverEndpointIpConfigArgs;
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 foo = new ResolverEndpoint("foo", ResolverEndpointArgs.builder()
.ipConfigs(
ResolverEndpointIpConfigArgs.builder()
.azId("cn-beijing-a")
.ip("172.16.0.2")
.subnetId("subnet-mj2o4co2m2v45smt1bx1****")
.build(),
ResolverEndpointIpConfigArgs.builder()
.azId("cn-beijing-a")
.ip("172.16.0.3")
.subnetId("subnet-mj2o4co2m2v45smt1bx1****")
.build(),
ResolverEndpointIpConfigArgs.builder()
.azId("cn-beijing-a")
.ip("172.16.0.4")
.subnetId("subnet-mj2o4co2m2v45smt1bx1****")
.build(),
ResolverEndpointIpConfigArgs.builder()
.azId("cn-beijing-a")
.ip("172.16.0.5")
.subnetId("subnet-mj2o4co2m2v45smt1bx1****")
.build())
.securityGroupId("sg-mj2nsckay29s5smt1b0d****")
.vpcId("vpc-13f9uuuqfdjb43n6nu5p1****")
.vpcRegion("cn-beijing")
.build());
}
}
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.private_zone.ResolverEndpoint("foo",
ip_configs=[
volcengine.private_zone.ResolverEndpointIpConfigArgs(
az_id="cn-beijing-a",
ip="172.16.0.2",
subnet_id="subnet-mj2o4co2m2v45smt1bx1****",
),
volcengine.private_zone.ResolverEndpointIpConfigArgs(
az_id="cn-beijing-a",
ip="172.16.0.3",
subnet_id="subnet-mj2o4co2m2v45smt1bx1****",
),
volcengine.private_zone.ResolverEndpointIpConfigArgs(
az_id="cn-beijing-a",
ip="172.16.0.4",
subnet_id="subnet-mj2o4co2m2v45smt1bx1****",
),
volcengine.private_zone.ResolverEndpointIpConfigArgs(
az_id="cn-beijing-a",
ip="172.16.0.5",
subnet_id="subnet-mj2o4co2m2v45smt1bx1****",
),
],
security_group_id="sg-mj2nsckay29s5smt1b0d****",
vpc_id="vpc-13f9uuuqfdjb43n6nu5p1****",
vpc_region="cn-beijing")
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@volcengine/pulumi";
const foo = new volcengine.private_zone.ResolverEndpoint("foo", {
ipConfigs: [
{
azId: "cn-beijing-a",
ip: "172.16.0.2",
subnetId: "subnet-mj2o4co2m2v45smt1bx1****",
},
{
azId: "cn-beijing-a",
ip: "172.16.0.3",
subnetId: "subnet-mj2o4co2m2v45smt1bx1****",
},
{
azId: "cn-beijing-a",
ip: "172.16.0.4",
subnetId: "subnet-mj2o4co2m2v45smt1bx1****",
},
{
azId: "cn-beijing-a",
ip: "172.16.0.5",
subnetId: "subnet-mj2o4co2m2v45smt1bx1****",
},
],
securityGroupId: "sg-mj2nsckay29s5smt1b0d****",
vpcId: "vpc-13f9uuuqfdjb43n6nu5p1****",
vpcRegion: "cn-beijing",
});
resources:
foo:
type: volcengine:private_zone:ResolverEndpoint
properties:
ipConfigs:
- azId: cn-beijing-a
ip: 172.16.0.2
subnetId: subnet-mj2o4co2m2v45smt1bx1****
- azId: cn-beijing-a
ip: 172.16.0.3
subnetId: subnet-mj2o4co2m2v45smt1bx1****
- azId: cn-beijing-a
ip: 172.16.0.4
subnetId: subnet-mj2o4co2m2v45smt1bx1****
- azId: cn-beijing-a
ip: 172.16.0.5
subnetId: subnet-mj2o4co2m2v45smt1bx1****
securityGroupId: sg-mj2nsckay29s5smt1b0d****
vpcId: vpc-13f9uuuqfdjb43n6nu5p1****
vpcRegion: cn-beijing
Create ResolverEndpoint Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ResolverEndpoint(name: string, args: ResolverEndpointArgs, opts?: CustomResourceOptions);
@overload
def ResolverEndpoint(resource_name: str,
args: ResolverEndpointArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ResolverEndpoint(resource_name: str,
opts: Optional[ResourceOptions] = None,
ip_configs: Optional[Sequence[ResolverEndpointIpConfigArgs]] = None,
security_group_id: Optional[str] = None,
vpc_id: Optional[str] = None,
vpc_region: Optional[str] = None,
direction: Optional[str] = None,
name: Optional[str] = None)
func NewResolverEndpoint(ctx *Context, name string, args ResolverEndpointArgs, opts ...ResourceOption) (*ResolverEndpoint, error)
public ResolverEndpoint(string name, ResolverEndpointArgs args, CustomResourceOptions? opts = null)
public ResolverEndpoint(String name, ResolverEndpointArgs args)
public ResolverEndpoint(String name, ResolverEndpointArgs args, CustomResourceOptions options)
type: volcengine:private_zone:ResolverEndpoint
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 ResolverEndpointArgs
- 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 ResolverEndpointArgs
- 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 ResolverEndpointArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ResolverEndpointArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ResolverEndpointArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var resolverEndpointResource = new Volcengine.Private_zone.ResolverEndpoint("resolverEndpointResource", new()
{
IpConfigs = new[]
{
new Volcengine.Private_zone.Inputs.ResolverEndpointIpConfigArgs
{
AzId = "string",
Ip = "string",
SubnetId = "string",
},
},
SecurityGroupId = "string",
VpcId = "string",
VpcRegion = "string",
Direction = "string",
Name = "string",
});
example, err := private_zone.NewResolverEndpoint(ctx, "resolverEndpointResource", &private_zone.ResolverEndpointArgs{
IpConfigs: private_zone.ResolverEndpointIpConfigArray{
&private_zone.ResolverEndpointIpConfigArgs{
AzId: pulumi.String("string"),
Ip: pulumi.String("string"),
SubnetId: pulumi.String("string"),
},
},
SecurityGroupId: pulumi.String("string"),
VpcId: pulumi.String("string"),
VpcRegion: pulumi.String("string"),
Direction: pulumi.String("string"),
Name: pulumi.String("string"),
})
var resolverEndpointResource = new ResolverEndpoint("resolverEndpointResource", ResolverEndpointArgs.builder()
.ipConfigs(ResolverEndpointIpConfigArgs.builder()
.azId("string")
.ip("string")
.subnetId("string")
.build())
.securityGroupId("string")
.vpcId("string")
.vpcRegion("string")
.direction("string")
.name("string")
.build());
resolver_endpoint_resource = volcengine.private_zone.ResolverEndpoint("resolverEndpointResource",
ip_configs=[volcengine.private_zone.ResolverEndpointIpConfigArgs(
az_id="string",
ip="string",
subnet_id="string",
)],
security_group_id="string",
vpc_id="string",
vpc_region="string",
direction="string",
name="string")
const resolverEndpointResource = new volcengine.private_zone.ResolverEndpoint("resolverEndpointResource", {
ipConfigs: [{
azId: "string",
ip: "string",
subnetId: "string",
}],
securityGroupId: "string",
vpcId: "string",
vpcRegion: "string",
direction: "string",
name: "string",
});
type: volcengine:private_zone:ResolverEndpoint
properties:
direction: string
ipConfigs:
- azId: string
ip: string
subnetId: string
name: string
securityGroupId: string
vpcId: string
vpcRegion: string
ResolverEndpoint Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The ResolverEndpoint resource accepts the following input properties:
- Ip
Configs List<ResolverEndpoint Ip Config> - Availability zones, subnets, and IP configurations of terminal nodes.
- Security
Group stringId - The security group ID of the endpoint.
- Vpc
Id string - The VPC ID of the endpoint.
- Vpc
Region string - The VPC region of the endpoint.
- Direction string
- DNS request forwarding direction for terminal nodes. OUTBOUND: (default) Outbound terminal nodes forward DNS query requests from within the VPC to external DNS servers. INBOUND: Inbound terminal nodes forward DNS query requests from external sources to resolvers.
- Name string
- The name of the private zone resolver endpoint.
- Ip
Configs []ResolverEndpoint Ip Config Args - Availability zones, subnets, and IP configurations of terminal nodes.
- Security
Group stringId - The security group ID of the endpoint.
- Vpc
Id string - The VPC ID of the endpoint.
- Vpc
Region string - The VPC region of the endpoint.
- Direction string
- DNS request forwarding direction for terminal nodes. OUTBOUND: (default) Outbound terminal nodes forward DNS query requests from within the VPC to external DNS servers. INBOUND: Inbound terminal nodes forward DNS query requests from external sources to resolvers.
- Name string
- The name of the private zone resolver endpoint.
- ip
Configs List<ResolverEndpoint Ip Config> - Availability zones, subnets, and IP configurations of terminal nodes.
- security
Group StringId - The security group ID of the endpoint.
- vpc
Id String - The VPC ID of the endpoint.
- vpc
Region String - The VPC region of the endpoint.
- direction String
- DNS request forwarding direction for terminal nodes. OUTBOUND: (default) Outbound terminal nodes forward DNS query requests from within the VPC to external DNS servers. INBOUND: Inbound terminal nodes forward DNS query requests from external sources to resolvers.
- name String
- The name of the private zone resolver endpoint.
- ip
Configs ResolverEndpoint Ip Config[] - Availability zones, subnets, and IP configurations of terminal nodes.
- security
Group stringId - The security group ID of the endpoint.
- vpc
Id string - The VPC ID of the endpoint.
- vpc
Region string - The VPC region of the endpoint.
- direction string
- DNS request forwarding direction for terminal nodes. OUTBOUND: (default) Outbound terminal nodes forward DNS query requests from within the VPC to external DNS servers. INBOUND: Inbound terminal nodes forward DNS query requests from external sources to resolvers.
- name string
- The name of the private zone resolver endpoint.
- ip_
configs Sequence[ResolverEndpoint Ip Config Args] - Availability zones, subnets, and IP configurations of terminal nodes.
- security_
group_ strid - The security group ID of the endpoint.
- vpc_
id str - The VPC ID of the endpoint.
- vpc_
region str - The VPC region of the endpoint.
- direction str
- DNS request forwarding direction for terminal nodes. OUTBOUND: (default) Outbound terminal nodes forward DNS query requests from within the VPC to external DNS servers. INBOUND: Inbound terminal nodes forward DNS query requests from external sources to resolvers.
- name str
- The name of the private zone resolver endpoint.
- ip
Configs List<Property Map> - Availability zones, subnets, and IP configurations of terminal nodes.
- security
Group StringId - The security group ID of the endpoint.
- vpc
Id String - The VPC ID of the endpoint.
- vpc
Region String - The VPC region of the endpoint.
- direction String
- DNS request forwarding direction for terminal nodes. OUTBOUND: (default) Outbound terminal nodes forward DNS query requests from within the VPC to external DNS servers. INBOUND: Inbound terminal nodes forward DNS query requests from external sources to resolvers.
- name String
- The name of the private zone resolver endpoint.
Outputs
All input properties are implicitly available as output properties. Additionally, the ResolverEndpoint 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 ResolverEndpoint Resource
Get an existing ResolverEndpoint 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?: ResolverEndpointState, opts?: CustomResourceOptions): ResolverEndpoint
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
direction: Optional[str] = None,
ip_configs: Optional[Sequence[ResolverEndpointIpConfigArgs]] = None,
name: Optional[str] = None,
security_group_id: Optional[str] = None,
vpc_id: Optional[str] = None,
vpc_region: Optional[str] = None) -> ResolverEndpoint
func GetResolverEndpoint(ctx *Context, name string, id IDInput, state *ResolverEndpointState, opts ...ResourceOption) (*ResolverEndpoint, error)
public static ResolverEndpoint Get(string name, Input<string> id, ResolverEndpointState? state, CustomResourceOptions? opts = null)
public static ResolverEndpoint get(String name, Output<String> id, ResolverEndpointState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Direction string
- DNS request forwarding direction for terminal nodes. OUTBOUND: (default) Outbound terminal nodes forward DNS query requests from within the VPC to external DNS servers. INBOUND: Inbound terminal nodes forward DNS query requests from external sources to resolvers.
- Ip
Configs List<ResolverEndpoint Ip Config> - Availability zones, subnets, and IP configurations of terminal nodes.
- Name string
- The name of the private zone resolver endpoint.
- Security
Group stringId - The security group ID of the endpoint.
- Vpc
Id string - The VPC ID of the endpoint.
- Vpc
Region string - The VPC region of the endpoint.
- Direction string
- DNS request forwarding direction for terminal nodes. OUTBOUND: (default) Outbound terminal nodes forward DNS query requests from within the VPC to external DNS servers. INBOUND: Inbound terminal nodes forward DNS query requests from external sources to resolvers.
- Ip
Configs []ResolverEndpoint Ip Config Args - Availability zones, subnets, and IP configurations of terminal nodes.
- Name string
- The name of the private zone resolver endpoint.
- Security
Group stringId - The security group ID of the endpoint.
- Vpc
Id string - The VPC ID of the endpoint.
- Vpc
Region string - The VPC region of the endpoint.
- direction String
- DNS request forwarding direction for terminal nodes. OUTBOUND: (default) Outbound terminal nodes forward DNS query requests from within the VPC to external DNS servers. INBOUND: Inbound terminal nodes forward DNS query requests from external sources to resolvers.
- ip
Configs List<ResolverEndpoint Ip Config> - Availability zones, subnets, and IP configurations of terminal nodes.
- name String
- The name of the private zone resolver endpoint.
- security
Group StringId - The security group ID of the endpoint.
- vpc
Id String - The VPC ID of the endpoint.
- vpc
Region String - The VPC region of the endpoint.
- direction string
- DNS request forwarding direction for terminal nodes. OUTBOUND: (default) Outbound terminal nodes forward DNS query requests from within the VPC to external DNS servers. INBOUND: Inbound terminal nodes forward DNS query requests from external sources to resolvers.
- ip
Configs ResolverEndpoint Ip Config[] - Availability zones, subnets, and IP configurations of terminal nodes.
- name string
- The name of the private zone resolver endpoint.
- security
Group stringId - The security group ID of the endpoint.
- vpc
Id string - The VPC ID of the endpoint.
- vpc
Region string - The VPC region of the endpoint.
- direction str
- DNS request forwarding direction for terminal nodes. OUTBOUND: (default) Outbound terminal nodes forward DNS query requests from within the VPC to external DNS servers. INBOUND: Inbound terminal nodes forward DNS query requests from external sources to resolvers.
- ip_
configs Sequence[ResolverEndpoint Ip Config Args] - Availability zones, subnets, and IP configurations of terminal nodes.
- name str
- The name of the private zone resolver endpoint.
- security_
group_ strid - The security group ID of the endpoint.
- vpc_
id str - The VPC ID of the endpoint.
- vpc_
region str - The VPC region of the endpoint.
- direction String
- DNS request forwarding direction for terminal nodes. OUTBOUND: (default) Outbound terminal nodes forward DNS query requests from within the VPC to external DNS servers. INBOUND: Inbound terminal nodes forward DNS query requests from external sources to resolvers.
- ip
Configs List<Property Map> - Availability zones, subnets, and IP configurations of terminal nodes.
- name String
- The name of the private zone resolver endpoint.
- security
Group StringId - The security group ID of the endpoint.
- vpc
Id String - The VPC ID of the endpoint.
- vpc
Region String - The VPC region of the endpoint.
Supporting Types
ResolverEndpointIpConfig, ResolverEndpointIpConfigArgs
Import
PrivateZoneResolverEndpoint can be imported using the id, e.g.
$ pulumi import volcengine:private_zone/resolverEndpoint:ResolverEndpoint default resource_id
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengine
Terraform Provider.