There are more AWS SDK examples available in the AWS Doc SDK Examples
Use DeleteVpcEndpoints
with an AWS SDK or CLI
The following code examples show how to use DeleteVpcEndpoints
.
- AWS CLI
-
To delete an endpoint
This example deletes endpoints vpce-aa22bb33 and vpce-1a2b3c4d. If the command is partially successful or unsuccessful, a list of unsuccessful items is returned. If the command succeeds, the returned list is empty.
Command:
aws ec2 delete-vpc-endpoints --vpc-endpoint-ids
vpce-aa22bb33
vpce-1a2b3c4d
Output:
{ "Unsuccessful": [] }
-
For API details, see DeleteVpcEndpoints
in AWS CLI Command Reference.
-