get_instance_profile ( $instance_profile_name, $opt )

Retrieves information about the specified instance profile, including the instance profile’s path, GUID, ARN, and role. For more information about instance profiles, go to About Instance Profiles. For more information about ARNs, go to ARNs.

Access

public

Parameters

Parameter

Type

Required

Description

$instance_profile_name

string

Required

Name of the instance profile to get information about. [Constraints: The value must be between 1 and 128 characters, and must match the following regular expression pattern: [\w+=,.@-]*]

$opt

array

Optional

An associative array of parameters that can have the following keys:

  • curlopts - array - Optional - A set of values to pass directly into curl_setopt(), where the key is a pre-defined CURLOPT_* constant.
  • returnCurlHandle - boolean - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.

Returns

Type

Description

CFResponse

A CFResponse object containing a parsed HTTP response.

Source

Method defined in services/iam.class.php | Toggle source view (7 lines) | View on GitHub

public function get_instance_profile($instance_profile_name, $opt = null)
{
    if (!$opt) $opt = array();
    $opt['InstanceProfileName'] = $instance_profile_name;
    
    return $this->authenticate('GetInstanceProfile', $opt);
}

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback