amazonka-route53-2.0: Amazon Route 53 SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Route53.DisassociateVPCFromHostedZone

Description

Disassociates an Amazon Virtual Private Cloud (Amazon VPC) from an Amazon Route 53 private hosted zone. Note the following:

  • You can't disassociate the last Amazon VPC from a private hosted zone.
  • You can't convert a private hosted zone into a public hosted zone.
  • You can submit a DisassociateVPCFromHostedZone request using either the account that created the hosted zone or the account that created the Amazon VPC.
  • Some services, such as Cloud Map and Amazon Elastic File System (Amazon EFS) automatically create hosted zones and associate VPCs with the hosted zones. A service can create a hosted zone using your account or using its own account. You can disassociate a VPC from a hosted zone only if the service created the hosted zone using your account.

    When you run DisassociateVPCFromHostedZone, if the hosted zone has a value for OwningAccount, you can use DisassociateVPCFromHostedZone. If the hosted zone has a value for OwningService, you can't use DisassociateVPCFromHostedZone.

When revoking access, the hosted zone and the Amazon VPC must belong to the same partition. A partition is a group of Amazon Web Services Regions. Each Amazon Web Services account is scoped to one partition.

The following are the supported partitions:

  • aws - Amazon Web Services Regions
  • aws-cn - China Regions
  • aws-us-gov - Amazon Web Services GovCloud (US) Region

For more information, see Access Management in the Amazon Web Services General Reference.

Synopsis

Creating a Request

data DisassociateVPCFromHostedZone Source #

A complex type that contains information about the VPC that you want to disassociate from a specified private hosted zone.

See: newDisassociateVPCFromHostedZone smart constructor.

Constructors

DisassociateVPCFromHostedZone' 

Fields

  • comment :: Maybe Text

    Optional: A comment about the disassociation request.

  • hostedZoneId :: ResourceId

    The ID of the private hosted zone that you want to disassociate a VPC from.

  • vpc :: VPC

    A complex type that contains information about the VPC that you're disassociating from the specified hosted zone.

Instances

Instances details
ToHeaders DisassociateVPCFromHostedZone Source # 
Instance details

Defined in Amazonka.Route53.DisassociateVPCFromHostedZone

ToPath DisassociateVPCFromHostedZone Source # 
Instance details

Defined in Amazonka.Route53.DisassociateVPCFromHostedZone

ToQuery DisassociateVPCFromHostedZone Source # 
Instance details

Defined in Amazonka.Route53.DisassociateVPCFromHostedZone

ToElement DisassociateVPCFromHostedZone Source # 
Instance details

Defined in Amazonka.Route53.DisassociateVPCFromHostedZone

ToXML DisassociateVPCFromHostedZone Source # 
Instance details

Defined in Amazonka.Route53.DisassociateVPCFromHostedZone

AWSRequest DisassociateVPCFromHostedZone Source # 
Instance details

Defined in Amazonka.Route53.DisassociateVPCFromHostedZone

Generic DisassociateVPCFromHostedZone Source # 
Instance details

Defined in Amazonka.Route53.DisassociateVPCFromHostedZone

Associated Types

type Rep DisassociateVPCFromHostedZone :: Type -> Type #

Read DisassociateVPCFromHostedZone Source # 
Instance details

Defined in Amazonka.Route53.DisassociateVPCFromHostedZone

Show DisassociateVPCFromHostedZone Source # 
Instance details

Defined in Amazonka.Route53.DisassociateVPCFromHostedZone

NFData DisassociateVPCFromHostedZone Source # 
Instance details

Defined in Amazonka.Route53.DisassociateVPCFromHostedZone

Eq DisassociateVPCFromHostedZone Source # 
Instance details

Defined in Amazonka.Route53.DisassociateVPCFromHostedZone

Hashable DisassociateVPCFromHostedZone Source # 
Instance details

Defined in Amazonka.Route53.DisassociateVPCFromHostedZone

type AWSResponse DisassociateVPCFromHostedZone Source # 
Instance details

Defined in Amazonka.Route53.DisassociateVPCFromHostedZone

type Rep DisassociateVPCFromHostedZone Source # 
Instance details

