libZSservicesZSamazonka-route53ZSamazonka-route53
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.Route53.CreateVPCAssociationAuthorization

Description

Authorizes the Amazon Web Services account that created a specified VPC to submit an AssociateVPCWithHostedZone request to associate the VPC with a specified hosted zone that was created by a different account. To submit a CreateVPCAssociationAuthorization request, you must use the account that created the hosted zone. After you authorize the association, use the account that created the VPC to submit an AssociateVPCWithHostedZone request.

If you want to associate multiple VPCs that you created by using one account with a hosted zone that you created by using a different account, you must submit one authorization request for each VPC.

Synopsis

Creating a Request

data CreateVPCAssociationAuthorization Source #

A complex type that contains information about the request to authorize associating a VPC with your private hosted zone. Authorization is only required when a private hosted zone and a VPC were created by using different accounts.

See: newCreateVPCAssociationAuthorization smart constructor.

Constructors

CreateVPCAssociationAuthorization' 

Fields

  • hostedZoneId :: ResourceId

    The ID of the private hosted zone that you want to authorize associating a VPC with.

  • vpc :: VPC

    A complex type that contains the VPC ID and region for the VPC that you want to authorize associating with your hosted zone.

Instances

Instances details
Eq CreateVPCAssociationAuthorization Source # 
Instance details

Defined in Amazonka.Route53.CreateVPCAssociationAuthorization

Read CreateVPCAssociationAuthorization Source # 
Instance details

Defined in Amazonka.Route53.CreateVPCAssociationAuthorization

Show CreateVPCAssociationAuthorization Source # 
Instance details

Defined in Amazonka.Route53.CreateVPCAssociationAuthorization

Generic CreateVPCAssociationAuthorization Source # 
Instance details

Defined in Amazonka.Route53.CreateVPCAssociationAuthorization

Associated Types

type Rep CreateVPCAssociationAuthorization :: Type -> Type #

NFData CreateVPCAssociationAuthorization Source # 
Instance details

Defined in Amazonka.Route53.CreateVPCAssociationAuthorization

Hashable CreateVPCAssociationAuthorization Source # 
Instance details

Defined in Amazonka.Route53.CreateVPCAssociationAuthorization

AWSRequest CreateVPCAssociationAuthorization Source # 
Instance details

Defined in Amazonka.Route53.CreateVPCAssociationAuthorization

ToHeaders CreateVPCAssociationAuthorization Source # 
Instance details

Defined in Amazonka.Route53.CreateVPCAssociationAuthorization

ToPath CreateVPCAssociationAuthorization Source # 
Instance details

Defined in Amazonka.Route53.CreateVPCAssociationAuthorization

ToQuery CreateVPCAssociationAuthorization Source # 
Instance details

Defined in Amazonka.Route53.CreateVPCAssociationAuthorization

ToElement CreateVPCAssociationAuthorization Source # 
Instance details

Defined in Amazonka.Route53.CreateVPCAssociationAuthorization

ToXML CreateVPCAssociationAuthorization Source # 
Instance details

Defined in Amazonka.Route53.CreateVPCAssociationAuthorization

type Rep CreateVPCAssociationAuthorization Source # 
Instance details

Defined in Amazonka.Route53.CreateVPCAssociationAuthorization

type Rep CreateVPCAssociationAuthorization = D1 ('MetaData "CreateVPCAssociationAuthorization" "Amazonka.Route53.CreateVPCAssociationAuthorization" "libZSservicesZSamazonka-route53ZSamazonka-route53" 'False) (C1 ('MetaCons "CreateVPCAssociationAuthorization'" 'PrefixI 'True) (S1 ('MetaSel ('Just "hostedZoneId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ResourceId) :*: S1 ('MetaSel ('Just "vpc") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 VPC)))
type AWSResponse CreateVPCAssociationAuthorization Source # 
Instance details

Defined in Amazonka.Route53.CreateVPCAssociationAuthorization

newCreateVPCAssociationAuthorization Source #

Create a value of CreateVPCAssociationAuthorization 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:hostedZoneId:CreateVPCAssociationAuthorization', createVPCAssociationAuthorization_hostedZoneId - The ID of the private hosted zone that you want to authorize associating a VPC with.

$sel:vpc:CreateVPCAssociationAuthorization', createVPCAssociationAuthorization_vpc - A complex type that contains the VPC ID and region for the VPC that you want to authorize associating with your hosted zone.

Request Lenses

createVPCAssociationAuthorization_hostedZoneId :: Lens' CreateVPCAssociationAuthorization ResourceId Source #

The ID of the private hosted zone that you want to authorize associating a VPC with.

createVPCAssociationAuthorization_vpc :: Lens' CreateVPCAssociationAuthorization VPC Source #

A complex type that contains the VPC ID and region for the VPC that you want to authorize associating with your hosted zone.

Destructuring the Response

data CreateVPCAssociationAuthorizationResponse Source #

A complex type that contains the response information from a CreateVPCAssociationAuthorization request.

See: newCreateVPCAssociationAuthorizationResponse smart constructor.

Constructors

CreateVPCAssociationAuthorizationResponse' 

Fields

  • httpStatus :: Int

    The response's http status code.

  • hostedZoneId :: ResourceId

    The ID of the hosted zone that you authorized associating a VPC with.

  • vpc :: VPC

    The VPC that you authorized associating with a hosted zone.

Instances

Instances details
Eq CreateVPCAssociationAuthorizationResponse Source # 
Instance details

Defined in Amazonka.Route53.CreateVPCAssociationAuthorization

Read CreateVPCAssociationAuthorizationResponse Source # 
Instance details

Defined in Amazonka.Route53.CreateVPCAssociationAuthorization

Show CreateVPCAssociationAuthorizationResponse Source # 
Instance details

Defined in Amazonka.Route53.CreateVPCAssociationAuthorization

Generic CreateVPCAssociationAuthorizationResponse Source # 
Instance details

Defined in Amazonka.Route53.CreateVPCAssociationAuthorization

NFData CreateVPCAssociationAuthorizationResponse Source # 
Instance details

Defined in Amazonka.Route53.CreateVPCAssociationAuthorization

type Rep CreateVPCAssociationAuthorizationResponse Source # 
Instance details

Defined in Amazonka.Route53.CreateVPCAssociationAuthorization

type Rep CreateVPCAssociationAuthorizationResponse = D1 ('MetaData "CreateVPCAssociationAuthorizationResponse" "Amazonka.Route53.CreateVPCAssociationAuthorization" "libZSservicesZSamazonka-route53ZSamazonka-route53" 'False) (C1 ('MetaCons "CreateVPCAssociationAuthorizationResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: (S1 ('MetaSel ('Just "hostedZoneId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ResourceId) :*: S1 ('MetaSel ('Just "vpc") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 VPC))))

Response Lenses