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::SubnetSelection
- Inherits:
-
Object
- Object
- Aws::RailsProvisioner::SubnetSelection
show all
- Defined in:
- lib/aws-rails-provisioner/subnet_selection.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Constructor Details
Returns a new instance of SubnetSelection.
4
5
6
7
8
9
10
11
|
# File 'lib/aws-rails-provisioner/subnet_selection.rb', line 4
def initialize(options = {})
@name = options[:name]
@type = Aws::RailsProvisioner::Util.subnet_type(options[:type]) if options[:type]
if @name && @type
msg = "At most one of :type and :name can be supplied."
raise Aws::RailsProvisioner::Errors::ValidationError, msg
end
end
|
Instance Attribute Details
#name ⇒ String
14
15
16
|
# File 'lib/aws-rails-provisioner/subnet_selection.rb', line 14
def name
@name
end
|
#type ⇒ String
17
18
19
|
# File 'lib/aws-rails-provisioner/subnet_selection.rb', line 17
def type
@type
end
|