amazonka-iam-1.4.0: Amazon Identity and Access Management SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <>
Portabilitynon-portable (GHC extensions)
Safe HaskellNone




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.


Creating a Request

deleteInstanceProfile Source

Creates a value of DeleteInstanceProfile with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

dipInstanceProfileName :: Lens' DeleteInstanceProfile Text Source

The name of the instance profile to delete.

Destructuring the Response

deleteInstanceProfileResponse :: DeleteInstanceProfileResponse Source

Creates a value of DeleteInstanceProfileResponse with the minimum fields required to make a request.