Command option Sample:aws ssm update-managed-instance-role

Search command sample in the internet.It is the result.

Assigns or changes an Amazon Identity and Access Management (IAM) roleto the managed instance.Show details from next link. https://docs.aws.amazon.com/ja_jp/cli/latest/reference/ssm/update-managed-instance-role.html

aws ssm update-managed-instance-role --instance-id "mi-08ab247cdf1046573" --iam-role "AutomationRole"
    update-managed-instance-role — AWS CLI 1.16.13 Command Reference : http://docs.aws.amazon.com/cli/latest/reference/ssm/update-managed-instance-role.html

aws のオプション一覧