Skip to main content

address_transfers

Creates, updates, deletes, gets or lists an address_transfers resource.

Overview

Nameaddress_transfers
TypeResource
Idaws.ec2.address_transfers

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
address_transfer_statusstringThe Elastic IP address transfer status.
allocation_idstringThe allocation ID of an Elastic IP address.
public_ipstringThe Elastic IP address being transferred.
transfer_account_idstringThe ID of the account that you want to transfer the Elastic IP address to.
transfer_offer_accepted_timestampstringThe timestamp when the Elastic IP address transfer was accepted.
transfer_offer_expiration_timestampstringThe 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.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_address_transfersselectregionAllocationId, NextToken, MaxResults, DryRunDescribes an Elastic IP address transfer. For more information, see Transfer Elastic IP addresses in the Amazon VPC User Guide. When you transfer an Elastic IP address, there is a two-step handshake between the source and transfer Amazon Web Services accounts. When the source account starts the transfer, the transfer account has seven days to accept the Elastic IP address transfer. During those seven days, the source account can view the pending transfer by using this action. After seven days, the transfer expires and ownership of the Elastic IP address returns to the source account. Accepted transfers are visible to the source account for 14 days after the transfers have been accepted.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)
AllocationIdarrayThe allocation IDs of Elastic IP addresses.
DryRunbooleanChecks 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.
MaxResultsintegerThe maximum number of address transfers to return in one page of results.
NextTokenstringSpecify the pagination token from a previous request to retrieve the next page of results.

SELECT examples

Describes an Elastic IP address transfer. For more information, see Transfer Elastic IP addresses in the Amazon VPC User Guide. When you transfer an Elastic IP address, there is a two-step handshake between the source and transfer Amazon Web Services accounts. When the source account starts the transfer, the transfer account has seven days to accept the Elastic IP address transfer. During those seven days, the source account can view the pending transfer by using this action. After seven days, the transfer expires and ownership of the Elastic IP address returns to the source account. Accepted transfers are visible to the source account for 14 days after the transfers have been accepted.

SELECT
address_transfer_status,
allocation_id,
public_ip,
transfer_account_id,
transfer_offer_accepted_timestamp,
transfer_offer_expiration_timestamp
FROM aws.ec2.address_transfers
WHERE region = '{{ region }}' -- required
AND AllocationId = '{{ AllocationId }}'
AND NextToken = '{{ NextToken }}'
AND MaxResults = '{{ MaxResults }}'
AND DryRun = '{{ DryRun }}'
;