If you do not delete the route that contains the carrier gateway as the
Target, the route is a blackhole route. For information about how to delete a route, see
DeleteRoute.
example
Use a bare-bones client and the command you need to make an API call.
Deletes a carrier gateway.
If you do not delete the route that contains the carrier gateway as the Target, the route is a blackhole route. For information about how to delete a route, see DeleteRoute.
Use a bare-bones client and the command you need to make an API call.
import { EC2Client, DeleteCarrierGatewayCommand } from "@aws-sdk/client-ec2"; // ES Modules import // const { EC2Client, DeleteCarrierGatewayCommand } = require("@aws-sdk/client-ec2"); // CommonJS import const client = new EC2Client(config); const command = new DeleteCarrierGatewayCommand(input); const response = await client.send(command);
DeleteCarrierGatewayCommandInput for command's
input
shape.DeleteCarrierGatewayCommandOutput for command's
response
shape.config for EC2Client's
config
shape.