Defined in Amazonka.Route53.DisassociateVPCFromHostedZone

type Rep DisassociateVPCFromHostedZone = D1 ('MetaData "DisassociateVPCFromHostedZone" "Amazonka.Route53.DisassociateVPCFromHostedZone" "amazonka-route53-2.0-8wP357MyuPX6rh87d4wklb" 'False) (C1 ('MetaCons "DisassociateVPCFromHostedZone'" 'PrefixI 'True) (S1 ('MetaSel ('Just "comment") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "hostedZoneId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ResourceId) :*: S1 ('MetaSel ('Just "vpc") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 VPC))))

newDisassociateVPCFromHostedZone Source #

Create a value of DisassociateVPCFromHostedZone 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:

DisassociateVPCFromHostedZone, disassociateVPCFromHostedZone_comment - Optional: A comment about the disassociation request.

DisassociateVPCFromHostedZone, disassociateVPCFromHostedZone_hostedZoneId - The ID of the private hosted zone that you want to disassociate a VPC from.

$sel:vpc:DisassociateVPCFromHostedZone', disassociateVPCFromHostedZone_vpc - A complex type that contains information about the VPC that you're disassociating from the specified hosted zone.

Request Lenses

disassociateVPCFromHostedZone_comment :: Lens' DisassociateVPCFromHostedZone (Maybe Text) Source #

Optional: A comment about the disassociation request.

disassociateVPCFromHostedZone_hostedZoneId :: Lens' DisassociateVPCFromHostedZone ResourceId Source #

The ID of the private hosted zone that you want to disassociate a VPC from.

disassociateVPCFromHostedZone_vpc :: Lens' DisassociateVPCFromHostedZone VPC Source #

A complex type that contains information about the VPC that you're disassociating from the specified hosted zone.

Destructuring the Response

data DisassociateVPCFromHostedZoneResponse Source #

A complex type that contains the response information for the disassociate request.

See: newDisassociateVPCFromHostedZoneResponse smart constructor.

Constructors

DisassociateVPCFromHostedZoneResponse' 

Fields

Instances

Instances details
Generic DisassociateVPCFromHostedZoneResponse Source # 
Instance details

Defined in Amazonka.Route53.DisassociateVPCFromHostedZone

Read DisassociateVPCFromHostedZoneResponse Source # 
Instance details

Defined in Amazonka.Route53.DisassociateVPCFromHostedZone

Show DisassociateVPCFromHostedZoneResponse Source # 
Instance details

Defined in Amazonka.Route53.DisassociateVPCFromHostedZone

NFData DisassociateVPCFromHostedZoneResponse Source # 
Instance details

Defined in Amazonka.Route53.DisassociateVPCFromHostedZone

Eq DisassociateVPCFromHostedZoneResponse Source # 
Instance details

Defined in Amazonka.Route53.DisassociateVPCFromHostedZone

type Rep DisassociateVPCFromHostedZoneResponse Source # 
Instance details

Defined in Amazonka.Route53.DisassociateVPCFromHostedZone

type Rep DisassociateVPCFromHostedZoneResponse = D1 ('MetaData "DisassociateVPCFromHostedZoneResponse" "Amazonka.Route53.DisassociateVPCFromHostedZone" "amazonka-route53-2.0-8wP357MyuPX6rh87d4wklb" 'False) (C1 ('MetaCons "DisassociateVPCFromHostedZoneResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "changeInfo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ChangeInfo)))

newDisassociateVPCFromHostedZoneResponse Source #

Create a value of DisassociateVPCFromHostedZoneResponse 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:httpStatus:DisassociateVPCFromHostedZoneResponse', disassociateVPCFromHostedZoneResponse_httpStatus - The response's http status code.

$sel:changeInfo:DisassociateVPCFromHostedZoneResponse', disassociateVPCFromHostedZoneResponse_changeInfo - A complex type that describes the changes made to the specified private hosted zone.

Response Lenses

disassociateVPCFromHostedZoneResponse_changeInfo :: Lens' DisassociateVPCFromHostedZoneResponse ChangeInfo Source #

A complex type that describes the changes made to the specified private hosted zone.