Amazon Lex Testsetgenerations API

The testsetgenerations API from Amazon Lex — 2 operation(s) for testsetgenerations.

GitHub OpenAPI

Operations 2

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /testsetgenerations/{testSetGenerationId} Check a test set generation job · Describe Test Set Generation #
Ask an LLM
“Has my test set generation job finished?”
“What's the status of generating a test set from logs?”
Tell an agent
Describe test set generation {testSetGenerationId}.
Check the progress of generation job {testSetGenerationId}.
PUT /testsetgenerations Generate a test set from conversation logs · Start Test Set Generation #
Ask an LLM
“Can I build a bot test set automatically from existing conversation logs?”
“Where does a generated test set get stored?”
Tell an agent
Generate test set {testSetName} from {generationDataSource}, storing it at {storageLocation} with role {roleArn}.
Start generating test set {testSetName} tagged {testSetTags} from source {generationDataSource} into {storageLocation} using {roleArn}.

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-lex:amazon-lex-testsetgenerations-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-lex-testsetgenerations-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Amazon Lex Model Building V2 Testsetgenerations API
  version: '2020-08-07'
  description: Generated from AWS's published Smithy model for Amazon Lex Model Building V2. 2 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://models-v2-lex.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /testsetgenerations/{testSetGenerationId}:
    get:
      operationId: DescribeTestSetGeneration
      summary: Describe Test Set Generation
      description: Gets metadata information about the test set generation.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DescribeTestSetGenerationResponse'
        '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'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DescribeTestSetGenerationRequest'
      tags:
      - Testsetgenerations
  /testsetgenerations:
    put:
      operationId: StartTestSetGeneration
      summary: Start Test Set Generation
      description: The action to start the generation of test set.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StartTestSetGenerationResponse'
        '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'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/StartTestSetGenerationRequest'
      tags:
      - Testsetgenerations
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: lex
  schemas:
    ConflictException:
      type: object
      properties:
        message:
          type: string
    ConversationLogsDataSource:
      type: object
      properties:
        botId:
          type: string
          description: The bot Id from the conversation logs.
        botAliasId:
          type: string
          description: The bot alias Id from the conversation logs.
        localeId:
          type: string
          description: The locale Id of the conversation log.
        filter:
          $ref: '#/components/schemas/ConversationLogsDataSourceFilterBy'
      required:
      - botId
      - botAliasId
      - localeId
      - filter
    ConversationLogsDataSourceFilterBy:
      type: object
      properties:
        startTime:
          type: string
          format: date-time
          description: The start time for the conversation log.
        endTime:
          type: string
          format: date-time
          description: The end time for the conversation log.
        inputMode:
          type: string
          enum:
          - Speech
          - Text
          description: The selection to filter by input mode for the conversation logs.
      required:
      - startTime
      - endTime
      - inputMode
    DescribeTestSetGenerationRequest:
      type: object
      properties:
        testSetGenerationId:
          type: string
          description: The unique identifier of the test set generation.
      required:
      - testSetGenerationId
    DescribeTestSetGenerationResponse:
      type: object
      properties:
        testSetGenerationId:
          type: string
          description: The unique identifier of the test set generation.
        testSetGenerationStatus:
          type: string
          enum:
          - Generating
          - Ready
          - Failed
          - Pending
          description: The status for the test set generation.
        failureReasons:
          type: array
          items:
            type: string
          description: The reasons the test set generation failed.
        testSetId:
          type: string
          description: The unique identifier for the test set created for the generated test set.
        testSetName:
          type: string
          description: The test set name for the generated test set.
        description:
          type: string
          description: The test set description for the test set generation.
        storageLocation:
          $ref: '#/components/schemas/TestSetStorageLocation'
        generationDataSource:
          $ref: '#/components/schemas/TestSetGenerationDataSource'
        roleArn:
          type: string
          description: The roleARN of the test set used for the test set generation.
        creationDateTime:
          type: string
          format: date-time
          description: The creation date and time for the test set generation.
        lastUpdatedDateTime:
          type: string
          format: date-time
          description: The date and time of the last update for the test set generation.
    InternalServerException:
      type: object
      properties:
        message:
          type: string
    ResourceNotFoundException:
      type: object
      properties:
        message:
          type: string
    ServiceQuotaExceededException:
      type: object
      properties:
        message:
          type: string
    StartTestSetGenerationRequest:
      type: object
      properties:
        testSetName:
          type: string
          description: The test set name for the test set generation request.
        description:
          type: string
          description: The test set description for the test set generation request.
        storageLocation:
          $ref: '#/components/schemas/TestSetStorageLocation'
        generationDataSource:
          $ref: '#/components/schemas/TestSetGenerationDataSource'
        roleArn:
          type: string
          description: The roleARN used for any operation in the test set to access resources in the Amazon Web Services account.
        testSetTags:
          type: object
          additionalProperties:
            type: string
          description: A list of tags to add to the test set. You can only add tags when you import/generate a new test set.
            You can't use the UpdateTestSet operation to update tags. To update tags, use the TagResource operation.
      required:
      - testSetName
      - storageLocation
      - generationDataSource
      - roleArn
    StartTestSetGenerationResponse:
      type: object
      properties:
        testSetGenerationId:
          type: string
          description: The unique identifier of the test set generation to describe.
        creationDateTime:
          type: string
          format: date-time
          description: The creation date and time for the test set generation.
        testSetGenerationStatus:
          type: string
          enum:
          - Generating
          - Ready
          - Failed
          - Pending
          description: The status for the test set generation.
        testSetName:
          type: string
          description: The test set name used for the test set generation.
        description:
          type: string
          description: The description used for the test set generation.
        storageLocation:
          $ref: '#/components/schemas/TestSetStorageLocation'
        generationDataSource:
          $ref: '#/components/schemas/TestSetGenerationDataSource'
        roleArn:
          type: string
          description: The roleARN used for any operation in the test set to access resources in the Amazon Web Services account.
        testSetTags:
          type: object
          additionalProperties:
            type: string
          description: A list of tags that was used for the test set that is being generated.
    TestSetGenerationDataSource:
      type: object
      properties:
        conversationLogsDataSource:
          $ref: '#/components/schemas/ConversationLogsDataSource'
    TestSetStorageLocation:
      type: object
      properties:
        s3BucketName:
          type: string
          description: The name of the Amazon S3 bucket in which the test set is stored.
        s3Path:
          type: string
          description: The path inside the Amazon S3 bucket where the test set is stored.
        kmsKeyArn:
          type: string
          description: The Amazon Resource Name (ARN) of an Amazon Web Services Key Management Service (KMS) key for encrypting
            the test set.
      required:
      - s3BucketName
      - s3Path
    ThrottlingException:
      type: object
      properties:
        retryAfterSeconds:
          type: integer
          description: The number of seconds after which the user can invoke the API again.
        message:
          type: string
    ValidationException:
      type: object
      properties:
        message:
          type: string
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/lex-models-v2/service/2020-08-07/lex-models-v2-2020-08-07.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)