Skip to main content

bot_resource_generations

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

Overview

Namebot_resource_generations
TypeResource
Idaws.lexv2_models.bot_resource_generations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
bot_idstringThe unique identifier of the bot for which the generation request was made. (pattern: <code>^[0-9a-zA-Z]+$</code>)
bot_versionstringThe version of the bot for which the generation request was made. (pattern: <code>^(DRAFT|[0-9]+)$</code>)
creation_date_timestring (date-time)The date and time at which the item was generated.
failure_reasonsarrayA list of reasons why the generation of bot resources through natural language description failed.
generated_bot_locale_urlstringThe Amazon S3 location of the generated bot locale configuration.
generation_idstringThe generation ID for which to return the generation details. (pattern: <code>^[0-9a-zA-Z]+$</code>)
generation_input_promptstringThe prompt used in the generation request.
generation_statusstringThe status of the generation request. (Failed, Complete, InProgress)
last_updated_date_timestring (date-time)The date and time at which the generated item was updated.
locale_idstringThe locale of the bot for which the generation request was made.
model_arnstringThe ARN of the model used to generate the bot resources. (pattern: <code>^arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}::foundation-model/[a-z0-9-]{1,63}[.]{1}([a-z0-9-]{1,63}[.]){0,2}[a-z0-9-]{1,63}([:][a-z0-9-]{1,63}){0,2}$</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_bot_resource_generationselectbot_id, bot_version, locale_id, generation_id, regionReturns information about a request to generate a bot through natural language description, made through the StartBotResource API. Use the generatedBotLocaleUrl to retrieve the Amazon S3 object containing the bot locale configuration. You can then modify and import this configuration.
list_bot_resource_generationsselectbot_id, bot_version, locale_id, regionLists the generation requests made for a bot locale.

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 whose generation requests you want to view.
bot_versionstringThe version of the bot whose generation requests you want to view.
generation_idstringThe unique identifier of the generation request for which to return the generation details.
locale_idstringThe locale of the bot whose generation requests you want to view.
regionstringAWS region (default: us-east-1)

SELECT examples

Returns information about a request to generate a bot through natural language description, made through the StartBotResource API. Use the generatedBotLocaleUrl to retrieve the Amazon S3 object containing the bot locale configuration. You can then modify and import this configuration.

SELECT
bot_id,
bot_version,
creation_date_time,
failure_reasons,
generated_bot_locale_url,
generation_id,
generation_input_prompt,
generation_status,
last_updated_date_time,
locale_id,
model_arn
FROM aws.lexv2_models.bot_resource_generations
WHERE bot_id = '{{ bot_id }}' -- required
AND bot_version = '{{ bot_version }}' -- required
AND locale_id = '{{ locale_id }}' -- required
AND generation_id = '{{ generation_id }}' -- required
AND region = '{{ region }}' -- required
;