Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

LexModelsV2

import { LexModelsV2 } from "https://aws-api.deno.dev/v0.4/services/lexmodelsv2.ts?docs=full";
class LexModelsV2 {
constructor(apiFactory: client.ApiFactory);
async batchCreateCustomVocabularyItem(params: BatchCreateCustomVocabularyItemRequest, opts?: client.RequestOptions): Promise<BatchCreateCustomVocabularyItemResponse>;
async batchDeleteCustomVocabularyItem(params: BatchDeleteCustomVocabularyItemRequest, opts?: client.RequestOptions): Promise<BatchDeleteCustomVocabularyItemResponse>;
async batchUpdateCustomVocabularyItem(params: BatchUpdateCustomVocabularyItemRequest, opts?: client.RequestOptions): Promise<BatchUpdateCustomVocabularyItemResponse>;
async buildBotLocale(params: BuildBotLocaleRequest, opts?: client.RequestOptions): Promise<BuildBotLocaleResponse>;
async createBot(params: CreateBotRequest, opts?: client.RequestOptions): Promise<CreateBotResponse>;
async createBotAlias(params: CreateBotAliasRequest, opts?: client.RequestOptions): Promise<CreateBotAliasResponse>;
async createBotLocale(params: CreateBotLocaleRequest, opts?: client.RequestOptions): Promise<CreateBotLocaleResponse>;
async createBotVersion(params: CreateBotVersionRequest, opts?: client.RequestOptions): Promise<CreateBotVersionResponse>;
async createExport(params: CreateExportRequest, opts?: client.RequestOptions): Promise<CreateExportResponse>;
async createIntent(params: CreateIntentRequest, opts?: client.RequestOptions): Promise<CreateIntentResponse>;
async createResourcePolicy(params: CreateResourcePolicyRequest, opts?: client.RequestOptions): Promise<CreateResourcePolicyResponse>;
async createResourcePolicyStatement(params: CreateResourcePolicyStatementRequest, opts?: client.RequestOptions): Promise<CreateResourcePolicyStatementResponse>;
async createSlot(params: CreateSlotRequest, opts?: client.RequestOptions): Promise<CreateSlotResponse>;
async createSlotType(params: CreateSlotTypeRequest, opts?: client.RequestOptions): Promise<CreateSlotTypeResponse>;
async createUploadUrl(opts?: client.RequestOptions): Promise<CreateUploadUrlResponse>;
async deleteBot(params: DeleteBotRequest, opts?: client.RequestOptions): Promise<DeleteBotResponse>;
async deleteBotAlias(params: DeleteBotAliasRequest, opts?: client.RequestOptions): Promise<DeleteBotAliasResponse>;
async deleteBotLocale(params: DeleteBotLocaleRequest, opts?: client.RequestOptions): Promise<DeleteBotLocaleResponse>;
async deleteBotVersion(params: DeleteBotVersionRequest, opts?: client.RequestOptions): Promise<DeleteBotVersionResponse>;
async deleteCustomVocabulary(params: DeleteCustomVocabularyRequest, opts?: client.RequestOptions): Promise<DeleteCustomVocabularyResponse>;
async deleteExport(params: DeleteExportRequest, opts?: client.RequestOptions): Promise<DeleteExportResponse>;
async deleteImport(params: DeleteImportRequest, opts?: client.RequestOptions): Promise<DeleteImportResponse>;
async deleteIntent(params: DeleteIntentRequest, opts?: client.RequestOptions): Promise<void>;
async deleteResourcePolicy(params: DeleteResourcePolicyRequest, opts?: client.RequestOptions): Promise<DeleteResourcePolicyResponse>;
async deleteResourcePolicyStatement(params: DeleteResourcePolicyStatementRequest, opts?: client.RequestOptions): Promise<DeleteResourcePolicyStatementResponse>;
async deleteSlot(params: DeleteSlotRequest, opts?: client.RequestOptions): Promise<void>;
async deleteSlotType(params: DeleteSlotTypeRequest, opts?: client.RequestOptions): Promise<void>;
async deleteUtterances(params: DeleteUtterancesRequest, opts?: client.RequestOptions): Promise<void>;
async describeBot(params: DescribeBotRequest, opts?: client.RequestOptions): Promise<DescribeBotResponse>;
async describeBotAlias(params: DescribeBotAliasRequest, opts?: client.RequestOptions): Promise<DescribeBotAliasResponse>;
async describeBotLocale(params: DescribeBotLocaleRequest, opts?: client.RequestOptions): Promise<DescribeBotLocaleResponse>;
async describeBotRecommendation(params: DescribeBotRecommendationRequest, opts?: client.RequestOptions): Promise<DescribeBotRecommendationResponse>;
async describeBotVersion(params: DescribeBotVersionRequest, opts?: client.RequestOptions): Promise<DescribeBotVersionResponse>;
async describeCustomVocabularyMetadata(params: DescribeCustomVocabularyMetadataRequest, opts?: client.RequestOptions): Promise<DescribeCustomVocabularyMetadataResponse>;
async describeExport(params: DescribeExportRequest, opts?: client.RequestOptions): Promise<DescribeExportResponse>;
async describeImport(params: DescribeImportRequest, opts?: client.RequestOptions): Promise<DescribeImportResponse>;
async describeIntent(params: DescribeIntentRequest, opts?: client.RequestOptions): Promise<DescribeIntentResponse>;
async describeResourcePolicy(params: DescribeResourcePolicyRequest, opts?: client.RequestOptions): Promise<DescribeResourcePolicyResponse>;
async describeSlot(params: DescribeSlotRequest, opts?: client.RequestOptions): Promise<DescribeSlotResponse>;
async describeSlotType(params: DescribeSlotTypeRequest, opts?: client.RequestOptions): Promise<DescribeSlotTypeResponse>;
async listAggregatedUtterances(params: ListAggregatedUtterancesRequest, opts?: client.RequestOptions): Promise<ListAggregatedUtterancesResponse>;
async listBotAliases(params: ListBotAliasesRequest, opts?: client.RequestOptions): Promise<ListBotAliasesResponse>;
async listBotLocales(params: ListBotLocalesRequest, opts?: client.RequestOptions): Promise<ListBotLocalesResponse>;
async listBotRecommendations(params: ListBotRecommendationsRequest, opts?: client.RequestOptions): Promise<ListBotRecommendationsResponse>;
async listBots(params?: ListBotsRequest, opts?: client.RequestOptions): Promise<ListBotsResponse>;
async listBotVersions(params: ListBotVersionsRequest, opts?: client.RequestOptions): Promise<ListBotVersionsResponse>;
async listBuiltInIntents(params: ListBuiltInIntentsRequest, opts?: client.RequestOptions): Promise<ListBuiltInIntentsResponse>;
async listBuiltInSlotTypes(params: ListBuiltInSlotTypesRequest, opts?: client.RequestOptions): Promise<ListBuiltInSlotTypesResponse>;
async listCustomVocabularyItems(params: ListCustomVocabularyItemsRequest, opts?: client.RequestOptions): Promise<ListCustomVocabularyItemsResponse>;
async listExports(params?: ListExportsRequest, opts?: client.RequestOptions): Promise<ListExportsResponse>;
async listImports(params?: ListImportsRequest, opts?: client.RequestOptions): Promise<ListImportsResponse>;
async listIntents(params: ListIntentsRequest, opts?: client.RequestOptions): Promise<ListIntentsResponse>;
async listRecommendedIntents(params: ListRecommendedIntentsRequest, opts?: client.RequestOptions): Promise<ListRecommendedIntentsResponse>;
async listSlots(params: ListSlotsRequest, opts?: client.RequestOptions): Promise<ListSlotsResponse>;
async listSlotTypes(params: ListSlotTypesRequest, opts?: client.RequestOptions): Promise<ListSlotTypesResponse>;
async listTagsForResource(params: ListTagsForResourceRequest, opts?: client.RequestOptions): Promise<ListTagsForResourceResponse>;
async searchAssociatedTranscripts(params: SearchAssociatedTranscriptsRequest, opts?: client.RequestOptions): Promise<SearchAssociatedTranscriptsResponse>;
async startBotRecommendation(params: StartBotRecommendationRequest, opts?: client.RequestOptions): Promise<StartBotRecommendationResponse>;
async startImport(params: StartImportRequest, opts?: client.RequestOptions): Promise<StartImportResponse>;
async stopBotRecommendation(params: StopBotRecommendationRequest, opts?: client.RequestOptions): Promise<StopBotRecommendationResponse>;
async tagResource(params: TagResourceRequest, opts?: client.RequestOptions): Promise<void>;
async untagResource(params: UntagResourceRequest, opts?: client.RequestOptions): Promise<void>;
async updateBot(params: UpdateBotRequest, opts?: client.RequestOptions): Promise<UpdateBotResponse>;
async updateBotAlias(params: UpdateBotAliasRequest, opts?: client.RequestOptions): Promise<UpdateBotAliasResponse>;
async updateBotLocale(params: UpdateBotLocaleRequest, opts?: client.RequestOptions): Promise<UpdateBotLocaleResponse>;
async updateBotRecommendation(params: UpdateBotRecommendationRequest, opts?: client.RequestOptions): Promise<UpdateBotRecommendationResponse>;
async updateExport(params: UpdateExportRequest, opts?: client.RequestOptions): Promise<UpdateExportResponse>;
async updateIntent(params: UpdateIntentRequest, opts?: client.RequestOptions): Promise<UpdateIntentResponse>;
async updateResourcePolicy(params: UpdateResourcePolicyRequest, opts?: client.RequestOptions): Promise<UpdateResourcePolicyResponse>;
async updateSlot(params: UpdateSlotRequest, opts?: client.RequestOptions): Promise<UpdateSlotResponse>;
async updateSlotType(params: UpdateSlotTypeRequest, opts?: client.RequestOptions): Promise<UpdateSlotTypeResponse>;
async waitForBotAliasAvailable(params: DescribeBotAliasRequest, opts?: client.RequestOptions): Promise<DescribeBotAliasResponse>;
async waitForBotAvailable(params: DescribeBotRequest, opts?: client.RequestOptions): Promise<DescribeBotResponse>;
async waitForBotExportCompleted(params: DescribeExportRequest, opts?: client.RequestOptions): Promise<DescribeExportResponse>;
async waitForBotImportCompleted(params: DescribeImportRequest, opts?: client.RequestOptions): Promise<DescribeImportResponse>;
async waitForBotLocaleBuilt(params: DescribeBotLocaleRequest, opts?: client.RequestOptions): Promise<DescribeBotLocaleResponse>;
async waitForBotLocaleCreated(params: DescribeBotLocaleRequest, opts?: client.RequestOptions): Promise<DescribeBotLocaleResponse>;
async waitForBotLocaleExpressTestingAvailable(params: DescribeBotLocaleRequest, opts?: client.RequestOptions): Promise<DescribeBotLocaleResponse>;
async waitForBotVersionAvailable(params: DescribeBotVersionRequest, opts?: client.RequestOptions): Promise<DescribeBotVersionResponse>;
 
static ApiMetadata: client.ApiMetadata;
}

