delete_internet_gateway
¶
delete_internet_gateway(
*,
config_overrides: Optional[EC2ClientConfig] = None,
dry_run: Optional[Boolean] = None,
internet_gateway_id: Optional[InternetGatewayId] = None,
) -> None
Deletes the specified internet gateway. You must detach the internet gateway from the VPC before you can delete it.
Parameters:
-
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. -
internet_gateway_id(Optional[InternetGatewayId], default:None) –The ID of the internet gateway.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To delete an Internet gateway This example deletes the specified Internet gateway.
Source code in docs_src/capo_ec2/_services/ec2.py
16334 16335 16336 16337 16338 16339 16340 16341 16342 16343 16344 16345 16346 16347 16348 16349 16350 16351 16352 16353 16354 16355 16356 16357 16358 16359 16360 16361 16362 16363 16364 16365 16366 16367 16368 16369 16370 16371 16372 16373 16374 16375 16376 16377 16378 16379 16380 16381 16382 16383 16384 16385 16386 | |