EC2 / Client / delete_dhcp_options
delete_dhcp_options#
- EC2.Client.delete_dhcp_options(**kwargs)#
Deletes the specified set of DHCP options. You must disassociate the set of DHCP options before you can delete it. You can disassociate the set of DHCP options by associating either a new set of options or the default set of options with the VPC.
See also: AWS API Documentation
Request Syntax
response = client.delete_dhcp_options( DhcpOptionsId='string', DryRun=True|False )
- Parameters:
DhcpOptionsId (string) –
[REQUIRED]
The ID of the DHCP options set.
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 isUnauthorizedOperation
.
- Returns:
None
Examples
This example deletes the specified DHCP options set.
response = client.delete_dhcp_options( DhcpOptionsId='dopt-d9070ebb', ) print(response)
Expected Output:
{ 'ResponseMetadata': { '...': '...', }, }