Sha256: fa2c8b2f5f83b38442331f00b42aab4a6a016fc62e584159ac73e054fe5a6dba

Contents?: true

Size: 1.37 KB

Versions: 49

Compression:

Stored size: 1.37 KB

Contents

module Fog
  module AWS
    class IAM
      class Real
        require 'fog/aws/parsers/iam/instance_profile'

        # Retrieves information about an instance profile
        #
        # http://docs.amazonwebservices.com/IAM/latest/APIReference/API_GetInstanceProfile.html
        # ==== Parameters
        # * instance_profile_name<~String> - Name of instance_profile to retrieve the information for
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Hash>:
        #     * 'InstanceProfile'<~Hash>:
        #       * Arn<~String> -
        #       * CreateDate<~Date>
        #       * InstanceProfileId<~String> -
        #       * InstanceProfileName<~String> -
        #       * Path<~String> -
        #       * Roles<~Array> -
        #         role<~Hash>:
        #           * 'Arn'<~String> -
        #           * 'AssumeRolePolicyDocument'<~String<
        #           * 'Path'<~String> -
        #           * 'RoleId'<~String> -
        #           * 'RoleName'<~String> -
        #     * 'RequestId'<~String> - Id of the request
        def get_instance_profile(instance_profile_name)
          request({
            'Action'    => 'GetInstanceProfile',
            'InstanceProfileName'  => instance_profile_name,
            :parser     => Fog::Parsers::AWS::IAM::InstanceProfile.new
          })
        end
      end
    end
  end
end

Version data entries

49 entries across 49 versions & 5 rubygems

Version Path
fog-aws-1.1.0 lib/fog/aws/requests/iam/get_instance_profile.rb
fog-aws-1.0.0 lib/fog/aws/requests/iam/get_instance_profile.rb
fog-aws-0.13.0 lib/fog/aws/requests/iam/get_instance_profile.rb
fog-aws-0.12.0 lib/fog/aws/requests/iam/get_instance_profile.rb
fog-aws-0.11.0 lib/fog/aws/requests/iam/get_instance_profile.rb
fog-aws-0.10.0 lib/fog/aws/requests/iam/get_instance_profile.rb
fog-aws-0.9.4 lib/fog/aws/requests/iam/get_instance_profile.rb
fog-aws-0.9.3 lib/fog/aws/requests/iam/get_instance_profile.rb
fog-aws-0.9.2 lib/fog/aws/requests/iam/get_instance_profile.rb
fog-aws-0.9.1 lib/fog/aws/requests/iam/get_instance_profile.rb
fog-aws-0.9.0 lib/fog/aws/requests/iam/get_instance_profile.rb
fog-aws-0.8.1 lib/fog/aws/requests/iam/get_instance_profile.rb
fog-aws-0.8.0 lib/fog/aws/requests/iam/get_instance_profile.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-aws-0.7.5/lib/fog/aws/requests/iam/get_instance_profile.rb
fog-aws-0.7.6 lib/fog/aws/requests/iam/get_instance_profile.rb
fog-aws-0.7.5 lib/fog/aws/requests/iam/get_instance_profile.rb
fog-aws-0.7.4 lib/fog/aws/requests/iam/get_instance_profile.rb
fog-aws-0.7.3 lib/fog/aws/requests/iam/get_instance_profile.rb
fog-aws-0.7.2 lib/fog/aws/requests/iam/get_instance_profile.rb
fog-aws-0.6.0 lib/fog/aws/requests/iam/get_instance_profile.rb