Sha256: 818546cd62139361bfd671935a285a00f1616e07b8561c9e25ede613ba5f5e16
Contents?: true
Size: 910 Bytes
Versions: 6
Compression:
Stored size: 910 Bytes
Contents
module Fog module AWS class IAM class Real require 'fog/aws/parsers/iam/basic' # Attaches a managed policy to a user # # ==== Parameters # * user_name<~String>: name of the user # * policy_arn<~String>: arn of the managed policy # # ==== Returns # * response<~Excon::Response>: # * body<~Hash>: # * 'RequestId'<~String> - Id of the request # # ==== See Also # http://docs.aws.amazon.com/IAM/latest/APIReference/API_AttachUserPolicy.html # def attach_user_policy(user_name, policy_arn) request( 'Action' => 'AttachUserPolicy', 'UserName' => user_name, 'PolicyArn' => policy_arn, :parser => Fog::Parsers::AWS::IAM::Basic.new ) end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems