Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

You are viewing documentation for version 1 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: AWS::IAM::GroupPolicyCollection

Inherits:
Object
  • Object
show all
Includes:
PolicyCollection
Defined in:
lib/aws/iam/group_policy_collection.rb

Overview

A collection that provides access to the policies associated with an IAM group. The interface mimics a hash containing string keys and values that are instances of Policy. For example:

# add or replace a policy named "ReadOnly"
policy = AWS::IAM::Policy.new do |p|
  # ...
end
group.policies["ReadOnly"] = policy
group.policies.has_key?("ReadOnly")  # => true

All of the methods for this class are defined in the PolicyCollection module.

Instance Attribute Summary collapse

Method Summary

Methods included from PolicyCollection

#[], #[]=, #clear, #delete, #each, #has_key?, #keys, #to_h, #values, #values_at

Methods included from Core::Collection

#each, #each_batch, #enum, #first, #in_groups_of, #page

Instance Attribute Details

#groupObject (readonly)


36
37
38
# File 'lib/aws/iam/group_policy_collection.rb', line 36

def group
  @group
end