Class AWS::IAM::UserGroupCollection
In: lib/aws/iam/user_group_collection.rb
Parent: Object

A collection that provides access to IAM groups to which a particular user belongs.

    user = AWS::IAM.new.users.first
    groups = user.groups
    groups.each { |g| puts g.name }

Methods

add   clear   each   each_item   new   remove   request_method  

Included Modules

Collection

Attributes

user  [R]  @attr_reader [User] The user.

Public Class methods

Public Instance methods

Adds the user to a group.

@param [Group] group The group to which the user should be added.

Removes this user from all groups. @return [nil]

Yields once for each group that the user is in.

@param [Hash] options

@option options [Integer] :limit Limits the number of groups

  that are returned.

@option options [Integer] :batch_size Controls how many groups

  are requested from the service at once.

@yieldparam [Group] group

@return [nil]

Removes the user from a group.

@param [Group] group The group from which the user should be removed

Protected Instance methods

@api private

[Validate]