Class: Swa::EC2::Subnet
Instance Attribute Summary
Attributes inherited from Resource
#aws_resource
Instance Method Summary
collapse
#tags
Methods inherited from Resource
#data, delegate, #initialize, list
Constructor Details
This class inherits a constructor from Swa::Resource
Instance Method Details
#id ⇒ Object
11
12
13
|
# File 'lib/swa/ec2/subnet.rb', line 11
def id
subnet.subnet_id
end
|
#name ⇒ Object
25
26
27
|
# File 'lib/swa/ec2/subnet.rb', line 25
def name
tags["Name"]
end
|
#summary ⇒ Object
15
16
17
18
19
20
21
22
23
|
# File 'lib/swa/ec2/subnet.rb', line 15
def summary
[
field(subnet, :subnet_id),
field(subnet, :vpc_id),
field(subnet, :availability_zone),
field(subnet, :cidr_block),
quoted(name)
].join(" ")
end
|