EC2 / Client / disable_address_transfer

disable_address_transfer#

EC2.Client.disable_address_transfer(**kwargs)#

Disables 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.disable_address_transfer(
    AllocationId='string',
    DryRun=True|False
)
Parameters:
  • AllocationId (string) –

    [REQUIRED]

    The allocation ID of an Elastic IP address.

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

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.