1. Packages
  2. Volcengine
  3. API Docs
  4. private_zone
  5. ResolverRule
Volcengine v0.0.27 published on Tuesday, Dec 10, 2024 by Volcengine

volcengine.private_zone.ResolverRule

Explore with Pulumi AI

Provides a resource to manage private zone resolver rule

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@volcengine/pulumi";

const foo = new volcengine.private_zone.ResolverRule("foo", {
    endpointId: 346,
    forwardIps: [{
        ip: "10.199.38.19",
        port: 33,
    }],
    type: "OUTBOUND",
    vpcs: [{
        region: "cn-beijing",
        vpcId: "vpc-13f9uuuqfdjb43n6nu5p1****",
    }],
    zoneNames: ["www.baidu.com"],
});
Copy
import pulumi
import pulumi_volcengine as volcengine

foo = volcengine.private_zone.ResolverRule("foo",
    endpoint_id=346,
    forward_ips=[volcengine.private_zone.ResolverRuleForwardIpArgs(
        ip="10.199.38.19",
        port=33,
    )],
    type="OUTBOUND",
    vpcs=[volcengine.private_zone.ResolverRuleVpcArgs(
        region="cn-beijing",
        vpc_id="vpc-13f9uuuqfdjb43n6nu5p1****",
    )],
    zone_names=["www.baidu.com"])
