Welcome to Pulumi Registry, your window into the cloud. Read the announcement.

AWS Classic

v4.30.0 published on Tuesday, Nov 30, 2021 by Pulumi

getResolverRules

aws.route53.getResolverRules provides details about a set of Route53 Resolver rules.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(Aws.Route53.GetResolverRules.InvokeAsync(new Aws.Route53.GetResolverRulesArgs
        {
            OwnerId = "Route 53 Resolver",
            RuleType = "RECURSIVE",
            ShareStatus = "NOT_SHARED",
        }));
    }

}
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		opt0 := "Route 53 Resolver"
		opt1 := "RECURSIVE"
		opt2 := "NOT_SHARED"
		_, err := route53.GetResolverRules(ctx, &route53.GetResolverRulesArgs{
			OwnerId:     &opt0,
			RuleType:    &opt1,
			ShareStatus: &opt2,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
import pulumi
import pulumi_aws as aws

example = aws.route53.get_resolver_rules(owner_id="Route 53 Resolver",
    rule_type="RECURSIVE",
    share_status="NOT_SHARED")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = pulumi.output(aws.route53.getResolverRules({
    ownerId: "Route 53 Resolver",
    ruleType: "RECURSIVE",
    shareStatus: "NOT_SHARED",
}));

Using getResolverRules

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getResolverRules(args: GetResolverRulesArgs, opts?: InvokeOptions): Promise<GetResolverRulesResult>
function getResolverRulesOutput(args: GetResolverRulesOutputArgs, opts?: InvokeOptions): Output<GetResolverRulesResult>
def get_resolver_rules(owner_id: Optional[str] = None,
                       resolver_endpoint_id: Optional[str] = None,
                       rule_type: Optional[str] = None,
                       share_status: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetResolverRulesResult
def get_resolver_rules_output(owner_id: Optional[pulumi.Input[str]] = None,
                       resolver_endpoint_id: Optional[pulumi.Input[str]] = None,
                       rule_type: Optional[pulumi.Input[str]] = None,
                       share_status: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetResolverRulesResult]
func GetResolverRules(ctx *Context, args *GetResolverRulesArgs, opts ...InvokeOption) (*GetResolverRulesResult, error)
func GetResolverRulesOutput(ctx *Context, args *GetResolverRulesOutputArgs, opts ...InvokeOption) GetResolverRulesResultOutput

> Note: This function is named GetResolverRules in the Go SDK.

public static class GetResolverRules 
{
    public static Task<GetResolverRulesResult> InvokeAsync(GetResolverRulesArgs args, InvokeOptions? opts = null)
    public static Output<GetResolverRulesResult> Invoke(GetResolverRulesInvokeArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

OwnerId string
When the desired resolver rules are shared with another AWS account, the account ID of the account that the rules are shared with.
ResolverEndpointId string
The ID of the outbound resolver endpoint for the desired resolver rules.
RuleType string
The rule type of the desired resolver rules. Valid values are FORWARD, SYSTEM and RECURSIVE.
ShareStatus string
Whether the desired resolver rules are shared and, if so, whether the current account is sharing the rules with another account, or another account is sharing the rules with the current account. Valid values are NOT_SHARED, SHARED_BY_ME or SHARED_WITH_ME
OwnerId string
When the desired resolver rules are shared with another AWS account, the account ID of the account that the rules are shared with.
ResolverEndpointId string
The ID of the outbound resolver endpoint for the desired resolver rules.
RuleType string
The rule type of the desired resolver rules. Valid values are FORWARD, SYSTEM and RECURSIVE.
ShareStatus string
Whether the desired resolver rules are shared and, if so, whether the current account is sharing the rules with another account, or another account is sharing the rules with the current account. Valid values are NOT_SHARED, SHARED_BY_ME or SHARED_WITH_ME
ownerId string
When the desired resolver rules are shared with another AWS account, the account ID of the account that the rules are shared with.
resolverEndpointId string
The ID of the outbound resolver endpoint for the desired resolver rules.
ruleType string
The rule type of the desired resolver rules. Valid values are FORWARD, SYSTEM and RECURSIVE.
shareStatus string
Whether the desired resolver rules are shared and, if so, whether the current account is sharing the rules with another account, or another account is sharing the rules with the current account. Valid values are NOT_SHARED, SHARED_BY_ME or SHARED_WITH_ME
owner_id str
When the desired resolver rules are shared with another AWS account, the account ID of the account that the rules are shared with.
resolver_endpoint_id str
The ID of the outbound resolver endpoint for the desired resolver rules.
rule_type str
The rule type of the desired resolver rules. Valid values are FORWARD, SYSTEM and RECURSIVE.
share_status str
Whether the desired resolver rules are shared and, if so, whether the current account is sharing the rules with another account, or another account is sharing the rules with the current account. Valid values are NOT_SHARED, SHARED_BY_ME or SHARED_WITH_ME

getResolverRules Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
ResolverRuleIds List<string>
The IDs of the matched resolver rules.
OwnerId string
ResolverEndpointId string
RuleType string
ShareStatus string
Id string
The provider-assigned unique ID for this managed resource.
ResolverRuleIds []string
The IDs of the matched resolver rules.
OwnerId string
ResolverEndpointId string
RuleType string
ShareStatus string
id string
The provider-assigned unique ID for this managed resource.
resolverRuleIds string[]
The IDs of the matched resolver rules.
ownerId string
resolverEndpointId string
ruleType string
shareStatus string
id str
The provider-assigned unique ID for this managed resource.
resolver_rule_ids Sequence[str]
The IDs of the matched resolver rules.
owner_id str
resolver_endpoint_id str
rule_type str
share_status str

Package Details

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