| 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 |
Network.AWS.SSM.UpdateManagedInstanceRole
Description
Assigns or changes an Amazon Identity and Access Management (IAM) role to the managed instance.
Synopsis
- updateManagedInstanceRole :: Text -> Text -> UpdateManagedInstanceRole
- data UpdateManagedInstanceRole
- umirInstanceId :: Lens' UpdateManagedInstanceRole Text
- umirIAMRole :: Lens' UpdateManagedInstanceRole Text
- updateManagedInstanceRoleResponse :: Int -> UpdateManagedInstanceRoleResponse
- data UpdateManagedInstanceRoleResponse
- umirrsResponseStatus :: Lens' UpdateManagedInstanceRoleResponse Int
Creating a Request
updateManagedInstanceRole Source #
Arguments
| :: Text | |
| -> Text | |
| -> UpdateManagedInstanceRole |
Creates a value of UpdateManagedInstanceRole with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
umirInstanceId- The ID of the managed instance where you want to update the role.umirIAMRole- The IAM role you want to assign or change.
data UpdateManagedInstanceRole Source #
See: updateManagedInstanceRole smart constructor.
Instances
Request Lenses
umirInstanceId :: Lens' UpdateManagedInstanceRole Text Source #
The ID of the managed instance where you want to update the role.
umirIAMRole :: Lens' UpdateManagedInstanceRole Text Source #
The IAM role you want to assign or change.
Destructuring the Response
updateManagedInstanceRoleResponse Source #
Arguments
| :: Int | |
| -> UpdateManagedInstanceRoleResponse |
Creates a value of UpdateManagedInstanceRoleResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
umirrsResponseStatus- -- | The response status code.
data UpdateManagedInstanceRoleResponse Source #
See: updateManagedInstanceRoleResponse smart constructor.
Instances
Response Lenses
umirrsResponseStatus :: Lens' UpdateManagedInstanceRoleResponse Int Source #
- - | The response status code.