Changes the Amazon 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.
ssm_update_managed_instance_role(InstanceId, IamRole)
[required] The ID of the managed instance where you want to update the role.
[required] The IAM role you want to assign or change.
svc$update_managed_instance_role( InstanceId = "string", IamRole = "string" )