---
title: "PUT /role-aliases/{roleAlias}"
method: PUT
path: "/role-aliases/{roleAlias}"
---

# PUT /role-aliases/{roleAlias}

`PUT /role-aliases/{roleAlias}`

Updates a role alias.

Requires permission to access the [UpdateRoleAlias](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions) action.

## Path parameters

- `roleAlias` string, required

## Request body

- object
  - `roleArn` string — The role ARN.
  - `credentialDurationSeconds` integer — <p>The number of seconds the credential will be valid.</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 `200`

Success

- UpdateRoleAliasResponse
  - `roleAlias` string — The role alias.
  - `roleAliasArn` string — The role alias ARN.

## Other responses

- `480` — ResourceNotFoundException
- `481` — InvalidRequestException
- `482` — ThrottlingException
- `483` — UnauthorizedException
- `484` — ServiceUnavailableException
- `485` — InternalFailureException

---

[API](https://skmtc.net/aws/apis/iot.md) · [All operations](https://skmtc.net/aws/apis/iot/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/iot/versions/deef5c4b09f0/schema)
