CmdID

CmdID / aws / aws iot

aws iot update-role-alias

Updates a role alias. AWS CLI reference

1 example 3 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To update a role alias

The following update-role-alias example updates the LightBulbRole role alias.

aws iot update-role-alias --role-alias LightBulbRole --role-arn arn:aws:iam::123456789012:role/lightbulbrole-001Identify
--role-aliasThe role alias to update.
--role-arnThe role ARN.
Its output
{
    "roleAlias": "LightBulbRole",
    "roleAliasArn": "arn:aws:iot:us-west-2:123456789012:rolealias/LightBulbRole"
}

For more information, see Authorizing direct calls to AWS services using AWS IoT Core credential provider in the AWS IoT Core Developer Guide.

Options

3 in the AWS CLI reference
--credential-duration-secondsThe number of seconds the credential will be valid.
--role-aliasThe role alias to update.
--role-arnThe role ARN.