/// <summary>
        /// Initializes the Amazon EC2 client object and then calls the
        /// CreateVpcAsync method to create the VPC.
        /// </summary>
        public static async Task Main()
        {
            // If you do not want to create the VPC in the same AWS Region as
            // the default users on your system, you need to supply the AWS
            // Region as a parameter to the client constructor.
            var client = new AmazonEC2Client();

            var response = await client.CreateVpcAsync(new CreateVpcRequest
            {
                CidrBlock = "10.0.0.0/16",
            });

            Vpc vpc = response.Vpc;

            if (vpc is not null)
            {
                Console.WriteLine($"Created VPC with ID: {vpc.VpcId}.");
            }
        }