Interface ICfnResolverRuleProps
Properties for defining a CfnResolverRule
.
Namespace: Amazon.CDK.AWS.Route53Resolver
Assembly: Amazon.CDK.AWS.Route53Resolver.dll
Syntax (csharp)
public interface ICfnResolverRuleProps
Syntax (vb)
Public Interface 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"
} }
};
Synopsis
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. |
Properties
DomainName
DNS queries for this domain name are forwarded to the IP addresses that are specified in TargetIps
.
string DomainName { get; }
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.
virtual string Name { get; }
Property Value
System.String
Remarks
ResolverEndpointId
The ID of the endpoint that the rule is associated with.
virtual string ResolverEndpointId { get; }
Property Value
System.String
Remarks
RuleType
When you want to forward DNS queries for specified domain name to resolvers on your network, specify FORWARD
.
string RuleType { get; }
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.
virtual ICfnTag[] Tags { get; }
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.
virtual object TargetIps { get; }
Property Value
System.Object
Remarks
Typically, these are the IP addresses of DNS resolvers on your network.