delete_instance_profile ( $instance_profile_name, $opt )

Deletes the specified instance profile. The instance profile must not have an associated role.

Make sure you do not have any Amazon EC2 instances running with the instance profile you are about to delete. Deleting a role or instance profile that is associated with a running instance will break any applications running on the instance.

For more information about instance profiles, go to About Instance Profiles.

Access

public

Parameters

Parameter

Type

Required

Description

$instance_profile_name

string

Required

Name of the instance profile to delete. [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.

Examples


							

Source

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

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

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback