Amazon Well-Architected Tool Lenses API

The Lenses API from Amazon Well-Architected Tool — 8 operation(s) for lenses.

GitHub OpenAPI
Business capability
IT Strategy & Architecture Management BC-600.10

Operations 9

DELETE /lenses/{LensAlias} Delete Lens #
GET /lenses/{LensAlias} Get Lens #
GET /lenses List Lenses #
POST /lenses/{LensAlias}/shares Create Lens Share #
GET /lenses/{LensAlias}/shares List Lens Shares #
DELETE /lenses/{LensAlias}/shares/{ShareId} Delete Lens Share #
POST /lenses/{LensAlias}/versions Create Lens Version #
GET /lenses/{LensAlias}/export Export Lens #
GET /lenses/{LensAlias}/versionDifference Get Lens Version Difference #

Documentation

Specifications

Schemas & Data

Other Resources

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-well-architected-tool:amazon-well-architected-tool-lenses-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-well-architected-tool-lenses-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: AWS Well-Architected Tool Lenses API
  version: '2020-03-31'
  description: Generated from AWS's published Smithy model for AWS Well-Architected Tool. 9 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://wellarchitected.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /lenses/{LensAlias}:
    delete:
      operationId: DeleteLens
      summary: Delete Lens
      description: Delete an existing lens. Only the owner of a lens can delete it. After the lens is deleted, Amazon Web
        Services accounts and users that you shared the lens with can continue to use it, but they will no longer be able
        to apply it to new workloads. Disclaimer By sharing your custom lenses with other Amazon Web Services accounts, you
        acknowledge that Amazon Web Services will make your custom lenses available to those other accounts. Those other accounts
        may continue to access and use your shared custom lenses even if you delete the custom lenses from your own Amazon
        Web Services account or terminate your Amazon Web Services account.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: string
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '409':
          description: ConflictException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConflictException'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationException'
      parameters:
      - name: LensAlias
        in: path
        required: true
        schema:
          type: string
      - name: ClientRequestToken
        in: query
        required: true
        schema:
          type: string
      - name: LensStatus
        in: query
        required: true
        schema:
          type: string
          enum:
          - ALL
          - DRAFT
          - PUBLISHED
        description: The status of the lens to be deleted.
      tags:
      - Lenses
    get:
      operationId: GetLens
      summary: Get Lens
      description: Get an existing lens.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetLensOutput'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationException'
      parameters:
      - name: LensAlias
        in: path
        required: true
        schema:
          type: string
      - name: LensVersion
        in: query
        schema:
          type: string
        description: The lens version to be retrieved.
      tags:
      - Lenses
  /lenses:
    get:
      operationId: ListLenses
      summary: List Lenses
      description: List the available lenses.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListLensesOutput'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationException'
      parameters:
      - name: NextToken
        in: query
        schema:
          type: string
      - name: MaxResults
        in: query
        schema:
          type: integer
      - name: LensType
        in: query
        schema:
          type: string
          enum:
          - AWS_OFFICIAL
          - CUSTOM_SHARED
          - CUSTOM_SELF
        description: The type of lenses to be returned.
      - name: LensStatus
        in: query
        schema:
          type: string
          enum:
          - ALL
          - DRAFT
          - PUBLISHED
        description: The status of lenses to be returned.
      - name: LensName
        in: query
        schema:
          type: string
      tags:
      - Lenses
  /lenses/{LensAlias}/shares:
    post:
      operationId: CreateLensShare
      summary: Create Lens Share
      description: Create a lens share. The owner of a lens can share it with other Amazon Web Services accounts, users, an
        organization, and organizational units (OUs) in the same Amazon Web Services Region. Lenses provided by Amazon Web
        Services (Amazon Web Services Official Content) cannot be shared. Shared access to a lens is not removed until the
        lens invitation is deleted. If you share a lens with an organization or OU, all accounts in the organization or OU
        are granted access to the lens. For more information, see Sharing a custom lens in the Well-Architected Tool User
        Guide. Disclaimer By sharing your custom lenses with other Amazon Web Services accounts, you acknowledge that Amazon
        Web Services will make your custom lenses available to those other accounts. Those other accounts may continue to
        access and use your shared custom lenses even if you delete the custom lenses from your own Amazon Web Services account
        or terminate your Amazon Web Services account.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateLensShareOutput'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '409':
          description: ConflictException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConflictException'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '402':
          description: ServiceQuotaExceededException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceQuotaExceededException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationException'
      parameters:
      - name: LensAlias
        in: path
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                SharedWith:
                  type: string
                ClientRequestToken:
                  type: string
              required:
              - SharedWith
              - ClientRequestToken
      tags:
      - Lenses
    get:
      operationId: ListLensShares
      summary: List Lens Shares
      description: List the lens shares associated with the lens.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListLensSharesOutput'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationException'
      parameters:
      - name: LensAlias
        in: path
        required: true
        schema:
          type: string
      - name: SharedWithPrefix
        in: query
        schema:
          type: string
        description: The Amazon Web Services account ID, organization ID, or organizational unit (OU) ID with which the lens
          is shared.
      - name: NextToken
        in: query
        schema:
          type: string
      - name: MaxResults
        in: query
        schema:
          type: integer
        description: The maximum number of results to return for this request.
      - name: Status
        in: query
        schema:
          type: string
          enum:
          - ACCEPTED
          - REJECTED
          - PENDING
          - REVOKED
          - EXPIRED
          - ASSOCIATING
          - ASSOCIATED
          - FAILED
      tags:
      - Lenses
  /lenses/{LensAlias}/shares/{ShareId}:
    delete:
      operationId: DeleteLensShare
      summary: Delete Lens Share
      description: Delete a lens share. After the lens share is deleted, Amazon Web Services accounts, users, organizations,
        and organizational units (OUs) that you shared the lens with can continue to use it, but they will no longer be able
        to apply it to new workloads. Disclaimer By sharing your custom lenses with other Amazon Web Services accounts, you
        acknowledge that Amazon Web Services will make your custom lenses available to those other accounts. Those other accounts
        may continue to access and use your shared custom lenses even if you delete the custom lenses from your own Amazon
        Web Services account or terminate your Amazon Web Services account.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: string
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '409':
          description: ConflictException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConflictException'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationException'
      parameters:
      - name: ShareId
        in: path
        required: true
        schema:
          type: string
      - name: LensAlias
        in: path
        required: true
        schema:
          type: string
      - name: ClientRequestToken
        in: query
        required: true
        schema:
          type: string
      tags:
      - Lenses
  /lenses/{LensAlias}/versions:
    post:
      operationId: CreateLensVersion
      summary: Create Lens Version
      description: Create a new lens version. A lens can have up to 100 versions. Use this operation to publish a new lens
        version after you have imported a lens. The LensAlias is used to identify the lens to be published. The owner of a
        lens can share the lens with other Amazon Web Services accounts and users in the same Amazon Web Services Region.
        Only the owner of a lens can delete it.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateLensVersionOutput'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '409':
          description: ConflictException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConflictException'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '402':
          description: ServiceQuotaExceededException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceQuotaExceededException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationException'
      parameters:
      - name: LensAlias
        in: path
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                LensVersion:
                  type: string
                  description: The version of the lens being created.
                IsMajorVersion:
                  type: boolean
                  description: Set to true if this new major lens version.
                ClientRequestToken:
                  type: string
              required:
              - LensVersion
              - ClientRequestToken
      tags:
      - Lenses
  /lenses/{LensAlias}/export:
    get:
      operationId: ExportLens
      summary: Export Lens
      description: 'Export an existing lens. Only the owner of a lens can export it. Lenses provided by Amazon Web Services
        (Amazon Web Services Official Content) cannot be exported. Lenses are defined in JSON. For more information, see JSON
        format specification in the Well-Architected Tool User Guide. Disclaimer Do not include or gather personal identifiable
        information (PII) of end users or other identifiable individuals in or via your custom lenses. If your custom lens
        or those shared with you and used in your account do include or collect PII you are responsible for: ensuring that
        the included PII is processed in accordance with applicable law, providing adequate privacy notices, and obtaining
        necessary consents for processing such data.'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExportLensOutput'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationException'
      parameters:
      - name: LensAlias
        in: path
        required: true
        schema:
          type: string
      - name: LensVersion
        in: query
        schema:
          type: string
        description: The lens version to be exported.
      tags:
      - Lenses
  /lenses/{LensAlias}/versionDifference:
    get:
      operationId: GetLensVersionDifference
      summary: Get Lens Version Difference
      description: Get lens version differences.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetLensVersionDifferenceOutput'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationException'
      parameters:
      - name: LensAlias
        in: path
        required: true
        schema:
          type: string
      - name: BaseLensVersion
        in: query
        schema:
          type: string
        description: The base version of the lens.
      - name: TargetLensVersion
        in: query
        schema:
          type: string
        description: The lens version to target a difference for.
      tags:
      - Lenses
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: wellarchitected
  schemas:
    AccessDeniedException:
      type: object
      properties:
        Message:
          type: string
      required:
      - Message
    ConflictException:
      type: object
      properties:
        Message:
          type: string
        ResourceId:
          type: string
        ResourceType:
          type: string
      required:
      - Message
      - ResourceId
      - ResourceType
    CreateLensShareOutput:
      type: object
      properties:
        ShareId:
          type: string
    CreateLensVersionOutput:
      type: object
      properties:
        LensArn:
          type: string
          description: The ARN for the lens.
        LensVersion:
          type: string
          description: The version of the lens.
    ExportLensOutput:
      type: object
      properties:
        LensJSON:
          type: string
          description: The JSON representation of a lens.
    GetLensOutput:
      type: object
      properties:
        Lens:
          $ref: '#/components/schemas/Lens'
    GetLensVersionDifferenceOutput:
      type: object
      properties:
        LensAlias:
          type: string
        LensArn:
          type: string
          description: The ARN for the lens.
        BaseLensVersion:
          type: string
          description: The base version of the lens.
        TargetLensVersion:
          type: string
          description: The target lens version for the lens.
        LatestLensVersion:
          type: string
          description: The latest version of the lens.
        VersionDifferences:
          $ref: '#/components/schemas/VersionDifferences'
    InternalServerException:
      type: object
      properties:
        Message:
          type: string
      required:
      - Message
    Lens:
      type: object
      properties:
        LensArn:
          type: string
          description: The ARN of a lens.
        LensVersion:
          type: string
          description: The version of a lens.
        Name:
          type: string
        Description:
          type: string
        Owner:
          type: string
          description: The Amazon Web Services account ID that owns the lens.
        ShareInvitationId:
          type: string
          description: The ID assigned to the share invitation.
        Tags:
          type: object
          additionalProperties:
            type: string
          description: The tags assigned to the lens.
    LensShareSummary:
      type: object
      properties:
        ShareId:
          type: string
        SharedWith:
          type: string
        Status:
          type: string
          enum:
          - ACCEPTED
          - REJECTED
          - PENDING
          - REVOKED
          - EXPIRED
          - ASSOCIATING
          - ASSOCIATED
          - FAILED
        StatusMessage:
          type: string
          description: Optional message to compliment the Status field.
    LensSummary:
      type: object
      properties:
        LensArn:
          type: string
          description: The ARN of the lens.
        LensAlias:
          type: string
        LensName:
          type: string
        LensType:
          type: string
          enum:
          - AWS_OFFICIAL
          - CUSTOM_SHARED
          - CUSTOM_SELF
          description: The type of the lens.
        Description:
          type: string
        CreatedAt:
          type: string
          description: The date and time when the lens was created.
        UpdatedAt:
          type: string
          description: The date and time when the lens was last updated.
        LensVersion:
          type: string
          description: The version of the lens.
        Owner:
          type: string
        LensStatus:
          type: string
          enum:
          - CURRENT
          - NOT_CURRENT
          - DEPRECATED
          - DELETED
          - UNSHARED
          description: The status of the lens.
    ListLensSharesOutput:
      type: object
      properties:
        LensShareSummaries:
          type: array
          items:
            $ref: '#/components/schemas/LensShareSummary'
          description: A list of lens share summaries.
        NextToken:
          type: string
    ListLensesOutput:
      type: object
      properties:
        LensSummaries:
          type: array
          items:
            $ref: '#/components/schemas/LensSummary'
        NextToken:
          type: string
    PillarDifference:
      type: object
      properties:
        PillarId:
          type: string
        PillarName:
          type: string
        DifferenceStatus:
          type: string
          enum:
          - UPDATED
          - NEW
          - DELETED
          description: Indicates the type of change to the pillar.
        QuestionDifferences:
          type: array
          items:
            $ref: '#/components/schemas/QuestionDifference'
          description: List of question differences.
    QuestionDifference:
      type: object
      properties:
        QuestionId:
          type: string
        QuestionTitle:
          type: string
        DifferenceStatus:
          type: string
          enum:
          - UPDATED
          - NEW
          - DELETED
          description: Indicates the type of change to the question.
    ResourceNotFoundException:
      type: object
      properties:
        Message:
          type: string
        ResourceId:
          type: string
        ResourceType:
          type: string
      required:
      - Message
      - ResourceId
      - ResourceType
    ServiceQuotaExceededException:
      type: object
      properties:
        Message:
          type: string
        ResourceId:
          type: string
        ResourceType:
          type: string
        QuotaCode:
          type: string
        ServiceCode:
          type: string
      required:
      - Message
      - QuotaCode
      - ServiceCode
    ThrottlingException:
      type: object
      properties:
        Message:
          type: string
        QuotaCode:
          type: string
        ServiceCode:
          type: string
      required:
      - Message
    ValidationException:
      type: object
      properties:
        Message:
          type: string
        Reason:
          type: string
          enum:
          - UNKNOWN_OPERATION
          - CANNOT_PARSE
          - FIELD_VALIDATION_FAILED
          - OTHER
        Fields:
          type: array
          items:
            $ref: '#/components/schemas/ValidationExceptionField'
      required:
      - Message
    ValidationExceptionField:
      type: object
      properties:
        Name:
          type: string
        Message:
          type: string
      required:
      - Name
      - Message
    VersionDifferences:
      type: object
      properties:
        PillarDifferences:
          type: array
          items:
            $ref: '#/components/schemas/PillarDifference'
          description: The differences between the base and latest versions of the lens.
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/wellarchitected/service/2020-03-31/wellarchitected-2020-03-31.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)