Class CfnResolverRuleProps
Properties for defining a CfnResolverRule
.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.Route53Resolver
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnResolverRuleProps : Object, ICfnResolverRuleProps
Syntax (vb)
Public Class CfnResolverRuleProps
Inherits Object
Implements ICfnResolverRuleProps
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Route53Resolver;
var cfnResolverRuleProps = new CfnResolverRuleProps {
DomainName = "domainName",
RuleType = "ruleType",
// the properties below are optional
Name = "name",
ResolverEndpointId = "resolverEndpointId",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
TargetIps = new [] { new TargetAddressProperty {
Ip = "ip",
Ipv6 = "ipv6",
Port = "port",
Protocol = "protocol"
} }
};
Synopsis
Constructors
CfnResolverRuleProps() |
Properties
DomainName | DNS queries for this domain name are forwarded to the IP addresses that are specified in |
Name | The name for the Resolver rule, which you specified when you created the Resolver rule. |
ResolverEndpointId | The ID of the endpoint that the rule is associated with. |
RuleType | When you want to forward DNS queries for specified domain name to resolvers on your network, specify |
Tags | Tags help organize and categorize your Resolver rules. |
TargetIps | An array that contains the IP addresses and ports that an outbound endpoint forwards DNS queries to. |
Constructors
CfnResolverRuleProps()
public CfnResolverRuleProps()
Properties
DomainName
DNS queries for this domain name are forwarded to the IP addresses that are specified in TargetIps
.
public string DomainName { get; set; }
Property Value
System.String
Remarks
If a query matches multiple Resolver rules (example.com and www.example.com), the query is routed using the Resolver rule that contains the most specific domain name (www.example.com).
Name
The name for the Resolver rule, which you specified when you created the Resolver rule.
public string Name { get; set; }
Property Value
System.String
Remarks
ResolverEndpointId
The ID of the endpoint that the rule is associated with.
public string ResolverEndpointId { get; set; }
Property Value
System.String
Remarks
RuleType
When you want to forward DNS queries for specified domain name to resolvers on your network, specify FORWARD
.
public string RuleType { get; set; }
Property Value
System.String
Remarks
When you have a forwarding rule to forward DNS queries for a domain to your network and you want Resolver to process queries for a subdomain of that domain, specify SYSTEM
.
For example, to forward DNS queries for example.com to resolvers on your network, you create a rule and specify FORWARD
for RuleType
. To then have Resolver process queries for apex.example.com, you create a rule and specify SYSTEM
for RuleType
.
Currently, only Resolver can create rules that have a value of RECURSIVE
for RuleType
.
Tags
Tags help organize and categorize your Resolver rules.
public ICfnTag[] Tags { get; set; }
Property Value
ICfnTag[]
Remarks
Each tag consists of a key and an optional value, both of which you define.
TargetIps
An array that contains the IP addresses and ports that an outbound endpoint forwards DNS queries to.
public object TargetIps { get; set; }
Property Value
System.Object
Remarks
Typically, these are the IP addresses of DNS resolvers on your network.