use of com.amazonaws.services.ec2.model.CreateVpcResult in project photon-model by vmware.
the class AWSNetworkClient method createVPC.
/**
* Creates the VPC and returns the VPC id
*/
public String createVPC(String subnetCidr) {
CreateVpcRequest req = new CreateVpcRequest().withCidrBlock(subnetCidr);
CreateVpcResult vpc = this.client.createVpc(req);
return vpc.getVpc().getVpcId();
}
Aggregations