LexModelBuildingService class
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.
Constructors
- LexModelBuildingService({required String region, AwsClientCredentials? credentials, AwsClientCredentialsProvider? credentialsProvider, Client? client, String? endpointUrl})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
close(
) → void - Closes the internal HTTP client if none was provided at creation. If a client was passed as a constructor argument, this becomes a noop.
-
createBotVersion(
{required String name, String? checksum}) → Future< CreateBotVersionResponse> -
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. When you create the first version of a bot, Amazon Lex sets the version to -
createIntentVersion(
{required String name, String? checksum}) → Future< CreateIntentVersionResponse> -
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. 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. -
createSlotTypeVersion(
{required String name, String? checksum}) → Future< CreateSlotTypeVersionResponse> -
Creates a new version of a slot type based on the
$LATEST
version of the specified slot type. If the$LATEST
version of this resource has not changed since the last version that you created, Amazon Lex doesn't create a new version. It returns the last version that you created. When you create a version of a slot type, Amazon Lex sets the version to -
deleteBot(
{required String name}) → Future< void> -
Deletes all versions of the bot, including the
$LATEST
version. To delete a specific version of the bot, use the DeleteBotVersion operation. TheDeleteBot
operation doesn't immediately remove the bot schema. Instead, it is marked for deletion and removed later. -
deleteBotAlias(
{required String botName, required String name}) → Future< void> - Deletes an alias for the specified bot.
-
deleteBotChannelAssociation(
{required String botAlias, required String botName, required String name}) → Future< void> - Deletes the association between an Amazon Lex bot and a messaging platform.
-
deleteBotVersion(
{required String name, required String version}) → Future< void> - Deletes a specific version of a bot. To delete all versions of a bot, use the DeleteBot operation.
-
deleteIntent(
{required String name}) → Future< void> -
Deletes all versions of the intent, including the
$LATEST
version. To delete a specific version of the intent, use the DeleteIntentVersion operation. -
deleteIntentVersion(
{required String name, required String version}) → Future< void> - Deletes a specific version of an intent. To delete all versions of a intent, use the DeleteIntent operation.
-
deleteSlotType(
{required String name}) → Future< void> -
Deletes all versions of the slot type, including the
$LATEST
version. To delete a specific version of the slot type, use the DeleteSlotTypeVersion operation. -
deleteSlotTypeVersion(
{required String name, required String version}) → Future< void> - Deletes a specific version of a slot type. To delete all versions of a slot type, use the DeleteSlotType operation.
-
deleteUtterances(
{required String botName, required String userId}) → Future< void> - Deletes stored utterances.
-
getBot(
{required String name, required String versionOrAlias}) → Future< GetBotResponse> - Returns metadata information for a specific bot. You must provide the bot name and the bot version or alias.
-
getBotAlias(
{required String botName, required String name}) → Future< GetBotAliasResponse> - Returns information about an Amazon Lex bot alias. For more information about aliases, see versioning-aliases.
-
getBotAliases(
{required String botName, int? maxResults, String? nameContains, String? nextToken}) → Future< GetBotAliasesResponse> - Returns a list of aliases for a specified Amazon Lex bot.
-
getBotChannelAssociation(
{required String botAlias, required String botName, required String name}) → Future< GetBotChannelAssociationResponse> - Returns information about the association between an Amazon Lex bot and a messaging platform.
-
getBotChannelAssociations(
{required String botAlias, required String botName, int? maxResults, String? nameContains, String? nextToken}) → Future< GetBotChannelAssociationsResponse> - Returns a list of all of the channels associated with the specified bot.
-
getBots(
{int? maxResults, String? nameContains, String? nextToken}) → Future< GetBotsResponse> - Returns bot information as follows:
-
getBotVersions(
{required String name, int? maxResults, String? nextToken}) → Future< GetBotVersionsResponse> - Gets information about all of the versions of a bot.
-
getBuiltinIntent(
{required String signature}) → Future< GetBuiltinIntentResponse> - Returns information about a built-in intent.
-
getBuiltinIntents(
{Locale? locale, int? maxResults, String? nextToken, String? signatureContains}) → Future< GetBuiltinIntentsResponse> - Gets a list of built-in intents that meet the specified criteria.
-
getBuiltinSlotTypes(
{Locale? locale, int? maxResults, String? nextToken, String? signatureContains}) → Future< GetBuiltinSlotTypesResponse> - Gets a list of built-in slot types that meet the specified criteria.
-
getExport(
{required ExportType exportType, required String name, required ResourceType resourceType, required String version}) → Future< GetExportResponse> - Exports the contents of a Amazon Lex resource in a specified format.
-
getImport(
{required String importId}) → Future< GetImportResponse> -
Gets information about an import job started with the
StartImport
operation. -
getIntent(
{required String name, required String version}) → Future< GetIntentResponse> - Returns information about an intent. In addition to the intent name, you must specify the intent version.
-
getIntents(
{int? maxResults, String? nameContains, String? nextToken}) → Future< GetIntentsResponse> - Returns intent information as follows:
-
getIntentVersions(
{required String name, int? maxResults, String? nextToken}) → Future< GetIntentVersionsResponse> - Gets information about all of the versions of an intent.
-
getSlotType(
{required String name, required String version}) → Future< GetSlotTypeResponse> - Returns information about a specific version of a slot type. In addition to specifying the slot type name, you must specify the slot type version.
-
getSlotTypes(
{int? maxResults, String? nameContains, String? nextToken}) → Future< GetSlotTypesResponse> - Returns slot type information as follows:
-
getSlotTypeVersions(
{required String name, int? maxResults, String? nextToken}) → Future< GetSlotTypeVersionsResponse> - Gets information about all versions of a slot type.
-
getUtterancesView(
{required String botName, required List< String> botVersions, required StatusType statusType}) → Future<GetUtterancesViewResponse> -
Use the
GetUtterancesView
operation to get information about the utterances that your users have made to your bot. You can use this list to tune the utterances that your bot responds to. -
listTagsForResource(
{required String resourceArn}) → Future< ListTagsForResourceResponse> - Gets a list of tags associated with the specified resource. Only bots, bot aliases, and bot channels can have tags associated with them.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
putBot(
{required bool childDirected, required Locale locale, required String name, Statement? abortStatement, String? checksum, Prompt? clarificationPrompt, bool? createVersion, String? description, bool? detectSentiment, bool? enableModelImprovements, int? idleSessionTTLInSeconds, List< Intent> ? intents, double? nluIntentConfidenceThreshold, ProcessBehavior? processBehavior, List<Tag> ? tags, String? voiceId}) → Future<PutBotResponse> -
Creates an Amazon Lex conversational bot or replaces an existing bot. When
you create or update a bot you are only required to specify a name, a
locale, and whether the bot is directed toward children under age 13. You
can use this to add intents later, or to remove intents from an existing
bot. When you create a bot with the minimum information, the bot is
created or updated but Amazon Lex returns the
response
FAILED
. You can build the bot after you add one or more intents. For more information about Amazon Lex bots, see how-it-works. -
putBotAlias(
{required String botName, required String botVersion, required String name, String? checksum, ConversationLogsRequest? conversationLogs, String? description, List< Tag> ? tags}) → Future<PutBotAliasResponse> - Creates an alias for the specified version of the bot or replaces an alias for the specified bot. To change the version of the bot that the alias points to, replace the alias. For more information about aliases, see versioning-aliases.
-
putIntent(
{required String name, String? checksum, Statement? conclusionStatement, Prompt? confirmationPrompt, bool? createVersion, String? description, CodeHook? dialogCodeHook, FollowUpPrompt? followUpPrompt, FulfillmentActivity? fulfillmentActivity, List< InputContext> ? inputContexts, KendraConfiguration? kendraConfiguration, List<OutputContext> ? outputContexts, String? parentIntentSignature, Statement? rejectionStatement, List<String> ? sampleUtterances, List<Slot> ? slots}) → Future<PutIntentResponse> - Creates an intent or replaces an existing intent.
-
putSlotType(
{required String name, String? checksum, bool? createVersion, String? description, List< EnumerationValue> ? enumerationValues, String? parentSlotTypeSignature, List<SlotTypeConfiguration> ? slotTypeConfigurations, SlotValueSelectionStrategy? valueSelectionStrategy}) → Future<PutSlotTypeResponse> - Creates a custom slot type or replaces an existing custom slot type.
-
startImport(
{required MergeStrategy mergeStrategy, required Uint8List payload, required ResourceType resourceType, List< Tag> ? tags}) → Future<StartImportResponse> - Starts a job to import a resource to Amazon Lex.
-
tagResource(
{required String resourceArn, required List< Tag> tags}) → Future<void> - Adds the specified tags to the specified resource. If a tag key already exists, the existing value is replaced with the new value.
-
toString(
) → String -
A string representation of this object.
inherited
-
untagResource(
{required String resourceArn, required List< String> tagKeys}) → Future<void> - Removes tags from a bot, bot alias or bot channel.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited