lib/fog/aws/iam.rb in fog-0.3.17 vs lib/fog/aws/iam.rb in fog-0.3.18
- old
+ new
@@ -3,13 +3,20 @@
class IAM < Fog::Service
requires :aws_access_key_id, :aws_secret_access_key
request_path 'fog/aws/requests/iam'
+ request :add_user_to_group
request :create_group
+ request :create_user
request :delete_group
+ request :delete_group_policy
+ request :delete_user
request :list_groups
+ request :list_group_policies
+ request :put_group_policy
+ request :remove_user_from_group
class Mock
def initialize(options={})
end
@@ -34,9 +41,10 @@
# * options<~Hash> - config arguments for connection. Defaults to {}.
#
# ==== Returns
# * IAM object with connection to AWS.
def initialize(options={})
+ require 'json'
@aws_access_key_id = options[:aws_access_key_id]
@aws_secret_access_key = options[:aws_secret_access_key]
@hmac = Fog::HMAC.new('sha256', @aws_secret_access_key)
@host = options[:host] || 'iam.amazonaws.com'
@path = options[:path] || '/'