Amazon IoT Core Role Aliases API

The Role Aliases API from Amazon IoT Core — 2 operation(s) for role aliases.

GitHub OpenAPI
Business capability
Identity & Access Management BC-620.20

Operations 5

POST /role-aliases/{roleAlias} Create Role Alias #
DELETE /role-aliases/{roleAlias} Delete Role Alias #
GET /role-aliases/{roleAlias} Describe Role Alias #
PUT /role-aliases/{roleAlias} Update Role Alias #
GET /role-aliases List Role Aliases #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/amazon-iot-core:amazon-iot-core-role-aliases-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

amazon-iot-core-role-aliases-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: AWS IoT Role Aliases API
  version: '2015-05-28'
  description: Generated from AWS's published Smithy model for AWS IoT. 5 operation(s).
  contact:
    name: Amazon Web Services
    url: https://aws.amazon.com/contact-us/
  license:
    name: Apache 2.0
    identifier: Apache-2.0
    url: https://github.com/aws/api-models-aws/blob/main/LICENSE
servers:
- url: https://iot.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /role-aliases/{roleAlias}:
    post:
      operationId: CreateRoleAlias
      summary: Create Role Alias
      description: Creates a role alias. Requires permission to access the CreateRoleAlias action. The value of credentialDurationSeconds
        must be less than or equal to the maximum session duration of the IAM role that the role alias references. For more
        information, see Modifying a role maximum session duration (Amazon Web Services API) from the Amazon Web Services
        Identity and Access Management User Guide.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateRoleAliasResponse'
        '500':
          description: InternalFailureException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalFailureException'
        '400':
          description: InvalidRequestException; ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidRequestException'
        '410':
          description: LimitExceededException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LimitExceededException'
        '409':
          description: ResourceAlreadyExistsException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceAlreadyExistsException'
        '503':
          description: ServiceUnavailableException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceUnavailableException'
        '401':
          description: UnauthorizedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedException'
      parameters:
      - name: roleAlias
        in: path
        required: true
        schema:
          type: string
        description: The role alias that points to a role ARN. This allows you to change the role without having to update
          the device.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                roleArn:
                  type: string
                  description: The role ARN.
                credentialDurationSeconds:
                  type: integer
                  description: How long (in seconds) the credentials will be valid. The default value is 3,600 seconds. This
                    value must be less than or equal to the maximum session duration of the IAM role that the role alias references.
                tags:
                  type: array
                  items:
                    $ref: '#/components/schemas/Tag'
                  description: 'Metadata which can be used to manage the role alias. For URI Request parameters use format:
                    ...key1=value1&key2=value2... For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..."
                    For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."'
              required:
              - roleArn
      tags:
      - Role Aliases
    delete:
      operationId: DeleteRoleAlias
      summary: Delete Role Alias
      description: Deletes a role alias Requires permission to access the DeleteRoleAlias action.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteRoleAliasResponse'
        '409':
          description: DeleteConflictException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteConflictException'
        '500':
          description: InternalFailureException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalFailureException'
        '400':
          description: InvalidRequestException; ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidRequestException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '503':
          description: ServiceUnavailableException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceUnavailableException'
        '401':
          description: UnauthorizedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedException'
      parameters:
      - name: roleAlias
        in: path
        required: true
        schema:
          type: string
        description: The role alias to delete.
      tags:
      - Role Aliases
    get:
      operationId: DescribeRoleAlias
      summary: Describe Role Alias
      description: Describes a role alias. Requires permission to access the DescribeRoleAlias action.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DescribeRoleAliasResponse'
        '500':
          description: InternalFailureException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalFailureException'
        '400':
          description: InvalidRequestException; ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidRequestException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '503':
          description: ServiceUnavailableException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceUnavailableException'
        '401':
          description: UnauthorizedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedException'
      parameters:
      - name: roleAlias
        in: path
        required: true
        schema:
          type: string
        description: The role alias to describe.
      tags:
      - Role Aliases
    put:
      operationId: UpdateRoleAlias
      summary: Update Role Alias
      description: Updates a role alias. Requires permission to access the UpdateRoleAlias action. The value of credentialDurationSeconds
        must be less than or equal to the maximum session duration of the IAM role that the role alias references. For more
        information, see Modifying a role maximum session duration (Amazon Web Services API) from the Amazon Web Services
        Identity and Access Management User Guide.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateRoleAliasResponse'
        '500':
          description: InternalFailureException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalFailureException'
        '400':
          description: InvalidRequestException; ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidRequestException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '503':
          description: ServiceUnavailableException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceUnavailableException'
        '401':
          description: UnauthorizedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedException'
      parameters:
      - name: roleAlias
        in: path
        required: true
        schema:
          type: string
        description: The role alias to update.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                roleArn:
                  type: string
                  description: The role ARN.
                credentialDurationSeconds:
                  type: integer
                  description: The number of seconds the credential will be valid. This value must be less than or equal to
                    the maximum session duration of the IAM role that the role alias references.
      tags:
      - Role Aliases
  /role-aliases:
    get:
      operationId: ListRoleAliases
      summary: List Role Aliases
      description: Lists the role aliases registered in your account. Requires permission to access the ListRoleAliases action.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListRoleAliasesResponse'
        '500':
          description: InternalFailureException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalFailureException'
        '400':
          description: InvalidRequestException; ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidRequestException'
        '503':
          description: ServiceUnavailableException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceUnavailableException'
        '401':
          description: UnauthorizedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedException'
      parameters:
      - name: pageSize
        in: query
        schema:
          type: integer
        description: The maximum number of results to return at one time.
      - name: marker
        in: query
        schema:
          type: string
        description: A marker used to get the next set of results.
      - name: isAscendingOrder
        in: query
        schema:
          type: boolean
        description: Return the list of role aliases in ascending alphabetical order.
      tags:
      - Role Aliases
