Hi@akhtar,
You can create a VPC in AWS with the help of the create_vpc method. But to assign a name to the VPC, you need to use the create_tag method as shown below.
import boto3
ec2 = boto3.resource('ec2')
vpc = ec2.create_vpc(CidrBlock='172.16.0.0/16')
vpc.create_tags(Tags=[{"Key": "Name", "Value": "my_vpc"}])
vpc.wait_until_available()