AWS Classic
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/v5/go/aws/route53"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := route53.LookupResolverRule(ctx, &route53.LookupResolverRuleArgs{
DomainName: pulumi.StringRef("subdomain.example.com"),
RuleType: pulumi.StringRef("SYSTEM"),
}, nil)
if err != nil {
return err
}
return nil
})
}
package generated_program;
import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = Output.of(Route53Functions.getResolverRule(GetResolverRuleArgs.builder()
.domainName("subdomain.example.com")
.ruleType("SYSTEM")
.build()));
}
}
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",
}));
variables:
example:
Fn::Invoke:
Function: aws:route53:getResolverRule
Arguments:
domainName: subdomain.example.com
ruleType: SYSTEM
Using getResolverRule
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 getResolverRule(args: GetResolverRuleArgs, opts?: InvokeOptions): Promise<GetResolverRuleResult>
function getResolverRuleOutput(args: GetResolverRuleOutputArgs, opts?: InvokeOptions): Output<GetResolverRuleResult>
def get_resolver_rule(domain_name: Optional[str] = None,
name: Optional[str] = None,
resolver_endpoint_id: Optional[str] = None,
resolver_rule_id: Optional[str] = None,
rule_type: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
opts: Optional[InvokeOptions] = None) -> GetResolverRuleResult
def get_resolver_rule_output(domain_name: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
resolver_endpoint_id: Optional[pulumi.Input[str]] = None,
resolver_rule_id: Optional[pulumi.Input[str]] = None,
rule_type: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetResolverRuleResult]
func LookupResolverRule(ctx *Context, args *LookupResolverRuleArgs, opts ...InvokeOption) (*LookupResolverRuleResult, error)
func LookupResolverRuleOutput(ctx *Context, args *LookupResolverRuleOutputArgs, opts ...InvokeOption) LookupResolverRuleResultOutput
> Note: This function is named LookupResolverRule
in the Go SDK.
public static class GetResolverRule
{
public static Task<GetResolverRuleResult> InvokeAsync(GetResolverRuleArgs args, InvokeOptions? opts = null)
public static Output<GetResolverRuleResult> Invoke(GetResolverRuleInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetResolverRuleResult> getResolverRule(GetResolverRuleArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
Function: aws:route53/getResolverRule:getResolverRule
Arguments:
# Arguments dictionary
The following arguments are supported:
- Domain
Name 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
.- Resolver
Endpoint stringId The ID of the outbound resolver endpoint of the desired resolver rule. Conflicts with
resolver_rule_id
.- Resolver
Rule stringId The ID of the desired resolver rule. Conflicts with
domain_name
,name
,resolver_endpoint_id
andrule_type
.- Rule
Type string The rule type of the desired resolver rule. Valid values are
FORWARD
,SYSTEM
andRECURSIVE
. Conflicts withresolver_rule_id
.- Dictionary<string, string>
A map of tags assigned to the resolver rule.
- Domain
Name 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
.- Resolver
Endpoint stringId The ID of the outbound resolver endpoint of the desired resolver rule. Conflicts with
resolver_rule_id
.- Resolver
Rule stringId The ID of the desired resolver rule. Conflicts with
domain_name
,name
,resolver_endpoint_id
andrule_type
.- Rule
Type string The rule type of the desired resolver rule. Valid values are
FORWARD
,SYSTEM
andRECURSIVE
. Conflicts withresolver_rule_id
.- map[string]string
A map of tags assigned to the resolver rule.
- domain
Name 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
.- resolver
Endpoint StringId The ID of the outbound resolver endpoint of the desired resolver rule. Conflicts with
resolver_rule_id
.- resolver
Rule StringId The ID of the desired resolver rule. Conflicts with
domain_name
,name
,resolver_endpoint_id
andrule_type
.- rule
Type String The rule type of the desired resolver rule. Valid values are
FORWARD
,SYSTEM
andRECURSIVE
. Conflicts withresolver_rule_id
.- Map<String,String>
A map of tags assigned to the resolver rule.
- domain
Name 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
.- resolver
Endpoint stringId The ID of the outbound resolver endpoint of the desired resolver rule. Conflicts with
resolver_rule_id
.- resolver
Rule stringId The ID of the desired resolver rule. Conflicts with
domain_name
,name
,resolver_endpoint_id
andrule_type
.- rule
Type string The rule type of the desired resolver rule. Valid values are
FORWARD
,SYSTEM
andRECURSIVE
. Conflicts withresolver_rule_id
.- {[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_ strid The ID of the outbound resolver endpoint of the desired resolver rule. Conflicts with
resolver_rule_id
.- resolver_
rule_ strid The ID of the desired resolver rule. Conflicts with
domain_name
,name
,resolver_endpoint_id
andrule_type
.- rule_
type str The rule type of the desired resolver rule. Valid values are
FORWARD
,SYSTEM
andRECURSIVE
. Conflicts withresolver_rule_id
.- Mapping[str, str]
A map of tags assigned to the resolver rule.
- domain
Name 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
.- resolver
Endpoint StringId The ID of the outbound resolver endpoint of the desired resolver rule. Conflicts with
resolver_rule_id
.- resolver
Rule StringId The ID of the desired resolver rule. Conflicts with
domain_name
,name
,resolver_endpoint_id
andrule_type
.- rule
Type String The rule type of the desired resolver rule. Valid values are
FORWARD
,SYSTEM
andRECURSIVE
. Conflicts withresolver_rule_id
.- Map<String>
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.
- Domain
Name string - Id string
The provider-assigned unique ID for this managed resource.
- Name string
- Owner
Id string When a rule is shared with another AWS account, the account ID of the account that the rule is shared with.
- Resolver
Endpoint stringId - Resolver
Rule stringId - Rule
Type string - 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
orSHARED_WITH_ME
- Dictionary<string, string>
A map of tags assigned to the resolver rule.
- Arn string
The ARN (Amazon Resource Name) for the resolver rule.
- Domain
Name string - Id string
The provider-assigned unique ID for this managed resource.
- Name string
- Owner
Id string When a rule is shared with another AWS account, the account ID of the account that the rule is shared with.
- Resolver
Endpoint stringId - Resolver
Rule stringId - Rule
Type string - 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
orSHARED_WITH_ME
- map[string]string
A map of tags assigned to the resolver rule.
- arn String
The ARN (Amazon Resource Name) for the resolver rule.
- domain
Name String - id String
The provider-assigned unique ID for this managed resource.
- name String
- owner
Id String When a rule is shared with another AWS account, the account ID of the account that the rule is shared with.
- resolver
Endpoint StringId - resolver
Rule StringId - rule
Type String - 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
orSHARED_WITH_ME
- Map<String,String>
A map of tags assigned to the resolver rule.
- arn string
The ARN (Amazon Resource Name) for the resolver rule.
- domain
Name string - id string
The provider-assigned unique ID for this managed resource.
- name string
- owner
Id string When a rule is shared with another AWS account, the account ID of the account that the rule is shared with.
- resolver
Endpoint stringId - resolver
Rule stringId - rule
Type string - 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
orSHARED_WITH_ME
- {[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_ strid - resolver_
rule_ strid - rule_
type str - 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
orSHARED_WITH_ME
- Mapping[str, str]
A map of tags assigned to the resolver rule.
- arn String
The ARN (Amazon Resource Name) for the resolver rule.
- domain
Name String - id String
The provider-assigned unique ID for this managed resource.
- name String
- owner
Id String When a rule is shared with another AWS account, the account ID of the account that the rule is shared with.
- resolver
Endpoint StringId - resolver
Rule StringId - rule
Type String - 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
orSHARED_WITH_ME
- Map<String>
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.