lib/iam/right_iam_groups.rb
# Adds (or updates) a policy document associated with the specified group.
#
#  iam.put_group_policy('kd_test', 'kd_policy_1', %Q({"Statement":[{"Effect":"Allow","Action":"*","Resource":"*"}]})) #=> true
#
Adds (or updates) a policy document associated with the specified group.
Adds ( or updates ) a policy document associated with the specified group .
def put_group_policy(group_name, policy_name, policy_document)
      request_hash = { 'GroupName'      => group_name,
                       'PolicyDocument' => policy_document,
                       'PolicyName'     => policy_name }
      link = generate_request_impl(:post, "PutGroupPolicy", request_hash)
      result = request_info(link, RightHttp2xxParser.new(:logger => @logger))
      result[:policy_document] = URI::decode(result[:policy_document])
      result
    end
def put_group_policy ( group_name , policy_name , policy_document ) request_hash = { 'GroupName' => group_name , 'PolicyDocument' => policy_document , 'PolicyName' => policy_name } link = generate_request_impl ( :post , "PutGroupPolicy" , request_hash ) result = request_info ( link , RightHttp2xxParser . new ( :logger => @logger ) ) result [ :policy_document ] = URI :: decode ( result [ :policy_document ] ) result end
Adds (or updates) a policy document associated with the specified group.
Adds ( or updates ) a policy document associated with the specified group .
group_name
<not_specific>
policy_name
<not_specific>
policy_document
<not_specific>