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

Description

Enables Elastic IP address transfer. For more information, see Transfer Elastic IP addresses in the Amazon Virtual Private Cloud User Guide.

Synopsis

Creating a Request

data EnableAddressTransfer Source #

See: newEnableAddressTransfer smart constructor.

Constructors

EnableAddressTransfer' 

Fields

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

  • allocationId :: Text

    The allocation ID of an Elastic IP address.

  • transferAccountId :: Text

    The ID of the account that you want to transfer the Elastic IP address to.

Instances

Instances details
ToHeaders EnableAddressTransfer Source # 
Instance details

Defined in Amazonka.EC2.EnableAddressTransfer

ToPath EnableAddressTransfer Source # 
Instance details

Defined in Amazonka.EC2.EnableAddressTransfer

ToQuery EnableAddressTransfer Source # 
Instance details

Defined in Amazonka.EC2.EnableAddressTransfer

AWSRequest EnableAddressTransfer Source # 
Instance details

Defined in Amazonka.EC2.EnableAddressTransfer

Associated Types

type AWSResponse EnableAddressTransfer #

Generic EnableAddressTransfer Source # 
Instance details

Defined in Amazonka.EC2.EnableAddressTransfer

Associated Types

type Rep EnableAddressTransfer :: Type -> Type #

Read EnableAddressTransfer Source # 
Instance details

Defined in Amazonka.EC2.EnableAddressTransfer

Show EnableAddressTransfer Source # 
Instance details

Defined in Amazonka.EC2.EnableAddressTransfer

NFData EnableAddressTransfer Source # 
Instance details

Defined in Amazonka.EC2.EnableAddressTransfer

Methods

rnf :: EnableAddressTransfer -> () #

Eq EnableAddressTransfer Source # 
Instance details

Defined in Amazonka.EC2.EnableAddressTransfer

Hashable EnableAddressTransfer Source # 
Instance details

Defined in Amazonka.EC2.EnableAddressTransfer

type AWSResponse EnableAddressTransfer Source # 
Instance details

Defined in Amazonka.EC2.EnableAddressTransfer

type Rep EnableAddressTransfer Source # 
Instance details

Defined in Amazonka.EC2.EnableAddressTransfer

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

newEnableAddressTransfer Source #

Create a value of EnableAddressTransfer 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:dryRun:EnableAddressTransfer', enableAddressTransfer_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.

EnableAddressTransfer, enableAddressTransfer_allocationId - The allocation ID of an Elastic IP address.

EnableAddressTransfer, enableAddressTransfer_transferAccountId - The ID of the account that you want to transfer the Elastic IP address to.

Request Lenses

enableAddressTransfer_dryRun :: Lens' EnableAddressTransfer (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.

enableAddressTransfer_allocationId :: Lens' EnableAddressTransfer Text Source #

The allocation ID of an Elastic IP address.

enableAddressTransfer_transferAccountId :: Lens' EnableAddressTransfer Text Source #

The ID of the account that you want to transfer the Elastic IP address to.

Destructuring the Response

data EnableAddressTransferResponse Source #

See: newEnableAddressTransferResponse smart constructor.

Constructors

EnableAddressTransferResponse' 

Fields

Instances

Instances details
Generic EnableAddressTransferResponse Source # 
Instance details

Defined in Amazonka.EC2.EnableAddressTransfer

Associated Types

type Rep EnableAddressTransferResponse :: Type -> Type #

Read EnableAddressTransferResponse Source # 
Instance details

Defined in Amazonka.EC2.EnableAddressTransfer

Show EnableAddressTransferResponse Source # 
Instance details

Defined in Amazonka.EC2.EnableAddressTransfer

NFData EnableAddressTransferResponse Source # 
Instance details

Defined in Amazonka.EC2.EnableAddressTransfer

Eq EnableAddressTransferResponse Source # 
Instance details

Defined in Amazonka.EC2.EnableAddressTransfer

type Rep EnableAddressTransferResponse Source # 
Instance details

Defined in Amazonka.EC2.EnableAddressTransfer

type Rep EnableAddressTransferResponse = D1 ('MetaData "EnableAddressTransferResponse" "Amazonka.EC2.EnableAddressTransfer" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "EnableAddressTransferResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "addressTransfer") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AddressTransfer)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newEnableAddressTransferResponse Source #

Create a value of EnableAddressTransferResponse 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:addressTransfer:EnableAddressTransferResponse', enableAddressTransferResponse_addressTransfer - An Elastic IP address transfer.

$sel:httpStatus:EnableAddressTransferResponse', enableAddressTransferResponse_httpStatus - The response's http status code.

Response Lenses