Sha256: 69aa8515abe760ec455f443d9833b98bfdaa45ce34788603954bbec5fe2e0958

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'

        # Detaches 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_DetachUserPolicy.html
        #
        def detach_user_policy(user_name, policy_arn)
          request(
            'Action'          => 'DetachUserPolicy',
            '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

Version Path
fog-aws-0.4.0 lib/fog/aws/requests/iam/detach_user_policy.rb
fog-aws-0.3.0 lib/fog/aws/requests/iam/detach_user_policy.rb
fog-aws-0.2.2 lib/fog/aws/requests/iam/detach_user_policy.rb
fog-aws-0.2.0 lib/fog/aws/requests/iam/detach_user_policy.rb
fog-aws-0.1.2 lib/fog/aws/requests/iam/detach_user_policy.rb
fog-aws-0.1.1 lib/fog/aws/requests/iam/detach_user_policy.rb