1. Packages
  2. Bytepluscc Provider
  3. API Docs
  4. privatezone
  5. ResolverRule
Viewing docs for bytepluscc v0.0.21
published on Thursday, Apr 2, 2026 by Byteplus
bytepluscc logo
Viewing docs for bytepluscc v0.0.21
published on Thursday, Apr 2, 2026 by Byteplus

    Forwarding rule details

    Example Usage

    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    resources:
      privateZoneResolverRuleDemo:
        type: bytepluscc:privatezone:ResolverRule
        name: PrivateZoneResolverRuleDemo
        properties:
          line: 电信
          name: PrivateZoneResolverRuleDemo
          tags:
            - key: env
              value: test
          type: LINE
          vpCs:
            - region: cn-beijing
              vpc_id: vpc-3nqt4kq87xn28931eclihh90****
            - region: cn-beijing
              vpc_id: vpc-1a10aeq5vr2tc8nvepkauwljx****
          vpcTrns:
            - trn:vpc:cn-beijing:********:vpc/vpc-3nqt4kq87xn2893xxxxx
            - trn:vpc:cn-beijing:********:vpc/vpc-1a10aeq5vr2tc8nvepxxxxx
    

    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,
                     name: Optional[str] = None,
                     type: Optional[str] = None,
                     endpoint_id: Optional[int] = None,
                     forward_ips: Optional[Sequence[ResolverRuleForwardIPArgs]] = None,
                     line: Optional[str] = None,
                     project_name: Optional[str] = None,
                     tags: Optional[Sequence[ResolverRuleTagArgs]] = None,
                     vp_cs: Optional[Sequence[ResolverRuleVpCArgs]] = None,
                     zone_name: Optional[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: bytepluscc:privatezone:ResolverRule
    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 ResolverRuleArgs
    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 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 string
    The unique name of the resource.
    args ResolverRuleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ResolverRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args 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 Bytepluscc.Privatezone.ResolverRule("resolverRuleResource", new()
    {
        Name = "string",
        Type = "string",
        EndpointId = 0,
        ForwardIPs = new[]
        {
            new Bytepluscc.Privatezone.Inputs.ResolverRuleForwardIPArgs
            {
                Ip = "string",
                Port = 0,
            },
        },
        Line = "string",
        ProjectName = "string",
        Tags = new[]
        {
            new Bytepluscc.Privatezone.Inputs.ResolverRuleTagArgs
            {
                Key = "string",
                Value = "string",
            },
        },
        VpCs = new[]
        {
            new Bytepluscc.Privatezone.Inputs.ResolverRuleVpCArgs
            {
                Region = "string",
                VpcId = "string",
            },
        },
        ZoneName = "string",
    });
    
    example, err := privatezone.NewResolverRule(ctx, "resolverRuleResource", &privatezone.ResolverRuleArgs{
    	Name:       pulumi.String("string"),
    	Type:       pulumi.String("string"),
    	EndpointId: pulumi.Int(0),
    	ForwardIPs: privatezone.ResolverRuleForwardIPArray{
    		&privatezone.ResolverRuleForwardIPArgs{
    			Ip:   pulumi.String("string"),
    			Port: pulumi.Int(0),
    		},
    	},
    	Line:        pulumi.String("string"),
    	ProjectName: pulumi.String("string"),
    	Tags: privatezone.ResolverRuleTagArray{
    		&privatezone.ResolverRuleTagArgs{
    			Key:   pulumi.String("string"),
    			Value: pulumi.String("string"),
    		},
    	},
    	VpCs: privatezone.ResolverRuleVpCArray{
    		&privatezone.ResolverRuleVpCArgs{
    			Region: pulumi.String("string"),
    			VpcId:  pulumi.String("string"),
    		},
    	},
    	ZoneName: pulumi.String("string"),
    })
    
    var resolverRuleResource = new ResolverRule("resolverRuleResource", ResolverRuleArgs.builder()
        .name("string")
        .type("string")
        .endpointId(0)
        .forwardIPs(ResolverRuleForwardIPArgs.builder()
            .ip("string")
            .port(0)
            .build())
        .line("string")
        .projectName("string")
        .tags(ResolverRuleTagArgs.builder()
            .key("string")
            .value("string")
            .build())
        .vpCs(ResolverRuleVpCArgs.builder()
            .region("string")
            .vpcId("string")
            .build())
        .zoneName("string")
        .build());
    
    resolver_rule_resource = bytepluscc.privatezone.ResolverRule("resolverRuleResource",
        name="string",
        type="string",
        endpoint_id=0,
        forward_ips=[{
            "ip": "string",
            "port": 0,
        }],
        line="string",
        project_name="string",
        tags=[{
            "key": "string",
            "value": "string",
        }],
        vp_cs=[{
            "region": "string",
            "vpc_id": "string",
        }],
        zone_name="string")
    
    const resolverRuleResource = new bytepluscc.privatezone.ResolverRule("resolverRuleResource", {
        name: "string",
        type: "string",
        endpointId: 0,
        forwardIPs: [{
            ip: "string",
            port: 0,
        }],
        line: "string",
        projectName: "string",
        tags: [{
            key: "string",
            value: "string",
        }],
        vpCs: [{
            region: "string",
            vpcId: "string",
        }],
        zoneName: "string",
    });
    
    type: bytepluscc:privatezone:ResolverRule
    properties:
        endpointId: 0
        forwardIPs:
            - ip: string
              port: 0
        line: string
        name: string
        projectName: string
        tags:
            - key: string
              value: string
        type: string
        vpCs:
            - region: string
              vpcId: string
        zoneName: string
    

    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:

    Name string
    Name of the forwarding rule. Supports UTF-8 format
    Type string
    Forwarding rule type. OUTBOUND: Forward to external DNS server. LINE: Carrier for the outbound IP address of the custom public recursive DNS server
    EndpointId int
    Endpoint ID. This parameter is only valid and required when the Type parameter is OUTBOUND
    ForwardIPs List<Byteplus.ResolverRuleForwardIP>
    Line string
    Carrier for the outbound IP address of the recursive DNS server. This parameter is only valid when the Type parameter is LINE. Supported values: Mobile: China Mobile, Telecom: China Telecom, Unicom: China Unicom
    ProjectName string
    Project name associated with the forwarding rule. Default is default
    Tags List<Byteplus.ResolverRuleTag>
    VpCs List<Byteplus.ResolverRuleVpC>
    ZoneName string
    Domain name(s) associated with the forwarding rule. You can enter one or more domain names. Separate multiple domain names with English commas. Up to 500 domain names are supported. This parameter is only valid and required when the Type parameter is OUTBOUND. If you set this parameter to *, the forwarding rule applies to all domain names associated with the VPC
    Name string
    Name of the forwarding rule. Supports UTF-8 format
    Type string
    Forwarding rule type. OUTBOUND: Forward to external DNS server. LINE: Carrier for the outbound IP address of the custom public recursive DNS server
    EndpointId int
    Endpoint ID. This parameter is only valid and required when the Type parameter is OUTBOUND
    ForwardIPs []ResolverRuleForwardIPArgs
    Line string
    Carrier for the outbound IP address of the recursive DNS server. This parameter is only valid when the Type parameter is LINE. Supported values: Mobile: China Mobile, Telecom: China Telecom, Unicom: China Unicom
    ProjectName string
    Project name associated with the forwarding rule. Default is default
    Tags []ResolverRuleTagArgs
    VpCs []ResolverRuleVpCArgs
    ZoneName string
    Domain name(s) associated with the forwarding rule. You can enter one or more domain names. Separate multiple domain names with English commas. Up to 500 domain names are supported. This parameter is only valid and required when the Type parameter is OUTBOUND. If you set this parameter to *, the forwarding rule applies to all domain names associated with the VPC
    name String
    Name of the forwarding rule. Supports UTF-8 format
    type String
    Forwarding rule type. OUTBOUND: Forward to external DNS server. LINE: Carrier for the outbound IP address of the custom public recursive DNS server
    endpointId Integer
    Endpoint ID. This parameter is only valid and required when the Type parameter is OUTBOUND
    forwardIPs List<ResolverRuleForwardIP>
    line String
    Carrier for the outbound IP address of the recursive DNS server. This parameter is only valid when the Type parameter is LINE. Supported values: Mobile: China Mobile, Telecom: China Telecom, Unicom: China Unicom
    projectName String
    Project name associated with the forwarding rule. Default is default
    tags List<ResolverRuleTag>
    vpCs List<ResolverRuleVpC>
    zoneName String
    Domain name(s) associated with the forwarding rule. You can enter one or more domain names. Separate multiple domain names with English commas. Up to 500 domain names are supported. This parameter is only valid and required when the Type parameter is OUTBOUND. If you set this parameter to *, the forwarding rule applies to all domain names associated with the VPC
    name string
    Name of the forwarding rule. Supports UTF-8 format
    type string
    Forwarding rule type. OUTBOUND: Forward to external DNS server. LINE: Carrier for the outbound IP address of the custom public recursive DNS server
    endpointId number
    Endpoint ID. This parameter is only valid and required when the Type parameter is OUTBOUND
    forwardIPs ResolverRuleForwardIP[]
    line string
    Carrier for the outbound IP address of the recursive DNS server. This parameter is only valid when the Type parameter is LINE. Supported values: Mobile: China Mobile, Telecom: China Telecom, Unicom: China Unicom
    projectName string
    Project name associated with the forwarding rule. Default is default
    tags ResolverRuleTag[]
    vpCs ResolverRuleVpC[]
    zoneName string
    Domain name(s) associated with the forwarding rule. You can enter one or more domain names. Separate multiple domain names with English commas. Up to 500 domain names are supported. This parameter is only valid and required when the Type parameter is OUTBOUND. If you set this parameter to *, the forwarding rule applies to all domain names associated with the VPC
    name str
    Name of the forwarding rule. Supports UTF-8 format
    type str
    Forwarding rule type. OUTBOUND: Forward to external DNS server. LINE: Carrier for the outbound IP address of the custom public recursive DNS server
    endpoint_id int
    Endpoint ID. This parameter is only valid and required when the Type parameter is OUTBOUND
    forward_ips Sequence[ResolverRuleForwardIPArgs]
    line str
    Carrier for the outbound IP address of the recursive DNS server. This parameter is only valid when the Type parameter is LINE. Supported values: Mobile: China Mobile, Telecom: China Telecom, Unicom: China Unicom
    project_name str
    Project name associated with the forwarding rule. Default is default
    tags Sequence[ResolverRuleTagArgs]
    vp_cs Sequence[ResolverRuleVpCArgs]
    zone_name str
    Domain name(s) associated with the forwarding rule. You can enter one or more domain names. Separate multiple domain names with English commas. Up to 500 domain names are supported. This parameter is only valid and required when the Type parameter is OUTBOUND. If you set this parameter to *, the forwarding rule applies to all domain names associated with the VPC
    name String
    Name of the forwarding rule. Supports UTF-8 format
    type String
    Forwarding rule type. OUTBOUND: Forward to external DNS server. LINE: Carrier for the outbound IP address of the custom public recursive DNS server
    endpointId Number
    Endpoint ID. This parameter is only valid and required when the Type parameter is OUTBOUND
    forwardIPs List<Property Map>
    line String
    Carrier for the outbound IP address of the recursive DNS server. This parameter is only valid when the Type parameter is LINE. Supported values: Mobile: China Mobile, Telecom: China Telecom, Unicom: China Unicom
    projectName String
    Project name associated with the forwarding rule. Default is default
    tags List<Property Map>
    vpCs List<Property Map>
    zoneName String
    Domain name(s) associated with the forwarding rule. You can enter one or more domain names. Separate multiple domain names with English commas. Up to 500 domain names are supported. This parameter is only valid and required when the Type parameter is OUTBOUND. If you set this parameter to *, the forwarding rule applies to all domain names associated with the VPC

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ResolverRule resource produces the following output properties:

    CreatedTime string
    Creation time of the forwarding rule
    Enable bool
    Whether the forwarding rule is enabled. true: enabled. false: disabled
    Id string
    The provider-assigned unique ID for this managed resource.
    LastOperator string
    Account ID of the last update to the forwarding rule
    RuleId string
    Forwarding rule ID
    UpdatedTime string
    Update time of the forwarding rule
    CreatedTime string
    Creation time of the forwarding rule
    Enable bool
    Whether the forwarding rule is enabled. true: enabled. false: disabled
    Id string
    The provider-assigned unique ID for this managed resource.
    LastOperator string
    Account ID of the last update to the forwarding rule
    RuleId string
    Forwarding rule ID
    UpdatedTime string
    Update time of the forwarding rule
    createdTime String
    Creation time of the forwarding rule
    enable Boolean
    Whether the forwarding rule is enabled. true: enabled. false: disabled
    id String
    The provider-assigned unique ID for this managed resource.
    lastOperator String
    Account ID of the last update to the forwarding rule
    ruleId String
    Forwarding rule ID
    updatedTime String
    Update time of the forwarding rule
    createdTime string
    Creation time of the forwarding rule
    enable boolean
    Whether the forwarding rule is enabled. true: enabled. false: disabled
    id string
    The provider-assigned unique ID for this managed resource.
    lastOperator string
    Account ID of the last update to the forwarding rule
    ruleId string
    Forwarding rule ID
    updatedTime string
    Update time of the forwarding rule
    created_time str
    Creation time of the forwarding rule
    enable bool
    Whether the forwarding rule is enabled. true: enabled. false: disabled
    id str
    The provider-assigned unique ID for this managed resource.
    last_operator str
    Account ID of the last update to the forwarding rule
    rule_id str
    Forwarding rule ID
    updated_time str
    Update time of the forwarding rule
    createdTime String
    Creation time of the forwarding rule
    enable Boolean
    Whether the forwarding rule is enabled. true: enabled. false: disabled
    id String
    The provider-assigned unique ID for this managed resource.
    lastOperator String
    Account ID of the last update to the forwarding rule
    ruleId String
    Forwarding rule ID
    updatedTime String
    Update time of the forwarding rule

    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,
            created_time: Optional[str] = None,
            enable: Optional[bool] = None,
            endpoint_id: Optional[int] = None,
            forward_ips: Optional[Sequence[ResolverRuleForwardIPArgs]] = None,
            last_operator: Optional[str] = None,
            line: Optional[str] = None,
            name: Optional[str] = None,
            project_name: Optional[str] = None,
            rule_id: Optional[str] = None,
            tags: Optional[Sequence[ResolverRuleTagArgs]] = None,
            type: Optional[str] = None,
            updated_time: Optional[str] = None,
            vp_cs: Optional[Sequence[ResolverRuleVpCArgs]] = None,
            zone_name: Optional[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: bytepluscc:privatezone:ResolverRule    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.
    The following state arguments are supported:
    CreatedTime string
    Creation time of the forwarding rule
    Enable bool
    Whether the forwarding rule is enabled. true: enabled. false: disabled
    EndpointId int
    Endpoint ID. This parameter is only valid and required when the Type parameter is OUTBOUND
    ForwardIPs List<Byteplus.ResolverRuleForwardIP>
    LastOperator string
    Account ID of the last update to the forwarding rule
    Line string
    Carrier for the outbound IP address of the recursive DNS server. This parameter is only valid when the Type parameter is LINE. Supported values: Mobile: China Mobile, Telecom: China Telecom, Unicom: China Unicom
    Name string
    Name of the forwarding rule. Supports UTF-8 format
    ProjectName string
    Project name associated with the forwarding rule. Default is default
    RuleId string
    Forwarding rule ID
    Tags List<Byteplus.ResolverRuleTag>
    Type string
    Forwarding rule type. OUTBOUND: Forward to external DNS server. LINE: Carrier for the outbound IP address of the custom public recursive DNS server
    UpdatedTime string
    Update time of the forwarding rule
    VpCs List<Byteplus.ResolverRuleVpC>
    ZoneName string
    Domain name(s) associated with the forwarding rule. You can enter one or more domain names. Separate multiple domain names with English commas. Up to 500 domain names are supported. This parameter is only valid and required when the Type parameter is OUTBOUND. If you set this parameter to *, the forwarding rule applies to all domain names associated with the VPC
    CreatedTime string
    Creation time of the forwarding rule
    Enable bool
    Whether the forwarding rule is enabled. true: enabled. false: disabled
    EndpointId int
    Endpoint ID. This parameter is only valid and required when the Type parameter is OUTBOUND
    ForwardIPs []ResolverRuleForwardIPArgs
    LastOperator string
    Account ID of the last update to the forwarding rule
    Line string
    Carrier for the outbound IP address of the recursive DNS server. This parameter is only valid when the Type parameter is LINE. Supported values: Mobile: China Mobile, Telecom: China Telecom, Unicom: China Unicom
    Name string
    Name of the forwarding rule. Supports UTF-8 format
    ProjectName string
    Project name associated with the forwarding rule. Default is default
    RuleId string
    Forwarding rule ID
    Tags []ResolverRuleTagArgs
    Type string
    Forwarding rule type. OUTBOUND: Forward to external DNS server. LINE: Carrier for the outbound IP address of the custom public recursive DNS server
    UpdatedTime string
    Update time of the forwarding rule
    VpCs []ResolverRuleVpCArgs
    ZoneName string
    Domain name(s) associated with the forwarding rule. You can enter one or more domain names. Separate multiple domain names with English commas. Up to 500 domain names are supported. This parameter is only valid and required when the Type parameter is OUTBOUND. If you set this parameter to *, the forwarding rule applies to all domain names associated with the VPC
    createdTime String
    Creation time of the forwarding rule
    enable Boolean
    Whether the forwarding rule is enabled. true: enabled. false: disabled
    endpointId Integer
    Endpoint ID. This parameter is only valid and required when the Type parameter is OUTBOUND
    forwardIPs List<ResolverRuleForwardIP>
    lastOperator String
    Account ID of the last update to the forwarding rule
    line String
    Carrier for the outbound IP address of the recursive DNS server. This parameter is only valid when the Type parameter is LINE. Supported values: Mobile: China Mobile, Telecom: China Telecom, Unicom: China Unicom
    name String
    Name of the forwarding rule. Supports UTF-8 format
    projectName String
    Project name associated with the forwarding rule. Default is default
    ruleId String
    Forwarding rule ID
    tags List<ResolverRuleTag>
    type String
    Forwarding rule type. OUTBOUND: Forward to external DNS server. LINE: Carrier for the outbound IP address of the custom public recursive DNS server
    updatedTime String
    Update time of the forwarding rule
    vpCs List<ResolverRuleVpC>
    zoneName String
    Domain name(s) associated with the forwarding rule. You can enter one or more domain names. Separate multiple domain names with English commas. Up to 500 domain names are supported. This parameter is only valid and required when the Type parameter is OUTBOUND. If you set this parameter to *, the forwarding rule applies to all domain names associated with the VPC
    createdTime string
    Creation time of the forwarding rule
    enable boolean
    Whether the forwarding rule is enabled. true: enabled. false: disabled
    endpointId number
    Endpoint ID. This parameter is only valid and required when the Type parameter is OUTBOUND
    forwardIPs ResolverRuleForwardIP[]
    lastOperator string
    Account ID of the last update to the forwarding rule
    line string
    Carrier for the outbound IP address of the recursive DNS server. This parameter is only valid when the Type parameter is LINE. Supported values: Mobile: China Mobile, Telecom: China Telecom, Unicom: China Unicom
    name string
    Name of the forwarding rule. Supports UTF-8 format
    projectName string
    Project name associated with the forwarding rule. Default is default
    ruleId string
    Forwarding rule ID
    tags ResolverRuleTag[]
    type string
    Forwarding rule type. OUTBOUND: Forward to external DNS server. LINE: Carrier for the outbound IP address of the custom public recursive DNS server
    updatedTime string
    Update time of the forwarding rule
    vpCs ResolverRuleVpC[]
    zoneName string
    Domain name(s) associated with the forwarding rule. You can enter one or more domain names. Separate multiple domain names with English commas. Up to 500 domain names are supported. This parameter is only valid and required when the Type parameter is OUTBOUND. If you set this parameter to *, the forwarding rule applies to all domain names associated with the VPC
    created_time str
    Creation time of the forwarding rule
    enable bool
    Whether the forwarding rule is enabled. true: enabled. false: disabled
    endpoint_id int
    Endpoint ID. This parameter is only valid and required when the Type parameter is OUTBOUND
    forward_ips Sequence[ResolverRuleForwardIPArgs]
    last_operator str
    Account ID of the last update to the forwarding rule
    line str
    Carrier for the outbound IP address of the recursive DNS server. This parameter is only valid when the Type parameter is LINE. Supported values: Mobile: China Mobile, Telecom: China Telecom, Unicom: China Unicom
    name str
    Name of the forwarding rule. Supports UTF-8 format
    project_name str
    Project name associated with the forwarding rule. Default is default
    rule_id str
    Forwarding rule ID
    tags Sequence[ResolverRuleTagArgs]
    type str
    Forwarding rule type. OUTBOUND: Forward to external DNS server. LINE: Carrier for the outbound IP address of the custom public recursive DNS server
    updated_time str
    Update time of the forwarding rule
    vp_cs Sequence[ResolverRuleVpCArgs]
    zone_name str
    Domain name(s) associated with the forwarding rule. You can enter one or more domain names. Separate multiple domain names with English commas. Up to 500 domain names are supported. This parameter is only valid and required when the Type parameter is OUTBOUND. If you set this parameter to *, the forwarding rule applies to all domain names associated with the VPC
    createdTime String
    Creation time of the forwarding rule
    enable Boolean
    Whether the forwarding rule is enabled. true: enabled. false: disabled
    endpointId Number
    Endpoint ID. This parameter is only valid and required when the Type parameter is OUTBOUND
    forwardIPs List<Property Map>
    lastOperator String
    Account ID of the last update to the forwarding rule
    line String
    Carrier for the outbound IP address of the recursive DNS server. This parameter is only valid when the Type parameter is LINE. Supported values: Mobile: China Mobile, Telecom: China Telecom, Unicom: China Unicom
    name String
    Name of the forwarding rule. Supports UTF-8 format
    projectName String
    Project name associated with the forwarding rule. Default is default
    ruleId String
    Forwarding rule ID
    tags List<Property Map>
    type String
    Forwarding rule type. OUTBOUND: Forward to external DNS server. LINE: Carrier for the outbound IP address of the custom public recursive DNS server
    updatedTime String
    Update time of the forwarding rule
    vpCs List<Property Map>
    zoneName String
    Domain name(s) associated with the forwarding rule. You can enter one or more domain names. Separate multiple domain names with English commas. Up to 500 domain names are supported. This parameter is only valid and required when the Type parameter is OUTBOUND. If you set this parameter to *, the forwarding rule applies to all domain names associated with the VPC

    Supporting Types

    ResolverRuleForwardIP, ResolverRuleForwardIPArgs

    Ip string
    IP address of the external DNS server for the VPC
    Port int
    Port of the external DNS server for the VPC
    Ip string
    IP address of the external DNS server for the VPC
    Port int
    Port of the external DNS server for the VPC
    ip String
    IP address of the external DNS server for the VPC
    port Integer
    Port of the external DNS server for the VPC
    ip string
    IP address of the external DNS server for the VPC
    port number
    Port of the external DNS server for the VPC
    ip str
    IP address of the external DNS server for the VPC
    port int
    Port of the external DNS server for the VPC
    ip String
    IP address of the external DNS server for the VPC
    port Number
    Port of the external DNS server for the VPC

    ResolverRuleTag, ResolverRuleTagArgs

    Key string
    Tag key for the user tag
    Value string
    Tag value for the user tag
    Key string
    Tag key for the user tag
    Value string
    Tag value for the user tag
    key String
    Tag key for the user tag
    value String
    Tag value for the user tag
    key string
    Tag key for the user tag
    value string
    Tag value for the user tag
    key str
    Tag key for the user tag
    value str
    Tag value for the user tag
    key String
    Tag key for the user tag
    value String
    Tag value for the user tag

    ResolverRuleVpC, ResolverRuleVpCArgs

    Region string
    Region of the VPC
    VpcId string
    VPC ID
    Region string
    Region of the VPC
    VpcId string
    VPC ID
    region String
    Region of the VPC
    vpcId String
    VPC ID
    region string
    Region of the VPC
    vpcId string
    VPC ID
    region str
    Region of the VPC
    vpc_id str
    VPC ID
    region String
    Region of the VPC
    vpcId String
    VPC ID

    Import

    $ pulumi import bytepluscc:privatezone/resolverRule:ResolverRule example "rule_id"
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    bytepluscc byteplus-sdk/pulumi-bytepluscc
    License
    MPL-2.0
    Notes
    This Pulumi package is based on the bytepluscc Terraform Provider.
    bytepluscc logo
    Viewing docs for bytepluscc v0.0.21
    published on Thursday, Apr 2, 2026 by Byteplus
      Try Pulumi Cloud free. Your team will thank you.