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

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
Eq DisassociateVPCFromHostedZone Source # 
Instance details

Defined in Amazonka.Route53.DisassociateVPCFromHostedZone

Read DisassociateVPCFromHostedZone Source # 
Instance details

Defined in Amazonka.Route53.DisassociateVPCFromHostedZone

Show 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 #

NFData DisassociateVPCFromHostedZone Source # 
Instance details

Defined in Amazonka.Route53.DisassociateVPCFromHostedZone

Hashable DisassociateVPCFromHostedZone Source # 
Instance details

Defined in Amazonka.Route53.DisassociateVPCFromHostedZone

AWSRequest DisassociateVPCFromHostedZone Source # 
Instance details

Defined in Amazonka.Route53.DisassociateVPCFromHostedZone

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

type Rep DisassociateVPCFromHostedZone Source # 
Instance details

Defined in Amazonka.Route53.DisassociateVPCFromHostedZone

type Rep DisassociateVPCFromHostedZone = D1 ('MetaData "DisassociateVPCFromHostedZone" "Amazonka.Route53.DisassociateVPCFromHostedZone" "libZSservicesZSamazonka-route53ZSamazonka-route53" '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))))
type AWSResponse DisassociateVPCFromHostedZone Source # 
Instance details

Defined in Amazonka.Route53.DisassociateVPCFromHostedZone

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:

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

$sel:hostedZoneId: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
Eq 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

Generic DisassociateVPCFromHostedZoneResponse Source # 
Instance details

Defined in Amazonka.Route53.DisassociateVPCFromHostedZone

NFData 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" "libZSservicesZSamazonka-route53ZSamazonka-route53" '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.