aws iot update-role-alias
Updates a role alias. AWS CLI reference
1 example 3 options Its page in the AWS CLI reference
Examples
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
--credential-duration-secondsThe number of seconds the credential will be valid.--role-aliasThe role alias to update.--role-arnThe role ARN.