mirror of
https://github.com/fog/fog-aws.git
synced 2022-11-09 13:50:52 -05:00
48 lines
1.3 KiB
Ruby
48 lines
1.3 KiB
Ruby
|
module Fog
|
||
|
module AWS
|
||
|
class IAM
|
||
|
class Real
|
||
|
require 'fog/aws/parsers/iam/list_managed_policies'
|
||
|
|
||
|
# Lists managed policies
|
||
|
#
|
||
|
# ==== Parameters
|
||
|
# * options <~Hash>: options that filter the result set
|
||
|
# * Marker <~String>
|
||
|
# * MaxItems <~Integer>
|
||
|
# * OnlyAttached <~Boolean>
|
||
|
# * PathPrefix <~String>
|
||
|
# * Scope <~String>
|
||
|
# ==== Returns
|
||
|
# * response<~Excon::Response>:
|
||
|
# * body<~Hash>:
|
||
|
# * 'RequestId'<~String> - Id of the request
|
||
|
# * 'IsTruncated'<~Boolean>
|
||
|
# * 'Marker'<~String>
|
||
|
# * 'Policies'<~Array>:
|
||
|
# * Arn
|
||
|
# * AttachmentCount
|
||
|
# * CreateDate
|
||
|
# * DefaultVersionId
|
||
|
# * Description
|
||
|
# * IsAttachable
|
||
|
# * Path
|
||
|
# * PolicyId
|
||
|
# * PolicyName
|
||
|
# * UpdateDate
|
||
|
# ==== See Also
|
||
|
# http://docs.aws.amazon.com/IAM/latest/APIReference/API_ListPolicies.html
|
||
|
#
|
||
|
def list_policies(options={})
|
||
|
request({
|
||
|
'Action' => 'ListPolicies',
|
||
|
:parser => Fog::Parsers::AWS::IAM::ListManagedPolicies.new
|
||
|
}.merge(options))
|
||
|
end
|
||
|
end
|
||
|
|
||
|
|
||
|
end
|
||
|
end
|
||
|
end
|