delete_dhcp_options
¶
delete_dhcp_options(
*,
config_overrides: Optional[EC2ClientConfig] = None,
dhcp_options_id: Optional[DhcpOptionsId] = None,
dry_run: Optional[Boolean] = None,
) -> None
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.
Parameters:
-
dhcp_options_id(Optional[DhcpOptionsId], default:None) –The ID of the DHCP options set.
-
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.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To delete a DHCP options set This example deletes the specified DHCP options set.
Source code in docs_src/capo_ec2/_services/ec2.py
15928 15929 15930 15931 15932 15933 15934 15935 15936 15937 15938 15939 15940 15941 15942 15943 15944 15945 15946 15947 15948 15949 15950 15951 15952 15953 15954 15955 15956 15957 15958 15959 15960 15961 15962 15963 15964 15965 15966 15967 15968 15969 15970 15971 15972 15973 15974 15975 15976 15977 15978 15979 15980 | |