Copy
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.NewResolverRule(ctx, "foo", &private_zone.ResolverRuleArgs{
			EndpointId: pulumi.Int(346),
			ForwardIps: private_zone.ResolverRuleForwardIpArray{
				&private_zone.ResolverRuleForwardIpArgs{
					Ip:   pulumi.String("10.199.38.19"),
					Port: pulumi.Int(33),
				},
			},
			Type: pulumi.String("OUTBOUND"),
			Vpcs: private_zone.ResolverRuleVpcArray{
				&private_zone.ResolverRuleVpcArgs{
					Region: pulumi.String("cn-beijing"),
					VpcId:  pulumi.String("vpc-13f9uuuqfdjb43n6nu5p1****"),
				},
			},
			ZoneNames: pulumi.StringArray{
				pulumi.String("www.baidu.com"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;

return await Deployment.RunAsync(() => 
{
    var foo = new Volcengine.Private_zone.ResolverRule("foo", new()
    {
        EndpointId = 346,
        ForwardIps = new[]
        {
            new Volcengine.Private_zone.Inputs.ResolverRuleForwardIpArgs
            {
                Ip = "10.199.38.19",
                Port = 33,
            },
        },
        Type = "OUTBOUND",
        Vpcs = new[]
        {
            new Volcengine.Private_zone.Inputs.ResolverRuleVpcArgs
            {
                Region = "cn-beijing",
                VpcId = "vpc-13f9uuuqfdjb43n6nu5p1****",
            },
        },
        ZoneNames = new[]
        {
            "www.baidu.com",
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.private_zone.ResolverRule;
import com.pulumi.volcengine.private_zone.ResolverRuleArgs;
import com.pulumi.volcengine.private_zone.inputs.ResolverRuleForwardIpArgs;
import com.pulumi.volcengine.private_zone.inputs.ResolverRuleVpcArgs;
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 ResolverRule("foo", ResolverRuleArgs.builder()        
            .endpointId(346)
            .forwardIps(ResolverRuleForwardIpArgs.builder()
                .ip("10.199.38.19")
                .port(33)
                .build())
            .type("OUTBOUND")
            .vpcs(ResolverRuleVpcArgs.builder()
                .region("cn-beijing")
                .vpcId("vpc-13f9uuuqfdjb43n6nu5p1****")
                .build())
            .zoneNames("www.baidu.com")
            .build());

    }
}
Copy
resources:
  foo:
    type: volcengine:private_zone:ResolverRule
    properties:
      endpointId: 346
      forwardIps:
        - ip: 10.199.38.19
          port: 33
      type: OUTBOUND
      vpcs:
        - region: cn-beijing
          vpcId: vpc-13f9uuuqfdjb43n6nu5p1****
      zoneNames:
        - www.baidu.com
Copy

Create ResolverRule Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new ResolverRule(name: string, args: ResolverRuleArgs, opts?: CustomResourceOptions);
@overload
def ResolverRule(resource_name: str,
                 args: ResolverRuleArgs,
                 opts: Optional[ResourceOptions] = None)

@overload
def ResolverRule(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 type: Optional[str] = None,
                 vpcs: Optional[Sequence[ResolverRuleVpcArgs]] = None,
                 endpoint_id: Optional[int] = None,
                 forward_ips: Optional[Sequence[ResolverRuleForwardIpArgs]] = None,
                 line: Optional[int] = None,
                 name: Optional[str] = None,
                 zone_names: Optional[Sequence[str]] = None)
func NewResolverRule(ctx *Context, name string, args ResolverRuleArgs, opts ...ResourceOption) (*ResolverRule, error)
public ResolverRule(string name, ResolverRuleArgs args, CustomResourceOptions? opts = null)
public ResolverRule(String name, ResolverRuleArgs args)
public ResolverRule(String name, ResolverRuleArgs args, CustomResourceOptions options)
type: volcengine:private_zone:ResolverRule
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. ResolverRuleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. ResolverRuleArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. ResolverRuleArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ResolverRuleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ResolverRuleArgs
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 resolverRuleResource = new Volcengine.Private_zone.ResolverRule("resolverRuleResource", new()
{
    Type = "string",
    Vpcs = new[]
    {
        new Volcengine.Private_zone.Inputs.ResolverRuleVpcArgs
        {
            VpcId = "string",
            Region = "string",
        },
    },
    EndpointId = 0,
    ForwardIps = new[]
    {
        new Volcengine.Private_zone.Inputs.ResolverRuleForwardIpArgs
        {
            Ip = "string",
            Port = 0,
        },
    },
    Line = 0,
    Name = "string",
    ZoneNames = new[]
    {
        "string",
    },
});
Copy
example, err := private_zone.NewResolverRule(ctx, "resolverRuleResource", &private_zone.ResolverRuleArgs{
	Type: pulumi.String("string"),
	Vpcs: private_zone.ResolverRuleVpcArray{
		&private_zone.ResolverRuleVpcArgs{
			VpcId:  pulumi.String("string"),
			Region: pulumi.String("string"),
		},
	},
	EndpointId: pulumi.Int(0),
	ForwardIps: private_zone.ResolverRuleForwardIpArray{
		&private_zone.ResolverRuleForwardIpArgs{
			Ip:   pulumi.String("string"),
			Port: pulumi.Int(0),
		},
	},
	Line: pulumi.Int(0),
	Name: pulumi.String("string"),
	ZoneNames: pulumi.StringArray{
		pulumi.String("string"),
	},
})
Copy
var resolverRuleResource = new ResolverRule("resolverRuleResource", ResolverRuleArgs.builder()
    .type("string")
    .vpcs(ResolverRuleVpcArgs.builder()
        .vpcId("string")
        .region("string")
        .build())
    .endpointId(0)
    .forwardIps(ResolverRuleForwardIpArgs.builder()
        .ip("string")
        .port(0)
        .build())
    .line(0)
    .name("string")
    .zoneNames("string")
    .build());
Copy
resolver_rule_resource = volcengine.private_zone.ResolverRule("resolverRuleResource",
    type="string",
    vpcs=[{
        "vpc_id": "string",
        "region": "string",
    }],
    endpoint_id=0,
    forward_ips=[{
        "ip": "string",
        "port": 0,
    }],
    line=0,
    name="string",
    zone_names=["string"])
Copy
const resolverRuleResource = new volcengine.private_zone.ResolverRule("resolverRuleResource", {
    type: "string",
    vpcs: [{
        vpcId: "string",
        region: "string",
    }],
    endpointId: 0,
    forwardIps: [{
        ip: "string",
        port: 0,
    }],
    line: 0,
    name: "string",
    zoneNames: ["string"],
});
Copy
type: volcengine:private_zone:ResolverRule
properties:
    endpointId: 0
    forwardIps:
        - ip: string
          port: 0
    line: 0
    name: string
    type: string
    vpcs:
        - region: string
          vpcId: string
    zoneNames:
        - string
Copy

ResolverRule 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 ResolverRule resource accepts the following input properties:

Type
This property is required.
Changes to this property will trigger replacement.
string
Forwarding rule types. OUTBOUND: Forward to external DNS servers. LINE: Set the recursive DNS server used for recursive resolution to the recursive DNS server of the Volcano Engine PublicDNS, and customize the operator's exit IP address for the recursive DNS server.
Vpcs This property is required. List<ResolverRuleVpc>
The parameter name is a variable that represents the region where the VPC is located, such as cn-beijing. The parameter value can include one or more VPC IDs, such as vpc-2750bd1. For example, if you associate a VPC in the cn-beijing region with a domain name and the VPC ID is vpc-2d6si87atfh1c58ozfd0nzq8k, the parameter would be "cn-beijing":["vpc-2d6si87atfh1c58ozfd0nzq8k"]. You can add one or more regions. When the Type parameter is OUTBOUND, the VPC region must be the same as the region where the endpoint is located.
EndpointId Changes to this property will trigger replacement. int
Terminal node ID. This parameter is only valid and required when the Type parameter is OUTBOUND.
ForwardIps List<ResolverRuleForwardIp>
IP address and port of external DNS server. You can add up to 10 IP addresses. This parameter is only valid when the Type parameter is OUTBOUND and is a required parameter.
Line int
The operator of the exit IP address of the recursive DNS server. This parameter is only valid when the Type parameter is LINE and is a required parameter. MOBILE, TELECOM, UNICOM.
Name string
The name of the rule.
ZoneNames Changes to this property will trigger replacement. List<string>
Domain names associated with forwarding rules. You can enter one or more domain names. Up to 500 domain names are supported. This parameter is only valid when the Type parameter is OUTBOUND and is a required parameter.
Type
This property is required.
Changes to this property will trigger replacement.
string
Forwarding rule types. OUTBOUND: Forward to external DNS servers. LINE: Set the recursive DNS server used for recursive resolution to the recursive DNS server of the Volcano Engine PublicDNS, and customize the operator's exit IP address for the recursive DNS server.
Vpcs This property is required. []ResolverRuleVpcArgs
The parameter name is a variable that represents the region where the VPC is located, such as cn-beijing. The parameter value can include one or more VPC IDs, such as vpc-2750bd1. For example, if you associate a VPC in the cn-beijing region with a domain name and the VPC ID is vpc-2d6si87atfh1c58ozfd0nzq8k, the parameter would be "cn-beijing":["vpc-2d6si87atfh1c58ozfd0nzq8k"]. You can add one or more regions. When the Type parameter is OUTBOUND, the VPC region must be the same as the region where the endpoint is located.
EndpointId Changes to this property will trigger replacement. int
Terminal node ID. This parameter is only valid and required when the Type parameter is OUTBOUND.
ForwardIps []ResolverRuleForwardIpArgs
IP address and port of external DNS server. You can add up to 10 IP addresses. This parameter is only valid when the Type parameter is OUTBOUND and is a required parameter.
Line int
The operator of the exit IP address of the recursive DNS server. This parameter is only valid when the Type parameter is LINE and is a required parameter. MOBILE, TELECOM, UNICOM.
Name string
The name of the rule.
ZoneNames Changes to this property will trigger replacement. []string
Domain names associated with forwarding rules. You can enter one or more domain names. Up to 500 domain names are supported. This parameter is only valid when the Type parameter is OUTBOUND and is a required parameter.
type
This property is required.
Changes to this property will trigger replacement.
String
Forwarding rule types. OUTBOUND: Forward to external DNS servers. LINE: Set the recursive DNS server used for recursive resolution to the recursive DNS server of the Volcano Engine PublicDNS, and customize the operator's exit IP address for the recursive DNS server.
vpcs This property is required. List<ResolverRuleVpc>
The parameter name is a variable that represents the region where the VPC is located, such as cn-beijing. The parameter value can include one or more VPC IDs, such as vpc-2750bd1. For example, if you associate a VPC in the cn-beijing region with a domain name and the VPC ID is vpc-2d6si87atfh1c58ozfd0nzq8k, the parameter would be "cn-beijing":["vpc-2d6si87atfh1c58ozfd0nzq8k"]. You can add one or more regions. When the Type parameter is OUTBOUND, the VPC region must be the same as the region where the endpoint is located.
endpointId Changes to this property will trigger replacement. Integer
Terminal node ID. This parameter is only valid and required when the Type parameter is OUTBOUND.
forwardIps List<ResolverRuleForwardIp>
IP address and port of external DNS server. You can add up to 10 IP addresses. This parameter is only valid when the Type parameter is OUTBOUND and is a required parameter.
line Integer
The operator of the exit IP address of the recursive DNS server. This parameter is only valid when the Type parameter is LINE and is a required parameter. MOBILE, TELECOM, UNICOM.
name String
The name of the rule.
zoneNames Changes to this property will trigger replacement. List<String>
Domain names associated with forwarding rules. You can enter one or more domain names. Up to 500 domain names are supported. This parameter is only valid when the Type parameter is OUTBOUND and is a required parameter.
type
This property is required.
Changes to this property will trigger replacement.
string
Forwarding rule types. OUTBOUND: Forward to external DNS servers. LINE: Set the recursive DNS server used for recursive resolution to the recursive DNS server of the Volcano Engine PublicDNS, and customize the operator's exit IP address for the recursive DNS server.
vpcs This property is required. ResolverRuleVpc[]
The parameter name is a variable that represents the region where the VPC is located, such as cn-beijing. The parameter value can include one or more VPC IDs, such as vpc-2750bd1. For example, if you associate a VPC in the cn-beijing region with a domain name and the VPC ID is vpc-2d6si87atfh1c58ozfd0nzq8k, the parameter would be "cn-beijing":["vpc-2d6si87atfh1c58ozfd0nzq8k"]. You can add one or more regions. When the Type parameter is OUTBOUND, the VPC region must be the same as the region where the endpoint is located.
endpointId Changes to this property will trigger replacement. number
Terminal node ID. This parameter is only valid and required when the Type parameter is OUTBOUND.
forwardIps ResolverRuleForwardIp[]
IP address and port of external DNS server. You can add up to 10 IP addresses. This parameter is only valid when the Type parameter is OUTBOUND and is a required parameter.
line number
The operator of the exit IP address of the recursive DNS server. This parameter is only valid when the Type parameter is LINE and is a required parameter. MOBILE, TELECOM, UNICOM.
name string
The name of the rule.
zoneNames Changes to this property will trigger replacement. string[]
Domain names associated with forwarding rules. You can enter one or more domain names. Up to 500 domain names are supported. This parameter is only valid when the Type parameter is OUTBOUND and is a required parameter.
type
This property is required.
Changes to this property will trigger replacement.
str
Forwarding rule types. OUTBOUND: Forward to external DNS servers. LINE: Set the recursive DNS server used for recursive resolution to the recursive DNS server of the Volcano Engine PublicDNS, and customize the operator's exit IP address for the recursive DNS server.
vpcs This property is required. Sequence[ResolverRuleVpcArgs]
The parameter name is a variable that represents the region where the VPC is located, such as cn-beijing. The parameter value can include one or more VPC IDs, such as vpc-2750bd1. For example, if you associate a VPC in the cn-beijing region with a domain name and the VPC ID is vpc-2d6si87atfh1c58ozfd0nzq8k, the parameter would be "cn-beijing":["vpc-2d6si87atfh1c58ozfd0nzq8k"]. You can add one or more regions. When the Type parameter is OUTBOUND, the VPC region must be the same as the region where the endpoint is located.
endpoint_id Changes to this property will trigger replacement. int
Terminal node ID. This parameter is only valid and required when the Type parameter is OUTBOUND.
forward_ips Sequence[ResolverRuleForwardIpArgs]
IP address and port of external DNS server. You can add up to 10 IP addresses. This parameter is only valid when the Type parameter is OUTBOUND and is a required parameter.
line int
The operator of the exit IP address of the recursive DNS server. This parameter is only valid when the Type parameter is LINE and is a required parameter. MOBILE, TELECOM, UNICOM.
name str
The name of the rule.
zone_names Changes to this property will trigger replacement. Sequence[str]
Domain names associated with forwarding rules. You can enter one or more domain names. Up to 500 domain names are supported. This parameter is only valid when the Type parameter is OUTBOUND and is a required parameter.
type
This property is required.
Changes to this property will trigger replacement.
String
Forwarding rule types. OUTBOUND: Forward to external DNS servers. LINE: Set the recursive DNS server used for recursive resolution to the recursive DNS server of the Volcano Engine PublicDNS, and customize the operator's exit IP address for the recursive DNS server.
vpcs This property is required. List<Property Map>
The parameter name is a variable that represents the region where the VPC is located, such as cn-beijing. The parameter value can include one or more VPC IDs, such as vpc-2750bd1. For example, if you associate a VPC in the cn-beijing region with a domain name and the VPC ID is vpc-2d6si87atfh1c58ozfd0nzq8k, the parameter would be "cn-beijing":["vpc-2d6si87atfh1c58ozfd0nzq8k"]. You can add one or more regions. When the Type parameter is OUTBOUND, the VPC region must be the same as the region where the endpoint is located.
endpointId Changes to this property will trigger replacement. Number
Terminal node ID. This parameter is only valid and required when the Type parameter is OUTBOUND.
forwardIps List<Property Map>
IP address and port of external DNS server. You can add up to 10 IP addresses. This parameter is only valid when the Type parameter is OUTBOUND and is a required parameter.
line Number
The operator of the exit IP address of the recursive DNS server. This parameter is only valid when the Type parameter is LINE and is a required parameter. MOBILE, TELECOM, UNICOM.
name String
The name of the rule.
zoneNames Changes to this property will trigger replacement. List<String>
Domain names associated with forwarding rules. You can enter one or more domain names. Up to 500 domain names are supported. This parameter is only valid when the Type parameter is OUTBOUND and is a required parameter.

Outputs

All input properties are implicitly available as output properties. Additionally, the ResolverRule 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 ResolverRule Resource

Get an existing ResolverRule 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?: ResolverRuleState, opts?: CustomResourceOptions): ResolverRule
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        endpoint_id: Optional[int] = None,
        forward_ips: Optional[Sequence[ResolverRuleForwardIpArgs]] = None,
        line: Optional[int] = None,
        name: Optional[str] = None,
        type: Optional[str] = None,
        vpcs: Optional[Sequence[ResolverRuleVpcArgs]] = None,
        zone_names: Optional[Sequence[str]] = None) -> ResolverRule
func GetResolverRule(ctx *Context, name string, id IDInput, state *ResolverRuleState, opts ...ResourceOption) (*ResolverRule, error)
public static ResolverRule Get(string name, Input<string> id, ResolverRuleState? state, CustomResourceOptions? opts = null)
public static ResolverRule get(String name, Output<String> id, ResolverRuleState state, CustomResourceOptions options)
resources:  _:    type: volcengine:private_zone:ResolverRule    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.
The following state arguments are supported:
EndpointId Changes to this property will trigger replacement. int
Terminal node ID. This parameter is only valid and required when the Type parameter is OUTBOUND.
ForwardIps List<ResolverRuleForwardIp>
IP address and port of external DNS server. You can add up to 10 IP addresses. This parameter is only valid when the Type parameter is OUTBOUND and is a required parameter.
Line int
The operator of the exit IP address of the recursive DNS server. This parameter is only valid when the Type parameter is LINE and is a required parameter. MOBILE, TELECOM, UNICOM.
Name string
The name of the rule.
Type Changes to this property will trigger replacement. string
Forwarding rule types. OUTBOUND: Forward to external DNS servers. LINE: Set the recursive DNS server used for recursive resolution to the recursive DNS server of the Volcano Engine PublicDNS, and customize the operator's exit IP address for the recursive DNS server.
Vpcs List<ResolverRuleVpc>
The parameter name is a variable that represents the region where the VPC is located, such as cn-beijing. The parameter value can include one or more VPC IDs, such as vpc-2750bd1. For example, if you associate a VPC in the cn-beijing region with a domain name and the VPC ID is vpc-2d6si87atfh1c58ozfd0nzq8k, the parameter would be "cn-beijing":["vpc-2d6si87atfh1c58ozfd0nzq8k"]. You can add one or more regions. When the Type parameter is OUTBOUND, the VPC region must be the same as the region where the endpoint is located.
ZoneNames Changes to this property will trigger replacement. List<string>
Domain names associated with forwarding rules. You can enter one or more domain names. Up to 500 domain names are supported. This parameter is only valid when the Type parameter is OUTBOUND and is a required parameter.
EndpointId Changes to this property will trigger replacement. int
Terminal node ID. This parameter is only valid and required when the Type parameter is OUTBOUND.
ForwardIps []ResolverRuleForwardIpArgs
IP address and port of external DNS server. You can add up to 10 IP addresses. This parameter is only valid when the Type parameter is OUTBOUND and is a required parameter.
Line int
The operator of the exit IP address of the recursive DNS server. This parameter is only valid when the Type parameter is LINE and is a required parameter. MOBILE, TELECOM, UNICOM.
Name string
The name of the rule.
Type Changes to this property will trigger replacement. string
Forwarding rule types. OUTBOUND: Forward to external DNS servers. LINE: Set the recursive DNS server used for recursive resolution to the recursive DNS server of the Volcano Engine PublicDNS, and customize the operator's exit IP address for the recursive DNS server.
Vpcs []ResolverRuleVpcArgs
The parameter name is a variable that represents the region where the VPC is located, such as cn-beijing. The parameter value can include one or more VPC IDs, such as vpc-2750bd1. For example, if you associate a VPC in the cn-beijing region with a domain name and the VPC ID is vpc-2d6si87atfh1c58ozfd0nzq8k, the parameter would be "cn-beijing":["vpc-2d6si87atfh1c58ozfd0nzq8k"]. You can add one or more regions. When the Type parameter is OUTBOUND, the VPC region must be the same as the region where the endpoint is located.
ZoneNames Changes to this property will trigger replacement. []string
Domain names associated with forwarding rules. You can enter one or more domain names. Up to 500 domain names are supported. This parameter is only valid when the Type parameter is OUTBOUND and is a required parameter.
endpointId Changes to this property will trigger replacement. Integer
Terminal node ID. This parameter is only valid and required when the Type parameter is OUTBOUND.
forwardIps List<ResolverRuleForwardIp>
IP address and port of external DNS server. You can add up to 10 IP addresses. This parameter is only valid when the Type parameter is OUTBOUND and is a required parameter.
line Integer
The operator of the exit IP address of the recursive DNS server. This parameter is only valid when the Type parameter is LINE and is a required parameter. MOBILE, TELECOM, UNICOM.
name String
The name of the rule.
type Changes to this property will trigger replacement. String
Forwarding rule types. OUTBOUND: Forward to external DNS servers. LINE: Set the recursive DNS server used for recursive resolution to the recursive DNS server of the Volcano Engine PublicDNS, and customize the operator's exit IP address for the recursive DNS server.
vpcs List<ResolverRuleVpc>
The parameter name is a variable that represents the region where the VPC is located, such as cn-beijing. The parameter value can include one or more VPC IDs, such as vpc-2750bd1. For example, if you associate a VPC in the cn-beijing region with a domain name and the VPC ID is vpc-2d6si87atfh1c58ozfd0nzq8k, the parameter would be "cn-beijing":["vpc-2d6si87atfh1c58ozfd0nzq8k"]. You can add one or more regions. When the Type parameter is OUTBOUND, the VPC region must be the same as the region where the endpoint is located.
zoneNames Changes to this property will trigger replacement. List<String>
Domain names associated with forwarding rules. You can enter one or more domain names. Up to 500 domain names are supported. This parameter is only valid when the Type parameter is OUTBOUND and is a required parameter.
endpointId Changes to this property will trigger replacement. number
Terminal node ID. This parameter is only valid and required when the Type parameter is OUTBOUND.
forwardIps ResolverRuleForwardIp[]
IP address and port of external DNS server. You can add up to 10 IP addresses. This parameter is only valid when the Type parameter is OUTBOUND and is a required parameter.
line number
The operator of the exit IP address of the recursive DNS server. This parameter is only valid when the Type parameter is LINE and is a required parameter. MOBILE, TELECOM, UNICOM.
name string
The name of the rule.
type Changes to this property will trigger replacement. string
Forwarding rule types. OUTBOUND: Forward to external DNS servers. LINE: Set the recursive DNS server used for recursive resolution to the recursive DNS server of the Volcano Engine PublicDNS, and customize the operator's exit IP address for the recursive DNS server.
vpcs ResolverRuleVpc[]
The parameter name is a variable that represents the region where the VPC is located, such as cn-beijing. The parameter value can include one or more VPC IDs, such as vpc-2750bd1. For example, if you associate a VPC in the cn-beijing region with a domain name and the VPC ID is vpc-2d6si87atfh1c58ozfd0nzq8k, the parameter would be "cn-beijing":["vpc-2d6si87atfh1c58ozfd0nzq8k"]. You can add one or more regions. When the Type parameter is OUTBOUND, the VPC region must be the same as the region where the endpoint is located.
zoneNames Changes to this property will trigger replacement. string[]
Domain names associated with forwarding rules. You can enter one or more domain names. Up to 500 domain names are supported. This parameter is only valid when the Type parameter is OUTBOUND and is a required parameter.
endpoint_id Changes to this property will trigger replacement. int
Terminal node ID. This parameter is only valid and required when the Type parameter is OUTBOUND.
forward_ips Sequence[ResolverRuleForwardIpArgs]
IP address and port of external DNS server. You can add up to 10 IP addresses. This parameter is only valid when the Type parameter is OUTBOUND and is a required parameter.
line int
The operator of the exit IP address of the recursive DNS server. This parameter is only valid when the Type parameter is LINE and is a required parameter. MOBILE, TELECOM, UNICOM.
name str
The name of the rule.
type Changes to this property will trigger replacement. str
Forwarding rule types. OUTBOUND: Forward to external DNS servers. LINE: Set the recursive DNS server used for recursive resolution to the recursive DNS server of the Volcano Engine PublicDNS, and customize the operator's exit IP address for the recursive DNS server.
vpcs Sequence[ResolverRuleVpcArgs]
The parameter name is a variable that represents the region where the VPC is located, such as cn-beijing. The parameter value can include one or more VPC IDs, such as vpc-2750bd1. For example, if you associate a VPC in the cn-beijing region with a domain name and the VPC ID is vpc-2d6si87atfh1c58ozfd0nzq8k, the parameter would be "cn-beijing":["vpc-2d6si87atfh1c58ozfd0nzq8k"]. You can add one or more regions. When the Type parameter is OUTBOUND, the VPC region must be the same as the region where the endpoint is located.
zone_names Changes to this property will trigger replacement. Sequence[str]
Domain names associated with forwarding rules. You can enter one or more domain names. Up to 500 domain names are supported. This parameter is only valid when the Type parameter is OUTBOUND and is a required parameter.
endpointId Changes to this property will trigger replacement. Number
Terminal node ID. This parameter is only valid and required when the Type parameter is OUTBOUND.
forwardIps List<Property Map>
IP address and port of external DNS server. You can add up to 10 IP addresses. This parameter is only valid when the Type parameter is OUTBOUND and is a required parameter.
line Number
The operator of the exit IP address of the recursive DNS server. This parameter is only valid when the Type parameter is LINE and is a required parameter. MOBILE, TELECOM, UNICOM.
name String
The name of the rule.
type Changes to this property will trigger replacement. String
Forwarding rule types. OUTBOUND: Forward to external DNS servers. LINE: Set the recursive DNS server used for recursive resolution to the recursive DNS server of the Volcano Engine PublicDNS, and customize the operator's exit IP address for the recursive DNS server.
vpcs List<Property Map>
The parameter name is a variable that represents the region where the VPC is located, such as cn-beijing. The parameter value can include one or more VPC IDs, such as vpc-2750bd1. For example, if you associate a VPC in the cn-beijing region with a domain name and the VPC ID is vpc-2d6si87atfh1c58ozfd0nzq8k, the parameter would be "cn-beijing":["vpc-2d6si87atfh1c58ozfd0nzq8k"]. You can add one or more regions. When the Type parameter is OUTBOUND, the VPC region must be the same as the region where the endpoint is located.
zoneNames Changes to this property will trigger replacement. List<String>
Domain names associated with forwarding rules. You can enter one or more domain names. Up to 500 domain names are supported. This parameter is only valid when the Type parameter is OUTBOUND and is a required parameter.

Supporting Types

ResolverRuleForwardIp
, ResolverRuleForwardIpArgs

Ip This property is required. string
IP address of the external DNS server. This parameter is only valid when the Type parameter is OUTBOUND and is a required parameter.
Port int
The port of the external DNS server. Default is 53. This parameter is only valid and optional when the Type parameter is OUTBOUND.
Ip This property is required. string
IP address of the external DNS server. This parameter is only valid when the Type parameter is OUTBOUND and is a required parameter.
Port int
The port of the external DNS server. Default is 53. This parameter is only valid and optional when the Type parameter is OUTBOUND.
ip This property is required. String
IP address of the external DNS server. This parameter is only valid when the Type parameter is OUTBOUND and is a required parameter.
port Integer
The port of the external DNS server. Default is 53. This parameter is only valid and optional when the Type parameter is OUTBOUND.
ip This property is required. string
IP address of the external DNS server. This parameter is only valid when the Type parameter is OUTBOUND and is a required parameter.
port number
The port of the external DNS server. Default is 53. This parameter is only valid and optional when the Type parameter is OUTBOUND.
ip This property is required. str
IP address of the external DNS server. This parameter is only valid when the Type parameter is OUTBOUND and is a required parameter.
port int
The port of the external DNS server. Default is 53. This parameter is only valid and optional when the Type parameter is OUTBOUND.
ip This property is required. String
IP address of the external DNS server. This parameter is only valid when the Type parameter is OUTBOUND and is a required parameter.
port Number
The port of the external DNS server. Default is 53. This parameter is only valid and optional when the Type parameter is OUTBOUND.

ResolverRuleVpc
, ResolverRuleVpcArgs

VpcId This property is required. string
The id of the bind vpc.
Region string
The region of the bind vpc. The default value is the region of the default provider config.
VpcId This property is required. string
The id of the bind vpc.
Region string
The region of the bind vpc. The default value is the region of the default provider config.
vpcId This property is required. String
The id of the bind vpc.
region String
The region of the bind vpc. The default value is the region of the default provider config.
vpcId This property is required. string
The id of the bind vpc.
region string
The region of the bind vpc. The default value is the region of the default provider config.
vpc_id This property is required. str
The id of the bind vpc.
region str
The region of the bind vpc. The default value is the region of the default provider config.
vpcId This property is required. String
The id of the bind vpc.
region String
The region of the bind vpc. The default value is the region of the default provider config.

Import

PrivateZoneResolverRule can be imported using the id, e.g.

$ pulumi import volcengine:private_zone/resolverRule:ResolverRule default resource_id
Copy

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.