Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DeleteVpcPeeringConnectionCommand

Deletes a VPC peering connection. Either the owner of the requester VPC or the owner of the accepter VPC can delete the VPC peering connection if it's in the active state. The owner of the requester VPC can delete a VPC peering connection in the pending-acceptance state. You cannot delete a VPC peering connection that's in the failed state.

example

Use a bare-bones client and the command you need to make an API call.

import { EC2Client, DeleteVpcPeeringConnectionCommand } from "@aws-sdk/client-ec2"; // ES Modules import
// const { EC2Client, DeleteVpcPeeringConnectionCommand } = require("@aws-sdk/client-ec2"); // CommonJS import
const client = new EC2Client(config);
const command = new DeleteVpcPeeringConnectionCommand(input);
const response = await client.send(command);
see

DeleteVpcPeeringConnectionCommandInput for command's input shape.

see

DeleteVpcPeeringConnectionCommandOutput for command's response shape.

see

config for EC2Client's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: DeleteVpcPeeringConnectionCommandInput

Readonly middlewareStack

Methods

Static getEndpointParameterInstructions