Class AWS::EC2::SecurityGroupCollection
In: lib/aws/ec2/security_group_collection.rb
Parent: Collection

Represents all EC2 security groups in an AWS account.

Methods

[]   create   each  

Included Modules

TaggedCollection

Public Instance methods

@param [String] group_id The group id of a security group. @return [SecurityGroup] The group with the given id.

Creates a new @param [String] name The name of the security group to create. @param [Hash] options @option options [String] :description An informal description

  of this security group.  Accepts alphanumeric characters, spaces,
  dashes, and underscores. If left blank the description will be set
  to the name.

@option options [VPC,String] :vpc (nil) A VPC or VPC id string to

  create the security group in.  When specified a VPC security
  group is created.

@return [SecurityGroup]

Yields once for each security group in this account.

@yield [group] @yieldparam [SecurityGroup] group @return [nil]

[Validate]