Class: AWS.LexModelsV2
- Inherits:
-
AWS.Service
- Object
- AWS.Service
- AWS.LexModelsV2
- Identifier:
- lexmodelsv2
- API Version:
- 2020-08-07
- Defined in:
- (unknown)
Overview
Constructs a service interface object. Each API operation is exposed as a function on service.
Service Description
Sending a Request Using LexModelsV2
var lexmodelsv2 = new AWS.LexModelsV2();
lexmodelsv2.batchCreateCustomVocabularyItem(params, function (err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Locking the API Version
In order to ensure that the LexModelsV2 object uses this specific API, you can
construct the object by passing the apiVersion option to the constructor:
var lexmodelsv2 = new AWS.LexModelsV2({apiVersion: '2020-08-07'});
You can also set the API version globally in AWS.config.apiVersions using
the lexmodelsv2 service identifier:
AWS.config.apiVersions = {
lexmodelsv2: '2020-08-07',
// other service API versions
};
var lexmodelsv2 = new AWS.LexModelsV2();
Waiter Resource States
This service supports a list of resource states that can be polled using the waitFor() method. The resource states are:
botAvailable, botAliasAvailable, botExportCompleted, botImportCompleted, botLocaleBuilt, botLocaleExpressTestingAvailable, botVersionAvailable, botLocaleCreated
Constructor Summary collapse
-
new AWS.LexModelsV2(options = {}) ⇒ Object
constructor
Constructs a service object.
Property Summary collapse
-
endpoint ⇒ AWS.Endpoint
readwrite
An Endpoint object representing the endpoint URL for service requests.
Properties inherited from AWS.Service
Method Summary collapse
-
batchCreateCustomVocabularyItem(params = {}, callback) ⇒ AWS.Request
Create a batch of custom vocabulary items for a given bot locale's custom vocabulary.
.
-
batchDeleteCustomVocabularyItem(params = {}, callback) ⇒ AWS.Request
Delete a batch of custom vocabulary items for a given bot locale's custom vocabulary.
.
-
batchUpdateCustomVocabularyItem(params = {}, callback) ⇒ AWS.Request
Update a batch of custom vocabulary items for a given bot locale's custom vocabulary.
.
-
buildBotLocale(params = {}, callback) ⇒ AWS.Request
Builds a bot, its intents, and its slot types into a specific locale.
-
createBot(params = {}, callback) ⇒ AWS.Request
Creates an Amazon Lex conversational bot.
-
createBotAlias(params = {}, callback) ⇒ AWS.Request
Creates an alias for the specified version of a bot.
-
createBotLocale(params = {}, callback) ⇒ AWS.Request
Creates a locale in the bot.
-
createBotReplica(params = {}, callback) ⇒ AWS.Request
Action to create a replication of the source bot in the secondary region.
.
-
createBotVersion(params = {}, callback) ⇒ AWS.Request
Creates an immutable version of the bot.
-
createExport(params = {}, callback) ⇒ AWS.Request
Creates a zip archive containing the contents of a bot or a bot locale.
-
createIntent(params = {}, callback) ⇒ AWS.Request
Creates an intent.
To define the interaction between the user and your bot, you define one or more intents.
-
createResourcePolicy(params = {}, callback) ⇒ AWS.Request
Creates a new resource policy with the specified policy statements.
.
-
createResourcePolicyStatement(params = {}, callback) ⇒ AWS.Request
Adds a new resource policy statement to a bot or bot alias.
-
createSlot(params = {}, callback) ⇒ AWS.Request
Creates a slot in an intent.
-
createSlotType(params = {}, callback) ⇒ AWS.Request
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.
-
createTestSetDiscrepancyReport(params = {}, callback) ⇒ AWS.Request
Create a report that describes the differences between the bot and the test set.
.
-
createUploadUrl(params = {}, callback) ⇒ AWS.Request
Gets a pre-signed S3 write URL that you use to upload the zip archive when importing a bot or a bot locale.
-
deleteBot(params = {}, callback) ⇒ AWS.Request
Deletes all versions of a bot, including the
Draftversion. -
deleteBotAlias(params = {}, callback) ⇒ AWS.Request
Deletes the specified bot alias.
.
-
deleteBotLocale(params = {}, callback) ⇒ AWS.Request
Removes a locale from a bot.
When you delete a locale, all intents, slots, and slot types defined for the locale are also deleted.
. -
deleteBotReplica(params = {}, callback) ⇒ AWS.Request
The action to delete the replicated bot in the secondary region.
.
-
deleteBotVersion(params = {}, callback) ⇒ AWS.Request
Deletes a specific version of a bot.
-
deleteCustomVocabulary(params = {}, callback) ⇒ AWS.Request
Removes a custom vocabulary from the specified locale in the specified bot.
.
-
deleteExport(params = {}, callback) ⇒ AWS.Request
Removes a previous export and the associated files stored in an S3 bucket.
.
-
deleteImport(params = {}, callback) ⇒ AWS.Request
Removes a previous import and the associated file stored in an S3 bucket.
.
-
deleteIntent(params = {}, callback) ⇒ AWS.Request
Removes the specified intent.
Deleting an intent also deletes the slots associated with the intent.
. -
deleteResourcePolicy(params = {}, callback) ⇒ AWS.Request
Removes an existing policy from a bot or bot alias.
-
deleteResourcePolicyStatement(params = {}, callback) ⇒ AWS.Request
Deletes a policy statement from a resource policy.
-
deleteSlot(params = {}, callback) ⇒ AWS.Request
Deletes the specified slot from an intent.
.
-
deleteSlotType(params = {}, callback) ⇒ AWS.Request
Deletes a slot type from a bot locale.
If a slot is using the slot type, Amazon Lex throws a
ResourceInUseExceptionexception. -
deleteTestSet(params = {}, callback) ⇒ AWS.Request
The action to delete the selected test set.
.
-
deleteUtterances(params = {}, callback) ⇒ AWS.Request
Deletes stored utterances.
Amazon Lex stores the utterances that users send to your bot.
-
describeBot(params = {}, callback) ⇒ AWS.Request
Provides metadata information about a bot.
-
describeBotAlias(params = {}, callback) ⇒ AWS.Request
Get information about a specific bot alias.
.
-
describeBotLocale(params = {}, callback) ⇒ AWS.Request
Describes the settings that a bot has for a specific locale.
-
describeBotRecommendation(params = {}, callback) ⇒ AWS.Request
Provides metadata information about a bot recommendation.
-
describeBotReplica(params = {}, callback) ⇒ AWS.Request
Monitors the bot replication status through the UI console.
.
-
describeBotResourceGeneration(params = {}, callback) ⇒ AWS.Request
Returns information about a request to generate a bot through natural language description, made through the
StartBotResourceAPI. -
describeBotVersion(params = {}, callback) ⇒ AWS.Request
Provides metadata about a version of a bot.
.
-
describeCustomVocabularyMetadata(params = {}, callback) ⇒ AWS.Request
Provides metadata information about a custom vocabulary.
.
-
describeExport(params = {}, callback) ⇒ AWS.Request
Gets information about a specific export.
.
-
describeImport(params = {}, callback) ⇒ AWS.Request
Gets information about a specific import.
.
-
describeIntent(params = {}, callback) ⇒ AWS.Request
Returns metadata about an intent.
.
-
describeResourcePolicy(params = {}, callback) ⇒ AWS.Request
Gets the resource policy and policy revision for a bot or bot alias.
.
-
describeSlot(params = {}, callback) ⇒ AWS.Request
Gets metadata information about a slot.
.
-
describeSlotType(params = {}, callback) ⇒ AWS.Request
Gets metadata information about a slot type.
.
-
describeTestExecution(params = {}, callback) ⇒ AWS.Request
Gets metadata information about the test execution.
.
-
describeTestSet(params = {}, callback) ⇒ AWS.Request
Gets metadata information about the test set.
.
-
describeTestSetDiscrepancyReport(params = {}, callback) ⇒ AWS.Request
Gets metadata information about the test set discrepancy report.
.
-
describeTestSetGeneration(params = {}, callback) ⇒ AWS.Request
Gets metadata information about the test set generation.
.
-
generateBotElement(params = {}, callback) ⇒ AWS.Request
Generates sample utterances for an intent.
.
-
getTestExecutionArtifactsUrl(params = {}, callback) ⇒ AWS.Request
The pre-signed Amazon S3 URL to download the test execution result artifacts.
.
-
listAggregatedUtterances(params = {}, callback) ⇒ AWS.Request
Provides a list of utterances that users have sent to the bot.
Utterances are aggregated by the text of the utterance.
-
listBotAliases(params = {}, callback) ⇒ AWS.Request
Gets a list of aliases for the specified bot.
.
-
listBotAliasReplicas(params = {}, callback) ⇒ AWS.Request
The action to list the replicated bots created from the source bot alias.
.
-
listBotLocales(params = {}, callback) ⇒ AWS.Request
Gets a list of locales for the specified bot.
.
-
listBotRecommendations(params = {}, callback) ⇒ AWS.Request
Get a list of bot recommendations that meet the specified criteria.
.
-
listBotReplicas(params = {}, callback) ⇒ AWS.Request
The action to list the replicated bots.
.
-
listBotResourceGenerations(params = {}, callback) ⇒ AWS.Request
Lists the generation requests made for a bot locale.
.
-
listBots(params = {}, callback) ⇒ AWS.Request
Gets a list of available bots.
.
-
listBotVersionReplicas(params = {}, callback) ⇒ AWS.Request
Contains information about all the versions replication statuses applicable for Global Resiliency.
.
-
listBotVersions(params = {}, callback) ⇒ AWS.Request
Gets information about all of the versions of a bot.
The
ListBotVersionsoperation returns a summary of each version of a bot. -
listBuiltInIntents(params = {}, callback) ⇒ AWS.Request
Gets a list of built-in intents provided by Amazon Lex that you can use in your bot.
-
listBuiltInSlotTypes(params = {}, callback) ⇒ AWS.Request
Gets a list of built-in slot types that meet the specified criteria.
.
-
listCustomVocabularyItems(params = {}, callback) ⇒ AWS.Request
Paginated list of custom vocabulary items for a given bot locale's custom vocabulary.
.
-
listExports(params = {}, callback) ⇒ AWS.Request
Lists the exports for a bot, bot locale, or custom vocabulary.
-
listImports(params = {}, callback) ⇒ AWS.Request
Lists the imports for a bot, bot locale, or custom vocabulary.
-
listIntentMetrics(params = {}, callback) ⇒ AWS.Request
Retrieves summary metrics for the intents in your bot.
-
listIntentPaths(params = {}, callback) ⇒ AWS.Request
Retrieves summary statistics for a path of intents that users take over sessions with your bot.
-
listIntents(params = {}, callback) ⇒ AWS.Request
Get a list of intents that meet the specified criteria.
.
-
listIntentStageMetrics(params = {}, callback) ⇒ AWS.Request
Retrieves summary metrics for the stages within intents in your bot.
-
listRecommendedIntents(params = {}, callback) ⇒ AWS.Request
Gets a list of recommended intents provided by the bot recommendation that you can use in your bot.
-
listSessionAnalyticsData(params = {}, callback) ⇒ AWS.Request
Retrieves a list of metadata for individual user sessions with your bot.
-
listSessionMetrics(params = {}, callback) ⇒ AWS.Request
Retrieves summary metrics for the user sessions with your bot.
-
listSlots(params = {}, callback) ⇒ AWS.Request
Gets a list of slots that match the specified criteria.
.
-
listSlotTypes(params = {}, callback) ⇒ AWS.Request
Gets a list of slot types that match the specified criteria.
.
-
listTagsForResource(params = {}, callback) ⇒ AWS.Request
Gets a list of tags associated with a resource.
-
listTestExecutionResultItems(params = {}, callback) ⇒ AWS.Request
Gets a list of test execution result items.
.
-
listTestExecutions(params = {}, callback) ⇒ AWS.Request
The list of test set executions.
.
-
listTestSetRecords(params = {}, callback) ⇒ AWS.Request
The list of test set records.
.
-
listTestSets(params = {}, callback) ⇒ AWS.Request
The list of the test sets
.
-
listUtteranceAnalyticsData(params = {}, callback) ⇒ AWS.Request
Note: To use this API operation, your IAM role must have permissions to perform the ListAggregatedUtterances operation, which provides access to utterance-related analytics.
- listUtteranceMetrics(params = {}, callback) ⇒ AWS.Request
Note: To use this API operation, your IAM role must have permissions to perform the ListAggregatedUtterances operation, which provides access to utterance-related analytics.- searchAssociatedTranscripts(params = {}, callback) ⇒ AWS.Request
Search for associated transcripts that meet the specified criteria.
.
- startBotRecommendation(params = {}, callback) ⇒ AWS.Request
Use this to provide your transcript data, and to start the bot recommendation process.
.
- startBotResourceGeneration(params = {}, callback) ⇒ AWS.Request
Starts a request for the descriptive bot builder to generate a bot locale configuration based on the prompt you provide it.
- startImport(params = {}, callback) ⇒ AWS.Request
Starts importing a bot, bot locale, or custom vocabulary from a zip archive that you uploaded to an S3 bucket.
.
- startTestExecution(params = {}, callback) ⇒ AWS.Request
The action to start test set execution.
.
- startTestSetGeneration(params = {}, callback) ⇒ AWS.Request
The action to start the generation of test set.
.
- stopBotRecommendation(params = {}, callback) ⇒ AWS.Request
Stop an already running Bot Recommendation request.
.
- tagResource(params = {}, callback) ⇒ AWS.Request
Adds the specified tags to the specified resource.
- untagResource(params = {}, callback) ⇒ AWS.Request
Removes tags from a bot, bot alias, or bot channel.
.
- updateBot(params = {}, callback) ⇒ AWS.Request
Updates the configuration of an existing bot.
- updateBotAlias(params = {}, callback) ⇒ AWS.Request
Updates the configuration of an existing bot alias.
.
- updateBotLocale(params = {}, callback) ⇒ AWS.Request
Updates the settings that a bot has for a specific locale.
.
- updateBotRecommendation(params = {}, callback) ⇒ AWS.Request
Updates an existing bot recommendation request.
.
- updateExport(params = {}, callback) ⇒ AWS.Request
Updates the password used to protect an export zip archive.
The password is not required.
- updateIntent(params = {}, callback) ⇒ AWS.Request
Updates the settings for an intent.
.
- updateResourcePolicy(params = {}, callback) ⇒ AWS.Request
Replaces the existing resource policy for a bot or bot alias with a new one.
- updateSlot(params = {}, callback) ⇒ AWS.Request
Updates the settings for a slot.
.
- updateSlotType(params = {}, callback) ⇒ AWS.Request
Updates the configuration of an existing slot type.
.
- updateTestSet(params = {}, callback) ⇒ AWS.Request
The action to update the test set.
.
- waitFor(state, params = {}, callback) ⇒ AWS.Request
Waits for a given LexModelsV2 resource.
Methods inherited from AWS.Service
makeRequest, makeUnauthenticatedRequest, setupRequestListeners, defineService
Constructor Details
new AWS.LexModelsV2(options = {}) ⇒ Object
Constructs a service object. This object has one method for each API operation.
Property Details
- listUtteranceMetrics(params = {}, callback) ⇒ AWS.Request