amazonka-ec2-2.0: Amazon Elastic Compute Cloud 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.EC2.DisassociateAddress

Description

Disassociates an Elastic IP address from the instance or network interface it's associated with.

An Elastic IP address is for use in either the EC2-Classic platform or in a VPC. For more information, see Elastic IP Addresses in the Amazon Elastic Compute Cloud User Guide.

We are retiring EC2-Classic. We recommend that you migrate from EC2-Classic to a VPC. For more information, see Migrate from EC2-Classic to a VPC in the Amazon Elastic Compute Cloud User Guide.

This is an idempotent operation. If you perform the operation more than once, Amazon EC2 doesn't return an error.

Synopsis

Creating a Request

data DisassociateAddress Source #

See: newDisassociateAddress smart constructor.

Constructors

DisassociateAddress' 

Fields

  • associationId :: Maybe Text
    EC2-VPC
    The association ID. Required for EC2-VPC.
  • dryRun :: Maybe Bool

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

  • publicIp :: Maybe Text
    EC2-Classic
    The Elastic IP address. Required for EC2-Classic.

Instances

Instances details
ToHeaders DisassociateAddress Source # 
Instance details

Defined in Amazonka.EC2.DisassociateAddress

ToPath DisassociateAddress Source # 
Instance details

Defined in Amazonka.EC2.DisassociateAddress

ToQuery DisassociateAddress Source # 
Instance details

Defined in Amazonka.EC2.DisassociateAddress

AWSRequest DisassociateAddress Source # 
Instance details

Defined in Amazonka.EC2.DisassociateAddress

Associated Types

type AWSResponse DisassociateAddress #

Generic DisassociateAddress Source # 
Instance details

Defined in Amazonka.EC2.DisassociateAddress

Associated Types

type Rep DisassociateAddress :: Type -> Type #

Read DisassociateAddress Source # 
Instance details

Defined in Amazonka.EC2.DisassociateAddress

Show DisassociateAddress Source # 
Instance details

Defined in Amazonka.EC2.DisassociateAddress

NFData DisassociateAddress Source # 
Instance details

Defined in Amazonka.EC2.DisassociateAddress

Methods

rnf :: DisassociateAddress -> () #

Eq DisassociateAddress Source # 
Instance details

Defined in Amazonka.EC2.DisassociateAddress

Hashable DisassociateAddress Source # 
Instance details

Defined in Amazonka.EC2.DisassociateAddress

type AWSResponse DisassociateAddress Source # 
Instance details

Defined in Amazonka.EC2.DisassociateAddress

type Rep DisassociateAddress Source # 
Instance details

Defined in Amazonka.EC2.DisassociateAddress

type Rep DisassociateAddress = D1 ('MetaData "DisassociateAddress" "Amazonka.EC2.DisassociateAddress" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "DisassociateAddress'" 'PrefixI 'True) (S1 ('MetaSel ('Just "associationId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "dryRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "publicIp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

newDisassociateAddress :: DisassociateAddress Source #

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

DisassociateAddress, disassociateAddress_associationId - [EC2-VPC] The association ID. Required for EC2-VPC.

$sel:dryRun:DisassociateAddress', disassociateAddress_dryRun - Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

DisassociateAddress, disassociateAddress_publicIp - [EC2-Classic] The Elastic IP address. Required for EC2-Classic.

Request Lenses

disassociateAddress_associationId :: Lens' DisassociateAddress (Maybe Text) Source #

EC2-VPC
The association ID. Required for EC2-VPC.

disassociateAddress_dryRun :: Lens' DisassociateAddress (Maybe Bool) Source #

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

disassociateAddress_publicIp :: Lens' DisassociateAddress (Maybe Text) Source #

EC2-Classic
The Elastic IP address. Required for EC2-Classic.

Destructuring the Response

data DisassociateAddressResponse Source #

See: newDisassociateAddressResponse smart constructor.

Instances

Instances details
Generic DisassociateAddressResponse Source # 
Instance details

Defined in Amazonka.EC2.DisassociateAddress

Associated Types

type Rep DisassociateAddressResponse :: Type -> Type #

Read DisassociateAddressResponse Source # 
Instance details

Defined in Amazonka.EC2.DisassociateAddress

Show DisassociateAddressResponse Source # 
Instance details

Defined in Amazonka.EC2.DisassociateAddress

NFData DisassociateAddressResponse Source # 
Instance details

Defined in Amazonka.EC2.DisassociateAddress

Eq DisassociateAddressResponse Source # 
Instance details

Defined in Amazonka.EC2.DisassociateAddress

type Rep DisassociateAddressResponse Source # 
Instance details

Defined in Amazonka.EC2.DisassociateAddress

type Rep DisassociateAddressResponse = D1 ('MetaData "DisassociateAddressResponse" "Amazonka.EC2.DisassociateAddress" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "DisassociateAddressResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newDisassociateAddressResponse :: DisassociateAddressResponse Source #

Create a value of DisassociateAddressResponse with all optional fields omitted.

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