v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-141381,185842.7 KB

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 <a>CreateActivation</a>.

post/#X-Amz-Target=AmazonSSM.UpdateManagedInstanceRole

Headers

X-Amz-Target'AmazonSSM.UpdateManagedInstanceRole' required

Request body

InstanceIdstring required

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

IamRolestring required
<p>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 <code>ssm.amazonaws.com</code>. For more information, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-service-role.html">Create an IAM service role for a hybrid environment</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p> <note> <p>You can't specify an IAM service-linked role for this parameter. You must create a unique role.</p> </note>

Response

Success

UpdateManagedInstanceRoleResult required