Sha256: a6a2601a4302080cdde2adfb55d64aa3068b5a57c5c7cfcfb44e469fc8ca230f
Contents?: true
Size: 910 Bytes
Versions: 28
Compression:
Stored size: 910 Bytes
Contents
module Fog module AWS class IAM class Real require 'fog/aws/parsers/iam/basic' # Attaches a managed policy to a role # # ==== Parameters # * role_name<~String>: name of the role # * policy_arn<~String>: arn of the managed policy # # ==== Returns # * response<~Excon::Response>: # * body<~Hash>: # * 'RequestId'<~String> - Id of the request # # ==== See Also # http://docs.aws.amazon.com/IAM/latest/APIReference/API_AttachRolePolicy.html # def attach_role_policy(role_name, policy_arn) request( 'Action' => 'AttachRolePolicy', 'RoleName' => role_name, 'PolicyArn' => policy_arn, :parser => Fog::Parsers::AWS::IAM::Basic.new ) end end end end end
Version data entries
28 entries across 28 versions & 2 rubygems