§Constructors

§
new LexModelsV2(apiFactory: client.ApiFactory)
[src]

§Methods

§

Create a batch of custom vocabulary items for a given bot locale's custom vocabulary.

§

Delete a batch of custom vocabulary items for a given bot locale's custom vocabulary.

§

Update a batch of custom vocabulary items for a given bot locale's custom vocabulary.

§

Builds a bot, its intents, and its slot types into a specific locale. A bot can be built into multiple locales. At runtime the locale is used to choose a specific build of the bot.

§

Creates an Amazon Lex conversational bot.

§

Creates an alias for the specified version of a bot. Use an alias to enable you to change the version of a bot without updating applications that use the bot.

For example, you can create an alias called "PROD" that your applications use to call the Amazon Lex bot.

§

Creates a locale in the bot. The locale contains the intents and slot types that the bot uses in conversations with users in the specified language and locale. You must add a locale to a bot before you can add intents and slot types to the bot.

§

Creates a new version of the bot based on the DRAFT version. If the DRAFT version of this resource hasn't changed since you created the last version, Amazon Lex doesn't create a new version, it returns the last created version.

When you create the first version of a bot, Amazon Lex sets the version to 1. Subsequent versions increment by 1.

§

Creates a zip archive containing the contents of a bot or a bot locale. The archive contains a directory structure that contains JSON files that define the bot.

