AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Class: Aws::RailsProvisioner::Vpc::Subnet

Inherits:
Object
  • Object
show all
Defined in:
lib/aws-rails-provisioner/vpc.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Subnet

Returns a new instance of Subnet.



96
97
98
99
100
# File 'lib/aws-rails-provisioner/vpc.rb', line 96

def initialize(options)
  @subnet_name = options.fetch(:subnet_name)
  @cidr_mask = options.fetch(:cidr_mask)
  @type = Aws::RailsProvisioner::Utils.subnet_type(options.fetch(:type))
end

Instance Attribute Details

#cidr_maskObject (readonly)

Returns the value of attribute cidr_mask.



104
105
106
# File 'lib/aws-rails-provisioner/vpc.rb', line 104

def cidr_mask
  @cidr_mask
end

#subnet_nameObject (readonly)

Returns the value of attribute subnet_name.



102
103
104
# File 'lib/aws-rails-provisioner/vpc.rb', line 102

def subnet_name
  @subnet_name
end

#typeObject (readonly)

Returns the value of attribute type.



106
107
108
# File 'lib/aws-rails-provisioner/vpc.rb', line 106

def type
  @type
end