Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Deletes the specified instance profile. The instance profile must not have an associated role.
Important: Make sure that 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:
dipInstanceProfileName
- The name of the instance profile to delete. This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
data DeleteInstanceProfile Source #
See: deleteInstanceProfile
smart constructor.
Request Lenses
dipInstanceProfileName :: Lens' DeleteInstanceProfile Text Source #
The name of the instance profile to delete. This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
Destructuring the Response
deleteInstanceProfileResponse :: DeleteInstanceProfileResponse Source #
Creates a value of DeleteInstanceProfileResponse
with the minimum fields required to make a request.
data DeleteInstanceProfileResponse Source #
See: deleteInstanceProfileResponse
smart constructor.