You can create an archive that contains the complete definition of a bot, or you can specify that the archive contain only the definition of a single bot locale.

For more information about exporting bots, and about the structure of the export archive, see Importing and exporting bots

§

Creates an intent.

To define the interaction between the user and your bot, you define one or more intents. For example, for a pizza ordering bot you would create an OrderPizza intent.

When you create an intent, you must provide a name. You can optionally provide the following:

  • Sample utterances. For example, "I want to order a pizza" and "Can I order a pizza." You can't provide utterances for built-in intents.
  • Information to be gathered. You specify slots for the information that you bot requests from the user. You can specify standard slot types, such as date and time, or custom slot types for your application.
  • How the intent is fulfilled. You can provide a Lambda function or configure the intent to return the intent information to your client application. If you use a Lambda function, Amazon Lex invokes the function when all of the intent information is available.
  • A confirmation prompt to send to the user to confirm an intent. For example, "Shall I order your pizza?"
  • A conclusion statement to send to the user after the intent is fulfilled. For example, "I ordered your pizza."
  • A follow-up prompt that asks the user for additional activity. For example, "Do you want a drink with your pizza?"
§

Creates a new resource policy with the specified policy statements.

§

Adds a new resource policy statement to a bot or bot alias. If a resource policy exists, the statement is added to the current resource policy. If a policy doesn't exist, a new policy is created.

