Method: Fog::Compute::AWS::Real#create_vpc
- Defined in:
- lib/fog/aws/requests/compute/create_vpc.rb
permalink #create_vpc(cidrBlock, options = {}) ⇒ Object
Creates a VPC with the CIDR block you specify.
Parameters
-
cidrBlock<~String> - The CIDR block you want the VPC to cover (e.g., 10.0.0.0/16).
-
options<~Hash>:
-
InstanceTenancy<~String> - The allowed tenancy of instances launched into the VPC. A value of default means instances can be launched with any tenancy; a value of dedicated means instances must be launched with tenancy as dedicated. please not that the documentation is incorrect instanceTenancy will not work while InstanceTenancy will
-
Returns
-
response<~Excon::Response>:
-
body<~Hash>:
-
‘requestId’<~String> - Id of request
-
‘vpc’<~Array>:
-
‘vpcId’<~String> - The VPC’s ID
-
‘state’<~String> - The current state of the VPC. [‘pending’, ‘available’]
-
‘cidrBlock’<~String> - The CIDR block the VPC covers.
-
‘dhcpOptionsId’<~String> - The ID of the set of DHCP options.
-
‘tagSet’<~Array>: Tags assigned to the resource.
-
‘key’<~String> - Tag’s key
-
‘value’<~String> - Tag’s value
31 32 33 34 35 36 37 38 |
# File 'lib/fog/aws/requests/compute/create_vpc.rb', line 31 def create_vpc(cidrBlock, = {}) request({ 'Action' => 'CreateVpc', 'CidrBlock' => cidrBlock, :parser => Fog::Parsers::Compute::AWS::CreateVpc.new }.merge!()) end |