GetResolverRule

aws.route53.ResolverRule provides details about a specific Route53 Resolver rule.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(Aws.Route53.GetResolverRule.InvokeAsync(new Aws.Route53.GetResolverRuleArgs
        {
            DomainName = "subdomain.example.com",
            RuleType = "SYSTEM",
        }));
    }

}
package main

import (
    "github.com/pulumi/pulumi-aws/sdk/v2/go/aws/route53"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        opt0 := "subdomain.example.com"
        opt1 := "SYSTEM"
        _, err := route53.LookupResolverRule(ctx, &route53.LookupResolverRuleArgs{
            DomainName: &opt0,
            RuleType:   &opt1,
        }, nil)
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_aws as aws

example = aws.route53.get_resolver_rule(domain_name="subdomain.example.com",
    rule_type="SYSTEM")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = pulumi.output(aws.route53.getResolverRule({
    domainName: "subdomain.example.com",
    ruleType: "SYSTEM",
}, { async: true }));

Using GetResolverRule

function getResolverRule(args: GetResolverRuleArgs, opts?: InvokeOptions): Promise<GetResolverRuleResult>
function  get_resolver_rule(domain_name=None, name=None, resolver_endpoint_id=None, resolver_rule_id=None, rule_type=None, tags=None, opts=None)
func LookupResolverRule(ctx *Context, args *LookupResolverRuleArgs, opts ...InvokeOption) (*LookupResolverRuleResult, error)

Note: This function is named LookupResolverRule in the Go SDK.

public static class GetResolverRule {
    public static Task<GetResolverRuleResult> InvokeAsync(GetResolverRuleArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

DomainName string

The domain name the desired resolver rule forwards DNS queries for. Conflicts with resolver_rule_id.

Name string

The friendly name of the desired resolver rule. Conflicts with resolver_rule_id.

ResolverEndpointId string

The ID of the outbound resolver endpoint of the desired resolver rule. Conflicts with resolver_rule_id.

ResolverRuleId string

The ID of the desired resolver rule. Conflicts with domain_name, name, resolver_endpoint_id and rule_type.

RuleType string

The rule type of the desired resolver rule. Valid values are FORWARD, SYSTEM and RECURSIVE. Conflicts with resolver_rule_id.

Tags Dictionary<string, string>

A map of tags assigned to the resolver rule.

DomainName string

The domain name the desired resolver rule forwards DNS queries for. Conflicts with resolver_rule_id.

Name string

The friendly name of the desired resolver rule. Conflicts with resolver_rule_id.

ResolverEndpointId string

The ID of the outbound resolver endpoint of the desired resolver rule. Conflicts with resolver_rule_id.

ResolverRuleId string

The ID of the desired resolver rule. Conflicts with domain_name, name, resolver_endpoint_id and rule_type.

RuleType string

The rule type of the desired resolver rule. Valid values are FORWARD, SYSTEM and RECURSIVE. Conflicts with resolver_rule_id.

Tags map[string]string

A map of tags assigned to the resolver rule.

domainName string

The domain name the desired resolver rule forwards DNS queries for. Conflicts with resolver_rule_id.

name string

The friendly name of the desired resolver rule. Conflicts with resolver_rule_id.

resolverEndpointId string

The ID of the outbound resolver endpoint of the desired resolver rule. Conflicts with resolver_rule_id.

resolverRuleId string

The ID of the desired resolver rule. Conflicts with domain_name, name, resolver_endpoint_id and rule_type.

ruleType string

The rule type of the desired resolver rule. Valid values are FORWARD, SYSTEM and RECURSIVE. Conflicts with resolver_rule_id.

tags {[key: string]: string}

A map of tags assigned to the resolver rule.

domain_name str

The domain name the desired resolver rule forwards DNS queries for. Conflicts with resolver_rule_id.

name str

The friendly name of the desired resolver rule. Conflicts with resolver_rule_id.

resolver_endpoint_id str

The ID of the outbound resolver endpoint of the desired resolver rule. Conflicts with resolver_rule_id.

resolver_rule_id str

The ID of the desired resolver rule. Conflicts with domain_name, name, resolver_endpoint_id and rule_type.

rule_type str

The rule type of the desired resolver rule. Valid values are FORWARD, SYSTEM and RECURSIVE. Conflicts with resolver_rule_id.

tags Dict[str, str]

A map of tags assigned to the resolver rule.

GetResolverRule Result

The following output properties are available:

Arn string

The ARN (Amazon Resource Name) for the resolver rule.

DomainName string
Id string

The provider-assigned unique ID for this managed resource.

Name string
OwnerId string

When a rule is shared with another AWS account, the account ID of the account that the rule is shared with.

ResolverEndpointId string
ResolverRuleId string
RuleType string
ShareStatus string

Whether the rules is shared and, if so, whether the current account is sharing the rule with another account, or another account is sharing the rule with the current account. Values are NOT_SHARED, SHARED_BY_ME or SHARED_WITH_ME

Tags Dictionary<string, string>

A map of tags assigned to the resolver rule.

Arn string

The ARN (Amazon Resource Name) for the resolver rule.

DomainName string
Id string

The provider-assigned unique ID for this managed resource.

Name string
OwnerId string

When a rule is shared with another AWS account, the account ID of the account that the rule is shared with.

ResolverEndpointId string
ResolverRuleId string
RuleType string
ShareStatus string

Whether the rules is shared and, if so, whether the current account is sharing the rule with another account, or another account is sharing the rule with the current account. Values are NOT_SHARED, SHARED_BY_ME or SHARED_WITH_ME

Tags map[string]string

A map of tags assigned to the resolver rule.

arn string

The ARN (Amazon Resource Name) for the resolver rule.

domainName string
id string

The provider-assigned unique ID for this managed resource.

name string
ownerId string

When a rule is shared with another AWS account, the account ID of the account that the rule is shared with.

resolverEndpointId string
resolverRuleId string
ruleType string
shareStatus string

Whether the rules is shared and, if so, whether the current account is sharing the rule with another account, or another account is sharing the rule with the current account. Values are NOT_SHARED, SHARED_BY_ME or SHARED_WITH_ME

tags {[key: string]: string}

A map of tags assigned to the resolver rule.

arn str

The ARN (Amazon Resource Name) for the resolver rule.

domain_name str
id str

The provider-assigned unique ID for this managed resource.

name str
owner_id str

When a rule is shared with another AWS account, the account ID of the account that the rule is shared with.

resolver_endpoint_id str
resolver_rule_id str
rule_type str
share_status str

Whether the rules is shared and, if so, whether the current account is sharing the rule with another account, or another account is sharing the rule with the current account. Values are NOT_SHARED, SHARED_BY_ME or SHARED_WITH_ME

tags Dict[str, str]

A map of tags assigned to the resolver rule.

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.