delete_dhcp_options
async
¶
delete_dhcp_options(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = 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/async_ec2.py
16125 16126 16127 16128 16129 16130 16131 16132 16133 16134 16135 16136 16137 16138 16139 16140 16141 16142 16143 16144 16145 16146 16147 16148 16149 16150 16151 16152 16153 16154 16155 16156 16157 16158 16159 16160 16161 16162 16163 16164 16165 16166 16167 16168 16169 16170 16171 16172 16173 16174 16175 16176 16177 16178 | |