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.5.1 lib/fog/aws/requests/iam/list_group_policies.rb
fog-0.5.0 lib/fog/aws/requests/iam/list_group_policies.rb
phpfog-fog-0.4.1.3 lib/fog/aws/requests/iam/list_group_policies.rb
phpfog-fog-0.4.1.2 lib/fog/aws/requests/iam/list_group_policies.rb
phpfog-fog-0.4.1.1 lib/fog/aws/requests/iam/list_group_policies.rb
phpfog-fog-0.4.1 lib/fog/aws/requests/iam/list_group_policies.rb
fog-0.4.1 lib/fog/aws/requests/iam/list_group_policies.rb
fog-0.4.0 lib/fog/aws/requests/iam/list_group_policies.rb
fog-0.3.34 lib/fog/aws/requests/iam/list_group_policies.rb
fog-0.3.33 lib/fog/aws/requests/iam/list_group_policies.rb
fog-0.3.32 lib/fog/aws/requests/iam/list_group_policies.rb
fog-0.3.31 lib/fog/aws/requests/iam/list_group_policies.rb
fog-0.3.30 lib/fog/aws/requests/iam/list_group_policies.rb
fog-0.3.29 lib/fog/aws/requests/iam/list_group_policies.rb
fog-0.3.28 lib/fog/aws/requests/iam/list_group_policies.rb
fog-0.3.27 lib/fog/aws/requests/iam/list_group_policies.rb
fog-0.3.26 lib/fog/aws/requests/iam/list_group_policies.rb
fog-0.3.25 lib/fog/aws/requests/iam/list_group_policies.rb
fog-0.3.24 lib/fog/aws/requests/iam/list_group_policies.rb
bbcloud-0.8.1 lib/bbcloud/vendor/fog-0.3.23/lib/fog/aws/requests/iam/list_group_policies.rb