You can't create a resource policy statement that allows cross-account access.

§

Creates a slot in an intent. A slot is a variable needed to fulfill an intent. For example, an OrderPizza intent might need slots for size, crust, and number of pizzas. For each slot, you define one or more utterances that Amazon Lex uses to elicit a response from the user.

§

Creates a custom slot type

To create a custom slot type, specify a name for the slot type and a set of enumeration values, the values that a slot of this type can assume.

§
createUploadUrl(opts?: client.RequestOptions): Promise<CreateUploadUrlResponse>
[src]

Gets a pre-signed S3 write URL that you use to upload the zip archive when importing a bot or a bot locale.

§

Deletes all versions of a bot, including the Draft version. To delete a specific version, use the DeleteBotVersion operation.

When you delete a bot, all of the resources contained in the bot are also deleted. Deleting a bot removes all locales, intents, slot, and slot types defined for the bot.

If a bot has an alias, the DeleteBot operation returns a ResourceInUseException exception. If you want to delete the bot and the alias, set the skipResourceInUseCheck parameter to true.

§

Deletes the specified bot alias.

§

Removes a locale from a bot.

When you delete a locale, all intents, slots, and slot types defined for the locale are also deleted.

§

Deletes a specific version of a bot. To delete all versions of a bot, use the DeleteBot operation.

§

Removes a custom vocabulary from the specified locale in the specified bot.

§

Removes a previous export and the associated files stored in an S3 bucket.

§

Removes a previous import and the associated file stored in an S3 bucket.

§
deleteIntent(params: DeleteIntentRequest, opts?: client.RequestOptions): Promise<void>
[src]

Removes the specified intent.

Deleting an intent also deletes the slots associated with the intent.

§

