Sha256: bff13084651671fa6dc051bb04069c7d6a2245f7f21ce0c6426e2aa803ef743b

Contents?: true

Size: 1.05 KB

Versions: 98

Compression:

Stored size: 1.05 KB

Contents

module Fog
  module AWS
    class IAM
      class Real
        require 'fog/aws/parsers/iam/get_role_policy'

        # Get Role Policy
        #
        # ==== Parameters
        # * 'PolicyName'<~String>: Name of the policy to get
        # * 'RoleName'<~String>: Name of the Role who the policy is associated with.
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Hash>:
        #       * PolicyDocument<~String> The policy document.
        #       * PolicyName<~String> The name of the policy.
        #       * RoleName<~String> The Role the policy is associated with.
        #
        # ==== See Also
        # http://docs.amazonwebservices.com/IAM/latest/APIReference/API_GetRolePolicy.html
        #
        def get_role_policy(role_name, policy_name)
          request({
            'Action'      => 'GetRolePolicy',
            'PolicyName'  => policy_name,
            'RoleName'    => role_name,
            :parser       => Fog::Parsers::AWS::IAM::GetRolePolicy.new
          })
        end
      end
    end
  end
end

Version data entries

98 entries across 96 versions & 6 rubygems

Version Path
fog-aws-3.30.0 lib/fog/aws/requests/iam/get_role_policy.rb
fog-aws-3.29.0 lib/fog/aws/requests/iam/get_role_policy.rb
fog-aws-3.28.0 lib/fog/aws/requests/iam/get_role_policy.rb
fog-aws-3.27.0 lib/fog/aws/requests/iam/get_role_policy.rb
fog-aws-3.26.0 lib/fog/aws/requests/iam/get_role_policy.rb
fog-aws-3.25.0 lib/fog/aws/requests/iam/get_role_policy.rb
fog-aws-3.24.0 lib/fog/aws/requests/iam/get_role_policy.rb
fog-aws-3.23.0 lib/fog/aws/requests/iam/get_role_policy.rb
fog-aws-3.22.0 lib/fog/aws/requests/iam/get_role_policy.rb
fog-aws-3.21.1 lib/fog/aws/requests/iam/get_role_policy.rb
fog-aws-3.21.0 lib/fog/aws/requests/iam/get_role_policy.rb
fog-aws-3.20.0 lib/fog/aws/requests/iam/get_role_policy.rb
fog-aws-3.19.0 lib/fog/aws/requests/iam/get_role_policy.rb
fog-aws-3.18.0 lib/fog/aws/requests/iam/get_role_policy.rb
fog-aws-3.17.0 lib/fog/aws/requests/iam/get_role_policy.rb
fog-aws-3.16.0 lib/fog/aws/requests/iam/get_role_policy.rb
fog-aws-3.15.0 lib/fog/aws/requests/iam/get_role_policy.rb
fog-aws-3.14.0 lib/fog/aws/requests/iam/get_role_policy.rb
fog-aws-3.13.0 lib/fog/aws/requests/iam/get_role_policy.rb
fog-aws-3.12.0 lib/fog/aws/requests/iam/get_role_policy.rb