roles set-principals
Command: roles set-principals
The roles set-principals
command lets you set the complete set of principals on a role.
Principals can be users or groups.
You can specify multiple principals per role.
Example
This example sets the principals u_anon
and sg_1234567890
on a role with the ID r_1234567890
:
Usage
Command options
-id=<string>
- The ID of the role you want to set principals on.-principal=<string>
- The principals you want to set on the role. Principals can be users or groups. You can optionally specify multiple principals per role.-version=<int>
The version of the role to set principals on. If you do not specify a version, the command performs a check-and-set automatically.
CLI options
In addition to the command specific options, there are options common to all CLI commands and subcommands: