v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-142381,278956.3 KB

Creates a role alias.

Requires permission to access the CreateRoleAlias action.

post/role-aliases/{roleAlias}

Path parameters

roleAliasstring required

The role alias that points to a role ARN. This allows you to change the role without having to update the device.

Request body

roleArnstring required

The role ARN.

credentialDurationSecondsinteger
<p>How long (in seconds) the credentials will be valid. The default value is 3,600 seconds.</p> <p>This value must be less than or equal to the maximum session duration of the IAM role that the role alias references.</p>

Response

Success

roleAliasstring

The role alias.

roleAliasArnstring

The role alias ARN.