Skip to content

/AWS1/CL_EC2=>DELETEVPCPEERINGCONNECTION()

About DeleteVpcPeeringConnection

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 or rejected state.

Method Signature

IMPORTING

Required arguments:

IV_VPCPEERINGCONNECTIONID TYPE /AWS1/EC2VPCPEERINGCONNID /AWS1/EC2VPCPEERINGCONNID

The ID of the VPC peering connection.

Optional arguments:

IV_DRYRUN TYPE /AWS1/EC2BOOLEAN /AWS1/EC2BOOLEAN

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 is UnauthorizedOperation.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_EC2DELVPCPEERINGCXNRS /AWS1/CL_EC2DELVPCPEERINGCXNRS