Skip to main content

bot_recommendations

Creates, updates, deletes, gets or lists a bot_recommendations resource.

Overview

Namebot_recommendations
TypeResource
Idaws.lexv2_models.bot_recommendations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
bot_idstringThe identifier of the bot associated with the bot recommendation. (pattern: <code>^[0-9a-zA-Z]+$</code>)
bot_recommendation_idstringThe identifier of the bot recommendation being described. (pattern: <code>^[0-9a-zA-Z]+$</code>)
bot_recommendation_resultsobjectThe object representing the URL of the bot definition, the URL of the associated transcript and a statistical summary of the bot recommendation results.
bot_recommendation_statusstringThe status of the bot recommendation. If the status is Failed, then the reasons for the failure are listed in the failureReasons field. (Processing, Deleting, Deleted, Downloading, Updating, Available, Failed, Stopping, Stopped)
bot_versionstringThe version of the bot associated with the bot recommendation. (pattern: <code>^DRAFT$</code>)
creation_date_timestring (date-time)The date and time that the bot recommendation was created.
encryption_settingobjectThe object representing the passwords that were used to encrypt the data related to the bot recommendation results, as well as the KMS key ARN used to encrypt the associated metadata.
failure_reasonsarrayIf botRecommendationStatus is Failed, Amazon Lex explains why.
last_updated_date_timestring (date-time)The date and time that the bot recommendation was last updated.
locale_idstringThe identifier of the language and locale of the bot recommendation to describe.
transcript_source_settingobjectThe object representing the Amazon S3 bucket containing the transcript, as well as the associated metadata.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_bot_recommendationselectbot_id, bot_version, locale_id, bot_recommendation_id, regionProvides metadata information about a bot recommendation. This information will enable you to get a description on the request inputs, to download associated transcripts after processing is complete, and to download intents and slot-types generated by the bot recommendation.
list_bot_recommendationsselectbot_id, bot_version, locale_id, regionGet a list of bot recommendations that meet the specified criteria.
update_bot_recommendationupdatebot_id, bot_version, locale_id, bot_recommendation_id, region, encryptionSettingUpdates an existing bot recommendation request.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
bot_idstringThe unique identifier of the bot containing the bot recommendation to be updated.
bot_recommendation_idstringThe unique identifier of the bot recommendation to be updated.
bot_versionstringThe version of the bot containing the bot recommendation to be updated.
locale_idstringThe identifier of the language and locale of the bot recommendation to update. The string must match one of the supported locales. For more information, see Supported languages
regionstringAWS region (default: us-east-1)

SELECT examples

Provides metadata information about a bot recommendation. This information will enable you to get a description on the request inputs, to download associated transcripts after processing is complete, and to download intents and slot-types generated by the bot recommendation.

SELECT
bot_id,
bot_recommendation_id,
bot_recommendation_results,
bot_recommendation_status,
bot_version,
creation_date_time,
encryption_setting,
failure_reasons,
last_updated_date_time,
locale_id,
transcript_source_setting
FROM aws.lexv2_models.bot_recommendations
WHERE bot_id = '{{ bot_id }}' -- required
AND bot_version = '{{ bot_version }}' -- required
AND locale_id = '{{ locale_id }}' -- required
AND bot_recommendation_id = '{{ bot_recommendation_id }}' -- required
AND region = '{{ region }}' -- required
;

UPDATE examples

Updates an existing bot recommendation request.

UPDATE aws.lexv2_models.bot_recommendations
SET
encryptionSetting = '{{ encryptionSetting }}'
WHERE
bot_id = '{{ bot_id }}' --required
AND bot_version = '{{ bot_version }}' --required
AND locale_id = '{{ locale_id }}' --required
AND bot_recommendation_id = '{{ bot_recommendation_id }}' --required
AND region = '{{ region }}' --required
AND encryptionSetting = '{{ encryptionSetting }}' --required
RETURNING
bot_id,
bot_recommendation_id,
bot_recommendation_status,
bot_version,
creation_date_time,
encryption_setting,
last_updated_date_time,
locale_id,
transcript_source_setting;