EC2 / Client / enable_address_transfer
enable_address_transfer#
- EC2.Client.enable_address_transfer(**kwargs)#
Enables Elastic IP address transfer. For more information, see Transfer Elastic IP addresses in the Amazon Virtual Private Cloud User Guide.
See also: AWS API Documentation
Request Syntax
response = client.enable_address_transfer( AllocationId='string', TransferAccountId='string', DryRun=True|False )
- Parameters:
AllocationId (string) –
[REQUIRED]
The allocation ID of an Elastic IP address.
TransferAccountId (string) –
[REQUIRED]
The ID of the account that you want to transfer the Elastic IP address to.
DryRun (boolean) – 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 isUnauthorizedOperation
.
- Return type:
dict
- Returns:
Response Syntax
{ 'AddressTransfer': { 'PublicIp': 'string', 'AllocationId': 'string', 'TransferAccountId': 'string', 'TransferOfferExpirationTimestamp': datetime(2015, 1, 1), 'TransferOfferAcceptedTimestamp': datetime(2015, 1, 1), 'AddressTransferStatus': 'pending'|'disabled'|'accepted' } }
Response Structure
(dict) –
AddressTransfer (dict) –
An Elastic IP address transfer.
PublicIp (string) –
The Elastic IP address being transferred.
AllocationId (string) –
The allocation ID of an Elastic IP address.
TransferAccountId (string) –
The ID of the account that you want to transfer the Elastic IP address to.
TransferOfferExpirationTimestamp (datetime) –
The timestamp when the Elastic IP address transfer expired. When the source account starts the transfer, the transfer account has seven hours to allocate the Elastic IP address to complete the transfer, or the Elastic IP address will return to its original owner.
TransferOfferAcceptedTimestamp (datetime) –
The timestamp when the Elastic IP address transfer was accepted.
AddressTransferStatus (string) –
The Elastic IP address transfer status.