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.



5
6
7
# File 'lib/stratus/aws/iam/client.rb', line 5

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:



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

def groups
  groups = []

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

  return groups
end