class VPC::Subnet
Attributes
az[RW]
subnet_id[RW]
Public Instance Methods
create(vpc,subnet_cidr_block,az)
click to toggle source
# File lib/etude_for_aws/vpc/subnet.rb, line 5 def create(vpc,subnet_cidr_block,az) @az = az @subnet_id = vpc.gateway.create_subnet(subnet_cidr_block,vpc.vpc_id,az) end
delete(vpc)
click to toggle source
# File lib/etude_for_aws/vpc/subnet.rb, line 10 def delete(vpc) vpc.gateway.delete_subnet(@subnet_id) end