libZSservicesZSamazonka-route53resolverZSamazonka-route53resolver
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Route53Resolver.CreateResolverRule

Description

For DNS queries that originate in your VPCs, specifies which Resolver endpoint the queries pass through, one domain name that you want to forward to your network, and the IP addresses of the DNS resolvers in your network.

Synopsis

Creating a Request

data CreateResolverRule Source #

See: newCreateResolverRule smart constructor.

Constructors

CreateResolverRule' 

Fields

  • resolverEndpointId :: Maybe Text

    The ID of the outbound Resolver endpoint that you want to use to route DNS queries to the IP addresses that you specify in TargetIps.

  • targetIps :: Maybe (NonEmpty TargetAddress)

    The IPs that you want Resolver to forward DNS queries to. You can specify only IPv4 addresses. Separate IP addresses with a space.

    TargetIps is available only when the value of Rule type is FORWARD.

  • name :: Maybe Text

    A friendly name that lets you easily find a rule in the Resolver dashboard in the Route 53 console.

  • tags :: Maybe [Tag]

    A list of the tag keys and values that you want to associate with the endpoint.

  • creatorRequestId :: Text

    A unique string that identifies the request and that allows failed requests to be retried without the risk of running the operation twice. CreatorRequestId can be any unique string, for example, a date/time stamp.

  • ruleType :: RuleTypeOption

    When you want to forward DNS queries for specified domain name to resolvers on your network, specify FORWARD.

    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.

  • domainName :: Text

    DNS queries for this domain name are forwarded to the IP addresses that you specify in TargetIps. If a query matches multiple Resolver rules (example.com and www.example.com), outbound DNS queries are routed using the Resolver rule that contains the most specific domain name (www.example.com).

Instances

Instances details
Eq CreateResolverRule Source # 
Instance details

Defined in Amazonka.Route53Resolver.CreateResolverRule

Read CreateResolverRule Source # 
Instance details

Defined in Amazonka.Route53Resolver.CreateResolverRule

Show CreateResolverRule Source # 
Instance details

Defined in Amazonka.Route53Resolver.CreateResolverRule

Generic CreateResolverRule Source # 
Instance details

Defined in Amazonka.Route53Resolver.CreateResolverRule

Associated Types

type Rep CreateResolverRule :: Type -> Type #

NFData CreateResolverRule Source # 
Instance details

Defined in Amazonka.Route53Resolver.CreateResolverRule

Methods

rnf :: CreateResolverRule -> () #

Hashable CreateResolverRule Source # 
Instance details

Defined in Amazonka.Route53Resolver.CreateResolverRule

ToJSON CreateResolverRule Source # 
Instance details

Defined in Amazonka.Route53Resolver.CreateResolverRule

AWSRequest CreateResolverRule Source # 
Instance details

Defined in Amazonka.Route53Resolver.CreateResolverRule

Associated Types

type AWSResponse CreateResolverRule #

ToHeaders CreateResolverRule Source # 
Instance details

Defined in Amazonka.Route53Resolver.CreateResolverRule

ToPath CreateResolverRule Source # 
Instance details

Defined in Amazonka.Route53Resolver.CreateResolverRule

ToQuery CreateResolverRule Source # 
Instance details

Defined in Amazonka.Route53Resolver.CreateResolverRule

type Rep CreateResolverRule Source # 
Instance details

Defined in Amazonka.Route53Resolver.CreateResolverRule

type Rep CreateResolverRule = D1 ('MetaData "CreateResolverRule" "Amazonka.Route53Resolver.CreateResolverRule" "libZSservicesZSamazonka-route53resolverZSamazonka-route53resolver" 'False) (C1 ('MetaCons "CreateResolverRule'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "resolverEndpointId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "targetIps") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty TargetAddress))) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag])) :*: S1 ('MetaSel ('Just "creatorRequestId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "ruleType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 RuleTypeOption) :*: S1 ('MetaSel ('Just "domainName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))
type AWSResponse CreateResolverRule Source # 
Instance details

Defined in Amazonka.Route53Resolver.CreateResolverRule

newCreateResolverRule Source #

Create a value of CreateResolverRule with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:resolverEndpointId:CreateResolverRule', createResolverRule_resolverEndpointId - The ID of the outbound Resolver endpoint that you want to use to route DNS queries to the IP addresses that you specify in TargetIps.

$sel:targetIps:CreateResolverRule', createResolverRule_targetIps - The IPs that you want Resolver to forward DNS queries to. You can specify only IPv4 addresses. Separate IP addresses with a space.

TargetIps is available only when the value of Rule type is FORWARD.