Removes an existing policy from a bot or bot alias. If the resource doesn't have a policy attached, Amazon Lex returns an exception.

§

Deletes a policy statement from a resource policy. If you delete the last statement from a policy, the policy is deleted. If you specify a statement ID that doesn't exist in the policy, or if the bot or bot alias doesn't have a policy attached, Amazon Lex returns an exception.

§
deleteSlot(params: DeleteSlotRequest, opts?: client.RequestOptions): Promise<void>
[src]

Deletes the specified slot from an intent.

§
deleteSlotType(params: DeleteSlotTypeRequest, opts?: client.RequestOptions): Promise<void>
[src]

Deletes a slot type from a bot locale.

If a slot is using the slot type, Amazon Lex throws a ResourceInUseException exception. To avoid the exception, set the skipResourceInUseCheck parameter to true.

§
deleteUtterances(params: DeleteUtterancesRequest, opts?: client.RequestOptions): Promise<void>
[src]

Deletes stored utterances.

Amazon Lex stores the utterances that users send to your bot. Utterances are stored for 15 days for use with the ListAggregatedUtterances operation, and then stored indefinitely for use in improving the ability of your bot to respond to user input..

Use the DeleteUtterances operation to manually delete utterances for a specific session. When you use the DeleteUtterances operation, utterances stored for improving your bot's ability to respond to user input are deleted immediately. Utterances stored for use with the ListAggregatedUtterances operation are deleted after 15 days.

§

Provides metadata information about a bot.

§

Get information about a specific bot alias.

§

Describes the settings that a bot has for a specific locale.

§

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.

§

Provides metadata about a version of a bot.

§

Provides metadata information about a custom vocabulary.

§

Gets information about a specific export.

§

Gets information about a specific import.

§

Returns metadata about an intent.

§

Gets the resource policy and policy revision for a bot or bot alias.

§

Gets metadata information about a slot.

§

Gets metadata information about a slot type.

§

Provides a list of utterances that users have sent to the bot.

Utterances are aggregated by the text of the utterance. For example, all instances where customers used the phrase "I want to order pizza" are aggregated into the same line in the response.

You can see both detected utterances and missed utterances. A detected utterance is where the bot properly recognized the utterance and activated the associated intent. A missed utterance was not recognized by the bot and didn't activate an intent.

Utterances can be aggregated for a bot alias or for a bot version, but not both at the same time.

Utterances statistics are not generated under the following conditions:

  • The childDirected field was set to true when the bot was created.
  • You are using slot obfuscation with one or more slots.
  • You opted out of participating in improving Amazon Lex.
§

Gets a list of aliases for the specified bot.

§

Gets a list of locales for the specified bot.

§

Get a list of bot recommendations that meet the specified criteria.

§
listBots(params?: ListBotsRequest, opts?: client.RequestOptions): Promise<ListBotsResponse>
[src]

Gets a list of available bots.

§

Gets information about all of the versions of a bot.

The ListBotVersions operation returns a summary of each version of a bot. For example, if a bot has three numbered versions, the ListBotVersions operation returns for summaries, one for each numbered version and one for the DRAFT version.

The ListBotVersions operation always returns at least one version, the DRAFT version.

§

Gets a list of built-in intents provided by Amazon Lex that you can use in your bot.

To use a built-in intent as a the base for your own intent, include the built-in intent signature in the parentIntentSignature parameter when you call the CreateIntent operation. For more information, see CreateIntent.

§

Gets a list of built-in slot types that meet the specified criteria.

§

Paginated list of custom vocabulary items for a given bot locale's custom vocabulary.

§
listExports(params?: ListExportsRequest, opts?: client.RequestOptions): Promise<ListExportsResponse>
[src]

Lists the exports for a bot, bot locale, or custom vocabulary. Exports are kept in the list for 7 days.

§
listImports(params?: ListImportsRequest, opts?: client.RequestOptions): Promise<ListImportsResponse>
[src]

Lists the imports for a bot, bot locale, or custom vocabulary. Imports are kept in the list for 7 days.

