Class ResolverRule
Provides a Route53 Resolver rule.
Example Usage
System rule
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var sys = new Aws.Route53.ResolverRule("sys", new Aws.Route53.ResolverRuleArgs
{
DomainName = "subdomain.example.com",
RuleType = "SYSTEM",
});
}
}
Forward rule
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var fwd = new Aws.Route53.ResolverRule("fwd", new Aws.Route53.ResolverRuleArgs
{
DomainName = "example.com",
ResolverEndpointId = aws_route53_resolver_endpoint.Foo.Id,
RuleType = "FORWARD",
Tags =
{
{ "Environment", "Prod" },
},
TargetIps =
{
new Aws.Route53.Inputs.ResolverRuleTargetIpArgs
{
Ip = "123.45.67.89",
},
},
});
}
}
Inherited Members
Namespace: Pulumi.Aws.Route53
Assembly: Pulumi.Aws.dll
Syntax
public class ResolverRule : CustomResource
Constructors
View SourceResolverRule(String, ResolverRuleArgs, CustomResourceOptions)
Create a ResolverRule resource with the given unique name, arguments, and options.
Declaration
public ResolverRule(string name, ResolverRuleArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| ResolverRuleArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceArn
The ARN (Amazon Resource Name) for the resolver rule.
Declaration
public Output<string> Arn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
DomainName
DNS queries for this domain name are forwarded to the IP addresses that are specified using target_ip.
Declaration
public Output<string> DomainName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Name
A friendly name that lets you easily find a rule in the Resolver dashboard in the Route 53 console.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
OwnerId
When a rule is shared with another AWS account, the account ID of the account that the rule is shared with.
Declaration
public Output<string> OwnerId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ResolverEndpointId
The ID of the outbound resolver endpoint that you want to use to route DNS queries to the IP addresses that you specify using target_ip.
This argument should only be specified for FORWARD type rules.
Declaration
public Output<string> ResolverEndpointId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
RuleType
The rule type. Valid values are FORWARD, SYSTEM and RECURSIVE.
Declaration
public Output<string> RuleType { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ShareStatus
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
Declaration
public Output<string> ShareStatus { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Tags
A map of tags to assign to the resource.
Declaration
public Output<ImmutableDictionary<string, object>> Tags { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>> |
TargetIps
Configuration block(s) indicating the IPs that you want Resolver to forward DNS queries to (documented below).
This argument should only be specified for FORWARD type rules.
Declaration
public Output<ImmutableArray<ResolverRuleTargetIp>> TargetIps { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<ResolverRuleTargetIp>> |
Methods
View SourceGet(String, Input<String>, ResolverRuleState, CustomResourceOptions)
Get an existing ResolverRule resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static ResolverRule Get(string name, Input<string> id, ResolverRuleState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| ResolverRuleState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| ResolverRule |