Sha256: aa20c3d732ecc77007324a27fc8e37d24b1f706a4f167ee1383b054b6473587b

Contents?: true

Size: 983 Bytes

Versions: 49

Compression:

Stored size: 983 Bytes

Contents

module Fog
  module AWS
    class IAM
      class Real
        require '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

49 entries across 49 versions & 5 rubygems

Version Path
fog-aws-0.5.0 lib/fog/aws/requests/iam/add_role_to_instance_profile.rb
fog-aws-0.4.1 lib/fog/aws/requests/iam/add_role_to_instance_profile.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/lib/fog/aws/requests/iam/add_role_to_instance_profile.rb
fog-aws-0.4.0 lib/fog/aws/requests/iam/add_role_to_instance_profile.rb
fog-aws-0.3.0 lib/fog/aws/requests/iam/add_role_to_instance_profile.rb
fog-aws-0.2.2 lib/fog/aws/requests/iam/add_role_to_instance_profile.rb
fog-aws-0.2.0 lib/fog/aws/requests/iam/add_role_to_instance_profile.rb
fog-aws-0.1.2 lib/fog/aws/requests/iam/add_role_to_instance_profile.rb
fog-aws-0.1.1 lib/fog/aws/requests/iam/add_role_to_instance_profile.rb
fog-aws-0.1.0 lib/fog/aws/requests/iam/add_role_to_instance_profile.rb
fog-aws-0.0.8 lib/fog/aws/requests/iam/add_role_to_instance_profile.rb
fog-aws-0.0.7 lib/fog/aws/requests/iam/add_role_to_instance_profile.rb
fog-aws-0.0.6 lib/fog/aws/requests/iam/add_role_to_instance_profile.rb
fog-aws-0.0.5 lib/fog/aws/requests/iam/add_role_to_instance_profile.rb
fog-1.26.0 lib/fog/aws/requests/iam/add_role_to_instance_profile.rb
fog-1.25.0 lib/fog/aws/requests/iam/add_role_to_instance_profile.rb
nsidc-fog-1.24.1 lib/fog/aws/requests/iam/add_role_to_instance_profile.rb
fog-1.24.0 lib/fog/aws/requests/iam/add_role_to_instance_profile.rb
ns-fog-1.22.11 lib/fog/aws/requests/iam/add_role_to_instance_profile.rb
ns-fog-1.22.10 lib/fog/aws/requests/iam/add_role_to_instance_profile.rb