Method: Fog::AWS::IAM::Real#get_instance_profile

Defined in:
lib/fog/aws/requests/iam/get_instance_profile.rb

#get_instance_profile(instance_profile_name) ⇒ Object

Retrieves information about an instance profile

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

[View source]

31
32
33
34
35
36
37
# File 'lib/fog/aws/requests/iam/get_instance_profile.rb', line 31

def get_instance_profile(instance_profile_name)
  request({
    'Action'    => 'GetInstanceProfile',
    'InstanceProfileName'  => instance_profile_name,
    :parser     => Fog::Parsers::AWS::IAM::InstanceProfile.new
  })
end