Class: Stratus::AWS::IAM::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/stratus/aws/iam/client.rb

Instance Method Summary collapse

Constructor Details

#initialize(access_key_id, secret_access_key) ⇒ Client

Returns a new instance of Client.



3
4
5
# File 'lib/stratus/aws/iam/client.rb', line 3

def initialize(access_key_id, secret_access_key)
  @base = Stratus::AWS::IAM::Base.new(access_key_id, secret_access_key)
end

Instance Method Details

#groupsArray<Stratus::AWS::IAM::Group>

Returns:



8
9
10
11
12
13
14
15
16
# File 'lib/stratus/aws/iam/client.rb', line 8

def groups
  groups = []

  @base.list_groups['ListGroupsResult']['Groups']['member'].each do |i|
    groups << Group.new(i)
  end

  return groups
end