$sel:name:CreateResolverRule', createResolverRule_name - A friendly name that lets you easily find a rule in the Resolver dashboard in the Route 53 console.

$sel:tags:CreateResolverRule', createResolverRule_tags - A list of the tag keys and values that you want to associate with the endpoint.

$sel:creatorRequestId:CreateResolverRule', createResolverRule_creatorRequestId - A unique string that identifies the request and that allows failed requests to be retried without the risk of running the operation twice. CreatorRequestId can be any unique string, for example, a date/time stamp.

$sel:ruleType:CreateResolverRule', createResolverRule_ruleType - When you want to forward DNS queries for specified domain name to resolvers on your network, specify FORWARD.

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.

$sel:domainName:CreateResolverRule', createResolverRule_domainName - DNS queries for this domain name are forwarded to the IP addresses that you specify in TargetIps. If a query matches multiple Resolver rules (example.com and www.example.com), outbound DNS queries are routed using the Resolver rule that contains the most specific domain name (www.example.com).

Request Lenses

createResolverRule_resolverEndpointId :: Lens' CreateResolverRule (Maybe Text) Source #

The ID of the outbound Resolver endpoint that you want to use to route DNS queries to the IP addresses that you specify in TargetIps.

createResolverRule_targetIps :: Lens' CreateResolverRule (Maybe (NonEmpty TargetAddress)) Source #

The IPs that you want Resolver to forward DNS queries to. You can specify only IPv4 addresses. Separate IP addresses with a space.

TargetIps is available only when the value of Rule type is FORWARD.

createResolverRule_name :: Lens' CreateResolverRule (Maybe Text) Source #

A friendly name that lets you easily find a rule in the Resolver dashboard in the Route 53 console.

createResolverRule_tags :: Lens' CreateResolverRule (Maybe [Tag]) Source #

A list of the tag keys and values that you want to associate with the endpoint.

createResolverRule_creatorRequestId :: Lens' CreateResolverRule Text Source #

A unique string that identifies the request and that allows failed requests to be retried without the risk of running the operation twice. CreatorRequestId can be any unique string, for example, a date/time stamp.

createResolverRule_ruleType :: Lens' CreateResolverRule RuleTypeOption Source #

When you want to forward DNS queries for specified domain name to resolvers on your network, specify FORWARD.

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.

createResolverRule_domainName :: Lens' CreateResolverRule Text Source #

DNS queries for this domain name are forwarded to the IP addresses that you specify in TargetIps. If a query matches multiple Resolver rules (example.com and www.example.com), outbound DNS queries are routed using the Resolver rule that contains the most specific domain name (www.example.com).

Destructuring the Response

data CreateResolverRuleResponse Source #

See: newCreateResolverRuleResponse smart constructor.

Constructors

CreateResolverRuleResponse' 

Fields

Instances

Instances details
Eq CreateResolverRuleResponse Source # 
Instance details

Defined in Amazonka.Route53Resolver.CreateResolverRule

Read CreateResolverRuleResponse Source # 
Instance details

Defined in Amazonka.Route53Resolver.CreateResolverRule

Show CreateResolverRuleResponse Source # 
Instance details

Defined in Amazonka.Route53Resolver.CreateResolverRule

Generic CreateResolverRuleResponse Source # 
Instance details

Defined in Amazonka.Route53Resolver.CreateResolverRule

Associated Types

type Rep CreateResolverRuleResponse :: Type -> Type #

NFData CreateResolverRuleResponse Source # 
Instance details

Defined in Amazonka.Route53Resolver.CreateResolverRule

type Rep CreateResolverRuleResponse Source # 
Instance details

Defined in Amazonka.Route53Resolver.CreateResolverRule

type Rep CreateResolverRuleResponse = D1 ('MetaData "CreateResolverRuleResponse" "Amazonka.Route53Resolver.CreateResolverRule" "libZSservicesZSamazonka-route53resolverZSamazonka-route53resolver" 'False) (C1 ('MetaCons "CreateResolverRuleResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "resolverRule") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ResolverRule)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateResolverRuleResponse Source #

Create a value of CreateResolverRuleResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:resolverRule:CreateResolverRuleResponse', createResolverRuleResponse_resolverRule - Information about the CreateResolverRule request, including the status of the request.

$sel:httpStatus:CreateResolverRuleResponse', createResolverRuleResponse_httpStatus - The response's http status code.

Response Lenses

createResolverRuleResponse_resolverRule :: Lens' CreateResolverRuleResponse (Maybe ResolverRule) Source #

Information about the CreateResolverRule request, including the status of the request.