Method: AWS::EC2::Subnet#vpc

Defined in:
lib/aws/ec2/subnet.rb

#vpcVPC

Returns the VPC this subnet belongs to.

Returns:

  • (VPC)

    Returns the VPC this subnet belongs to.



61
62
63
# File 'lib/aws/ec2/subnet.rb', line 61

def vpc
  VPC.new(vpc_id, :config => config)
end