Class: AWS.LexModelBuildingService
- Inherits:
-
AWS.Service
- Object
- AWS.Service
- AWS.LexModelBuildingService
- Identifier:
- lexmodelbuildingservice
- API Version:
- 2017-04-19
- Defined in:
- (unknown)
Overview
Constructs a service interface object. Each API operation is exposed as a function on service.
Service Description
Amazon Lex is an AWS service for building conversational voice and text interfaces. Use these actions to create, update, and delete conversational bots for new and existing client applications.
Sending a Request Using LexModelBuildingService
var lexmodelbuildingservice = new AWS.LexModelBuildingService();
lexmodelbuildingservice.createBotVersion(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 LexModelBuildingService object uses this specific API, you can
construct the object by passing the apiVersion option to the constructor:
var lexmodelbuildingservice = new AWS.LexModelBuildingService({apiVersion: '2017-04-19'});
You can also set the API version globally in AWS.config.apiVersions using
the lexmodelbuildingservice service identifier:
AWS.config.apiVersions = {
lexmodelbuildingservice: '2017-04-19',
// other service API versions
};
var lexmodelbuildingservice = new AWS.LexModelBuildingService();
Constructor Summary collapse
-
new AWS.LexModelBuildingService(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
-
createBotVersion(params = {}, callback) ⇒ AWS.Request
Creates a new version of the bot based on the
$LATESTversion. -
createIntentVersion(params = {}, callback) ⇒ AWS.Request
Creates a new version of an intent based on the
$LATESTversion of the intent. -
createSlotTypeVersion(params = {}, callback) ⇒ AWS.Request
Creates a new version of a slot type based on the
$LATESTversion of the specified slot type. -
deleteBot(params = {}, callback) ⇒ AWS.Request
Deletes all versions of the bot, including the
$LATESTversion. -
deleteBotAlias(params = {}, callback) ⇒ AWS.Request
Deletes an alias for the specified bot.
-
deleteBotChannelAssociation(params = {}, callback) ⇒ AWS.Request
Deletes the association between an Amazon Lex bot and a messaging platform.
This operation requires permission for the
.lex:DeleteBotChannelAssociationaction. -
deleteBotVersion(params = {}, callback) ⇒ AWS.Request
Deletes a specific version of a bot.
-
deleteIntent(params = {}, callback) ⇒ AWS.Request
Deletes all versions of the intent, including the
$LATESTversion. -
deleteIntentVersion(params = {}, callback) ⇒ AWS.Request
Deletes a specific version of an intent.
-
deleteSlotType(params = {}, callback) ⇒ AWS.Request
Deletes all versions of the slot type, including the
$LATESTversion. -
deleteSlotTypeVersion(params = {}, callback) ⇒ AWS.Request
Deletes a specific version of a slot type.
-
deleteUtterances(params = {}, callback) ⇒ AWS.Request
Deletes stored utterances.
Amazon Lex stores the utterances that users send to your bot.
-
getBot(params = {}, callback) ⇒ AWS.Request
Returns metadata information for a specific bot.
-
getBotAlias(params = {}, callback) ⇒ AWS.Request
Returns information about an Amazon Lex bot alias.
-
getBotAliases(params = {}, callback) ⇒ AWS.Request
Returns a list of aliases for a specified Amazon Lex bot.
This operation requires permissions for the
.lex:GetBotAliasesaction. -
getBotChannelAssociation(params = {}, callback) ⇒ AWS.Request
Returns information about the association between an Amazon Lex bot and a messaging platform.
This operation requires permissions for the
.lex:GetBotChannelAssociationaction. -
getBotChannelAssociations(params = {}, callback) ⇒ AWS.Request
Returns a list of all of the channels associated with the specified bot.
-
getBots(params = {}, callback) ⇒ AWS.Request
Returns bot information as follows:
-
If you provide the
nameContainsfield, the response includes information for the$LATESTversion of all bots whose name contains the specified string. -
If you don't specify the
nameContainsfield, the operation returns information about the$LATESTversion of all of your bots.
This operation requires permission for the
.lex:GetBotsaction. -
-
getBotVersions(params = {}, callback) ⇒ AWS.Request
Gets information about all of the versions of a bot.
The
GetBotVersionsoperation returns aBotMetadataobject for each version of a bot. -
getBuiltinIntent(params = {}, callback) ⇒ AWS.Request
Returns information about a built-in intent.
This operation requires permission for the
.lex:GetBuiltinIntentaction. -
getBuiltinIntents(params = {}, callback) ⇒ AWS.Request
Gets a list of built-in intents that meet the specified criteria.
This operation requires permission for the
.lex:GetBuiltinIntentsaction. -
getBuiltinSlotTypes(params = {}, callback) ⇒ AWS.Request
Gets a list of built-in slot types that meet the specified criteria.
For a list of built-in slot types, see Slot Type Reference in the Alexa Skills Kit.
This operation requires permission for the
.lex:GetBuiltInSlotTypesaction. -
getExport(params = {}, callback) ⇒ AWS.Request
Exports the contents of a Amazon Lex resource in a specified format.
-
getImport(params = {}, callback) ⇒ AWS.Request
Gets information about an import job started with the
StartImportoperation..
-
getIntent(params = {}, callback) ⇒ AWS.Request
Returns information about an intent.
-
getIntents(params = {}, callback) ⇒ AWS.Request
Returns intent information as follows:
-
If you specify the
nameContainsfield, returns the$LATESTversion of all intents that contain the specified string. -
If you don't specify the
nameContainsfield, returns information about the$LATESTversion of all intents.
-
-
getIntentVersions(params = {}, callback) ⇒ AWS.Request
Gets information about all of the versions of an intent.
The
GetIntentVersionsoperation returns anIntentMetadataobject for each version of an intent. -
getMigration(params = {}, callback) ⇒ AWS.Request
Provides details about an ongoing or complete migration from an Amazon Lex V1 bot to an Amazon Lex V2 bot.
-
getMigrations(params = {}, callback) ⇒ AWS.Request
Gets a list of migrations between Amazon Lex V1 and Amazon Lex V2.
.
-
getSlotType(params = {}, callback) ⇒ AWS.Request
Returns information about a specific version of a slot type.
-
getSlotTypes(params = {}, callback) ⇒ AWS.Request
Returns slot type information as follows:
-
If you specify the
nameContainsfield, returns the$LATESTversion of all slot types that contain the specified string. -
If you don't specify the
nameContainsfield, returns information about the$LATESTversion of all slot types.
-
-
getSlotTypeVersions(params = {}, callback) ⇒ AWS.Request
Gets information about all versions of a slot type.
The
GetSlotTypeVersionsoperation returns aSlotTypeMetadataobject for each version of a slot type. -
getUtterancesView(params = {}, callback) ⇒ AWS.Request
Use the
GetUtterancesViewoperation to get information about the utterances that your users have made to your bot. -
listTagsForResource(params = {}, callback) ⇒ AWS.Request
Gets a list of tags associated with the specified resource.
-
putBot(params = {}, callback) ⇒ AWS.Request
Creates an Amazon Lex conversational bot or replaces an existing bot.
-
putBotAlias(params = {}, callback) ⇒ AWS.Request
Creates an alias for the specified version of the bot or replaces an alias for the specified bot.
-
putIntent(params = {}, callback) ⇒ AWS.Request
Creates an intent or replaces an existing intent.
To define the interaction between the user and your bot, you use one or more intents.
-
putSlotType(params = {}, callback) ⇒ AWS.Request
Creates a custom slot type or replaces an existing custom slot type.
To create a custom slot type, specify a name for the slot type and a set of enumeration values, which are the values that a slot of this type can assume.
-
startImport(params = {}, callback) ⇒ AWS.Request
Starts a job to import a resource to Amazon Lex.
.
-
startMigration(params = {}, callback) ⇒ AWS.Request
Starts migrating a bot from Amazon Lex V1 to Amazon Lex V2.
-
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.
.
Methods inherited from AWS.Service
makeRequest, makeUnauthenticatedRequest, waitFor, setupRequestListeners, defineService
Constructor Details
new AWS.LexModelBuildingService(options = {}) ⇒ Object
Constructs a service object. This object has one method for each API operation.
Property Details
Method Details
createBotVersion(params = {}, callback) ⇒ AWS.Request
Creates a new version of the bot based on the $LATEST version. If the $LATEST 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.
$LATEST version of the bot. You can't update the numbered versions that you create with the CreateBotVersion operation. When you create the first version of a bot, Amazon Lex sets the version to 1. Subsequent versions increment by 1. For more information, see versioning-intro.
This operation requires permission for the lex:CreateBotVersion action.
createIntentVersion(params = {}, callback) ⇒ AWS.Request
Creates a new version of an intent based on the $LATEST version of the intent. If the $LATEST version of this intent hasn't changed since you last updated it, Amazon Lex doesn't create a new version. It returns the last version you created.
$LATEST version of the intent. You can't update the numbered versions that you create with the CreateIntentVersion operation. When you create a version of an intent, Amazon Lex sets the version to 1. Subsequent versions increment by 1. For more information, see versioning-intro.
This operation requires permissions to perform the lex:CreateIntentVersion action.