Sha256: 90fed1184a2e56a6521ed6051eb36194dc9ff8379e4f87d913c684ab8c4aee98

Contents?: true

Size: 997 Bytes

Versions: 1

Compression:

Stored size: 997 Bytes

Contents

module Fog
  module AWS
    class IAM
      class Real

        require 'rackspace-fog/aws/parsers/iam/basic'

        # Add a role to an instance profile
        # 
        # ==== Parameters
        # * instance_profile_name<~String>: Name of the instance profile to update.
        # * role_name<~String>:Name of the role to add.
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Hash>:
        #     * 'RequestId'<~String> - Id of the request
        #
        # ==== See Also
        # http://docs.amazonwebservices.com/IAM/latest/APIReference/API_AddRoleToInstanceProfile.html
        #
        def add_role_to_instance_profile(role_name, instance_profile_name)
          request(
            'Action'    => 'AddRoleToInstanceProfile',
            'InstanceProfileName' => instance_profile_name,
            'RoleName'  => role_name,
            :parser     => Fog::Parsers::AWS::IAM::Basic.new
          )
        end

      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rackspace-fog-1.4.2 lib/rackspace-fog/aws/requests/iam/add_role_to_instance_profile.rb