Sha256: 27e44da27a287bf2dea28ea6a6ca448d4de1dce894c6f2c6caf737c63dcfca8f

Contents?: true

Size: 1.43 KB

Versions: 24

Compression:

Stored size: 1.43 KB

Contents

module Fog
  module AWS
    class IAM
      class Real

        require 'fog/aws/parsers/iam/list_policies'

        # List policies for a group
        # 
        # ==== Parameters
        # * group_name<~String> - Name of group to list policies for
        # * options<~Hash>: Optional
        #   * 'Marker'<~String>: used to paginate subsequent requests
        #   * 'MaxItems'<~Integer>: limit results to this number per page
        #   * 'PathPrefix'<~String>: prefix for filtering results
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Hash>:
        #     * 'PolicyNames'<~Array> - Matching policy names
        #     * 'IsTruncated<~Boolean> - Whether or not results were truncated
        #     * 'Marker'<~String> - appears when IsTruncated is true as the next marker to use
        #     * 'RequestId'<~String> - Id of the request
        #
        # ==== See Also
        # http://docs.amazonwebservices.com/IAM/latest/APIReference/API_ListGroupPolicies.html
        #
        def list_group_policies(group_name, options = {})
          request({
            'Action'    => 'ListGroupPolicies',
            'GroupName' => group_name,
            :parser     => Fog::Parsers::AWS::IAM::ListPolicies.new
          }.merge!(options))
        end

      end

      class Mock

        def list_group_policies(group_name, options = {})
          Fog::Mock.not_implemented
        end

      end
    end
  end
end

Version data entries

24 entries across 24 versions & 3 rubygems

Version Path
fog-0.3.23 lib/fog/aws/requests/iam/list_group_policies.rb
fog-0.3.22 lib/fog/aws/requests/iam/list_group_policies.rb
fog-0.3.21 lib/fog/aws/requests/iam/list_group_policies.rb
fog-0.3.20 lib/fog/aws/requests/iam/list_group_policies.rb