describe_dhcp_options
async
¶
describe_dhcp_options(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
dhcp_options_ids: Optional[DhcpOptionsIdStringList] = None,
next_token: Optional[String] = None,
max_results: Optional[DescribeDhcpOptionsMaxResults] = None,
dry_run: Optional[Boolean] = None,
filters: Optional[FilterList] = None,
) -> DescribeDhcpOptionsResult
Describes your DHCP option sets. The default is to describe all your DHCP option sets. Alternatively, you can specify specific DHCP option set IDs or filter the results to include only the DHCP option sets that match specific criteria.
For more information, see DHCP option sets in the Amazon VPC User Guide.
Parameters:
-
dhcp_options_ids(Optional[DhcpOptionsIdStringList], default:None) –The IDs of DHCP option sets.
-
next_token(Optional[String], default:None) –The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.
-
max_results(Optional[DescribeDhcpOptionsMaxResults], default:None) –The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information, see Pagination.
-
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) –The filters.
-
dhcp-options-id- The ID of a DHCP options set. -
key- The key for one of the options (for example,domain-name). -
value- The value for one of the options. -
owner-id- The ID of the Amazon Web Services account that owns the DHCP options set. -
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 keyOwnerand 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.
-
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To describe a DHCP options set This example describes the specified DHCP options set.
Source code in docs_src/capo_ec2/_services/async_ec2.py
24409 24410 24411 24412 24413 24414 24415 24416 24417 24418 24419 24420 24421 24422 24423 24424 24425 24426 24427 24428 24429 24430 24431 24432 24433 24434 24435 24436 24437 24438 24439 24440 24441 24442 24443 24444 24445 24446 24447 24448 24449 24450 24451 24452 24453 24454 24455 24456 24457 24458 24459 24460 24461 24462 24463 24464 24465 24466 24467 24468 24469 24470 24471 24472 24473 24474 24475 24476 24477 24478 | |