components:
  securitySchemes:
    sigv4:
      type: apiKey
      in: header
      name: Authorization
      description: AWS Signature Version 4. The Authorization header carries an AWS4-HMAC-SHA256 signature over the canonical
        request, with X-Amz-Date (and X-Amz-Security-Token for temporary credentials). Not a bearer token.
      x-aws-sigv4:
        signingName: iot
  schemas:
    CreateRoleAliasResponse:
      type: object
      properties:
        roleAlias:
          type: string
          description: The role alias.
        roleAliasArn:
          type: string
          description: The role alias ARN.
    DeleteConflictException:
      type: object
      properties:
        message:
          type: string
          description: The message for the exception.
    DeleteRoleAliasResponse:
      type: object
      properties: {}
    DescribeRoleAliasResponse:
      type: object
      properties:
        roleAliasDescription:
          $ref: '#/components/schemas/RoleAliasDescription'
    InternalFailureException:
      type: object
      properties:
        message:
          type: string
          description: The message for the exception.
    InvalidRequestException:
      type: object
      properties:
        message:
          type: string
          description: The message for the exception.
    LimitExceededException:
      type: object
      properties:
        message:
          type: string
          description: The message for the exception.
    ListRoleAliasesResponse:
      type: object
      properties:
        roleAliases:
          type: array
          items:
            type: string
          description: The role aliases.
        nextMarker:
          type: string
          description: A marker used to get the next set of results.
    ResourceAlreadyExistsException:
      type: object
      properties:
        message:
          type: string
          description: The message for the exception.
        resourceId:
          type: string
          description: The ID of the resource that caused the exception.
        resourceArn:
          type: string
          description: The ARN of the resource that caused the exception.
    ResourceNotFoundException:
      type: object
      properties:
        message:
          type: string
          description: The message for the exception.
    RoleAliasDescription:
      type: object
      properties:
        roleAlias:
          type: string
          description: The role alias.
        roleAliasArn:
          type: string
          description: The ARN of the role alias.
        roleArn:
          type: string
          description: The role ARN.
        owner:
          type: string
          description: The role alias owner.
        credentialDurationSeconds:
          type: integer
          description: The number of seconds for which the credential is valid.
        creationDate:
          type: string
          format: date-time
          description: The UNIX timestamp of when the role alias was created.
        lastModifiedDate:
          type: string
          format: date-time
          description: The UNIX timestamp of when the role alias was last modified.
    ServiceUnavailableException:
      type: object
      properties:
        message:
          type: string
          description: The message for the exception.
    Tag:
      type: object
      properties:
        Key:
          type: string
          description: The tag's key.
        Value:
          type: string
          description: The tag's value.
      required:
      - Key
    UnauthorizedException:
      type: object
      properties:
        message:
          type: string
          description: The message for the exception.
    UpdateRoleAliasResponse:
      type: object
      properties:
        roleAlias:
          type: string
          description: The role alias.
        roleAliasArn:
          type: string
          description: The role alias ARN.
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/iot/service/2015-05-28/iot-2015-05-28.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)