Using VPC Endpoint for DynamoDB with Amazon.DynamoDBv2

I have a .Net core app hosted on Elastic beanstalk currently using DynamoDB with AWSSDK.DynamoDBv2 package and from what i understand, connection to dynamodb will happen over public internet unless i use the dynamodb vpc gateway endpoint.

How can i specific the vpc endpoint while using AWSSDK.DynamoDBv2 package ?

Answer

If your code runs in the VPC with the endpoint, you don’t need to do anything.

The VPC endpoint will “overwrite” the DNS name of the public endpoint and redirect the traffic to it over a private connection.