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 |
Amazonka.SSM.UpdateManagedInstanceRole
Description
Changes the Identity and Access Management (IAM) role that is assigned to the on-premises instance or virtual machines (VM). IAM roles are first assigned to these hybrid instances during the activation process. For more information, see CreateActivation.
Synopsis
- data UpdateManagedInstanceRole = UpdateManagedInstanceRole' {
- instanceId :: Text
- iamRole :: Text
- newUpdateManagedInstanceRole :: Text -> Text -> UpdateManagedInstanceRole
- updateManagedInstanceRole_instanceId :: Lens' UpdateManagedInstanceRole Text
- updateManagedInstanceRole_iamRole :: Lens' UpdateManagedInstanceRole Text
- data UpdateManagedInstanceRoleResponse = UpdateManagedInstanceRoleResponse' {
- httpStatus :: Int
- newUpdateManagedInstanceRoleResponse :: Int -> UpdateManagedInstanceRoleResponse
- updateManagedInstanceRoleResponse_httpStatus :: Lens' UpdateManagedInstanceRoleResponse Int
Creating a Request
data UpdateManagedInstanceRole Source #
See: newUpdateManagedInstanceRole
smart constructor.
Constructors
UpdateManagedInstanceRole' | |
Fields
|
Instances
newUpdateManagedInstanceRole Source #
Arguments
:: Text | |
-> Text | |
-> UpdateManagedInstanceRole |
Create a value of UpdateManagedInstanceRole
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:instanceId:UpdateManagedInstanceRole'
, updateManagedInstanceRole_instanceId
- The ID of the managed instance where you want to update the role.
$sel:iamRole:UpdateManagedInstanceRole'
, updateManagedInstanceRole_iamRole
- The IAM role you want to assign or change.
Request Lenses
updateManagedInstanceRole_instanceId :: Lens' UpdateManagedInstanceRole Text Source #
The ID of the managed instance where you want to update the role.
updateManagedInstanceRole_iamRole :: Lens' UpdateManagedInstanceRole Text Source #
The IAM role you want to assign or change.
Destructuring the Response
data UpdateManagedInstanceRoleResponse Source #
See: newUpdateManagedInstanceRoleResponse
smart constructor.
Constructors
UpdateManagedInstanceRoleResponse' | |
Fields
|
Instances
newUpdateManagedInstanceRoleResponse Source #
Arguments
:: Int | |
-> UpdateManagedInstanceRoleResponse |
Create a value of UpdateManagedInstanceRoleResponse
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:httpStatus:UpdateManagedInstanceRoleResponse'
, updateManagedInstanceRoleResponse_httpStatus
- The response's http status code.
Response Lenses
updateManagedInstanceRoleResponse_httpStatus :: Lens' UpdateManagedInstanceRoleResponse Int Source #
The response's http status code.