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.AssociateResolverRule

Description

Associates a Resolver rule with a VPC. When you associate a rule with a VPC, Resolver forwards all DNS queries for the domain name that is specified in the rule and that originate in the VPC. The queries are forwarded to the IP addresses for the DNS resolvers that are specified in the rule. For more information about rules, see CreateResolverRule.

Synopsis

Creating a Request

data AssociateResolverRule Source #

See: newAssociateResolverRule smart constructor.

Constructors

AssociateResolverRule' 

Fields

  • name :: Maybe Text

    A name for the association that you're creating between a Resolver rule and a VPC.

  • resolverRuleId :: Text

    The ID of the Resolver rule that you want to associate with the VPC. To list the existing Resolver rules, use ListResolverRules.

  • vPCId :: Text

    The ID of the VPC that you want to associate the Resolver rule with.

Instances

Instances details
Eq AssociateResolverRule Source # 
Instance details

Defined in Amazonka.Route53Resolver.AssociateResolverRule

Read AssociateResolverRule Source # 
Instance details

Defined in Amazonka.Route53Resolver.AssociateResolverRule

Show AssociateResolverRule Source # 
Instance details

Defined in Amazonka.Route53Resolver.AssociateResolverRule

Generic AssociateResolverRule Source # 
Instance details

Defined in Amazonka.Route53Resolver.AssociateResolverRule

Associated Types

type Rep AssociateResolverRule :: Type -> Type #

NFData AssociateResolverRule Source # 
Instance details

Defined in Amazonka.Route53Resolver.AssociateResolverRule

Methods

rnf :: AssociateResolverRule -> () #

Hashable AssociateResolverRule Source # 
Instance details

Defined in Amazonka.Route53Resolver.AssociateResolverRule

ToJSON AssociateResolverRule Source # 
Instance details

Defined in Amazonka.Route53Resolver.AssociateResolverRule

AWSRequest AssociateResolverRule Source # 
Instance details

Defined in Amazonka.Route53Resolver.AssociateResolverRule

Associated Types

type AWSResponse AssociateResolverRule #

ToHeaders AssociateResolverRule Source # 
Instance details

Defined in Amazonka.Route53Resolver.AssociateResolverRule

ToPath AssociateResolverRule Source # 
Instance details

Defined in Amazonka.Route53Resolver.AssociateResolverRule

ToQuery AssociateResolverRule Source # 
Instance details

Defined in Amazonka.Route53Resolver.AssociateResolverRule

type Rep AssociateResolverRule Source # 
Instance details

Defined in Amazonka.Route53Resolver.AssociateResolverRule

type Rep AssociateResolverRule = D1 ('MetaData "AssociateResolverRule" "Amazonka.Route53Resolver.AssociateResolverRule" "libZSservicesZSamazonka-route53resolverZSamazonka-route53resolver" 'False) (C1 ('MetaCons "AssociateResolverRule'" 'PrefixI 'True) (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "resolverRuleId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "vPCId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse AssociateResolverRule Source # 
Instance details

Defined in Amazonka.Route53Resolver.AssociateResolverRule

newAssociateResolverRule Source #

Create a value of AssociateResolverRule 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:name:AssociateResolverRule', associateResolverRule_name - A name for the association that you're creating between a Resolver rule and a VPC.

$sel:resolverRuleId:AssociateResolverRule', associateResolverRule_resolverRuleId - The ID of the Resolver rule that you want to associate with the VPC. To list the existing Resolver rules, use ListResolverRules.

$sel:vPCId:AssociateResolverRule', associateResolverRule_vPCId - The ID of the VPC that you want to associate the Resolver rule with.

Request Lenses

associateResolverRule_name :: Lens' AssociateResolverRule (Maybe Text) Source #

A name for the association that you're creating between a Resolver rule and a VPC.

associateResolverRule_resolverRuleId :: Lens' AssociateResolverRule Text Source #

The ID of the Resolver rule that you want to associate with the VPC. To list the existing Resolver rules, use ListResolverRules.

associateResolverRule_vPCId :: Lens' AssociateResolverRule Text Source #

The ID of the VPC that you want to associate the Resolver rule with.

Destructuring the Response

data AssociateResolverRuleResponse Source #

See: newAssociateResolverRuleResponse smart constructor.

Constructors

AssociateResolverRuleResponse' 

Fields

Instances

Instances details
Eq AssociateResolverRuleResponse Source # 
Instance details

Defined in Amazonka.Route53Resolver.AssociateResolverRule

Read AssociateResolverRuleResponse Source # 
Instance details

Defined in Amazonka.Route53Resolver.AssociateResolverRule

Show AssociateResolverRuleResponse Source # 
Instance details

Defined in Amazonka.Route53Resolver.AssociateResolverRule

Generic AssociateResolverRuleResponse Source # 
Instance details

Defined in Amazonka.Route53Resolver.AssociateResolverRule

Associated Types

type Rep AssociateResolverRuleResponse :: Type -> Type #

NFData AssociateResolverRuleResponse Source # 
Instance details

Defined in Amazonka.Route53Resolver.AssociateResolverRule

type Rep AssociateResolverRuleResponse Source # 
Instance details

Defined in Amazonka.Route53Resolver.AssociateResolverRule

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

newAssociateResolverRuleResponse Source #

Create a value of AssociateResolverRuleResponse 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:resolverRuleAssociation:AssociateResolverRuleResponse', associateResolverRuleResponse_resolverRuleAssociation - Information about the AssociateResolverRule request, including the status of the request.

$sel:httpStatus:AssociateResolverRuleResponse', associateResolverRuleResponse_httpStatus - The response's http status code.

Response Lenses

associateResolverRuleResponse_resolverRuleAssociation :: Lens' AssociateResolverRuleResponse (Maybe ResolverRuleAssociation) Source #

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