describe_addresses
async
¶
describe_addresses(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
public_ips: Optional[PublicIpStringList] = None,
dry_run: Optional[Boolean] = None,
filters: Optional[FilterList] = None,
allocation_ids: Optional[AllocationIdList] = None,
) -> DescribeAddressesResult
Describes the specified Elastic IP addresses or all of your Elastic IP addresses.
Parameters:
-
public_ips(Optional[PublicIpStringList], default:None) –One or more Elastic IP addresses.
Default: Describes all your Elastic IP addresses.
-
dry_run(Optional[Boolean], default:None) –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. -
filters(Optional[FilterList], default:None) –One or more filters. Filter names and values are case-sensitive.
-
allocation-id- The allocation ID for the address. -
association-id- The association ID for the address. -
instance-id- The ID of the instance the address is associated with, if any. -
network-border-group- A unique set of Availability Zones, Local Zones, or Wavelength Zones from where Amazon Web Services advertises IP addresses. -
network-interface-id- The ID of the network interface that the address is associated with, if any. -
network-interface-owner-id- The Amazon Web Services account ID of the owner. -
private-ip-address- The private IP address associated with the Elastic IP address. -
public-ip- The Elastic IP address, or the carrier IP address. -
tag:- The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Ownerand the valueTeamA, specifytag:Ownerfor the filter name andTeamAfor the filter value. -
tag-key- The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.
-
-
allocation_ids(Optional[AllocationIdList], default:None) –Information about the allocation IDs.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To describe your Elastic IP addresses This example describes your Elastic IP addresses.
Source code in docs_src/capo_ec2/_services/async_ec2.py
21467 21468 21469 21470 21471 21472 21473 21474 21475 21476 21477 21478 21479 21480 21481 21482 21483 21484 21485 21486 21487 21488 21489 21490 21491 21492 21493 21494 21495 21496 21497 21498 21499 21500 21501 21502 21503 21504 21505 21506 21507 21508 21509 21510 21511 21512 21513 21514 21515 21516 21517 21518 21519 21520 21521 21522 21523 21524 21525 21526 21527 21528 21529 21530 21531 21532 | |