describe_addresses
¶
describe_addresses(
*,
config_overrides: Optional[EC2ClientConfig] = 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/ec2.py
21169 21170 21171 21172 21173 21174 21175 21176 21177 21178 21179 21180 21181 21182 21183 21184 21185 21186 21187 21188 21189 21190 21191 21192 21193 21194 21195 21196 21197 21198 21199 21200 21201 21202 21203 21204 21205 21206 21207 21208 21209 21210 21211 21212 21213 21214 21215 21216 21217 21218 21219 21220 21221 21222 21223 21224 21225 21226 21227 21228 21229 21230 21231 21232 21233 | |