Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Changes the Identity and Access Management (IAM) role that is assigned to the on-premises server, edge device, or virtual machines (VM). IAM roles are first assigned to these hybrid nodes 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 #
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:
UpdateManagedInstanceRole
, updateManagedInstanceRole_instanceId
- The ID of the managed node where you want to update the role.
UpdateManagedInstanceRole
, updateManagedInstanceRole_iamRole
- The name of the Identity and Access Management (IAM) role that you want
to assign to the managed node. This IAM role must provide AssumeRole
permissions for the Amazon Web Services Systems Manager service
principal ssm.amazonaws.com
. For more information, see
Create an IAM service role for a hybrid environment
in the Amazon Web Services Systems Manager User Guide.
You can't specify an IAM service-linked role for this parameter. You must create a unique role.
Request Lenses
updateManagedInstanceRole_instanceId :: Lens' UpdateManagedInstanceRole Text Source #
The ID of the managed node where you want to update the role.
updateManagedInstanceRole_iamRole :: Lens' UpdateManagedInstanceRole Text Source #
The name of the Identity and Access Management (IAM) role that you want
to assign to the managed node. This IAM role must provide AssumeRole
permissions for the Amazon Web Services Systems Manager service
principal ssm.amazonaws.com
. For more information, see
Create an IAM service role for a hybrid environment
in the Amazon Web Services Systems Manager User Guide.
You can't specify an IAM service-linked role for this parameter. You must create a unique role.
Destructuring the Response
data UpdateManagedInstanceRoleResponse Source #
See: newUpdateManagedInstanceRoleResponse
smart constructor.
UpdateManagedInstanceRoleResponse' | |
|
Instances
Generic UpdateManagedInstanceRoleResponse Source # | |
Read UpdateManagedInstanceRoleResponse Source # | |
Show UpdateManagedInstanceRoleResponse Source # | |
Defined in Amazonka.SSM.UpdateManagedInstanceRole | |
NFData UpdateManagedInstanceRoleResponse Source # | |
Defined in Amazonka.SSM.UpdateManagedInstanceRole rnf :: UpdateManagedInstanceRoleResponse -> () # | |
Eq UpdateManagedInstanceRoleResponse Source # | |
type Rep UpdateManagedInstanceRoleResponse Source # | |
Defined in Amazonka.SSM.UpdateManagedInstanceRole type Rep UpdateManagedInstanceRoleResponse = D1 ('MetaData "UpdateManagedInstanceRoleResponse" "Amazonka.SSM.UpdateManagedInstanceRole" "amazonka-ssm-2.0-Ak65QSGRhJDC5x7UvsCpi8" '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.