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 |
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.
UpdateManagedInstanceRole' | |
|
Instances
newUpdateManagedInstanceRole Source #
:: 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.
UpdateManagedInstanceRoleResponse' | |
|
Instances
Eq UpdateManagedInstanceRoleResponse Source # | |
Read UpdateManagedInstanceRoleResponse Source # | |
Show UpdateManagedInstanceRoleResponse Source # | |
Defined in Amazonka.SSM.UpdateManagedInstanceRole | |
Generic UpdateManagedInstanceRoleResponse Source # | |
NFData UpdateManagedInstanceRoleResponse Source # | |
Defined in Amazonka.SSM.UpdateManagedInstanceRole rnf :: UpdateManagedInstanceRoleResponse -> () # | |
type Rep UpdateManagedInstanceRoleResponse Source # | |
Defined in Amazonka.SSM.UpdateManagedInstanceRole type Rep UpdateManagedInstanceRoleResponse = D1 ('MetaData "UpdateManagedInstanceRoleResponse" "Amazonka.SSM.UpdateManagedInstanceRole" "libZSservicesZSamazonka-ssmZSamazonka-ssm" 'False) (C1 ('MetaCons "UpdateManagedInstanceRoleResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newUpdateManagedInstanceRoleResponse Source #
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.