Class AWS::IAM::Group
In: lib/aws/iam/group.rb
Parent: Resource

Represents a group of users. Groups don‘t directly interact with AWS; only users do. The main reason to create groups is to collectively assign permissions to the users so they can do their jobs. For example, you could have a group called Admins and give that group the types of permissions admins typically need. @attr [String] name The group‘s name. @attr_reader [String] id The group‘s unique ID. @attr_reader [Time] create_date When the group was created. @attr_reader [String] arn The group‘s ARN (Amazon Resource Name). @attr [String] path The group‘s path. Paths are used to identify

  which division or part of an organization the group belongs to.

Methods

Public Class methods

Public Instance methods

Deletes the group. The group must not contain any users or have any attached policies.

(see Resource#exists?)

Provides access to the policies associated with the group. For example:

    # get the policy named "ReadOnly"
    group.policies["ReadOnly"]

    # remove all policies associated with the group
    group.policies.clear

@return [GroupPolicyCollection] An object representing all the

  policies associated with the group.

Provides access to the users in the group. For example:

    # get the names of all the users in the group
    group.users.map(&:name)

    # remove all users from the group
    group.users.clear

@return [GroupUserCollection] An object representing all the

  users in the group.

Protected Instance methods

[Validate]