amazonka-ssm-2.0: Amazon Simple Systems Manager (SSM) SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.SSM.UpdateManagedInstanceRole

Description

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

Creating a Request

data UpdateManagedInstanceRole Source #

See: newUpdateManagedInstanceRole smart constructor.

Constructors

UpdateManagedInstanceRole' 

Fields

  • instanceId :: Text

    The ID of the managed node where you want to update the role.

  • iamRole :: Text

    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.

Instances

Instances details
ToJSON UpdateManagedInstanceRole Source # 
Instance details

Defined in Amazonka.SSM.UpdateManagedInstanceRole

ToHeaders UpdateManagedInstanceRole Source # 
Instance details

Defined in Amazonka.SSM.UpdateManagedInstanceRole

ToPath UpdateManagedInstanceRole Source # 
Instance details

Defined in Amazonka.SSM.UpdateManagedInstanceRole

ToQuery UpdateManagedInstanceRole Source # 
Instance details

Defined in Amazonka.SSM.UpdateManagedInstanceRole

AWSRequest UpdateManagedInstanceRole Source # 
Instance details

Defined in Amazonka.SSM.UpdateManagedInstanceRole

Generic UpdateManagedInstanceRole Source # 
Instance details

Defined in Amazonka.SSM.UpdateManagedInstanceRole

Associated Types

type Rep UpdateManagedInstanceRole :: Type -> Type #

Read UpdateManagedInstanceRole Source # 
Instance details

Defined in Amazonka.SSM.UpdateManagedInstanceRole

Show UpdateManagedInstanceRole Source # 
Instance details

Defined in Amazonka.SSM.UpdateManagedInstanceRole

NFData UpdateManagedInstanceRole Source # 
Instance details

Defined in Amazonka.SSM.UpdateManagedInstanceRole

Eq UpdateManagedInstanceRole Source # 
Instance details

Defined in Amazonka.SSM.UpdateManagedInstanceRole

Hashable UpdateManagedInstanceRole Source # 
Instance details

Defined in Amazonka.SSM.UpdateManagedInstanceRole

type AWSResponse UpdateManagedInstanceRole Source # 
Instance details

Defined in Amazonka.SSM.UpdateManagedInstanceRole

type Rep UpdateManagedInstanceRole Source # 
Instance details

Defined in Amazonka.SSM.UpdateManagedInstanceRole

type Rep UpdateManagedInstanceRole = D1 ('MetaData "UpdateManagedInstanceRole" "Amazonka.SSM.UpdateManagedInstanceRole" "amazonka-ssm-2.0-Ak65QSGRhJDC5x7UvsCpi8" 'False) (C1 ('MetaCons "UpdateManagedInstanceRole'" 'PrefixI 'True) (S1 ('MetaSel ('Just "instanceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "iamRole") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

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.

Constructors

UpdateManagedInstanceRoleResponse' 

Fields

Instances

Instances details
Generic UpdateManagedInstanceRoleResponse Source # 
Instance details

Defined in Amazonka.SSM.UpdateManagedInstanceRole

Associated Types

type Rep UpdateManagedInstanceRoleResponse :: Type -> Type #

Read UpdateManagedInstanceRoleResponse Source # 
Instance details

Defined in Amazonka.SSM.UpdateManagedInstanceRole

Show UpdateManagedInstanceRoleResponse Source # 
Instance details

Defined in Amazonka.SSM.UpdateManagedInstanceRole

NFData UpdateManagedInstanceRoleResponse Source # 
Instance details

Defined in Amazonka.SSM.UpdateManagedInstanceRole

Eq UpdateManagedInstanceRoleResponse Source # 
Instance details

Defined in Amazonka.SSM.UpdateManagedInstanceRole

type Rep UpdateManagedInstanceRoleResponse Source # 
Instance details

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