# File lib/fog/aws/models/compute/subnet.rb, line 19 def network_interfaces service.network_interfaces.all('subnet-id' => [self.identity]) end
# File lib/fog/aws/models/compute/subnet.rb, line 14 def ready? requires :state state == 'available' end
Create a subnet
>> g = AWS.subnets.new(:vpc_id => "vpc-someId", :cidr_block => "10.0.0.0/24") >> g.save
requestId and a subnet object
# File lib/fog/aws/models/compute/subnet.rb, line 49 def save requires :vpc_id, :cidr_block options = {} options['AvailabilityZone'] = availability_zone if availability_zone data = service.create_subnet(vpc_id, cidr_block, options).body['subnet'] new_attributes = data.reject {|key,value| key == 'requestId'} merge_attributes(new_attributes) true true end