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 |
Removes the specified IAM role from the specified EC2 instance profile.
Important: 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, go to Working with Roles . For more information about instance profiles, go to About Instance Profiles .
Synopsis
- removeRoleFromInstanceProfile :: Text -> Text -> RemoveRoleFromInstanceProfile
- data RemoveRoleFromInstanceProfile
- rrfipInstanceProfileName :: Lens' RemoveRoleFromInstanceProfile Text
- rrfipRoleName :: Lens' RemoveRoleFromInstanceProfile Text
- removeRoleFromInstanceProfileResponse :: RemoveRoleFromInstanceProfileResponse
- data RemoveRoleFromInstanceProfileResponse
Creating a Request
removeRoleFromInstanceProfile Source #
Creates a value of RemoveRoleFromInstanceProfile
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
rrfipInstanceProfileName
- The name of the instance profile to update. 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: _+=,.@-rrfipRoleName
- The name of the role to remove. 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 RemoveRoleFromInstanceProfile Source #
See: removeRoleFromInstanceProfile
smart constructor.
Instances
Request Lenses
rrfipInstanceProfileName :: Lens' RemoveRoleFromInstanceProfile Text Source #
The name of the instance profile to update. 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: _+=,.@-
rrfipRoleName :: Lens' RemoveRoleFromInstanceProfile Text Source #
The name of the role to remove. 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
removeRoleFromInstanceProfileResponse :: RemoveRoleFromInstanceProfileResponse Source #
Creates a value of RemoveRoleFromInstanceProfileResponse
with the minimum fields required to make a request.
data RemoveRoleFromInstanceProfileResponse Source #
See: removeRoleFromInstanceProfileResponse
smart constructor.