§

Get a list of intents that meet the specified criteria.

§

Gets a list of recommended intents provided by the bot recommendation that you can use in your bot. Intents in the response are ordered by relevance.

§

Gets a list of slots that match the specified criteria.

§

Gets a list of slot types that match the specified criteria.

§

Gets a list of tags associated with a resource. Only bots, bot aliases, and bot channels can have tags associated with them.

§

Search for associated transcripts that meet the specified criteria.

§

Use this to provide your transcript data, and to start the bot recommendation process.

§

Starts importing a bot, bot locale, or custom vocabulary from a zip archive that you uploaded to an S3 bucket.

§

Stop an already running Bot Recommendation request.

§
tagResource(params: TagResourceRequest, opts?: client.RequestOptions): Promise<void>
[src]

Adds the specified tags to the specified resource. If a tag key already exists, the existing value is replaced with the new value.

§
untagResource(params: UntagResourceRequest, opts?: client.RequestOptions): Promise<void>
[src]

Removes tags from a bot, bot alias, or bot channel.

§

Updates the configuration of an existing bot.

§

Updates the configuration of an existing bot alias.

§

Updates the settings that a bot has for a specific locale.

§

Updates an existing bot recommendation request.

§

Updates the password used to protect an export zip archive.

The password is not required. If you don't supply a password, Amazon Lex generates a zip file that is not protected by a password. This is the archive that is available at the pre-signed S3 URL provided by the DescribeExport operation.

§

Updates the settings for an intent.

§

Replaces the existing resource policy for a bot or bot alias with a new one. If the policy doesn't exist, Amazon Lex returns an exception.

§

Updates the settings for a slot.

§

Updates the configuration of an existing slot type.

§
waitForBotAliasAvailable(params: DescribeBotAliasRequest, opts?: client.RequestOptions): Promise<DescribeBotAliasResponse>
[src]

Wait until a bot alias is available Checks state up to 35 times, 10 seconds apart (about 6 minutes max wait time).

§
waitForBotAvailable(params: DescribeBotRequest, opts?: client.RequestOptions): Promise<DescribeBotResponse>
[src]

Wait until a bot is available Checks state up to 35 times, 10 seconds apart (about 6 minutes max wait time).

§
waitForBotExportCompleted(params: DescribeExportRequest, opts?: client.RequestOptions): Promise<DescribeExportResponse>
[src]

Wait until a bot has been exported Checks state up to 35 times, 10 seconds apart (about 6 minutes max wait time).

§
waitForBotImportCompleted(params: DescribeImportRequest, opts?: client.RequestOptions): Promise<DescribeImportResponse>
[src]

Wait until a bot has been imported Checks state up to 35 times, 10 seconds apart (about 6 minutes max wait time).

§
waitForBotLocaleBuilt(params: DescribeBotLocaleRequest, opts?: client.RequestOptions): Promise<DescribeBotLocaleResponse>
[src]

Wait until a bot locale is built Checks state up to 35 times, 10 seconds apart (about 6 minutes max wait time).

§
waitForBotLocaleCreated(params: DescribeBotLocaleRequest, opts?: client.RequestOptions): Promise<DescribeBotLocaleResponse>
[src]

Wait unit a bot locale is created Checks state up to 35 times, 10 seconds apart (about 6 minutes max wait time).

§
waitForBotLocaleExpressTestingAvailable(params: DescribeBotLocaleRequest, opts?: client.RequestOptions): Promise<DescribeBotLocaleResponse>
[src]

Wait until a bot locale build is ready for express testing Checks state up to 35 times, 10 seconds apart (about 6 minutes max wait time).

§
waitForBotVersionAvailable(params: DescribeBotVersionRequest, opts?: client.RequestOptions): Promise<DescribeBotVersionResponse>
[src]

Wait until a bot version is available Checks state up to 35 times, 10 seconds apart (about 6 minutes max wait time).

§Static Properties