{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-lex/json-schema/amazon-lex-get-bot-channel-associations-response-schema.json",
  "title": "GetBotChannelAssociationsResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-lex-channels-api-openapi.yml#/components/schemas/GetBotChannelAssociationsResponse",
  "type": "object",
  "properties": {
    "botChannelAssociations": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/BotChannelAssociation"
      },
      "description": "An array of objects, one for each association, that provides information about the Amazon Lex bot and its association with the channel."
    },
    "nextToken": {
      "type": "string",
      "description": "A pagination token that fetches the next page of associations. If the response to this call is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of associations, specify the pagination token in the next request."
    }
  },
  "$defs": {
    "BotChannelAssociation": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the association between the bot and the channel."
        },
        "description": {
          "type": "string",
          "description": "A text description of the association you are creating."
        },
        "botAlias": {
          "type": "string",
          "description": "An alias pointing to the specific version of the Amazon Lex bot to which this association is being made."
        },
        "botName": {
          "type": "string",
          "description": "The name of the Amazon Lex bot to which this association is being made. Currently, Amazon Lex supports associations with Facebook and Slack, and Twilio."
        },
        "createdDate": {
          "type": "string",
          "format": "date-time",
          "description": "The date that the association between the Amazon Lex bot and the channel was created."
        },
        "type": {
          "type": "string",
          "enum": [
            "Facebook",
            "Slack",
            "Twilio-Sms",
            "Kik"
          ],
          "description": "Specifies the type of association by indicating the type of channel being established between the Amazon Lex bot and the external messaging platform."
        },
        "botConfiguration": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Provides information necessary to communicate with the messaging platform."
        },
        "status": {
          "type": "string",
          "enum": [
            "IN_PROGRESS",
            "CREATED",
            "FAILED"
          ],
          "description": "The status of the bot channel. CREATED - The channel has been created and is ready for use. IN_PROGRESS - Channel creation is in progress. FAILED - There was an error creating the channel. For information about the reason for the failure, see the failureReason field."
        },
        "failureReason": {
          "type": "string",
          "description": "If status is FAILED, Amazon Lex provides the reason that it failed to create the association."
        }
      }
    }
  }
}