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
{
Tags =
{
{
{ "Environment", "dev" },
},
},
}));
}
}
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 {
_, err := route53.GetResolverRules(ctx, &route53.GetResolverRulesArgs{
Tags: []map[string]interface{}{
map[string]interface{}{
"Environment": "dev",
},
},
}, nil)
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_aws as aws
example = aws.route53.get_resolver_rules(tags=[{
"Environment": "dev",
}])import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = pulumi.output(aws.route53.getResolverRules({
tags: [{
Environment: "dev",
}],
}, { async: true }));Using GetResolverRules
function getResolverRules(args: GetResolverRulesArgs, opts?: InvokeOptions): Promise<GetResolverRulesResult>function get_resolver_rules(owner_id=None, resolver_endpoint_id=None, rule_type=None, share_status=None, opts=None)func GetResolverRules(ctx *Context, args *GetResolverRulesArgs, opts ...InvokeOption) (*GetResolverRulesResult, error)public static class GetResolverRules {
public static Task<GetResolverRulesResult> InvokeAsync(GetResolverRulesArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Owner
Id string 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 stringId The ID of the outbound resolver endpoint for the desired resolver rules.
- Rule
Type string The rule type of the desired resolver rules. Valid values are
FORWARD,SYSTEMandRECURSIVE.- 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. Values are
NOT_SHARED,SHARED_BY_MEorSHARED_WITH_ME
- Owner
Id string 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 stringId The ID of the outbound resolver endpoint for the desired resolver rules.
- Rule
Type string The rule type of the desired resolver rules. Valid values are
FORWARD,SYSTEMandRECURSIVE.- 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. Values are
NOT_SHARED,SHARED_BY_MEorSHARED_WITH_ME
- owner
Id string 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 stringId The ID of the outbound resolver endpoint for the desired resolver rules.
- rule
Type string The rule type of the desired resolver rules. Valid values are
FORWARD,SYSTEMandRECURSIVE.- 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. Values are
NOT_SHARED,SHARED_BY_MEorSHARED_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_ strid 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,SYSTEMandRECURSIVE.- 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. Values are
NOT_SHARED,SHARED_BY_MEorSHARED_WITH_ME
GetResolverRules Result
The following output properties are available:
- Id string
The provider-assigned unique ID for this managed resource.
- Resolver
Rule List<string>Ids The IDs of the matched resolver rules.
- Owner
Id string - Resolver
Endpoint stringId - Rule
Type string - string
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.