Class: Swa::EC2::SecurityGroup

Inherits:
Resource
  • Object
show all
Defined in:
lib/swa/ec2/security_group.rb

Instance Attribute Summary

Attributes inherited from Resource

#aws_resource

Instance Method Summary collapse

Methods inherited from Resource

#data, delegate, #initialize, list

Constructor Details

This class inherits a constructor from Swa::Resource

Instance Method Details

#nameObject



17
18
19
# File 'lib/swa/ec2/security_group.rb', line 17

def name
  aws_resource.name
end

#summaryObject



9
10
11
12
13
14
15
# File 'lib/swa/ec2/security_group.rb', line 9

def summary
  [
    field(sg, :group_id),
    field(sg, :vpc_id),
    quoted(sg.group_name)
  ].join("  ")
end