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 |
Removes the specified IAM role from the specified EC2 instance profile.
Make sure that you do not have any Amazon EC2 instances running with the role you are about to remove from the instance profile. Removing a role from an instance profile that is associated with a running instance might break any applications running on the instance.
For more information about IAM roles, see Working with roles. For more information about instance profiles, see About instance profiles.
Synopsis
- data RemoveRoleFromInstanceProfile = RemoveRoleFromInstanceProfile' {}
- newRemoveRoleFromInstanceProfile :: Text -> Text -> RemoveRoleFromInstanceProfile
- removeRoleFromInstanceProfile_instanceProfileName :: Lens' RemoveRoleFromInstanceProfile Text
- removeRoleFromInstanceProfile_roleName :: Lens' RemoveRoleFromInstanceProfile Text
- data RemoveRoleFromInstanceProfileResponse = RemoveRoleFromInstanceProfileResponse' {
- newRemoveRoleFromInstanceProfileResponse :: RemoveRoleFromInstanceProfileResponse
Creating a Request
data RemoveRoleFromInstanceProfile Source #
See: newRemoveRoleFromInstanceProfile
smart constructor.
RemoveRoleFromInstanceProfile' | |
|
Instances
newRemoveRoleFromInstanceProfile Source #
Create a value of RemoveRoleFromInstanceProfile
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:RemoveRoleFromInstanceProfile'
, removeRoleFromInstanceProfile_instanceProfileName
- The name of the instance profile to update.
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: _+=,.@-
$sel:roleName:RemoveRoleFromInstanceProfile'
, removeRoleFromInstanceProfile_roleName
- The name of the role to remove.
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
removeRoleFromInstanceProfile_instanceProfileName :: Lens' RemoveRoleFromInstanceProfile Text Source #
The name of the instance profile to update.
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: _+=,.@-
removeRoleFromInstanceProfile_roleName :: Lens' RemoveRoleFromInstanceProfile Text Source #
The name of the role to remove.
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 RemoveRoleFromInstanceProfileResponse Source #
See: newRemoveRoleFromInstanceProfileResponse
smart constructor.
Instances
newRemoveRoleFromInstanceProfileResponse :: RemoveRoleFromInstanceProfileResponse Source #
Create a value of RemoveRoleFromInstanceProfileResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.