Copyright | (c) 2013-2021 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 |
Deletes the specified instance profile. The instance profile must not have an associated role.
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, see About instance profiles.
Synopsis
- data DeleteInstanceProfile = DeleteInstanceProfile' {}
- newDeleteInstanceProfile :: Text -> DeleteInstanceProfile
- deleteInstanceProfile_instanceProfileName :: Lens' DeleteInstanceProfile Text
- data DeleteInstanceProfileResponse = DeleteInstanceProfileResponse' {
- newDeleteInstanceProfileResponse :: DeleteInstanceProfileResponse
Creating a Request
data DeleteInstanceProfile Source #
See: newDeleteInstanceProfile
smart constructor.
DeleteInstanceProfile' | |
|
Instances
newDeleteInstanceProfile Source #
Create a value of DeleteInstanceProfile
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:instanceProfileName:DeleteInstanceProfile'
, deleteInstanceProfile_instanceProfileName
- The name of the instance profile to delete.
This parameter allows (through 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: _+=,.@-
Request Lenses
deleteInstanceProfile_instanceProfileName :: Lens' DeleteInstanceProfile Text Source #
The name of the instance profile to delete.
This parameter allows (through 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
data DeleteInstanceProfileResponse Source #
See: newDeleteInstanceProfileResponse
smart constructor.
Instances
newDeleteInstanceProfileResponse :: DeleteInstanceProfileResponse Source #
Create a value of DeleteInstanceProfileResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.