@Generated(value="software.amazon.awssdk:codegen") public interface LexModelBuildingClient extends SdkClient
builder()
method.
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.
Modifier and Type | Field and Description |
---|---|
static String |
SERVICE_NAME |
Modifier and Type | Method and Description |
---|---|
static LexModelBuildingClientBuilder |
builder()
Create a builder that can be used to configure and create a
LexModelBuildingClient . |
static LexModelBuildingClient |
create()
Create a
LexModelBuildingClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider . |
default CreateBotVersionResponse |
createBotVersion(Consumer<CreateBotVersionRequest.Builder> createBotVersionRequest)
Creates a new version of the bot based on the
$LATEST version. |
default CreateBotVersionResponse |
createBotVersion(CreateBotVersionRequest createBotVersionRequest)
Creates a new version of the bot based on the
$LATEST version. |
default CreateIntentVersionResponse |
createIntentVersion(Consumer<CreateIntentVersionRequest.Builder> createIntentVersionRequest)
Creates a new version of an intent based on the
$LATEST version of the intent. |
default CreateIntentVersionResponse |
createIntentVersion(CreateIntentVersionRequest createIntentVersionRequest)
Creates a new version of an intent based on the
$LATEST version of the intent. |
default CreateSlotTypeVersionResponse |
createSlotTypeVersion(Consumer<CreateSlotTypeVersionRequest.Builder> createSlotTypeVersionRequest)
Creates a new version of a slot type based on the
$LATEST version of the specified slot type. |
default CreateSlotTypeVersionResponse |
createSlotTypeVersion(CreateSlotTypeVersionRequest createSlotTypeVersionRequest)
Creates a new version of a slot type based on the
$LATEST version of the specified slot type. |
default DeleteBotResponse |
deleteBot(Consumer<DeleteBotRequest.Builder> deleteBotRequest)
Deletes all versions of the bot, including the
$LATEST version. |
default DeleteBotResponse |
deleteBot(DeleteBotRequest deleteBotRequest)
Deletes all versions of the bot, including the
$LATEST version. |
default DeleteBotAliasResponse |
deleteBotAlias(Consumer<DeleteBotAliasRequest.Builder> deleteBotAliasRequest)
Deletes an alias for the specified bot.
|
default DeleteBotAliasResponse |
deleteBotAlias(DeleteBotAliasRequest deleteBotAliasRequest)
Deletes an alias for the specified bot.
|
default DeleteBotChannelAssociationResponse |
deleteBotChannelAssociation(Consumer<DeleteBotChannelAssociationRequest.Builder> deleteBotChannelAssociationRequest)
Deletes the association between an Amazon Lex bot and a messaging platform.
|
default DeleteBotChannelAssociationResponse |
deleteBotChannelAssociation(DeleteBotChannelAssociationRequest deleteBotChannelAssociationRequest)
Deletes the association between an Amazon Lex bot and a messaging platform.
|
default DeleteBotVersionResponse |
deleteBotVersion(Consumer<DeleteBotVersionRequest.Builder> deleteBotVersionRequest)
Deletes a specific version of a bot.
|
default DeleteBotVersionResponse |
deleteBotVersion(DeleteBotVersionRequest deleteBotVersionRequest)
Deletes a specific version of a bot.
|
default DeleteIntentResponse |
deleteIntent(Consumer<DeleteIntentRequest.Builder> deleteIntentRequest)
Deletes all versions of the intent, including the
$LATEST version. |
default DeleteIntentResponse |
deleteIntent(DeleteIntentRequest deleteIntentRequest)
Deletes all versions of the intent, including the
$LATEST version. |
default DeleteIntentVersionResponse |
deleteIntentVersion(Consumer<DeleteIntentVersionRequest.Builder> deleteIntentVersionRequest)
Deletes a specific version of an intent.
|
default DeleteIntentVersionResponse |
deleteIntentVersion(DeleteIntentVersionRequest deleteIntentVersionRequest)
Deletes a specific version of an intent.
|
default DeleteSlotTypeResponse |
deleteSlotType(Consumer<DeleteSlotTypeRequest.Builder> deleteSlotTypeRequest)
Deletes all versions of the slot type, including the
$LATEST version. |
default DeleteSlotTypeResponse |
deleteSlotType(DeleteSlotTypeRequest deleteSlotTypeRequest)
Deletes all versions of the slot type, including the
$LATEST version. |
default DeleteSlotTypeVersionResponse |
deleteSlotTypeVersion(Consumer<DeleteSlotTypeVersionRequest.Builder> deleteSlotTypeVersionRequest)
Deletes a specific version of a slot type.
|
default DeleteSlotTypeVersionResponse |
deleteSlotTypeVersion(DeleteSlotTypeVersionRequest deleteSlotTypeVersionRequest)
Deletes a specific version of a slot type.
|
default DeleteUtterancesResponse |
deleteUtterances(Consumer<DeleteUtterancesRequest.Builder> deleteUtterancesRequest)
Deletes stored utterances.
|
default DeleteUtterancesResponse |
deleteUtterances(DeleteUtterancesRequest deleteUtterancesRequest)
Deletes stored utterances.
|
default GetBotResponse |
getBot(Consumer<GetBotRequest.Builder> getBotRequest)
Returns metadata information for a specific bot.
|
default GetBotResponse |
getBot(GetBotRequest getBotRequest)
Returns metadata information for a specific bot.
|
default GetBotAliasResponse |
getBotAlias(Consumer<GetBotAliasRequest.Builder> getBotAliasRequest)
Returns information about an Amazon Lex bot alias.
|
default GetBotAliasResponse |
getBotAlias(GetBotAliasRequest getBotAliasRequest)
Returns information about an Amazon Lex bot alias.
|
default GetBotAliasesResponse |
getBotAliases(Consumer<GetBotAliasesRequest.Builder> getBotAliasesRequest)
Returns a list of aliases for a specified Amazon Lex bot.
|
default GetBotAliasesResponse |
getBotAliases(GetBotAliasesRequest getBotAliasesRequest)
Returns a list of aliases for a specified Amazon Lex bot.
|
default GetBotAliasesIterable |
getBotAliasesPaginator(Consumer<GetBotAliasesRequest.Builder> getBotAliasesRequest)
Returns a list of aliases for a specified Amazon Lex bot.
|
default GetBotAliasesIterable |
getBotAliasesPaginator(GetBotAliasesRequest getBotAliasesRequest)
Returns a list of aliases for a specified Amazon Lex bot.
|
default GetBotChannelAssociationResponse |
getBotChannelAssociation(Consumer<GetBotChannelAssociationRequest.Builder> getBotChannelAssociationRequest)
Returns information about the association between an Amazon Lex bot and a messaging platform.
|
default GetBotChannelAssociationResponse |
getBotChannelAssociation(GetBotChannelAssociationRequest getBotChannelAssociationRequest)
Returns information about the association between an Amazon Lex bot and a messaging platform.
|
default GetBotChannelAssociationsResponse |
getBotChannelAssociations(Consumer<GetBotChannelAssociationsRequest.Builder> getBotChannelAssociationsRequest)
Returns a list of all of the channels associated with the specified bot.
|
default GetBotChannelAssociationsResponse |
getBotChannelAssociations(GetBotChannelAssociationsRequest getBotChannelAssociationsRequest)
Returns a list of all of the channels associated with the specified bot.
|
default GetBotChannelAssociationsIterable |
getBotChannelAssociationsPaginator(Consumer<GetBotChannelAssociationsRequest.Builder> getBotChannelAssociationsRequest)
Returns a list of all of the channels associated with the specified bot.
|
default GetBotChannelAssociationsIterable |
getBotChannelAssociationsPaginator(GetBotChannelAssociationsRequest getBotChannelAssociationsRequest)
Returns a list of all of the channels associated with the specified bot.
|
default GetBotsResponse |
getBots()
Returns bot information as follows:
|
default GetBotsResponse |
getBots(Consumer<GetBotsRequest.Builder> getBotsRequest)
Returns bot information as follows:
|
default GetBotsResponse |
getBots(GetBotsRequest getBotsRequest)
Returns bot information as follows:
|
default GetBotsIterable |
getBotsPaginator()
Returns bot information as follows:
|
default GetBotsIterable |
getBotsPaginator(Consumer<GetBotsRequest.Builder> getBotsRequest)
Returns bot information as follows:
|
default GetBotsIterable |
getBotsPaginator(GetBotsRequest getBotsRequest)
Returns bot information as follows:
|
default GetBotVersionsResponse |
getBotVersions(Consumer<GetBotVersionsRequest.Builder> getBotVersionsRequest)
Gets information about all of the versions of a bot.
|
default GetBotVersionsResponse |
getBotVersions(GetBotVersionsRequest getBotVersionsRequest)
Gets information about all of the versions of a bot.
|
default GetBotVersionsIterable |
getBotVersionsPaginator(Consumer<GetBotVersionsRequest.Builder> getBotVersionsRequest)
Gets information about all of the versions of a bot.
|
default GetBotVersionsIterable |
getBotVersionsPaginator(GetBotVersionsRequest getBotVersionsRequest)
Gets information about all of the versions of a bot.
|
default GetBuiltinIntentResponse |
getBuiltinIntent(Consumer<GetBuiltinIntentRequest.Builder> getBuiltinIntentRequest)
Returns information about a built-in intent.
|
default GetBuiltinIntentResponse |
getBuiltinIntent(GetBuiltinIntentRequest getBuiltinIntentRequest)
Returns information about a built-in intent.
|
default GetBuiltinIntentsResponse |
getBuiltinIntents()
Gets a list of built-in intents that meet the specified criteria.
|
default GetBuiltinIntentsResponse |
getBuiltinIntents(Consumer<GetBuiltinIntentsRequest.Builder> getBuiltinIntentsRequest)
Gets a list of built-in intents that meet the specified criteria.
|
default GetBuiltinIntentsResponse |
getBuiltinIntents(GetBuiltinIntentsRequest getBuiltinIntentsRequest)
Gets a list of built-in intents that meet the specified criteria.
|
default GetBuiltinIntentsIterable |
getBuiltinIntentsPaginator()
Gets a list of built-in intents that meet the specified criteria.
|
default GetBuiltinIntentsIterable |
getBuiltinIntentsPaginator(Consumer<GetBuiltinIntentsRequest.Builder> getBuiltinIntentsRequest)
Gets a list of built-in intents that meet the specified criteria.
|
default GetBuiltinIntentsIterable |
getBuiltinIntentsPaginator(GetBuiltinIntentsRequest getBuiltinIntentsRequest)
Gets a list of built-in intents that meet the specified criteria.
|
default GetBuiltinSlotTypesResponse |
getBuiltinSlotTypes()
Gets a list of built-in slot types that meet the specified criteria.
|
default GetBuiltinSlotTypesResponse |
getBuiltinSlotTypes(Consumer<GetBuiltinSlotTypesRequest.Builder> getBuiltinSlotTypesRequest)
Gets a list of built-in slot types that meet the specified criteria.
|
default GetBuiltinSlotTypesResponse |
getBuiltinSlotTypes(GetBuiltinSlotTypesRequest getBuiltinSlotTypesRequest)
Gets a list of built-in slot types that meet the specified criteria.
|
default GetBuiltinSlotTypesIterable |
getBuiltinSlotTypesPaginator()
Gets a list of built-in slot types that meet the specified criteria.
|
default GetBuiltinSlotTypesIterable |
getBuiltinSlotTypesPaginator(Consumer<GetBuiltinSlotTypesRequest.Builder> getBuiltinSlotTypesRequest)
Gets a list of built-in slot types that meet the specified criteria.
|
default GetBuiltinSlotTypesIterable |
getBuiltinSlotTypesPaginator(GetBuiltinSlotTypesRequest getBuiltinSlotTypesRequest)
Gets a list of built-in slot types that meet the specified criteria.
|
default GetExportResponse |
getExport(Consumer<GetExportRequest.Builder> getExportRequest)
Exports the contents of a Amazon Lex resource in a specified format.
|
default GetExportResponse |
getExport(GetExportRequest getExportRequest)
Exports the contents of a Amazon Lex resource in a specified format.
|
default GetImportResponse |
getImport(Consumer<GetImportRequest.Builder> getImportRequest)
Gets information about an import job started with the
StartImport operation. |
default GetImportResponse |
getImport(GetImportRequest getImportRequest)
Gets information about an import job started with the
StartImport operation. |
default GetIntentResponse |
getIntent(Consumer<GetIntentRequest.Builder> getIntentRequest)
Returns information about an intent.
|
default GetIntentResponse |
getIntent(GetIntentRequest getIntentRequest)
Returns information about an intent.
|
default GetIntentsResponse |
getIntents()
Returns intent information as follows:
|
default GetIntentsResponse |
getIntents(Consumer<GetIntentsRequest.Builder> getIntentsRequest)
Returns intent information as follows:
|
default GetIntentsResponse |
getIntents(GetIntentsRequest getIntentsRequest)
Returns intent information as follows:
|
default GetIntentsIterable |
getIntentsPaginator()
Returns intent information as follows:
|
default GetIntentsIterable |
getIntentsPaginator(Consumer<GetIntentsRequest.Builder> getIntentsRequest)
Returns intent information as follows:
|
default GetIntentsIterable |
getIntentsPaginator(GetIntentsRequest getIntentsRequest)
Returns intent information as follows:
|
default GetIntentVersionsResponse |
getIntentVersions(Consumer<GetIntentVersionsRequest.Builder> getIntentVersionsRequest)
Gets information about all of the versions of an intent.
|
default GetIntentVersionsResponse |
getIntentVersions(GetIntentVersionsRequest getIntentVersionsRequest)
Gets information about all of the versions of an intent.
|
default GetIntentVersionsIterable |
getIntentVersionsPaginator(Consumer<GetIntentVersionsRequest.Builder> getIntentVersionsRequest)
Gets information about all of the versions of an intent.
|
default GetIntentVersionsIterable |
getIntentVersionsPaginator(GetIntentVersionsRequest getIntentVersionsRequest)
Gets information about all of the versions of an intent.
|
default GetSlotTypeResponse |
getSlotType(Consumer<GetSlotTypeRequest.Builder> getSlotTypeRequest)
Returns information about a specific version of a slot type.
|
default GetSlotTypeResponse |
getSlotType(GetSlotTypeRequest getSlotTypeRequest)
Returns information about a specific version of a slot type.
|
default GetSlotTypesResponse |
getSlotTypes()
Returns slot type information as follows:
|
default GetSlotTypesResponse |
getSlotTypes(Consumer<GetSlotTypesRequest.Builder> getSlotTypesRequest)
Returns slot type information as follows:
|
default GetSlotTypesResponse |
getSlotTypes(GetSlotTypesRequest getSlotTypesRequest)
Returns slot type information as follows:
|
default GetSlotTypesIterable |
getSlotTypesPaginator()
Returns slot type information as follows:
|
default GetSlotTypesIterable |
getSlotTypesPaginator(Consumer<GetSlotTypesRequest.Builder> getSlotTypesRequest)
Returns slot type information as follows:
|
default GetSlotTypesIterable |
getSlotTypesPaginator(GetSlotTypesRequest getSlotTypesRequest)
Returns slot type information as follows:
|
default GetSlotTypeVersionsResponse |
getSlotTypeVersions(Consumer<GetSlotTypeVersionsRequest.Builder> getSlotTypeVersionsRequest)
Gets information about all versions of a slot type.
|
default GetSlotTypeVersionsResponse |
getSlotTypeVersions(GetSlotTypeVersionsRequest getSlotTypeVersionsRequest)
Gets information about all versions of a slot type.
|
default GetSlotTypeVersionsIterable |
getSlotTypeVersionsPaginator(Consumer<GetSlotTypeVersionsRequest.Builder> getSlotTypeVersionsRequest)
Gets information about all versions of a slot type.
|
default GetSlotTypeVersionsIterable |
getSlotTypeVersionsPaginator(GetSlotTypeVersionsRequest getSlotTypeVersionsRequest)
Gets information about all versions of a slot type.
|
default GetUtterancesViewResponse |
getUtterancesView(Consumer<GetUtterancesViewRequest.Builder> getUtterancesViewRequest)
Use the
GetUtterancesView operation to get information about the utterances that your users have
made to your bot. |
default GetUtterancesViewResponse |
getUtterancesView(GetUtterancesViewRequest getUtterancesViewRequest)
Use the
GetUtterancesView operation to get information about the utterances that your users have
made to your bot. |
default PutBotResponse |
putBot(Consumer<PutBotRequest.Builder> putBotRequest)
Creates an Amazon Lex conversational bot or replaces an existing bot.
|
default PutBotResponse |
putBot(PutBotRequest putBotRequest)
Creates an Amazon Lex conversational bot or replaces an existing bot.
|
default PutBotAliasResponse |
putBotAlias(Consumer<PutBotAliasRequest.Builder> putBotAliasRequest)
Creates an alias for the specified version of the bot or replaces an alias for the specified bot.
|
default PutBotAliasResponse |
putBotAlias(PutBotAliasRequest putBotAliasRequest)
Creates an alias for the specified version of the bot or replaces an alias for the specified bot.
|
default PutIntentResponse |
putIntent(Consumer<PutIntentRequest.Builder> putIntentRequest)
Creates an intent or replaces an existing intent.
|
default PutIntentResponse |
putIntent(PutIntentRequest putIntentRequest)
Creates an intent or replaces an existing intent.
|
default PutSlotTypeResponse |
putSlotType(Consumer<PutSlotTypeRequest.Builder> putSlotTypeRequest)
Creates a custom slot type or replaces an existing custom slot type.
|
default PutSlotTypeResponse |
putSlotType(PutSlotTypeRequest putSlotTypeRequest)
Creates a custom slot type or replaces an existing custom slot type.
|
static ServiceMetadata |
serviceMetadata() |
default StartImportResponse |
startImport(Consumer<StartImportRequest.Builder> startImportRequest)
Starts a job to import a resource to Amazon Lex.
|
default StartImportResponse |
startImport(StartImportRequest startImportRequest)
Starts a job to import a resource to Amazon Lex.
|
serviceName
close
static final String SERVICE_NAME
static LexModelBuildingClient create()
LexModelBuildingClient
with the region loaded from the
DefaultAwsRegionProviderChain
and credentials loaded from the
DefaultCredentialsProvider
.static LexModelBuildingClientBuilder builder()
LexModelBuildingClient
.default CreateBotVersionResponse createBotVersion(CreateBotVersionRequest createBotVersionRequest) throws NotFoundException, ConflictException, LimitExceededException, InternalFailureException, BadRequestException, PreconditionFailedException, AwsServiceException, SdkClientException, LexModelBuildingException
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.
You can update only the $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.
createBotVersionRequest
- NotFoundException
- The resource specified in the request was not found. Check the resource and try again.ConflictException
- There was a conflict processing the request. Try your request again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.PreconditionFailedException
- The checksum of the resource that you are trying to change does not match the checksum in the request.
Check the resource's checksum and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default CreateBotVersionResponse createBotVersion(Consumer<CreateBotVersionRequest.Builder> createBotVersionRequest) throws NotFoundException, ConflictException, LimitExceededException, InternalFailureException, BadRequestException, PreconditionFailedException, AwsServiceException, SdkClientException, LexModelBuildingException
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.
You can update only the $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.
This is a convenience which creates an instance of the CreateBotVersionRequest.Builder
avoiding the need
to create one manually via CreateBotVersionRequest.builder()
createBotVersionRequest
- A Consumer
that will call methods on CreateBotVersionRequest.Builder
to create a request.NotFoundException
- The resource specified in the request was not found. Check the resource and try again.ConflictException
- There was a conflict processing the request. Try your request again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.PreconditionFailedException
- The checksum of the resource that you are trying to change does not match the checksum in the request.
Check the resource's checksum and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default CreateIntentVersionResponse createIntentVersion(CreateIntentVersionRequest createIntentVersionRequest) throws NotFoundException, ConflictException, LimitExceededException, InternalFailureException, BadRequestException, PreconditionFailedException, AwsServiceException, SdkClientException, LexModelBuildingException
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.
You can update only the $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.
createIntentVersionRequest
- NotFoundException
- The resource specified in the request was not found. Check the resource and try again.ConflictException
- There was a conflict processing the request. Try your request again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.PreconditionFailedException
- The checksum of the resource that you are trying to change does not match the checksum in the request.
Check the resource's checksum and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default CreateIntentVersionResponse createIntentVersion(Consumer<CreateIntentVersionRequest.Builder> createIntentVersionRequest) throws NotFoundException, ConflictException, LimitExceededException, InternalFailureException, BadRequestException, PreconditionFailedException, AwsServiceException, SdkClientException, LexModelBuildingException
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.
You can update only the $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.
This is a convenience which creates an instance of the CreateIntentVersionRequest.Builder
avoiding the
need to create one manually via CreateIntentVersionRequest.builder()
createIntentVersionRequest
- A Consumer
that will call methods on CreateIntentVersionRequest.Builder
to create a
request.NotFoundException
- The resource specified in the request was not found. Check the resource and try again.ConflictException
- There was a conflict processing the request. Try your request again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.PreconditionFailedException
- The checksum of the resource that you are trying to change does not match the checksum in the request.
Check the resource's checksum and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default CreateSlotTypeVersionResponse createSlotTypeVersion(CreateSlotTypeVersionRequest createSlotTypeVersionRequest) throws NotFoundException, ConflictException, LimitExceededException, InternalFailureException, BadRequestException, PreconditionFailedException, AwsServiceException, SdkClientException, LexModelBuildingException
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.
You can update only the $LATEST
version of a slot type. You can't update the numbered versions
that you create with the CreateSlotTypeVersion
operation.
When you create a version of a slot type, Amazon Lex sets the version to 1. Subsequent versions increment by 1. For more information, see versioning-intro.
This operation requires permissions for the lex:CreateSlotTypeVersion
action.
createSlotTypeVersionRequest
- NotFoundException
- The resource specified in the request was not found. Check the resource and try again.ConflictException
- There was a conflict processing the request. Try your request again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.PreconditionFailedException
- The checksum of the resource that you are trying to change does not match the checksum in the request.
Check the resource's checksum and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default CreateSlotTypeVersionResponse createSlotTypeVersion(Consumer<CreateSlotTypeVersionRequest.Builder> createSlotTypeVersionRequest) throws NotFoundException, ConflictException, LimitExceededException, InternalFailureException, BadRequestException, PreconditionFailedException, AwsServiceException, SdkClientException, LexModelBuildingException
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.
You can update only the $LATEST
version of a slot type. You can't update the numbered versions
that you create with the CreateSlotTypeVersion
operation.
When you create a version of a slot type, Amazon Lex sets the version to 1. Subsequent versions increment by 1. For more information, see versioning-intro.
This operation requires permissions for the lex:CreateSlotTypeVersion
action.
This is a convenience which creates an instance of the CreateSlotTypeVersionRequest.Builder
avoiding the
need to create one manually via CreateSlotTypeVersionRequest.builder()
createSlotTypeVersionRequest
- A Consumer
that will call methods on CreateSlotTypeVersionRequest.Builder
to create a
request.NotFoundException
- The resource specified in the request was not found. Check the resource and try again.ConflictException
- There was a conflict processing the request. Try your request again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.PreconditionFailedException
- The checksum of the resource that you are trying to change does not match the checksum in the request.
Check the resource's checksum and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default DeleteBotResponse deleteBot(DeleteBotRequest deleteBotRequest) throws NotFoundException, ConflictException, LimitExceededException, InternalFailureException, BadRequestException, ResourceInUseException, AwsServiceException, SdkClientException, LexModelBuildingException
Deletes all versions of the bot, including the $LATEST
version. To delete a specific version of
the bot, use the DeleteBotVersion operation.
If a bot has an alias, you can't delete it. Instead, the DeleteBot
operation returns a
ResourceInUseException
exception that includes a reference to the alias that refers to the bot. To
remove the reference to the bot, delete the alias. If you get the same exception again, delete the referring
alias until the DeleteBot
operation is successful.
This operation requires permissions for the lex:DeleteBot
action.
deleteBotRequest
- NotFoundException
- The resource specified in the request was not found. Check the resource and try again.ConflictException
- There was a conflict processing the request. Try your request again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.ResourceInUseException
- The resource that you are attempting to delete is referred to by another resource. Use this information
to remove references to the resource that you are trying to delete.
The body of the exception contains a JSON object that describes the resource.
{ "resourceType": BOT | BOTALIAS | BOTCHANNEL | INTENT,
"resourceReference": {
"name": string, "version": string } }
SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default DeleteBotResponse deleteBot(Consumer<DeleteBotRequest.Builder> deleteBotRequest) throws NotFoundException, ConflictException, LimitExceededException, InternalFailureException, BadRequestException, ResourceInUseException, AwsServiceException, SdkClientException, LexModelBuildingException
Deletes all versions of the bot, including the $LATEST
version. To delete a specific version of
the bot, use the DeleteBotVersion operation.
If a bot has an alias, you can't delete it. Instead, the DeleteBot
operation returns a
ResourceInUseException
exception that includes a reference to the alias that refers to the bot. To
remove the reference to the bot, delete the alias. If you get the same exception again, delete the referring
alias until the DeleteBot
operation is successful.
This operation requires permissions for the lex:DeleteBot
action.
This is a convenience which creates an instance of the DeleteBotRequest.Builder
avoiding the need to
create one manually via DeleteBotRequest.builder()
deleteBotRequest
- A Consumer
that will call methods on DeleteBotRequest.Builder
to create a request.NotFoundException
- The resource specified in the request was not found. Check the resource and try again.ConflictException
- There was a conflict processing the request. Try your request again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.ResourceInUseException
- The resource that you are attempting to delete is referred to by another resource. Use this information
to remove references to the resource that you are trying to delete.
The body of the exception contains a JSON object that describes the resource.
{ "resourceType": BOT | BOTALIAS | BOTCHANNEL | INTENT,
"resourceReference": {
"name": string, "version": string } }
SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default DeleteBotAliasResponse deleteBotAlias(DeleteBotAliasRequest deleteBotAliasRequest) throws NotFoundException, ConflictException, LimitExceededException, InternalFailureException, BadRequestException, ResourceInUseException, AwsServiceException, SdkClientException, LexModelBuildingException
Deletes an alias for the specified bot.
You can't delete an alias that is used in the association between a bot and a messaging channel. If an alias is
used in a channel association, the DeleteBot
operation returns a ResourceInUseException
exception that includes a reference to the channel association that refers to the bot. You can remove the
reference to the alias by deleting the channel association. If you get the same exception again, delete the
referring association until the DeleteBotAlias
operation is successful.
deleteBotAliasRequest
- NotFoundException
- The resource specified in the request was not found. Check the resource and try again.ConflictException
- There was a conflict processing the request. Try your request again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.ResourceInUseException
- The resource that you are attempting to delete is referred to by another resource. Use this information
to remove references to the resource that you are trying to delete.
The body of the exception contains a JSON object that describes the resource.
{ "resourceType": BOT | BOTALIAS | BOTCHANNEL | INTENT,
"resourceReference": {
"name": string, "version": string } }
SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default DeleteBotAliasResponse deleteBotAlias(Consumer<DeleteBotAliasRequest.Builder> deleteBotAliasRequest) throws NotFoundException, ConflictException, LimitExceededException, InternalFailureException, BadRequestException, ResourceInUseException, AwsServiceException, SdkClientException, LexModelBuildingException
Deletes an alias for the specified bot.
You can't delete an alias that is used in the association between a bot and a messaging channel. If an alias is
used in a channel association, the DeleteBot
operation returns a ResourceInUseException
exception that includes a reference to the channel association that refers to the bot. You can remove the
reference to the alias by deleting the channel association. If you get the same exception again, delete the
referring association until the DeleteBotAlias
operation is successful.
This is a convenience which creates an instance of the DeleteBotAliasRequest.Builder
avoiding the need to
create one manually via DeleteBotAliasRequest.builder()
deleteBotAliasRequest
- A Consumer
that will call methods on DeleteBotAliasRequest.Builder
to create a request.NotFoundException
- The resource specified in the request was not found. Check the resource and try again.ConflictException
- There was a conflict processing the request. Try your request again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.ResourceInUseException
- The resource that you are attempting to delete is referred to by another resource. Use this information
to remove references to the resource that you are trying to delete.
The body of the exception contains a JSON object that describes the resource.
{ "resourceType": BOT | BOTALIAS | BOTCHANNEL | INTENT,
"resourceReference": {
"name": string, "version": string } }
SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default DeleteBotChannelAssociationResponse deleteBotChannelAssociation(DeleteBotChannelAssociationRequest deleteBotChannelAssociationRequest) throws NotFoundException, ConflictException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
Deletes the association between an Amazon Lex bot and a messaging platform.
This operation requires permission for the lex:DeleteBotChannelAssociation
action.
deleteBotChannelAssociationRequest
- NotFoundException
- The resource specified in the request was not found. Check the resource and try again.ConflictException
- There was a conflict processing the request. Try your request again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default DeleteBotChannelAssociationResponse deleteBotChannelAssociation(Consumer<DeleteBotChannelAssociationRequest.Builder> deleteBotChannelAssociationRequest) throws NotFoundException, ConflictException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
Deletes the association between an Amazon Lex bot and a messaging platform.
This operation requires permission for the lex:DeleteBotChannelAssociation
action.
This is a convenience which creates an instance of the DeleteBotChannelAssociationRequest.Builder
avoiding the need to create one manually via DeleteBotChannelAssociationRequest.builder()
deleteBotChannelAssociationRequest
- A Consumer
that will call methods on DeleteBotChannelAssociationRequest.Builder
to create
a request.NotFoundException
- The resource specified in the request was not found. Check the resource and try again.ConflictException
- There was a conflict processing the request. Try your request again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default DeleteBotVersionResponse deleteBotVersion(DeleteBotVersionRequest deleteBotVersionRequest) throws NotFoundException, ConflictException, LimitExceededException, InternalFailureException, BadRequestException, ResourceInUseException, AwsServiceException, SdkClientException, LexModelBuildingException
Deletes a specific version of a bot. To delete all versions of a bot, use the DeleteBot operation.
This operation requires permissions for the lex:DeleteBotVersion
action.
deleteBotVersionRequest
- NotFoundException
- The resource specified in the request was not found. Check the resource and try again.ConflictException
- There was a conflict processing the request. Try your request again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.ResourceInUseException
- The resource that you are attempting to delete is referred to by another resource. Use this information
to remove references to the resource that you are trying to delete.
The body of the exception contains a JSON object that describes the resource.
{ "resourceType": BOT | BOTALIAS | BOTCHANNEL | INTENT,
"resourceReference": {
"name": string, "version": string } }
SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default DeleteBotVersionResponse deleteBotVersion(Consumer<DeleteBotVersionRequest.Builder> deleteBotVersionRequest) throws NotFoundException, ConflictException, LimitExceededException, InternalFailureException, BadRequestException, ResourceInUseException, AwsServiceException, SdkClientException, LexModelBuildingException
Deletes a specific version of a bot. To delete all versions of a bot, use the DeleteBot operation.
This operation requires permissions for the lex:DeleteBotVersion
action.
This is a convenience which creates an instance of the DeleteBotVersionRequest.Builder
avoiding the need
to create one manually via DeleteBotVersionRequest.builder()
deleteBotVersionRequest
- A Consumer
that will call methods on DeleteBotVersionRequest.Builder
to create a request.NotFoundException
- The resource specified in the request was not found. Check the resource and try again.ConflictException
- There was a conflict processing the request. Try your request again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.ResourceInUseException
- The resource that you are attempting to delete is referred to by another resource. Use this information
to remove references to the resource that you are trying to delete.
The body of the exception contains a JSON object that describes the resource.
{ "resourceType": BOT | BOTALIAS | BOTCHANNEL | INTENT,
"resourceReference": {
"name": string, "version": string } }
SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default DeleteIntentResponse deleteIntent(DeleteIntentRequest deleteIntentRequest) throws NotFoundException, ConflictException, LimitExceededException, InternalFailureException, BadRequestException, ResourceInUseException, AwsServiceException, SdkClientException, LexModelBuildingException
Deletes all versions of the intent, including the $LATEST
version. To delete a specific version
of the intent, use the DeleteIntentVersion operation.
You can delete a version of an intent only if it is not referenced. To delete an intent that is referred to in one or more bots (see how-it-works), you must remove those references first.
If you get the ResourceInUseException
exception, it provides an example reference that shows where
the intent is referenced. To remove the reference to the intent, either update the bot or delete it. If you get
the same exception when you attempt to delete the intent again, repeat until the intent has no references and the
call to DeleteIntent
is successful.
This operation requires permission for the lex:DeleteIntent
action.
deleteIntentRequest
- NotFoundException
- The resource specified in the request was not found. Check the resource and try again.ConflictException
- There was a conflict processing the request. Try your request again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.ResourceInUseException
- The resource that you are attempting to delete is referred to by another resource. Use this information
to remove references to the resource that you are trying to delete.
The body of the exception contains a JSON object that describes the resource.
{ "resourceType": BOT | BOTALIAS | BOTCHANNEL | INTENT,
"resourceReference": {
"name": string, "version": string } }
SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default DeleteIntentResponse deleteIntent(Consumer<DeleteIntentRequest.Builder> deleteIntentRequest) throws NotFoundException, ConflictException, LimitExceededException, InternalFailureException, BadRequestException, ResourceInUseException, AwsServiceException, SdkClientException, LexModelBuildingException
Deletes all versions of the intent, including the $LATEST
version. To delete a specific version
of the intent, use the DeleteIntentVersion operation.
You can delete a version of an intent only if it is not referenced. To delete an intent that is referred to in one or more bots (see how-it-works), you must remove those references first.
If you get the ResourceInUseException
exception, it provides an example reference that shows where
the intent is referenced. To remove the reference to the intent, either update the bot or delete it. If you get
the same exception when you attempt to delete the intent again, repeat until the intent has no references and the
call to DeleteIntent
is successful.
This operation requires permission for the lex:DeleteIntent
action.
This is a convenience which creates an instance of the DeleteIntentRequest.Builder
avoiding the need to
create one manually via DeleteIntentRequest.builder()
deleteIntentRequest
- A Consumer
that will call methods on DeleteIntentRequest.Builder
to create a request.NotFoundException
- The resource specified in the request was not found. Check the resource and try again.ConflictException
- There was a conflict processing the request. Try your request again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.ResourceInUseException
- The resource that you are attempting to delete is referred to by another resource. Use this information
to remove references to the resource that you are trying to delete.
The body of the exception contains a JSON object that describes the resource.
{ "resourceType": BOT | BOTALIAS | BOTCHANNEL | INTENT,
"resourceReference": {
"name": string, "version": string } }
SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default DeleteIntentVersionResponse deleteIntentVersion(DeleteIntentVersionRequest deleteIntentVersionRequest) throws NotFoundException, ConflictException, LimitExceededException, InternalFailureException, BadRequestException, ResourceInUseException, AwsServiceException, SdkClientException, LexModelBuildingException
Deletes a specific version of an intent. To delete all versions of a intent, use the DeleteIntent operation.
This operation requires permissions for the lex:DeleteIntentVersion
action.
deleteIntentVersionRequest
- NotFoundException
- The resource specified in the request was not found. Check the resource and try again.ConflictException
- There was a conflict processing the request. Try your request again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.ResourceInUseException
- The resource that you are attempting to delete is referred to by another resource. Use this information
to remove references to the resource that you are trying to delete.
The body of the exception contains a JSON object that describes the resource.
{ "resourceType": BOT | BOTALIAS | BOTCHANNEL | INTENT,
"resourceReference": {
"name": string, "version": string } }
SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default DeleteIntentVersionResponse deleteIntentVersion(Consumer<DeleteIntentVersionRequest.Builder> deleteIntentVersionRequest) throws NotFoundException, ConflictException, LimitExceededException, InternalFailureException, BadRequestException, ResourceInUseException, AwsServiceException, SdkClientException, LexModelBuildingException
Deletes a specific version of an intent. To delete all versions of a intent, use the DeleteIntent operation.
This operation requires permissions for the lex:DeleteIntentVersion
action.
This is a convenience which creates an instance of the DeleteIntentVersionRequest.Builder
avoiding the
need to create one manually via DeleteIntentVersionRequest.builder()
deleteIntentVersionRequest
- A Consumer
that will call methods on DeleteIntentVersionRequest.Builder
to create a
request.NotFoundException
- The resource specified in the request was not found. Check the resource and try again.ConflictException
- There was a conflict processing the request. Try your request again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.ResourceInUseException
- The resource that you are attempting to delete is referred to by another resource. Use this information
to remove references to the resource that you are trying to delete.
The body of the exception contains a JSON object that describes the resource.
{ "resourceType": BOT | BOTALIAS | BOTCHANNEL | INTENT,
"resourceReference": {
"name": string, "version": string } }
SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default DeleteSlotTypeResponse deleteSlotType(DeleteSlotTypeRequest deleteSlotTypeRequest) throws NotFoundException, ConflictException, LimitExceededException, InternalFailureException, BadRequestException, ResourceInUseException, AwsServiceException, SdkClientException, LexModelBuildingException
Deletes all versions of the slot type, including the $LATEST
version. To delete a specific
version of the slot type, use the DeleteSlotTypeVersion operation.
You can delete a version of a slot type only if it is not referenced. To delete a slot type that is referred to in one or more intents, you must remove those references first.
If you get the ResourceInUseException
exception, the exception provides an example reference that
shows the intent where the slot type is referenced. To remove the reference to the slot type, either update the
intent or delete it. If you get the same exception when you attempt to delete the slot type again, repeat until
the slot type has no references and the DeleteSlotType
call is successful.
This operation requires permission for the lex:DeleteSlotType
action.
deleteSlotTypeRequest
- NotFoundException
- The resource specified in the request was not found. Check the resource and try again.ConflictException
- There was a conflict processing the request. Try your request again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.ResourceInUseException
- The resource that you are attempting to delete is referred to by another resource. Use this information
to remove references to the resource that you are trying to delete.
The body of the exception contains a JSON object that describes the resource.
{ "resourceType": BOT | BOTALIAS | BOTCHANNEL | INTENT,
"resourceReference": {
"name": string, "version": string } }
SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default DeleteSlotTypeResponse deleteSlotType(Consumer<DeleteSlotTypeRequest.Builder> deleteSlotTypeRequest) throws NotFoundException, ConflictException, LimitExceededException, InternalFailureException, BadRequestException, ResourceInUseException, AwsServiceException, SdkClientException, LexModelBuildingException
Deletes all versions of the slot type, including the $LATEST
version. To delete a specific
version of the slot type, use the DeleteSlotTypeVersion operation.
You can delete a version of a slot type only if it is not referenced. To delete a slot type that is referred to in one or more intents, you must remove those references first.
If you get the ResourceInUseException
exception, the exception provides an example reference that
shows the intent where the slot type is referenced. To remove the reference to the slot type, either update the
intent or delete it. If you get the same exception when you attempt to delete the slot type again, repeat until
the slot type has no references and the DeleteSlotType
call is successful.
This operation requires permission for the lex:DeleteSlotType
action.
This is a convenience which creates an instance of the DeleteSlotTypeRequest.Builder
avoiding the need to
create one manually via DeleteSlotTypeRequest.builder()
deleteSlotTypeRequest
- A Consumer
that will call methods on DeleteSlotTypeRequest.Builder
to create a request.NotFoundException
- The resource specified in the request was not found. Check the resource and try again.ConflictException
- There was a conflict processing the request. Try your request again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.ResourceInUseException
- The resource that you are attempting to delete is referred to by another resource. Use this information
to remove references to the resource that you are trying to delete.
The body of the exception contains a JSON object that describes the resource.
{ "resourceType": BOT | BOTALIAS | BOTCHANNEL | INTENT,
"resourceReference": {
"name": string, "version": string } }
SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default DeleteSlotTypeVersionResponse deleteSlotTypeVersion(DeleteSlotTypeVersionRequest deleteSlotTypeVersionRequest) throws NotFoundException, ConflictException, LimitExceededException, InternalFailureException, BadRequestException, ResourceInUseException, AwsServiceException, SdkClientException, LexModelBuildingException
Deletes a specific version of a slot type. To delete all versions of a slot type, use the DeleteSlotType operation.
This operation requires permissions for the lex:DeleteSlotTypeVersion
action.
deleteSlotTypeVersionRequest
- NotFoundException
- The resource specified in the request was not found. Check the resource and try again.ConflictException
- There was a conflict processing the request. Try your request again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.ResourceInUseException
- The resource that you are attempting to delete is referred to by another resource. Use this information
to remove references to the resource that you are trying to delete.
The body of the exception contains a JSON object that describes the resource.
{ "resourceType": BOT | BOTALIAS | BOTCHANNEL | INTENT,
"resourceReference": {
"name": string, "version": string } }
SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default DeleteSlotTypeVersionResponse deleteSlotTypeVersion(Consumer<DeleteSlotTypeVersionRequest.Builder> deleteSlotTypeVersionRequest) throws NotFoundException, ConflictException, LimitExceededException, InternalFailureException, BadRequestException, ResourceInUseException, AwsServiceException, SdkClientException, LexModelBuildingException
Deletes a specific version of a slot type. To delete all versions of a slot type, use the DeleteSlotType operation.
This operation requires permissions for the lex:DeleteSlotTypeVersion
action.
This is a convenience which creates an instance of the DeleteSlotTypeVersionRequest.Builder
avoiding the
need to create one manually via DeleteSlotTypeVersionRequest.builder()
deleteSlotTypeVersionRequest
- A Consumer
that will call methods on DeleteSlotTypeVersionRequest.Builder
to create a
request.NotFoundException
- The resource specified in the request was not found. Check the resource and try again.ConflictException
- There was a conflict processing the request. Try your request again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.ResourceInUseException
- The resource that you are attempting to delete is referred to by another resource. Use this information
to remove references to the resource that you are trying to delete.
The body of the exception contains a JSON object that describes the resource.
{ "resourceType": BOT | BOTALIAS | BOTCHANNEL | INTENT,
"resourceReference": {
"name": string, "version": string } }
SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default DeleteUtterancesResponse deleteUtterances(DeleteUtterancesRequest deleteUtterancesRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
Deletes stored utterances.
Amazon Lex stores the utterances that users send to your bot. Utterances are stored for 15 days for use with the GetUtterancesView operation, and then stored indefinitely for use in improving the ability of your bot to respond to user input.
Use the DeleteStoredUtterances
operation to manually delete stored utterances for a specific user.
This operation requires permissions for the lex:DeleteUtterances
action.
deleteUtterancesRequest
- NotFoundException
- The resource specified in the request was not found. Check the resource and try again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default DeleteUtterancesResponse deleteUtterances(Consumer<DeleteUtterancesRequest.Builder> deleteUtterancesRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
Deletes stored utterances.
Amazon Lex stores the utterances that users send to your bot. Utterances are stored for 15 days for use with the GetUtterancesView operation, and then stored indefinitely for use in improving the ability of your bot to respond to user input.
Use the DeleteStoredUtterances
operation to manually delete stored utterances for a specific user.
This operation requires permissions for the lex:DeleteUtterances
action.
This is a convenience which creates an instance of the DeleteUtterancesRequest.Builder
avoiding the need
to create one manually via DeleteUtterancesRequest.builder()
deleteUtterancesRequest
- A Consumer
that will call methods on DeleteUtterancesRequest.Builder
to create a request.NotFoundException
- The resource specified in the request was not found. Check the resource and try again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetBotResponse getBot(GetBotRequest getBotRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
Returns metadata information for a specific bot. You must provide the bot name and the bot version or alias.
This operation requires permissions for the lex:GetBot
action.
getBotRequest
- NotFoundException
- The resource specified in the request was not found. Check the resource and try again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetBotResponse getBot(Consumer<GetBotRequest.Builder> getBotRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
Returns metadata information for a specific bot. You must provide the bot name and the bot version or alias.
This operation requires permissions for the lex:GetBot
action.
This is a convenience which creates an instance of the GetBotRequest.Builder
avoiding the need to create
one manually via GetBotRequest.builder()
getBotRequest
- A Consumer
that will call methods on GetBotRequest.Builder
to create a request.NotFoundException
- The resource specified in the request was not found. Check the resource and try again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetBotAliasResponse getBotAlias(GetBotAliasRequest getBotAliasRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
Returns information about an Amazon Lex bot alias. For more information about aliases, see versioning-aliases.
This operation requires permissions for the lex:GetBotAlias
action.
getBotAliasRequest
- NotFoundException
- The resource specified in the request was not found. Check the resource and try again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetBotAliasResponse getBotAlias(Consumer<GetBotAliasRequest.Builder> getBotAliasRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
Returns information about an Amazon Lex bot alias. For more information about aliases, see versioning-aliases.
This operation requires permissions for the lex:GetBotAlias
action.
This is a convenience which creates an instance of the GetBotAliasRequest.Builder
avoiding the need to
create one manually via GetBotAliasRequest.builder()
getBotAliasRequest
- A Consumer
that will call methods on GetBotAliasRequest.Builder
to create a request.NotFoundException
- The resource specified in the request was not found. Check the resource and try again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetBotAliasesResponse getBotAliases(GetBotAliasesRequest getBotAliasesRequest) throws LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
Returns a list of aliases for a specified Amazon Lex bot.
This operation requires permissions for the lex:GetBotAliases
action.
getBotAliasesRequest
- LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetBotAliasesResponse getBotAliases(Consumer<GetBotAliasesRequest.Builder> getBotAliasesRequest) throws LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
Returns a list of aliases for a specified Amazon Lex bot.
This operation requires permissions for the lex:GetBotAliases
action.
This is a convenience which creates an instance of the GetBotAliasesRequest.Builder
avoiding the need to
create one manually via GetBotAliasesRequest.builder()
getBotAliasesRequest
- A Consumer
that will call methods on GetBotAliasesRequest.Builder
to create a request.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetBotAliasesIterable getBotAliasesPaginator(GetBotAliasesRequest getBotAliasesRequest) throws LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
Returns a list of aliases for a specified Amazon Lex bot.
This operation requires permissions for the lex:GetBotAliases
action.
This is a variant of
getBotAliases(software.amazon.awssdk.services.lexmodelbuilding.model.GetBotAliasesRequest)
operation.
The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally
handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.lexmodelbuilding.paginators.GetBotAliasesIterable responses = client.getBotAliasesPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @code software.amazon.awssdk.services.lexmodelbuilding.paginators.GetBotAliasesIterable responses = client .getBotAliasesPaginator(request); for (software.amazon.awssdk.services.lexmodelbuilding.model.GetBotAliasesResponse response : responses) { // do something; } }3) Use iterator directly
software.amazon.awssdk.services.lexmodelbuilding.paginators.GetBotAliasesIterable responses = client.getBotAliasesPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
getBotAliases(software.amazon.awssdk.services.lexmodelbuilding.model.GetBotAliasesRequest)
operation.
getBotAliasesRequest
- LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetBotAliasesIterable getBotAliasesPaginator(Consumer<GetBotAliasesRequest.Builder> getBotAliasesRequest) throws LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
Returns a list of aliases for a specified Amazon Lex bot.
This operation requires permissions for the lex:GetBotAliases
action.
This is a variant of
getBotAliases(software.amazon.awssdk.services.lexmodelbuilding.model.GetBotAliasesRequest)
operation.
The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally
handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.lexmodelbuilding.paginators.GetBotAliasesIterable responses = client.getBotAliasesPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @code software.amazon.awssdk.services.lexmodelbuilding.paginators.GetBotAliasesIterable responses = client .getBotAliasesPaginator(request); for (software.amazon.awssdk.services.lexmodelbuilding.model.GetBotAliasesResponse response : responses) { // do something; } }3) Use iterator directly
software.amazon.awssdk.services.lexmodelbuilding.paginators.GetBotAliasesIterable responses = client.getBotAliasesPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
getBotAliases(software.amazon.awssdk.services.lexmodelbuilding.model.GetBotAliasesRequest)
operation.
This is a convenience which creates an instance of the GetBotAliasesRequest.Builder
avoiding the need to
create one manually via GetBotAliasesRequest.builder()
getBotAliasesRequest
- A Consumer
that will call methods on GetBotAliasesRequest.Builder
to create a request.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetBotChannelAssociationResponse getBotChannelAssociation(GetBotChannelAssociationRequest getBotChannelAssociationRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
Returns information about the association between an Amazon Lex bot and a messaging platform.
This operation requires permissions for the lex:GetBotChannelAssociation
action.
getBotChannelAssociationRequest
- NotFoundException
- The resource specified in the request was not found. Check the resource and try again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetBotChannelAssociationResponse getBotChannelAssociation(Consumer<GetBotChannelAssociationRequest.Builder> getBotChannelAssociationRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
Returns information about the association between an Amazon Lex bot and a messaging platform.
This operation requires permissions for the lex:GetBotChannelAssociation
action.
This is a convenience which creates an instance of the GetBotChannelAssociationRequest.Builder
avoiding
the need to create one manually via GetBotChannelAssociationRequest.builder()
getBotChannelAssociationRequest
- A Consumer
that will call methods on GetBotChannelAssociationRequest.Builder
to create a
request.NotFoundException
- The resource specified in the request was not found. Check the resource and try again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetBotChannelAssociationsResponse getBotChannelAssociations(GetBotChannelAssociationsRequest getBotChannelAssociationsRequest) throws LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
Returns a list of all of the channels associated with the specified bot.
The GetBotChannelAssociations
operation requires permissions for the
lex:GetBotChannelAssociations
action.
getBotChannelAssociationsRequest
- LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetBotChannelAssociationsResponse getBotChannelAssociations(Consumer<GetBotChannelAssociationsRequest.Builder> getBotChannelAssociationsRequest) throws LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
Returns a list of all of the channels associated with the specified bot.
The GetBotChannelAssociations
operation requires permissions for the
lex:GetBotChannelAssociations
action.
This is a convenience which creates an instance of the GetBotChannelAssociationsRequest.Builder
avoiding
the need to create one manually via GetBotChannelAssociationsRequest.builder()
getBotChannelAssociationsRequest
- A Consumer
that will call methods on GetBotChannelAssociationsRequest.Builder
to create a
request.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetBotChannelAssociationsIterable getBotChannelAssociationsPaginator(GetBotChannelAssociationsRequest getBotChannelAssociationsRequest) throws LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
Returns a list of all of the channels associated with the specified bot.
The GetBotChannelAssociations
operation requires permissions for the
lex:GetBotChannelAssociations
action.
This is a variant of
getBotChannelAssociations(software.amazon.awssdk.services.lexmodelbuilding.model.GetBotChannelAssociationsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.lexmodelbuilding.paginators.GetBotChannelAssociationsIterable responses = client.getBotChannelAssociationsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @code software.amazon.awssdk.services.lexmodelbuilding.paginators.GetBotChannelAssociationsIterable responses = client .getBotChannelAssociationsPaginator(request); for (software.amazon.awssdk.services.lexmodelbuilding.model.GetBotChannelAssociationsResponse response : responses) { // do something; } }3) Use iterator directly
software.amazon.awssdk.services.lexmodelbuilding.paginators.GetBotChannelAssociationsIterable responses = client.getBotChannelAssociationsPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
getBotChannelAssociations(software.amazon.awssdk.services.lexmodelbuilding.model.GetBotChannelAssociationsRequest)
operation.
getBotChannelAssociationsRequest
- LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetBotChannelAssociationsIterable getBotChannelAssociationsPaginator(Consumer<GetBotChannelAssociationsRequest.Builder> getBotChannelAssociationsRequest) throws LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
Returns a list of all of the channels associated with the specified bot.
The GetBotChannelAssociations
operation requires permissions for the
lex:GetBotChannelAssociations
action.
This is a variant of
getBotChannelAssociations(software.amazon.awssdk.services.lexmodelbuilding.model.GetBotChannelAssociationsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.lexmodelbuilding.paginators.GetBotChannelAssociationsIterable responses = client.getBotChannelAssociationsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @code software.amazon.awssdk.services.lexmodelbuilding.paginators.GetBotChannelAssociationsIterable responses = client .getBotChannelAssociationsPaginator(request); for (software.amazon.awssdk.services.lexmodelbuilding.model.GetBotChannelAssociationsResponse response : responses) { // do something; } }3) Use iterator directly
software.amazon.awssdk.services.lexmodelbuilding.paginators.GetBotChannelAssociationsIterable responses = client.getBotChannelAssociationsPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
getBotChannelAssociations(software.amazon.awssdk.services.lexmodelbuilding.model.GetBotChannelAssociationsRequest)
operation.
This is a convenience which creates an instance of the GetBotChannelAssociationsRequest.Builder
avoiding
the need to create one manually via GetBotChannelAssociationsRequest.builder()
getBotChannelAssociationsRequest
- A Consumer
that will call methods on GetBotChannelAssociationsRequest.Builder
to create a
request.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetBotVersionsResponse getBotVersions(GetBotVersionsRequest getBotVersionsRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
Gets information about all of the versions of a bot.
The GetBotVersions
operation returns a BotMetadata
object for each version of a bot.
For example, if a bot has three numbered versions, the GetBotVersions
operation returns four
BotMetadata
objects in the response, one for each numbered version and one for the
$LATEST
version.
The GetBotVersions
operation always returns at least one version, the $LATEST
version.
This operation requires permissions for the lex:GetBotVersions
action.
getBotVersionsRequest
- NotFoundException
- The resource specified in the request was not found. Check the resource and try again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetBotVersionsResponse getBotVersions(Consumer<GetBotVersionsRequest.Builder> getBotVersionsRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
Gets information about all of the versions of a bot.
The GetBotVersions
operation returns a BotMetadata
object for each version of a bot.
For example, if a bot has three numbered versions, the GetBotVersions
operation returns four
BotMetadata
objects in the response, one for each numbered version and one for the
$LATEST
version.
The GetBotVersions
operation always returns at least one version, the $LATEST
version.
This operation requires permissions for the lex:GetBotVersions
action.
This is a convenience which creates an instance of the GetBotVersionsRequest.Builder
avoiding the need to
create one manually via GetBotVersionsRequest.builder()
getBotVersionsRequest
- A Consumer
that will call methods on GetBotVersionsRequest.Builder
to create a request.NotFoundException
- The resource specified in the request was not found. Check the resource and try again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetBotVersionsIterable getBotVersionsPaginator(GetBotVersionsRequest getBotVersionsRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
Gets information about all of the versions of a bot.
The GetBotVersions
operation returns a BotMetadata
object for each version of a bot.
For example, if a bot has three numbered versions, the GetBotVersions
operation returns four
BotMetadata
objects in the response, one for each numbered version and one for the
$LATEST
version.
The GetBotVersions
operation always returns at least one version, the $LATEST
version.
This operation requires permissions for the lex:GetBotVersions
action.
This is a variant of
getBotVersions(software.amazon.awssdk.services.lexmodelbuilding.model.GetBotVersionsRequest)
operation.
The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally
handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.lexmodelbuilding.paginators.GetBotVersionsIterable responses = client.getBotVersionsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @code software.amazon.awssdk.services.lexmodelbuilding.paginators.GetBotVersionsIterable responses = client .getBotVersionsPaginator(request); for (software.amazon.awssdk.services.lexmodelbuilding.model.GetBotVersionsResponse response : responses) { // do something; } }3) Use iterator directly
software.amazon.awssdk.services.lexmodelbuilding.paginators.GetBotVersionsIterable responses = client.getBotVersionsPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
getBotVersions(software.amazon.awssdk.services.lexmodelbuilding.model.GetBotVersionsRequest)
operation.
getBotVersionsRequest
- NotFoundException
- The resource specified in the request was not found. Check the resource and try again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetBotVersionsIterable getBotVersionsPaginator(Consumer<GetBotVersionsRequest.Builder> getBotVersionsRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
Gets information about all of the versions of a bot.
The GetBotVersions
operation returns a BotMetadata
object for each version of a bot.
For example, if a bot has three numbered versions, the GetBotVersions
operation returns four
BotMetadata
objects in the response, one for each numbered version and one for the
$LATEST
version.
The GetBotVersions
operation always returns at least one version, the $LATEST
version.
This operation requires permissions for the lex:GetBotVersions
action.
This is a variant of
getBotVersions(software.amazon.awssdk.services.lexmodelbuilding.model.GetBotVersionsRequest)
operation.
The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally
handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.lexmodelbuilding.paginators.GetBotVersionsIterable responses = client.getBotVersionsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @code software.amazon.awssdk.services.lexmodelbuilding.paginators.GetBotVersionsIterable responses = client .getBotVersionsPaginator(request); for (software.amazon.awssdk.services.lexmodelbuilding.model.GetBotVersionsResponse response : responses) { // do something; } }3) Use iterator directly
software.amazon.awssdk.services.lexmodelbuilding.paginators.GetBotVersionsIterable responses = client.getBotVersionsPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
getBotVersions(software.amazon.awssdk.services.lexmodelbuilding.model.GetBotVersionsRequest)
operation.
This is a convenience which creates an instance of the GetBotVersionsRequest.Builder
avoiding the need to
create one manually via GetBotVersionsRequest.builder()
getBotVersionsRequest
- A Consumer
that will call methods on GetBotVersionsRequest.Builder
to create a request.NotFoundException
- The resource specified in the request was not found. Check the resource and try again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetBotsResponse getBots() throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
Returns bot information as follows:
If you provide the nameContains
field, the response includes information for the
$LATEST
version of all bots whose name contains the specified string.
If you don't specify the nameContains
field, the operation returns information about the
$LATEST
version of all of your bots.
This operation requires permission for the lex:GetBots
action.
NotFoundException
- The resource specified in the request was not found. Check the resource and try again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
getBots(GetBotsRequest)
,
AWS API
Documentationdefault GetBotsResponse getBots(GetBotsRequest getBotsRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
Returns bot information as follows:
If you provide the nameContains
field, the response includes information for the
$LATEST
version of all bots whose name contains the specified string.
If you don't specify the nameContains
field, the operation returns information about the
$LATEST
version of all of your bots.
This operation requires permission for the lex:GetBots
action.
getBotsRequest
- NotFoundException
- The resource specified in the request was not found. Check the resource and try again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetBotsResponse getBots(Consumer<GetBotsRequest.Builder> getBotsRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
Returns bot information as follows:
If you provide the nameContains
field, the response includes information for the
$LATEST
version of all bots whose name contains the specified string.
If you don't specify the nameContains
field, the operation returns information about the
$LATEST
version of all of your bots.
This operation requires permission for the lex:GetBots
action.
This is a convenience which creates an instance of the GetBotsRequest.Builder
avoiding the need to create
one manually via GetBotsRequest.builder()
getBotsRequest
- A Consumer
that will call methods on GetBotsRequest.Builder
to create a request.NotFoundException
- The resource specified in the request was not found. Check the resource and try again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetBotsIterable getBotsPaginator() throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
Returns bot information as follows:
If you provide the nameContains
field, the response includes information for the
$LATEST
version of all bots whose name contains the specified string.
If you don't specify the nameContains
field, the operation returns information about the
$LATEST
version of all of your bots.
This operation requires permission for the lex:GetBots
action.
This is a variant of getBots(software.amazon.awssdk.services.lexmodelbuilding.model.GetBotsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.lexmodelbuilding.paginators.GetBotsIterable responses = client.getBotsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @code software.amazon.awssdk.services.lexmodelbuilding.paginators.GetBotsIterable responses = client.getBotsPaginator(request); for (software.amazon.awssdk.services.lexmodelbuilding.model.GetBotsResponse response : responses) { // do something; } }3) Use iterator directly
software.amazon.awssdk.services.lexmodelbuilding.paginators.GetBotsIterable responses = client.getBotsPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
getBots(software.amazon.awssdk.services.lexmodelbuilding.model.GetBotsRequest)
operation.
NotFoundException
- The resource specified in the request was not found. Check the resource and try again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
getBotsPaginator(GetBotsRequest)
,
AWS API
Documentationdefault GetBotsIterable getBotsPaginator(GetBotsRequest getBotsRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
Returns bot information as follows:
If you provide the nameContains
field, the response includes information for the
$LATEST
version of all bots whose name contains the specified string.
If you don't specify the nameContains
field, the operation returns information about the
$LATEST
version of all of your bots.
This operation requires permission for the lex:GetBots
action.
This is a variant of getBots(software.amazon.awssdk.services.lexmodelbuilding.model.GetBotsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.lexmodelbuilding.paginators.GetBotsIterable responses = client.getBotsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @code software.amazon.awssdk.services.lexmodelbuilding.paginators.GetBotsIterable responses = client.getBotsPaginator(request); for (software.amazon.awssdk.services.lexmodelbuilding.model.GetBotsResponse response : responses) { // do something; } }3) Use iterator directly
software.amazon.awssdk.services.lexmodelbuilding.paginators.GetBotsIterable responses = client.getBotsPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
getBots(software.amazon.awssdk.services.lexmodelbuilding.model.GetBotsRequest)
operation.
getBotsRequest
- NotFoundException
- The resource specified in the request was not found. Check the resource and try again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetBotsIterable getBotsPaginator(Consumer<GetBotsRequest.Builder> getBotsRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
Returns bot information as follows:
If you provide the nameContains
field, the response includes information for the
$LATEST
version of all bots whose name contains the specified string.
If you don't specify the nameContains
field, the operation returns information about the
$LATEST
version of all of your bots.
This operation requires permission for the lex:GetBots
action.
This is a variant of getBots(software.amazon.awssdk.services.lexmodelbuilding.model.GetBotsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.lexmodelbuilding.paginators.GetBotsIterable responses = client.getBotsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @code software.amazon.awssdk.services.lexmodelbuilding.paginators.GetBotsIterable responses = client.getBotsPaginator(request); for (software.amazon.awssdk.services.lexmodelbuilding.model.GetBotsResponse response : responses) { // do something; } }3) Use iterator directly
software.amazon.awssdk.services.lexmodelbuilding.paginators.GetBotsIterable responses = client.getBotsPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
getBots(software.amazon.awssdk.services.lexmodelbuilding.model.GetBotsRequest)
operation.
This is a convenience which creates an instance of the GetBotsRequest.Builder
avoiding the need to create
one manually via GetBotsRequest.builder()
getBotsRequest
- A Consumer
that will call methods on GetBotsRequest.Builder
to create a request.NotFoundException
- The resource specified in the request was not found. Check the resource and try again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetBuiltinIntentResponse getBuiltinIntent(GetBuiltinIntentRequest getBuiltinIntentRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
Returns information about a built-in intent.
This operation requires permission for the lex:GetBuiltinIntent
action.
getBuiltinIntentRequest
- NotFoundException
- The resource specified in the request was not found. Check the resource and try again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetBuiltinIntentResponse getBuiltinIntent(Consumer<GetBuiltinIntentRequest.Builder> getBuiltinIntentRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
Returns information about a built-in intent.
This operation requires permission for the lex:GetBuiltinIntent
action.
This is a convenience which creates an instance of the GetBuiltinIntentRequest.Builder
avoiding the need
to create one manually via GetBuiltinIntentRequest.builder()
getBuiltinIntentRequest
- A Consumer
that will call methods on GetBuiltinIntentRequest.Builder
to create a request.NotFoundException
- The resource specified in the request was not found. Check the resource and try again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetBuiltinIntentsResponse getBuiltinIntents() throws LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
Gets a list of built-in intents that meet the specified criteria.
This operation requires permission for the lex:GetBuiltinIntents
action.
LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
getBuiltinIntents(GetBuiltinIntentsRequest)
,
AWS
API Documentationdefault GetBuiltinIntentsResponse getBuiltinIntents(GetBuiltinIntentsRequest getBuiltinIntentsRequest) throws LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
Gets a list of built-in intents that meet the specified criteria.
This operation requires permission for the lex:GetBuiltinIntents
action.
getBuiltinIntentsRequest
- LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetBuiltinIntentsResponse getBuiltinIntents(Consumer<GetBuiltinIntentsRequest.Builder> getBuiltinIntentsRequest) throws LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
Gets a list of built-in intents that meet the specified criteria.
This operation requires permission for the lex:GetBuiltinIntents
action.
This is a convenience which creates an instance of the GetBuiltinIntentsRequest.Builder
avoiding the need
to create one manually via GetBuiltinIntentsRequest.builder()
getBuiltinIntentsRequest
- A Consumer
that will call methods on GetBuiltinIntentsRequest.Builder
to create a request.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetBuiltinIntentsIterable getBuiltinIntentsPaginator() throws LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
Gets a list of built-in intents that meet the specified criteria.
This operation requires permission for the lex:GetBuiltinIntents
action.
This is a variant of
getBuiltinIntents(software.amazon.awssdk.services.lexmodelbuilding.model.GetBuiltinIntentsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.lexmodelbuilding.paginators.GetBuiltinIntentsIterable responses = client.getBuiltinIntentsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @code software.amazon.awssdk.services.lexmodelbuilding.paginators.GetBuiltinIntentsIterable responses = client .getBuiltinIntentsPaginator(request); for (software.amazon.awssdk.services.lexmodelbuilding.model.GetBuiltinIntentsResponse response : responses) { // do something; } }3) Use iterator directly
software.amazon.awssdk.services.lexmodelbuilding.paginators.GetBuiltinIntentsIterable responses = client.getBuiltinIntentsPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
getBuiltinIntents(software.amazon.awssdk.services.lexmodelbuilding.model.GetBuiltinIntentsRequest)
operation.
LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
getBuiltinIntentsPaginator(GetBuiltinIntentsRequest)
,
AWS
API Documentationdefault GetBuiltinIntentsIterable getBuiltinIntentsPaginator(GetBuiltinIntentsRequest getBuiltinIntentsRequest) throws LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
Gets a list of built-in intents that meet the specified criteria.
This operation requires permission for the lex:GetBuiltinIntents
action.
This is a variant of
getBuiltinIntents(software.amazon.awssdk.services.lexmodelbuilding.model.GetBuiltinIntentsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.lexmodelbuilding.paginators.GetBuiltinIntentsIterable responses = client.getBuiltinIntentsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @code software.amazon.awssdk.services.lexmodelbuilding.paginators.GetBuiltinIntentsIterable responses = client .getBuiltinIntentsPaginator(request); for (software.amazon.awssdk.services.lexmodelbuilding.model.GetBuiltinIntentsResponse response : responses) { // do something; } }3) Use iterator directly
software.amazon.awssdk.services.lexmodelbuilding.paginators.GetBuiltinIntentsIterable responses = client.getBuiltinIntentsPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
getBuiltinIntents(software.amazon.awssdk.services.lexmodelbuilding.model.GetBuiltinIntentsRequest)
operation.
getBuiltinIntentsRequest
- LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetBuiltinIntentsIterable getBuiltinIntentsPaginator(Consumer<GetBuiltinIntentsRequest.Builder> getBuiltinIntentsRequest) throws LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
Gets a list of built-in intents that meet the specified criteria.
This operation requires permission for the lex:GetBuiltinIntents
action.
This is a variant of
getBuiltinIntents(software.amazon.awssdk.services.lexmodelbuilding.model.GetBuiltinIntentsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.lexmodelbuilding.paginators.GetBuiltinIntentsIterable responses = client.getBuiltinIntentsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @code software.amazon.awssdk.services.lexmodelbuilding.paginators.GetBuiltinIntentsIterable responses = client .getBuiltinIntentsPaginator(request); for (software.amazon.awssdk.services.lexmodelbuilding.model.GetBuiltinIntentsResponse response : responses) { // do something; } }3) Use iterator directly
software.amazon.awssdk.services.lexmodelbuilding.paginators.GetBuiltinIntentsIterable responses = client.getBuiltinIntentsPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
getBuiltinIntents(software.amazon.awssdk.services.lexmodelbuilding.model.GetBuiltinIntentsRequest)
operation.
This is a convenience which creates an instance of the GetBuiltinIntentsRequest.Builder
avoiding the need
to create one manually via GetBuiltinIntentsRequest.builder()
getBuiltinIntentsRequest
- A Consumer
that will call methods on GetBuiltinIntentsRequest.Builder
to create a request.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetBuiltinSlotTypesResponse getBuiltinSlotTypes() throws LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
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:GetBuiltInSlotTypes
action.
LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
getBuiltinSlotTypes(GetBuiltinSlotTypesRequest)
,
AWS
API Documentationdefault GetBuiltinSlotTypesResponse getBuiltinSlotTypes(GetBuiltinSlotTypesRequest getBuiltinSlotTypesRequest) throws LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
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:GetBuiltInSlotTypes
action.
getBuiltinSlotTypesRequest
- LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetBuiltinSlotTypesResponse getBuiltinSlotTypes(Consumer<GetBuiltinSlotTypesRequest.Builder> getBuiltinSlotTypesRequest) throws LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
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:GetBuiltInSlotTypes
action.
This is a convenience which creates an instance of the GetBuiltinSlotTypesRequest.Builder
avoiding the
need to create one manually via GetBuiltinSlotTypesRequest.builder()
getBuiltinSlotTypesRequest
- A Consumer
that will call methods on GetBuiltinSlotTypesRequest.Builder
to create a
request.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetBuiltinSlotTypesIterable getBuiltinSlotTypesPaginator() throws LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
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:GetBuiltInSlotTypes
action.
This is a variant of
getBuiltinSlotTypes(software.amazon.awssdk.services.lexmodelbuilding.model.GetBuiltinSlotTypesRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.lexmodelbuilding.paginators.GetBuiltinSlotTypesIterable responses = client.getBuiltinSlotTypesPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @code software.amazon.awssdk.services.lexmodelbuilding.paginators.GetBuiltinSlotTypesIterable responses = client .getBuiltinSlotTypesPaginator(request); for (software.amazon.awssdk.services.lexmodelbuilding.model.GetBuiltinSlotTypesResponse response : responses) { // do something; } }3) Use iterator directly
software.amazon.awssdk.services.lexmodelbuilding.paginators.GetBuiltinSlotTypesIterable responses = client.getBuiltinSlotTypesPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
getBuiltinSlotTypes(software.amazon.awssdk.services.lexmodelbuilding.model.GetBuiltinSlotTypesRequest)
operation.
LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
getBuiltinSlotTypesPaginator(GetBuiltinSlotTypesRequest)
,
AWS
API Documentationdefault GetBuiltinSlotTypesIterable getBuiltinSlotTypesPaginator(GetBuiltinSlotTypesRequest getBuiltinSlotTypesRequest) throws LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
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:GetBuiltInSlotTypes
action.
This is a variant of
getBuiltinSlotTypes(software.amazon.awssdk.services.lexmodelbuilding.model.GetBuiltinSlotTypesRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.lexmodelbuilding.paginators.GetBuiltinSlotTypesIterable responses = client.getBuiltinSlotTypesPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @code software.amazon.awssdk.services.lexmodelbuilding.paginators.GetBuiltinSlotTypesIterable responses = client .getBuiltinSlotTypesPaginator(request); for (software.amazon.awssdk.services.lexmodelbuilding.model.GetBuiltinSlotTypesResponse response : responses) { // do something; } }3) Use iterator directly
software.amazon.awssdk.services.lexmodelbuilding.paginators.GetBuiltinSlotTypesIterable responses = client.getBuiltinSlotTypesPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
getBuiltinSlotTypes(software.amazon.awssdk.services.lexmodelbuilding.model.GetBuiltinSlotTypesRequest)
operation.
getBuiltinSlotTypesRequest
- LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetBuiltinSlotTypesIterable getBuiltinSlotTypesPaginator(Consumer<GetBuiltinSlotTypesRequest.Builder> getBuiltinSlotTypesRequest) throws LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
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:GetBuiltInSlotTypes
action.
This is a variant of
getBuiltinSlotTypes(software.amazon.awssdk.services.lexmodelbuilding.model.GetBuiltinSlotTypesRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.lexmodelbuilding.paginators.GetBuiltinSlotTypesIterable responses = client.getBuiltinSlotTypesPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @code software.amazon.awssdk.services.lexmodelbuilding.paginators.GetBuiltinSlotTypesIterable responses = client .getBuiltinSlotTypesPaginator(request); for (software.amazon.awssdk.services.lexmodelbuilding.model.GetBuiltinSlotTypesResponse response : responses) { // do something; } }3) Use iterator directly
software.amazon.awssdk.services.lexmodelbuilding.paginators.GetBuiltinSlotTypesIterable responses = client.getBuiltinSlotTypesPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
getBuiltinSlotTypes(software.amazon.awssdk.services.lexmodelbuilding.model.GetBuiltinSlotTypesRequest)
operation.
This is a convenience which creates an instance of the GetBuiltinSlotTypesRequest.Builder
avoiding the
need to create one manually via GetBuiltinSlotTypesRequest.builder()
getBuiltinSlotTypesRequest
- A Consumer
that will call methods on GetBuiltinSlotTypesRequest.Builder
to create a
request.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetExportResponse getExport(GetExportRequest getExportRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
Exports the contents of a Amazon Lex resource in a specified format.
getExportRequest
- NotFoundException
- The resource specified in the request was not found. Check the resource and try again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetExportResponse getExport(Consumer<GetExportRequest.Builder> getExportRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
Exports the contents of a Amazon Lex resource in a specified format.
This is a convenience which creates an instance of the GetExportRequest.Builder
avoiding the need to
create one manually via GetExportRequest.builder()
getExportRequest
- A Consumer
that will call methods on GetExportRequest.Builder
to create a request.NotFoundException
- The resource specified in the request was not found. Check the resource and try again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetImportResponse getImport(GetImportRequest getImportRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
Gets information about an import job started with the StartImport
operation.
getImportRequest
- NotFoundException
- The resource specified in the request was not found. Check the resource and try again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetImportResponse getImport(Consumer<GetImportRequest.Builder> getImportRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
Gets information about an import job started with the StartImport
operation.
This is a convenience which creates an instance of the GetImportRequest.Builder
avoiding the need to
create one manually via GetImportRequest.builder()
getImportRequest
- A Consumer
that will call methods on GetImportRequest.Builder
to create a request.NotFoundException
- The resource specified in the request was not found. Check the resource and try again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetIntentResponse getIntent(GetIntentRequest getIntentRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
Returns information about an intent. In addition to the intent name, you must specify the intent version.
This operation requires permissions to perform the lex:GetIntent
action.
getIntentRequest
- NotFoundException
- The resource specified in the request was not found. Check the resource and try again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetIntentResponse getIntent(Consumer<GetIntentRequest.Builder> getIntentRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
Returns information about an intent. In addition to the intent name, you must specify the intent version.
This operation requires permissions to perform the lex:GetIntent
action.
This is a convenience which creates an instance of the GetIntentRequest.Builder
avoiding the need to
create one manually via GetIntentRequest.builder()
getIntentRequest
- A Consumer
that will call methods on GetIntentRequest.Builder
to create a request.NotFoundException
- The resource specified in the request was not found. Check the resource and try again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetIntentVersionsResponse getIntentVersions(GetIntentVersionsRequest getIntentVersionsRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
Gets information about all of the versions of an intent.
The GetIntentVersions
operation returns an IntentMetadata
object for each version of an
intent. For example, if an intent has three numbered versions, the GetIntentVersions
operation
returns four IntentMetadata
objects in the response, one for each numbered version and one for the
$LATEST
version.
The GetIntentVersions
operation always returns at least one version, the $LATEST
version.
This operation requires permissions for the lex:GetIntentVersions
action.
getIntentVersionsRequest
- NotFoundException
- The resource specified in the request was not found. Check the resource and try again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetIntentVersionsResponse getIntentVersions(Consumer<GetIntentVersionsRequest.Builder> getIntentVersionsRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
Gets information about all of the versions of an intent.
The GetIntentVersions
operation returns an IntentMetadata
object for each version of an
intent. For example, if an intent has three numbered versions, the GetIntentVersions
operation
returns four IntentMetadata
objects in the response, one for each numbered version and one for the
$LATEST
version.
The GetIntentVersions
operation always returns at least one version, the $LATEST
version.
This operation requires permissions for the lex:GetIntentVersions
action.
This is a convenience which creates an instance of the GetIntentVersionsRequest.Builder
avoiding the need
to create one manually via GetIntentVersionsRequest.builder()
getIntentVersionsRequest
- A Consumer
that will call methods on GetIntentVersionsRequest.Builder
to create a request.NotFoundException
- The resource specified in the request was not found. Check the resource and try again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetIntentVersionsIterable getIntentVersionsPaginator(GetIntentVersionsRequest getIntentVersionsRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
Gets information about all of the versions of an intent.
The GetIntentVersions
operation returns an IntentMetadata
object for each version of an
intent. For example, if an intent has three numbered versions, the GetIntentVersions
operation
returns four IntentMetadata
objects in the response, one for each numbered version and one for the
$LATEST
version.
The GetIntentVersions
operation always returns at least one version, the $LATEST
version.
This operation requires permissions for the lex:GetIntentVersions
action.
This is a variant of
getIntentVersions(software.amazon.awssdk.services.lexmodelbuilding.model.GetIntentVersionsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.lexmodelbuilding.paginators.GetIntentVersionsIterable responses = client.getIntentVersionsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @code software.amazon.awssdk.services.lexmodelbuilding.paginators.GetIntentVersionsIterable responses = client .getIntentVersionsPaginator(request); for (software.amazon.awssdk.services.lexmodelbuilding.model.GetIntentVersionsResponse response : responses) { // do something; } }3) Use iterator directly
software.amazon.awssdk.services.lexmodelbuilding.paginators.GetIntentVersionsIterable responses = client.getIntentVersionsPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
getIntentVersions(software.amazon.awssdk.services.lexmodelbuilding.model.GetIntentVersionsRequest)
operation.
getIntentVersionsRequest
- NotFoundException
- The resource specified in the request was not found. Check the resource and try again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetIntentVersionsIterable getIntentVersionsPaginator(Consumer<GetIntentVersionsRequest.Builder> getIntentVersionsRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
Gets information about all of the versions of an intent.
The GetIntentVersions
operation returns an IntentMetadata
object for each version of an
intent. For example, if an intent has three numbered versions, the GetIntentVersions
operation
returns four IntentMetadata
objects in the response, one for each numbered version and one for the
$LATEST
version.
The GetIntentVersions
operation always returns at least one version, the $LATEST
version.
This operation requires permissions for the lex:GetIntentVersions
action.
This is a variant of
getIntentVersions(software.amazon.awssdk.services.lexmodelbuilding.model.GetIntentVersionsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.lexmodelbuilding.paginators.GetIntentVersionsIterable responses = client.getIntentVersionsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @code software.amazon.awssdk.services.lexmodelbuilding.paginators.GetIntentVersionsIterable responses = client .getIntentVersionsPaginator(request); for (software.amazon.awssdk.services.lexmodelbuilding.model.GetIntentVersionsResponse response : responses) { // do something; } }3) Use iterator directly
software.amazon.awssdk.services.lexmodelbuilding.paginators.GetIntentVersionsIterable responses = client.getIntentVersionsPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
getIntentVersions(software.amazon.awssdk.services.lexmodelbuilding.model.GetIntentVersionsRequest)
operation.
This is a convenience which creates an instance of the GetIntentVersionsRequest.Builder
avoiding the need
to create one manually via GetIntentVersionsRequest.builder()
getIntentVersionsRequest
- A Consumer
that will call methods on GetIntentVersionsRequest.Builder
to create a request.NotFoundException
- The resource specified in the request was not found. Check the resource and try again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetIntentsResponse getIntents() throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
Returns intent information as follows:
If you specify the nameContains
field, returns the $LATEST
version of all intents
that contain the specified string.
If you don't specify the nameContains
field, returns information about the $LATEST
version of all intents.
The operation requires permission for the lex:GetIntents
action.
NotFoundException
- The resource specified in the request was not found. Check the resource and try again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
getIntents(GetIntentsRequest)
,
AWS API
Documentationdefault GetIntentsResponse getIntents(GetIntentsRequest getIntentsRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
Returns intent information as follows:
If you specify the nameContains
field, returns the $LATEST
version of all intents
that contain the specified string.
If you don't specify the nameContains
field, returns information about the $LATEST
version of all intents.
The operation requires permission for the lex:GetIntents
action.
getIntentsRequest
- NotFoundException
- The resource specified in the request was not found. Check the resource and try again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetIntentsResponse getIntents(Consumer<GetIntentsRequest.Builder> getIntentsRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
Returns intent information as follows:
If you specify the nameContains
field, returns the $LATEST
version of all intents
that contain the specified string.
If you don't specify the nameContains
field, returns information about the $LATEST
version of all intents.
The operation requires permission for the lex:GetIntents
action.
This is a convenience which creates an instance of the GetIntentsRequest.Builder
avoiding the need to
create one manually via GetIntentsRequest.builder()
getIntentsRequest
- A Consumer
that will call methods on GetIntentsRequest.Builder
to create a request.NotFoundException
- The resource specified in the request was not found. Check the resource and try again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetIntentsIterable getIntentsPaginator() throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
Returns intent information as follows:
If you specify the nameContains
field, returns the $LATEST
version of all intents
that contain the specified string.
If you don't specify the nameContains
field, returns information about the $LATEST
version of all intents.
The operation requires permission for the lex:GetIntents
action.
This is a variant of
getIntents(software.amazon.awssdk.services.lexmodelbuilding.model.GetIntentsRequest)
operation. The
return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle
making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.lexmodelbuilding.paginators.GetIntentsIterable responses = client.getIntentsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @code software.amazon.awssdk.services.lexmodelbuilding.paginators.GetIntentsIterable responses = client .getIntentsPaginator(request); for (software.amazon.awssdk.services.lexmodelbuilding.model.GetIntentsResponse response : responses) { // do something; } }3) Use iterator directly
software.amazon.awssdk.services.lexmodelbuilding.paginators.GetIntentsIterable responses = client.getIntentsPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
getIntents(software.amazon.awssdk.services.lexmodelbuilding.model.GetIntentsRequest)
operation.
NotFoundException
- The resource specified in the request was not found. Check the resource and try again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
getIntentsPaginator(GetIntentsRequest)
,
AWS API
Documentationdefault GetIntentsIterable getIntentsPaginator(GetIntentsRequest getIntentsRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
Returns intent information as follows:
If you specify the nameContains
field, returns the $LATEST
version of all intents
that contain the specified string.
If you don't specify the nameContains
field, returns information about the $LATEST
version of all intents.
The operation requires permission for the lex:GetIntents
action.
This is a variant of
getIntents(software.amazon.awssdk.services.lexmodelbuilding.model.GetIntentsRequest)
operation. The
return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle
making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.lexmodelbuilding.paginators.GetIntentsIterable responses = client.getIntentsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @code software.amazon.awssdk.services.lexmodelbuilding.paginators.GetIntentsIterable responses = client .getIntentsPaginator(request); for (software.amazon.awssdk.services.lexmodelbuilding.model.GetIntentsResponse response : responses) { // do something; } }3) Use iterator directly
software.amazon.awssdk.services.lexmodelbuilding.paginators.GetIntentsIterable responses = client.getIntentsPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
getIntents(software.amazon.awssdk.services.lexmodelbuilding.model.GetIntentsRequest)
operation.
getIntentsRequest
- NotFoundException
- The resource specified in the request was not found. Check the resource and try again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetIntentsIterable getIntentsPaginator(Consumer<GetIntentsRequest.Builder> getIntentsRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
Returns intent information as follows:
If you specify the nameContains
field, returns the $LATEST
version of all intents
that contain the specified string.
If you don't specify the nameContains
field, returns information about the $LATEST
version of all intents.
The operation requires permission for the lex:GetIntents
action.
This is a variant of
getIntents(software.amazon.awssdk.services.lexmodelbuilding.model.GetIntentsRequest)
operation. The
return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle
making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.lexmodelbuilding.paginators.GetIntentsIterable responses = client.getIntentsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @code software.amazon.awssdk.services.lexmodelbuilding.paginators.GetIntentsIterable responses = client .getIntentsPaginator(request); for (software.amazon.awssdk.services.lexmodelbuilding.model.GetIntentsResponse response : responses) { // do something; } }3) Use iterator directly
software.amazon.awssdk.services.lexmodelbuilding.paginators.GetIntentsIterable responses = client.getIntentsPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
getIntents(software.amazon.awssdk.services.lexmodelbuilding.model.GetIntentsRequest)
operation.
This is a convenience which creates an instance of the GetIntentsRequest.Builder
avoiding the need to
create one manually via GetIntentsRequest.builder()
getIntentsRequest
- A Consumer
that will call methods on GetIntentsRequest.Builder
to create a request.NotFoundException
- The resource specified in the request was not found. Check the resource and try again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetSlotTypeResponse getSlotType(GetSlotTypeRequest getSlotTypeRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
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.
This operation requires permissions for the lex:GetSlotType
action.
getSlotTypeRequest
- NotFoundException
- The resource specified in the request was not found. Check the resource and try again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetSlotTypeResponse getSlotType(Consumer<GetSlotTypeRequest.Builder> getSlotTypeRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
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.
This operation requires permissions for the lex:GetSlotType
action.
This is a convenience which creates an instance of the GetSlotTypeRequest.Builder
avoiding the need to
create one manually via GetSlotTypeRequest.builder()
getSlotTypeRequest
- A Consumer
that will call methods on GetSlotTypeRequest.Builder
to create a request.NotFoundException
- The resource specified in the request was not found. Check the resource and try again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetSlotTypeVersionsResponse getSlotTypeVersions(GetSlotTypeVersionsRequest getSlotTypeVersionsRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
Gets information about all versions of a slot type.
The GetSlotTypeVersions
operation returns a SlotTypeMetadata
object for each version of
a slot type. For example, if a slot type has three numbered versions, the GetSlotTypeVersions
operation returns four SlotTypeMetadata
objects in the response, one for each numbered version and
one for the $LATEST
version.
The GetSlotTypeVersions
operation always returns at least one version, the $LATEST
version.
This operation requires permissions for the lex:GetSlotTypeVersions
action.
getSlotTypeVersionsRequest
- NotFoundException
- The resource specified in the request was not found. Check the resource and try again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetSlotTypeVersionsResponse getSlotTypeVersions(Consumer<GetSlotTypeVersionsRequest.Builder> getSlotTypeVersionsRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
Gets information about all versions of a slot type.
The GetSlotTypeVersions
operation returns a SlotTypeMetadata
object for each version of
a slot type. For example, if a slot type has three numbered versions, the GetSlotTypeVersions
operation returns four SlotTypeMetadata
objects in the response, one for each numbered version and
one for the $LATEST
version.
The GetSlotTypeVersions
operation always returns at least one version, the $LATEST
version.
This operation requires permissions for the lex:GetSlotTypeVersions
action.
This is a convenience which creates an instance of the GetSlotTypeVersionsRequest.Builder
avoiding the
need to create one manually via GetSlotTypeVersionsRequest.builder()
getSlotTypeVersionsRequest
- A Consumer
that will call methods on GetSlotTypeVersionsRequest.Builder
to create a
request.NotFoundException
- The resource specified in the request was not found. Check the resource and try again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetSlotTypeVersionsIterable getSlotTypeVersionsPaginator(GetSlotTypeVersionsRequest getSlotTypeVersionsRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
Gets information about all versions of a slot type.
The GetSlotTypeVersions
operation returns a SlotTypeMetadata
object for each version of
a slot type. For example, if a slot type has three numbered versions, the GetSlotTypeVersions
operation returns four SlotTypeMetadata
objects in the response, one for each numbered version and
one for the $LATEST
version.
The GetSlotTypeVersions
operation always returns at least one version, the $LATEST
version.
This operation requires permissions for the lex:GetSlotTypeVersions
action.
This is a variant of
getSlotTypeVersions(software.amazon.awssdk.services.lexmodelbuilding.model.GetSlotTypeVersionsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.lexmodelbuilding.paginators.GetSlotTypeVersionsIterable responses = client.getSlotTypeVersionsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @code software.amazon.awssdk.services.lexmodelbuilding.paginators.GetSlotTypeVersionsIterable responses = client .getSlotTypeVersionsPaginator(request); for (software.amazon.awssdk.services.lexmodelbuilding.model.GetSlotTypeVersionsResponse response : responses) { // do something; } }3) Use iterator directly
software.amazon.awssdk.services.lexmodelbuilding.paginators.GetSlotTypeVersionsIterable responses = client.getSlotTypeVersionsPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
getSlotTypeVersions(software.amazon.awssdk.services.lexmodelbuilding.model.GetSlotTypeVersionsRequest)
operation.
getSlotTypeVersionsRequest
- NotFoundException
- The resource specified in the request was not found. Check the resource and try again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetSlotTypeVersionsIterable getSlotTypeVersionsPaginator(Consumer<GetSlotTypeVersionsRequest.Builder> getSlotTypeVersionsRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
Gets information about all versions of a slot type.
The GetSlotTypeVersions
operation returns a SlotTypeMetadata
object for each version of
a slot type. For example, if a slot type has three numbered versions, the GetSlotTypeVersions
operation returns four SlotTypeMetadata
objects in the response, one for each numbered version and
one for the $LATEST
version.
The GetSlotTypeVersions
operation always returns at least one version, the $LATEST
version.
This operation requires permissions for the lex:GetSlotTypeVersions
action.
This is a variant of
getSlotTypeVersions(software.amazon.awssdk.services.lexmodelbuilding.model.GetSlotTypeVersionsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.lexmodelbuilding.paginators.GetSlotTypeVersionsIterable responses = client.getSlotTypeVersionsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @code software.amazon.awssdk.services.lexmodelbuilding.paginators.GetSlotTypeVersionsIterable responses = client .getSlotTypeVersionsPaginator(request); for (software.amazon.awssdk.services.lexmodelbuilding.model.GetSlotTypeVersionsResponse response : responses) { // do something; } }3) Use iterator directly
software.amazon.awssdk.services.lexmodelbuilding.paginators.GetSlotTypeVersionsIterable responses = client.getSlotTypeVersionsPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
getSlotTypeVersions(software.amazon.awssdk.services.lexmodelbuilding.model.GetSlotTypeVersionsRequest)
operation.
This is a convenience which creates an instance of the GetSlotTypeVersionsRequest.Builder
avoiding the
need to create one manually via GetSlotTypeVersionsRequest.builder()
getSlotTypeVersionsRequest
- A Consumer
that will call methods on GetSlotTypeVersionsRequest.Builder
to create a
request.NotFoundException
- The resource specified in the request was not found. Check the resource and try again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetSlotTypesResponse getSlotTypes() throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
Returns slot type information as follows:
If you specify the nameContains
field, returns the $LATEST
version of all slot types
that contain the specified string.
If you don't specify the nameContains
field, returns information about the $LATEST
version of all slot types.
The operation requires permission for the lex:GetSlotTypes
action.
NotFoundException
- The resource specified in the request was not found. Check the resource and try again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
getSlotTypes(GetSlotTypesRequest)
,
AWS API
Documentationdefault GetSlotTypesResponse getSlotTypes(GetSlotTypesRequest getSlotTypesRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
Returns slot type information as follows:
If you specify the nameContains
field, returns the $LATEST
version of all slot types
that contain the specified string.
If you don't specify the nameContains
field, returns information about the $LATEST
version of all slot types.
The operation requires permission for the lex:GetSlotTypes
action.
getSlotTypesRequest
- NotFoundException
- The resource specified in the request was not found. Check the resource and try again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetSlotTypesResponse getSlotTypes(Consumer<GetSlotTypesRequest.Builder> getSlotTypesRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
Returns slot type information as follows:
If you specify the nameContains
field, returns the $LATEST
version of all slot types
that contain the specified string.
If you don't specify the nameContains
field, returns information about the $LATEST
version of all slot types.
The operation requires permission for the lex:GetSlotTypes
action.
This is a convenience which creates an instance of the GetSlotTypesRequest.Builder
avoiding the need to
create one manually via GetSlotTypesRequest.builder()
getSlotTypesRequest
- A Consumer
that will call methods on GetSlotTypesRequest.Builder
to create a request.NotFoundException
- The resource specified in the request was not found. Check the resource and try again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetSlotTypesIterable getSlotTypesPaginator() throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
Returns slot type information as follows:
If you specify the nameContains
field, returns the $LATEST
version of all slot types
that contain the specified string.
If you don't specify the nameContains
field, returns information about the $LATEST
version of all slot types.
The operation requires permission for the lex:GetSlotTypes
action.
This is a variant of
getSlotTypes(software.amazon.awssdk.services.lexmodelbuilding.model.GetSlotTypesRequest)
operation. The
return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle
making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.lexmodelbuilding.paginators.GetSlotTypesIterable responses = client.getSlotTypesPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @code software.amazon.awssdk.services.lexmodelbuilding.paginators.GetSlotTypesIterable responses = client .getSlotTypesPaginator(request); for (software.amazon.awssdk.services.lexmodelbuilding.model.GetSlotTypesResponse response : responses) { // do something; } }3) Use iterator directly
software.amazon.awssdk.services.lexmodelbuilding.paginators.GetSlotTypesIterable responses = client.getSlotTypesPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
getSlotTypes(software.amazon.awssdk.services.lexmodelbuilding.model.GetSlotTypesRequest)
operation.
NotFoundException
- The resource specified in the request was not found. Check the resource and try again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
getSlotTypesPaginator(GetSlotTypesRequest)
,
AWS API
Documentationdefault GetSlotTypesIterable getSlotTypesPaginator(GetSlotTypesRequest getSlotTypesRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
Returns slot type information as follows:
If you specify the nameContains
field, returns the $LATEST
version of all slot types
that contain the specified string.
If you don't specify the nameContains
field, returns information about the $LATEST
version of all slot types.
The operation requires permission for the lex:GetSlotTypes
action.
This is a variant of
getSlotTypes(software.amazon.awssdk.services.lexmodelbuilding.model.GetSlotTypesRequest)
operation. The
return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle
making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.lexmodelbuilding.paginators.GetSlotTypesIterable responses = client.getSlotTypesPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @code software.amazon.awssdk.services.lexmodelbuilding.paginators.GetSlotTypesIterable responses = client .getSlotTypesPaginator(request); for (software.amazon.awssdk.services.lexmodelbuilding.model.GetSlotTypesResponse response : responses) { // do something; } }3) Use iterator directly
software.amazon.awssdk.services.lexmodelbuilding.paginators.GetSlotTypesIterable responses = client.getSlotTypesPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
getSlotTypes(software.amazon.awssdk.services.lexmodelbuilding.model.GetSlotTypesRequest)
operation.
getSlotTypesRequest
- NotFoundException
- The resource specified in the request was not found. Check the resource and try again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetSlotTypesIterable getSlotTypesPaginator(Consumer<GetSlotTypesRequest.Builder> getSlotTypesRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
Returns slot type information as follows:
If you specify the nameContains
field, returns the $LATEST
version of all slot types
that contain the specified string.
If you don't specify the nameContains
field, returns information about the $LATEST
version of all slot types.
The operation requires permission for the lex:GetSlotTypes
action.
This is a variant of
getSlotTypes(software.amazon.awssdk.services.lexmodelbuilding.model.GetSlotTypesRequest)
operation. The
return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle
making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.lexmodelbuilding.paginators.GetSlotTypesIterable responses = client.getSlotTypesPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @code software.amazon.awssdk.services.lexmodelbuilding.paginators.GetSlotTypesIterable responses = client .getSlotTypesPaginator(request); for (software.amazon.awssdk.services.lexmodelbuilding.model.GetSlotTypesResponse response : responses) { // do something; } }3) Use iterator directly
software.amazon.awssdk.services.lexmodelbuilding.paginators.GetSlotTypesIterable responses = client.getSlotTypesPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
getSlotTypes(software.amazon.awssdk.services.lexmodelbuilding.model.GetSlotTypesRequest)
operation.
This is a convenience which creates an instance of the GetSlotTypesRequest.Builder
avoiding the need to
create one manually via GetSlotTypesRequest.builder()
getSlotTypesRequest
- A Consumer
that will call methods on GetSlotTypesRequest.Builder
to create a request.NotFoundException
- The resource specified in the request was not found. Check the resource and try again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetUtterancesViewResponse getUtterancesView(GetUtterancesViewRequest getUtterancesViewRequest) throws LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
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.
For example, say that you have created a bot to order flowers. After your users have used your bot for a while,
use the GetUtterancesView
operation to see the requests that they have made and whether they have
been successful. You might find that the utterance "I want flowers" is not being recognized. You could add this
utterance to the OrderFlowers
intent so that your bot recognizes that utterance.
After you publish a new version of a bot, you can get information about the old version and the new so that you can compare the performance across the two versions.
Utterance statistics are generated once a day. Data is available for the last 15 days. You can request information for up to 5 versions in each request. The response contains information about a maximum of 100 utterances for each version.
This operation requires permissions for the lex:GetUtterancesView
action.
getUtterancesViewRequest
- LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetUtterancesViewResponse getUtterancesView(Consumer<GetUtterancesViewRequest.Builder> getUtterancesViewRequest) throws LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
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.
For example, say that you have created a bot to order flowers. After your users have used your bot for a while,
use the GetUtterancesView
operation to see the requests that they have made and whether they have
been successful. You might find that the utterance "I want flowers" is not being recognized. You could add this
utterance to the OrderFlowers
intent so that your bot recognizes that utterance.
After you publish a new version of a bot, you can get information about the old version and the new so that you can compare the performance across the two versions.
Utterance statistics are generated once a day. Data is available for the last 15 days. You can request information for up to 5 versions in each request. The response contains information about a maximum of 100 utterances for each version.
This operation requires permissions for the lex:GetUtterancesView
action.
This is a convenience which creates an instance of the GetUtterancesViewRequest.Builder
avoiding the need
to create one manually via GetUtterancesViewRequest.builder()
getUtterancesViewRequest
- A Consumer
that will call methods on GetUtterancesViewRequest.Builder
to create a request.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default PutBotResponse putBot(PutBotRequest putBotRequest) throws ConflictException, LimitExceededException, InternalFailureException, BadRequestException, PreconditionFailedException, AwsServiceException, SdkClientException, LexModelBuildingException
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.
If you specify the name of an existing bot, the fields in the request replace the existing values in the
$LATEST
version of the bot. Amazon Lex removes any fields that you don't provide values for in
the request, except for the idleTTLInSeconds
and privacySettings
fields, which are set
to their default values. If you don't specify values for required fields, Amazon Lex throws an exception.
This operation requires permissions for the lex:PutBot
action. For more information, see
auth-and-access-control.
putBotRequest
- ConflictException
- There was a conflict processing the request. Try your request again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.PreconditionFailedException
- The checksum of the resource that you are trying to change does not match the checksum in the request.
Check the resource's checksum and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default PutBotResponse putBot(Consumer<PutBotRequest.Builder> putBotRequest) throws ConflictException, LimitExceededException, InternalFailureException, BadRequestException, PreconditionFailedException, AwsServiceException, SdkClientException, LexModelBuildingException
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.
If you specify the name of an existing bot, the fields in the request replace the existing values in the
$LATEST
version of the bot. Amazon Lex removes any fields that you don't provide values for in
the request, except for the idleTTLInSeconds
and privacySettings
fields, which are set
to their default values. If you don't specify values for required fields, Amazon Lex throws an exception.
This operation requires permissions for the lex:PutBot
action. For more information, see
auth-and-access-control.
This is a convenience which creates an instance of the PutBotRequest.Builder
avoiding the need to create
one manually via PutBotRequest.builder()
putBotRequest
- A Consumer
that will call methods on PutBotRequest.Builder
to create a request.ConflictException
- There was a conflict processing the request. Try your request again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.PreconditionFailedException
- The checksum of the resource that you are trying to change does not match the checksum in the request.
Check the resource's checksum and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default PutBotAliasResponse putBotAlias(PutBotAliasRequest putBotAliasRequest) throws ConflictException, LimitExceededException, InternalFailureException, BadRequestException, PreconditionFailedException, AwsServiceException, SdkClientException, LexModelBuildingException
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.
This operation requires permissions for the lex:PutBotAlias
action.
putBotAliasRequest
- ConflictException
- There was a conflict processing the request. Try your request again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.PreconditionFailedException
- The checksum of the resource that you are trying to change does not match the checksum in the request.
Check the resource's checksum and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default PutBotAliasResponse putBotAlias(Consumer<PutBotAliasRequest.Builder> putBotAliasRequest) throws ConflictException, LimitExceededException, InternalFailureException, BadRequestException, PreconditionFailedException, AwsServiceException, SdkClientException, LexModelBuildingException
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.
This operation requires permissions for the lex:PutBotAlias
action.
This is a convenience which creates an instance of the PutBotAliasRequest.Builder
avoiding the need to
create one manually via PutBotAliasRequest.builder()
putBotAliasRequest
- A Consumer
that will call methods on PutBotAliasRequest.Builder
to create a request.ConflictException
- There was a conflict processing the request. Try your request again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.PreconditionFailedException
- The checksum of the resource that you are trying to change does not match the checksum in the request.
Check the resource's checksum and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default PutIntentResponse putIntent(PutIntentRequest putIntentRequest) throws ConflictException, LimitExceededException, InternalFailureException, BadRequestException, PreconditionFailedException, AwsServiceException, SdkClientException, LexModelBuildingException
Creates an intent or replaces an existing intent.
To define the interaction between the user and your bot, you use one or more intents. For a pizza ordering bot,
for example, you would create an OrderPizza
intent.
To create an intent or replace an existing intent, you must provide the following:
Intent name. For example, OrderPizza
.
Sample utterances. For example, "Can I order a pizza, please." and "I want to order a pizza."
Information to be gathered. You specify slot types for the information that your bot will request from the user. You can specify standard slot types, such as a date or a time, or custom slot types such as the size and crust of a pizza.
How the intent will be fulfilled. You can provide a Lambda function or configure the intent to return the intent information to the client application. If you use a Lambda function, when all of the intent information is available, Amazon Lex invokes your Lambda function. If you configure your intent to return the intent information to the client application.
You can specify other optional information in the request, such as:
A confirmation prompt to ask the user to confirm an intent. For example, "Shall I order your pizza?"
A conclusion statement to send to the user after the intent has been fulfilled. For example, "I placed your pizza order."
A follow-up prompt that asks the user for additional activity. For example, asking "Do you want to order a drink with your pizza?"
If you specify an existing intent name to update the intent, Amazon Lex replaces the values in the
$LATEST
version of the intent with the values in the request. Amazon Lex removes fields that you
don't provide in the request. If you don't specify the required fields, Amazon Lex throws an exception. When you
update the $LATEST
version of an intent, the status
field of any bot that uses the
$LATEST
version of the intent is set to NOT_BUILT
.
For more information, see how-it-works.
This operation requires permissions for the lex:PutIntent
action.
putIntentRequest
- ConflictException
- There was a conflict processing the request. Try your request again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.PreconditionFailedException
- The checksum of the resource that you are trying to change does not match the checksum in the request.
Check the resource's checksum and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default PutIntentResponse putIntent(Consumer<PutIntentRequest.Builder> putIntentRequest) throws ConflictException, LimitExceededException, InternalFailureException, BadRequestException, PreconditionFailedException, AwsServiceException, SdkClientException, LexModelBuildingException
Creates an intent or replaces an existing intent.
To define the interaction between the user and your bot, you use one or more intents. For a pizza ordering bot,
for example, you would create an OrderPizza
intent.
To create an intent or replace an existing intent, you must provide the following:
Intent name. For example, OrderPizza
.
Sample utterances. For example, "Can I order a pizza, please." and "I want to order a pizza."
Information to be gathered. You specify slot types for the information that your bot will request from the user. You can specify standard slot types, such as a date or a time, or custom slot types such as the size and crust of a pizza.
How the intent will be fulfilled. You can provide a Lambda function or configure the intent to return the intent information to the client application. If you use a Lambda function, when all of the intent information is available, Amazon Lex invokes your Lambda function. If you configure your intent to return the intent information to the client application.
You can specify other optional information in the request, such as:
A confirmation prompt to ask the user to confirm an intent. For example, "Shall I order your pizza?"
A conclusion statement to send to the user after the intent has been fulfilled. For example, "I placed your pizza order."
A follow-up prompt that asks the user for additional activity. For example, asking "Do you want to order a drink with your pizza?"
If you specify an existing intent name to update the intent, Amazon Lex replaces the values in the
$LATEST
version of the intent with the values in the request. Amazon Lex removes fields that you
don't provide in the request. If you don't specify the required fields, Amazon Lex throws an exception. When you
update the $LATEST
version of an intent, the status
field of any bot that uses the
$LATEST
version of the intent is set to NOT_BUILT
.
For more information, see how-it-works.
This operation requires permissions for the lex:PutIntent
action.
This is a convenience which creates an instance of the PutIntentRequest.Builder
avoiding the need to
create one manually via PutIntentRequest.builder()
putIntentRequest
- A Consumer
that will call methods on PutIntentRequest.Builder
to create a request.ConflictException
- There was a conflict processing the request. Try your request again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.PreconditionFailedException
- The checksum of the resource that you are trying to change does not match the checksum in the request.
Check the resource's checksum and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default PutSlotTypeResponse putSlotType(PutSlotTypeRequest putSlotTypeRequest) throws ConflictException, LimitExceededException, InternalFailureException, BadRequestException, PreconditionFailedException, AwsServiceException, SdkClientException, LexModelBuildingException
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. For more information, see how-it-works.
If you specify the name of an existing slot type, the fields in the request replace the existing values in the
$LATEST
version of the slot type. Amazon Lex removes the fields that you don't provide in the
request. If you don't specify required fields, Amazon Lex throws an exception. When you update the
$LATEST
version of a slot type, if a bot uses the $LATEST
version of an intent
that contains the slot type, the bot's status
field is set to NOT_BUILT
.
This operation requires permissions for the lex:PutSlotType
action.
putSlotTypeRequest
- ConflictException
- There was a conflict processing the request. Try your request again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.PreconditionFailedException
- The checksum of the resource that you are trying to change does not match the checksum in the request.
Check the resource's checksum and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default PutSlotTypeResponse putSlotType(Consumer<PutSlotTypeRequest.Builder> putSlotTypeRequest) throws ConflictException, LimitExceededException, InternalFailureException, BadRequestException, PreconditionFailedException, AwsServiceException, SdkClientException, LexModelBuildingException
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. For more information, see how-it-works.
If you specify the name of an existing slot type, the fields in the request replace the existing values in the
$LATEST
version of the slot type. Amazon Lex removes the fields that you don't provide in the
request. If you don't specify required fields, Amazon Lex throws an exception. When you update the
$LATEST
version of a slot type, if a bot uses the $LATEST
version of an intent
that contains the slot type, the bot's status
field is set to NOT_BUILT
.
This operation requires permissions for the lex:PutSlotType
action.
This is a convenience which creates an instance of the PutSlotTypeRequest.Builder
avoiding the need to
create one manually via PutSlotTypeRequest.builder()
putSlotTypeRequest
- A Consumer
that will call methods on PutSlotTypeRequest.Builder
to create a request.ConflictException
- There was a conflict processing the request. Try your request again.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.PreconditionFailedException
- The checksum of the resource that you are trying to change does not match the checksum in the request.
Check the resource's checksum and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default StartImportResponse startImport(StartImportRequest startImportRequest) throws LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
Starts a job to import a resource to Amazon Lex.
startImportRequest
- LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default StartImportResponse startImport(Consumer<StartImportRequest.Builder> startImportRequest) throws LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException
Starts a job to import a resource to Amazon Lex.
This is a convenience which creates an instance of the StartImportRequest.Builder
avoiding the need to
create one manually via StartImportRequest.builder()
startImportRequest
- A Consumer
that will call methods on StartImportRequest.Builder
to create a request.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal Amazon Lex error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LexModelBuildingException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
static ServiceMetadata serviceMetadata()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.