Interface KendraRankingClient
-
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
@Generated("software.amazon.awssdk:codegen") @ThreadSafe public interface KendraRankingClient extends AwsClient
Service client for accessing Kendra Ranking. This can be created using the staticbuilder()method.Amazon Kendra Intelligent Ranking uses Amazon Kendra semantic search capabilities to intelligently re-rank a search service's results.
-
-
Field Summary
Fields Modifier and Type Field Description static StringSERVICE_METADATA_IDValue for looking up the service's metadata from theServiceMetadataProvider.static StringSERVICE_NAME
-
Method Summary
-
Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
-
Methods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
-
-
-
Field Detail
-
SERVICE_NAME
static final String SERVICE_NAME
- See Also:
- Constant Field Values
-
SERVICE_METADATA_ID
static final String SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider.- See Also:
- Constant Field Values
-
-
Method Detail
-
createRescoreExecutionPlan
default CreateRescoreExecutionPlanResponse createRescoreExecutionPlan(CreateRescoreExecutionPlanRequest createRescoreExecutionPlanRequest) throws AccessDeniedException, ConflictException, ServiceQuotaExceededException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, KendraRankingException
Creates a rescore execution plan. A rescore execution plan is an Amazon Kendra Intelligent Ranking resource used for provisioning the
RescoreAPI. You set the number of capacity units that you require for Amazon Kendra Intelligent Ranking to rescore or re-rank a search service's results.For an example of using the
CreateRescoreExecutionPlanAPI, including using the Python and Java SDKs, see Semantically ranking a search service's results.- Parameters:
createRescoreExecutionPlanRequest-- Returns:
- Result of the CreateRescoreExecutionPlan operation returned by the service.
- Throws:
AccessDeniedException- You don’t have sufficient access to perform this action. Please ensure you have the required permission policies and user accounts and try again.ConflictException- A conflict occurred with the request. Please fix any inconsistencies with your resources and try again.ServiceQuotaExceededException- You have exceeded the set limits for your Amazon Kendra Intelligent Ranking service. Please see Quotas for more information, or contact Support to inquire about an increase of limits.ThrottlingException- The request was denied due to request throttling. Please reduce the number of requests and try again.ValidationException- The input fails to satisfy the constraints set by the Amazon Kendra Intelligent Ranking service. Please provide the correct input and try again.InternalServerException- An issue occurred with the internal server used for your Amazon Kendra Intelligent Ranking service. Please wait a few minutes and try again, or contact Support for help.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.KendraRankingException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createRescoreExecutionPlan
default CreateRescoreExecutionPlanResponse createRescoreExecutionPlan(Consumer<CreateRescoreExecutionPlanRequest.Builder> createRescoreExecutionPlanRequest) throws AccessDeniedException, ConflictException, ServiceQuotaExceededException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, KendraRankingException
Creates a rescore execution plan. A rescore execution plan is an Amazon Kendra Intelligent Ranking resource used for provisioning the
RescoreAPI. You set the number of capacity units that you require for Amazon Kendra Intelligent Ranking to rescore or re-rank a search service's results.For an example of using the
CreateRescoreExecutionPlanAPI, including using the Python and Java SDKs, see Semantically ranking a search service's results.
This is a convenience which creates an instance of the
CreateRescoreExecutionPlanRequest.Builderavoiding the need to create one manually viaCreateRescoreExecutionPlanRequest.builder()- Parameters:
createRescoreExecutionPlanRequest- AConsumerthat will call methods onCreateRescoreExecutionPlanRequest.Builderto create a request.- Returns:
- Result of the CreateRescoreExecutionPlan operation returned by the service.
- Throws:
AccessDeniedException- You don’t have sufficient access to perform this action. Please ensure you have the required permission policies and user accounts and try again.ConflictException- A conflict occurred with the request. Please fix any inconsistencies with your resources and try again.ServiceQuotaExceededException- You have exceeded the set limits for your Amazon Kendra Intelligent Ranking service. Please see Quotas for more information, or contact Support to inquire about an increase of limits.ThrottlingException- The request was denied due to request throttling. Please reduce the number of requests and try again.ValidationException- The input fails to satisfy the constraints set by the Amazon Kendra Intelligent Ranking service. Please provide the correct input and try again.InternalServerException- An issue occurred with the internal server used for your Amazon Kendra Intelligent Ranking service. Please wait a few minutes and try again, or contact Support for help.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.KendraRankingException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteRescoreExecutionPlan
default DeleteRescoreExecutionPlanResponse deleteRescoreExecutionPlan(DeleteRescoreExecutionPlanRequest deleteRescoreExecutionPlanRequest) throws AccessDeniedException, ValidationException, ConflictException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, KendraRankingException
Deletes a rescore execution plan. A rescore execution plan is an Amazon Kendra Intelligent Ranking resource used for provisioning the
RescoreAPI.- Parameters:
deleteRescoreExecutionPlanRequest-- Returns:
- Result of the DeleteRescoreExecutionPlan operation returned by the service.
- Throws:
AccessDeniedException- You don’t have sufficient access to perform this action. Please ensure you have the required permission policies and user accounts and try again.ValidationException- The input fails to satisfy the constraints set by the Amazon Kendra Intelligent Ranking service. Please provide the correct input and try again.ConflictException- A conflict occurred with the request. Please fix any inconsistencies with your resources and try again.ResourceNotFoundException- The resource you want to use doesn't exist. Please check you have provided the correct resource and try again.ThrottlingException- The request was denied due to request throttling. Please reduce the number of requests and try again.InternalServerException- An issue occurred with the internal server used for your Amazon Kendra Intelligent Ranking service. Please wait a few minutes and try again, or contact Support for help.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.KendraRankingException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteRescoreExecutionPlan
default DeleteRescoreExecutionPlanResponse deleteRescoreExecutionPlan(Consumer<DeleteRescoreExecutionPlanRequest.Builder> deleteRescoreExecutionPlanRequest) throws AccessDeniedException, ValidationException, ConflictException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, KendraRankingException
Deletes a rescore execution plan. A rescore execution plan is an Amazon Kendra Intelligent Ranking resource used for provisioning the
RescoreAPI.
This is a convenience which creates an instance of the
DeleteRescoreExecutionPlanRequest.Builderavoiding the need to create one manually viaDeleteRescoreExecutionPlanRequest.builder()- Parameters:
deleteRescoreExecutionPlanRequest- AConsumerthat will call methods onDeleteRescoreExecutionPlanRequest.Builderto create a request.- Returns:
- Result of the DeleteRescoreExecutionPlan operation returned by the service.
- Throws:
AccessDeniedException- You don’t have sufficient access to perform this action. Please ensure you have the required permission policies and user accounts and try again.ValidationException- The input fails to satisfy the constraints set by the Amazon Kendra Intelligent Ranking service. Please provide the correct input and try again.ConflictException- A conflict occurred with the request. Please fix any inconsistencies with your resources and try again.ResourceNotFoundException- The resource you want to use doesn't exist. Please check you have provided the correct resource and try again.ThrottlingException- The request was denied due to request throttling. Please reduce the number of requests and try again.InternalServerException- An issue occurred with the internal server used for your Amazon Kendra Intelligent Ranking service. Please wait a few minutes and try again, or contact Support for help.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.KendraRankingException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeRescoreExecutionPlan
default DescribeRescoreExecutionPlanResponse describeRescoreExecutionPlan(DescribeRescoreExecutionPlanRequest describeRescoreExecutionPlanRequest) throws ValidationException, ResourceNotFoundException, ThrottlingException, AccessDeniedException, InternalServerException, AwsServiceException, SdkClientException, KendraRankingException
Gets information about a rescore execution plan. A rescore execution plan is an Amazon Kendra Intelligent Ranking resource used for provisioning the
RescoreAPI.- Parameters:
describeRescoreExecutionPlanRequest-- Returns:
- Result of the DescribeRescoreExecutionPlan operation returned by the service.
- Throws:
ValidationException- The input fails to satisfy the constraints set by the Amazon Kendra Intelligent Ranking service. Please provide the correct input and try again.ResourceNotFoundException- The resource you want to use doesn't exist. Please check you have provided the correct resource and try again.ThrottlingException- The request was denied due to request throttling. Please reduce the number of requests and try again.AccessDeniedException- You don’t have sufficient access to perform this action. Please ensure you have the required permission policies and user accounts and try again.InternalServerException- An issue occurred with the internal server used for your Amazon Kendra Intelligent Ranking service. Please wait a few minutes and try again, or contact Support for help.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.KendraRankingException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeRescoreExecutionPlan
default DescribeRescoreExecutionPlanResponse describeRescoreExecutionPlan(Consumer<DescribeRescoreExecutionPlanRequest.Builder> describeRescoreExecutionPlanRequest) throws ValidationException, ResourceNotFoundException, ThrottlingException, AccessDeniedException, InternalServerException, AwsServiceException, SdkClientException, KendraRankingException
Gets information about a rescore execution plan. A rescore execution plan is an Amazon Kendra Intelligent Ranking resource used for provisioning the
RescoreAPI.
This is a convenience which creates an instance of the
DescribeRescoreExecutionPlanRequest.Builderavoiding the need to create one manually viaDescribeRescoreExecutionPlanRequest.builder()- Parameters:
describeRescoreExecutionPlanRequest- AConsumerthat will call methods onDescribeRescoreExecutionPlanRequest.Builderto create a request.- Returns:
- Result of the DescribeRescoreExecutionPlan operation returned by the service.
- Throws:
ValidationException- The input fails to satisfy the constraints set by the Amazon Kendra Intelligent Ranking service. Please provide the correct input and try again.ResourceNotFoundException- The resource you want to use doesn't exist. Please check you have provided the correct resource and try again.ThrottlingException- The request was denied due to request throttling. Please reduce the number of requests and try again.AccessDeniedException- You don’t have sufficient access to perform this action. Please ensure you have the required permission policies and user accounts and try again.InternalServerException- An issue occurred with the internal server used for your Amazon Kendra Intelligent Ranking service. Please wait a few minutes and try again, or contact Support for help.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.KendraRankingException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listRescoreExecutionPlans
default ListRescoreExecutionPlansResponse listRescoreExecutionPlans(ListRescoreExecutionPlansRequest listRescoreExecutionPlansRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, KendraRankingException
Lists your rescore execution plans. A rescore execution plan is an Amazon Kendra Intelligent Ranking resource used for provisioning the
RescoreAPI.- Parameters:
listRescoreExecutionPlansRequest-- Returns:
- Result of the ListRescoreExecutionPlans operation returned by the service.
- Throws:
ValidationException- The input fails to satisfy the constraints set by the Amazon Kendra Intelligent Ranking service. Please provide the correct input and try again.AccessDeniedException- You don’t have sufficient access to perform this action. Please ensure you have the required permission policies and user accounts and try again.ThrottlingException- The request was denied due to request throttling. Please reduce the number of requests and try again.InternalServerException- An issue occurred with the internal server used for your Amazon Kendra Intelligent Ranking service. Please wait a few minutes and try again, or contact Support for help.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.KendraRankingException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listRescoreExecutionPlans
default ListRescoreExecutionPlansResponse listRescoreExecutionPlans(Consumer<ListRescoreExecutionPlansRequest.Builder> listRescoreExecutionPlansRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, KendraRankingException
Lists your rescore execution plans. A rescore execution plan is an Amazon Kendra Intelligent Ranking resource used for provisioning the
RescoreAPI.
This is a convenience which creates an instance of the
ListRescoreExecutionPlansRequest.Builderavoiding the need to create one manually viaListRescoreExecutionPlansRequest.builder()- Parameters:
listRescoreExecutionPlansRequest- AConsumerthat will call methods onListRescoreExecutionPlansRequest.Builderto create a request.- Returns:
- Result of the ListRescoreExecutionPlans operation returned by the service.
- Throws:
ValidationException- The input fails to satisfy the constraints set by the Amazon Kendra Intelligent Ranking service. Please provide the correct input and try again.AccessDeniedException- You don’t have sufficient access to perform this action. Please ensure you have the required permission policies and user accounts and try again.ThrottlingException- The request was denied due to request throttling. Please reduce the number of requests and try again.InternalServerException- An issue occurred with the internal server used for your Amazon Kendra Intelligent Ranking service. Please wait a few minutes and try again, or contact Support for help.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.KendraRankingException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listRescoreExecutionPlansPaginator
default ListRescoreExecutionPlansIterable listRescoreExecutionPlansPaginator(ListRescoreExecutionPlansRequest listRescoreExecutionPlansRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, KendraRankingException
This is a variant of
listRescoreExecutionPlans(software.amazon.awssdk.services.kendraranking.model.ListRescoreExecutionPlansRequest)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
2) Using For loopsoftware.amazon.awssdk.services.kendraranking.paginators.ListRescoreExecutionPlansIterable responses = client.listRescoreExecutionPlansPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.kendraranking.paginators.ListRescoreExecutionPlansIterable responses = client .listRescoreExecutionPlansPaginator(request); for (software.amazon.awssdk.services.kendraranking.model.ListRescoreExecutionPlansResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.kendraranking.paginators.ListRescoreExecutionPlansIterable responses = client.listRescoreExecutionPlansPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listRescoreExecutionPlans(software.amazon.awssdk.services.kendraranking.model.ListRescoreExecutionPlansRequest)operation.- Parameters:
listRescoreExecutionPlansRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ValidationException- The input fails to satisfy the constraints set by the Amazon Kendra Intelligent Ranking service. Please provide the correct input and try again.AccessDeniedException- You don’t have sufficient access to perform this action. Please ensure you have the required permission policies and user accounts and try again.ThrottlingException- The request was denied due to request throttling. Please reduce the number of requests and try again.InternalServerException- An issue occurred with the internal server used for your Amazon Kendra Intelligent Ranking service. Please wait a few minutes and try again, or contact Support for help.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.KendraRankingException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listRescoreExecutionPlansPaginator
default ListRescoreExecutionPlansIterable listRescoreExecutionPlansPaginator(Consumer<ListRescoreExecutionPlansRequest.Builder> listRescoreExecutionPlansRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, KendraRankingException
This is a variant of
listRescoreExecutionPlans(software.amazon.awssdk.services.kendraranking.model.ListRescoreExecutionPlansRequest)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
2) Using For loopsoftware.amazon.awssdk.services.kendraranking.paginators.ListRescoreExecutionPlansIterable responses = client.listRescoreExecutionPlansPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.kendraranking.paginators.ListRescoreExecutionPlansIterable responses = client .listRescoreExecutionPlansPaginator(request); for (software.amazon.awssdk.services.kendraranking.model.ListRescoreExecutionPlansResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.kendraranking.paginators.ListRescoreExecutionPlansIterable responses = client.listRescoreExecutionPlansPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listRescoreExecutionPlans(software.amazon.awssdk.services.kendraranking.model.ListRescoreExecutionPlansRequest)operation.
This is a convenience which creates an instance of the
ListRescoreExecutionPlansRequest.Builderavoiding the need to create one manually viaListRescoreExecutionPlansRequest.builder()- Parameters:
listRescoreExecutionPlansRequest- AConsumerthat will call methods onListRescoreExecutionPlansRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ValidationException- The input fails to satisfy the constraints set by the Amazon Kendra Intelligent Ranking service. Please provide the correct input and try again.AccessDeniedException- You don’t have sufficient access to perform this action. Please ensure you have the required permission policies and user accounts and try again.ThrottlingException- The request was denied due to request throttling. Please reduce the number of requests and try again.InternalServerException- An issue occurred with the internal server used for your Amazon Kendra Intelligent Ranking service. Please wait a few minutes and try again, or contact Support for help.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.KendraRankingException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws ValidationException, ResourceUnavailableException, ThrottlingException, AccessDeniedException, InternalServerException, AwsServiceException, SdkClientException, KendraRankingException
Gets a list of tags associated with a specified resource. A rescore execution plan is an example of a resource that can have tags associated with it.
- Parameters:
listTagsForResourceRequest- The request information for listing tags associated with a rescore execution plan. A rescore execution plan is an Amazon Kendra Intelligent Ranking resource used for provisioning theRescoreAPI.- Returns:
- Result of the ListTagsForResource operation returned by the service.
- Throws:
ValidationException- The input fails to satisfy the constraints set by the Amazon Kendra Intelligent Ranking service. Please provide the correct input and try again.ResourceUnavailableException- The resource you want to use is unavailable. Please check you have provided the correct resource information and try again.ThrottlingException- The request was denied due to request throttling. Please reduce the number of requests and try again.AccessDeniedException- You don’t have sufficient access to perform this action. Please ensure you have the required permission policies and user accounts and try again.InternalServerException- An issue occurred with the internal server used for your Amazon Kendra Intelligent Ranking service. Please wait a few minutes and try again, or contact Support for help.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.KendraRankingException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) throws ValidationException, ResourceUnavailableException, ThrottlingException, AccessDeniedException, InternalServerException, AwsServiceException, SdkClientException, KendraRankingException
Gets a list of tags associated with a specified resource. A rescore execution plan is an example of a resource that can have tags associated with it.
This is a convenience which creates an instance of the
ListTagsForResourceRequest.Builderavoiding the need to create one manually viaListTagsForResourceRequest.builder()- Parameters:
listTagsForResourceRequest- AConsumerthat will call methods onListTagsForResourceRequest.Builderto create a request. The request information for listing tags associated with a rescore execution plan. A rescore execution plan is an Amazon Kendra Intelligent Ranking resource used for provisioning theRescoreAPI.- Returns:
- Result of the ListTagsForResource operation returned by the service.
- Throws:
ValidationException- The input fails to satisfy the constraints set by the Amazon Kendra Intelligent Ranking service. Please provide the correct input and try again.ResourceUnavailableException- The resource you want to use is unavailable. Please check you have provided the correct resource information and try again.ThrottlingException- The request was denied due to request throttling. Please reduce the number of requests and try again.AccessDeniedException- You don’t have sufficient access to perform this action. Please ensure you have the required permission policies and user accounts and try again.InternalServerException- An issue occurred with the internal server used for your Amazon Kendra Intelligent Ranking service. Please wait a few minutes and try again, or contact Support for help.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.KendraRankingException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
rescore
default RescoreResponse rescore(RescoreRequest rescoreRequest) throws ValidationException, ConflictException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, KendraRankingException
Rescores or re-ranks search results from a search service such as OpenSearch (self managed). You use the semantic search capabilities of Amazon Kendra Intelligent Ranking to improve the search service's results.
- Parameters:
rescoreRequest-- Returns:
- Result of the Rescore operation returned by the service.
- Throws:
ValidationException- The input fails to satisfy the constraints set by the Amazon Kendra Intelligent Ranking service. Please provide the correct input and try again.ConflictException- A conflict occurred with the request. Please fix any inconsistencies with your resources and try again.AccessDeniedException- You don’t have sufficient access to perform this action. Please ensure you have the required permission policies and user accounts and try again.ResourceNotFoundException- The resource you want to use doesn't exist. Please check you have provided the correct resource and try again.ThrottlingException- The request was denied due to request throttling. Please reduce the number of requests and try again.InternalServerException- An issue occurred with the internal server used for your Amazon Kendra Intelligent Ranking service. Please wait a few minutes and try again, or contact Support for help.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.KendraRankingException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
rescore
default RescoreResponse rescore(Consumer<RescoreRequest.Builder> rescoreRequest) throws ValidationException, ConflictException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, KendraRankingException
Rescores or re-ranks search results from a search service such as OpenSearch (self managed). You use the semantic search capabilities of Amazon Kendra Intelligent Ranking to improve the search service's results.
This is a convenience which creates an instance of the
RescoreRequest.Builderavoiding the need to create one manually viaRescoreRequest.builder()- Parameters:
rescoreRequest- AConsumerthat will call methods onRescoreRequest.Builderto create a request.- Returns:
- Result of the Rescore operation returned by the service.
- Throws:
ValidationException- The input fails to satisfy the constraints set by the Amazon Kendra Intelligent Ranking service. Please provide the correct input and try again.ConflictException- A conflict occurred with the request. Please fix any inconsistencies with your resources and try again.AccessDeniedException- You don’t have sufficient access to perform this action. Please ensure you have the required permission policies and user accounts and try again.ResourceNotFoundException- The resource you want to use doesn't exist. Please check you have provided the correct resource and try again.ThrottlingException- The request was denied due to request throttling. Please reduce the number of requests and try again.InternalServerException- An issue occurred with the internal server used for your Amazon Kendra Intelligent Ranking service. Please wait a few minutes and try again, or contact Support for help.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.KendraRankingException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
tagResource
default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws ValidationException, ResourceUnavailableException, ThrottlingException, AccessDeniedException, InternalServerException, AwsServiceException, SdkClientException, KendraRankingException
Adds a specified tag to a specified rescore execution plan. A rescore execution plan is an Amazon Kendra Intelligent Ranking resource used for provisioning the
RescoreAPI. If the tag already exists, the existing value is replaced with the new value.- Parameters:
tagResourceRequest- The request information for tagging a rescore execution plan. A rescore execution plan is an Amazon Kendra Intelligent Ranking resource used for provisioning theRescoreAPI.- Returns:
- Result of the TagResource operation returned by the service.
- Throws:
ValidationException- The input fails to satisfy the constraints set by the Amazon Kendra Intelligent Ranking service. Please provide the correct input and try again.ResourceUnavailableException- The resource you want to use is unavailable. Please check you have provided the correct resource information and try again.ThrottlingException- The request was denied due to request throttling. Please reduce the number of requests and try again.AccessDeniedException- You don’t have sufficient access to perform this action. Please ensure you have the required permission policies and user accounts and try again.InternalServerException- An issue occurred with the internal server used for your Amazon Kendra Intelligent Ranking service. Please wait a few minutes and try again, or contact Support for help.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.KendraRankingException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
tagResource
default TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws ValidationException, ResourceUnavailableException, ThrottlingException, AccessDeniedException, InternalServerException, AwsServiceException, SdkClientException, KendraRankingException
Adds a specified tag to a specified rescore execution plan. A rescore execution plan is an Amazon Kendra Intelligent Ranking resource used for provisioning the
RescoreAPI. If the tag already exists, the existing value is replaced with the new value.
This is a convenience which creates an instance of the
TagResourceRequest.Builderavoiding the need to create one manually viaTagResourceRequest.builder()- Parameters:
tagResourceRequest- AConsumerthat will call methods onTagResourceRequest.Builderto create a request. The request information for tagging a rescore execution plan. A rescore execution plan is an Amazon Kendra Intelligent Ranking resource used for provisioning theRescoreAPI.- Returns:
- Result of the TagResource operation returned by the service.
- Throws:
ValidationException- The input fails to satisfy the constraints set by the Amazon Kendra Intelligent Ranking service. Please provide the correct input and try again.ResourceUnavailableException- The resource you want to use is unavailable. Please check you have provided the correct resource information and try again.ThrottlingException- The request was denied due to request throttling. Please reduce the number of requests and try again.AccessDeniedException- You don’t have sufficient access to perform this action. Please ensure you have the required permission policies and user accounts and try again.InternalServerException- An issue occurred with the internal server used for your Amazon Kendra Intelligent Ranking service. Please wait a few minutes and try again, or contact Support for help.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.KendraRankingException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
untagResource
default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws ValidationException, ResourceUnavailableException, ThrottlingException, AccessDeniedException, InternalServerException, AwsServiceException, SdkClientException, KendraRankingException
Removes a tag from a rescore execution plan. A rescore execution plan is an Amazon Kendra Intelligent Ranking resource used for provisioning the
Rescoreoperation.- Parameters:
untagResourceRequest- The request information to remove a tag from a rescore execution plan. A rescore execution plan is an Amazon Kendra Intelligent Ranking resource used for provisioning theRescoreAPI.- Returns:
- Result of the UntagResource operation returned by the service.
- Throws:
ValidationException- The input fails to satisfy the constraints set by the Amazon Kendra Intelligent Ranking service. Please provide the correct input and try again.ResourceUnavailableException- The resource you want to use is unavailable. Please check you have provided the correct resource information and try again.ThrottlingException- The request was denied due to request throttling. Please reduce the number of requests and try again.AccessDeniedException- You don’t have sufficient access to perform this action. Please ensure you have the required permission policies and user accounts and try again.InternalServerException- An issue occurred with the internal server used for your Amazon Kendra Intelligent Ranking service. Please wait a few minutes and try again, or contact Support for help.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.KendraRankingException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
untagResource
default UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws ValidationException, ResourceUnavailableException, ThrottlingException, AccessDeniedException, InternalServerException, AwsServiceException, SdkClientException, KendraRankingException
Removes a tag from a rescore execution plan. A rescore execution plan is an Amazon Kendra Intelligent Ranking resource used for provisioning the
Rescoreoperation.
This is a convenience which creates an instance of the
UntagResourceRequest.Builderavoiding the need to create one manually viaUntagResourceRequest.builder()- Parameters:
untagResourceRequest- AConsumerthat will call methods onUntagResourceRequest.Builderto create a request. The request information to remove a tag from a rescore execution plan. A rescore execution plan is an Amazon Kendra Intelligent Ranking resource used for provisioning theRescoreAPI.- Returns:
- Result of the UntagResource operation returned by the service.
- Throws:
ValidationException- The input fails to satisfy the constraints set by the Amazon Kendra Intelligent Ranking service. Please provide the correct input and try again.ResourceUnavailableException- The resource you want to use is unavailable. Please check you have provided the correct resource information and try again.ThrottlingException- The request was denied due to request throttling. Please reduce the number of requests and try again.AccessDeniedException- You don’t have sufficient access to perform this action. Please ensure you have the required permission policies and user accounts and try again.InternalServerException- An issue occurred with the internal server used for your Amazon Kendra Intelligent Ranking service. Please wait a few minutes and try again, or contact Support for help.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.KendraRankingException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateRescoreExecutionPlan
default UpdateRescoreExecutionPlanResponse updateRescoreExecutionPlan(UpdateRescoreExecutionPlanRequest updateRescoreExecutionPlanRequest) throws ValidationException, ResourceNotFoundException, ThrottlingException, AccessDeniedException, ServiceQuotaExceededException, ConflictException, InternalServerException, AwsServiceException, SdkClientException, KendraRankingException
Updates a rescore execution plan. A rescore execution plan is an Amazon Kendra Intelligent Ranking resource used for provisioning the
RescoreAPI. You can update the number of capacity units you require for Amazon Kendra Intelligent Ranking to rescore or re-rank a search service's results.- Parameters:
updateRescoreExecutionPlanRequest-- Returns:
- Result of the UpdateRescoreExecutionPlan operation returned by the service.
- Throws:
ValidationException- The input fails to satisfy the constraints set by the Amazon Kendra Intelligent Ranking service. Please provide the correct input and try again.ResourceNotFoundException- The resource you want to use doesn't exist. Please check you have provided the correct resource and try again.ThrottlingException- The request was denied due to request throttling. Please reduce the number of requests and try again.AccessDeniedException- You don’t have sufficient access to perform this action. Please ensure you have the required permission policies and user accounts and try again.ServiceQuotaExceededException- You have exceeded the set limits for your Amazon Kendra Intelligent Ranking service. Please see Quotas for more information, or contact Support to inquire about an increase of limits.ConflictException- A conflict occurred with the request. Please fix any inconsistencies with your resources and try again.InternalServerException- An issue occurred with the internal server used for your Amazon Kendra Intelligent Ranking service. Please wait a few minutes and try again, or contact Support for help.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.KendraRankingException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateRescoreExecutionPlan
default UpdateRescoreExecutionPlanResponse updateRescoreExecutionPlan(Consumer<UpdateRescoreExecutionPlanRequest.Builder> updateRescoreExecutionPlanRequest) throws ValidationException, ResourceNotFoundException, ThrottlingException, AccessDeniedException, ServiceQuotaExceededException, ConflictException, InternalServerException, AwsServiceException, SdkClientException, KendraRankingException
Updates a rescore execution plan. A rescore execution plan is an Amazon Kendra Intelligent Ranking resource used for provisioning the
RescoreAPI. You can update the number of capacity units you require for Amazon Kendra Intelligent Ranking to rescore or re-rank a search service's results.
This is a convenience which creates an instance of the
UpdateRescoreExecutionPlanRequest.Builderavoiding the need to create one manually viaUpdateRescoreExecutionPlanRequest.builder()- Parameters:
updateRescoreExecutionPlanRequest- AConsumerthat will call methods onUpdateRescoreExecutionPlanRequest.Builderto create a request.- Returns:
- Result of the UpdateRescoreExecutionPlan operation returned by the service.
- Throws:
ValidationException- The input fails to satisfy the constraints set by the Amazon Kendra Intelligent Ranking service. Please provide the correct input and try again.ResourceNotFoundException- The resource you want to use doesn't exist. Please check you have provided the correct resource and try again.ThrottlingException- The request was denied due to request throttling. Please reduce the number of requests and try again.AccessDeniedException- You don’t have sufficient access to perform this action. Please ensure you have the required permission policies and user accounts and try again.ServiceQuotaExceededException- You have exceeded the set limits for your Amazon Kendra Intelligent Ranking service. Please see Quotas for more information, or contact Support to inquire about an increase of limits.ConflictException- A conflict occurred with the request. Please fix any inconsistencies with your resources and try again.InternalServerException- An issue occurred with the internal server used for your Amazon Kendra Intelligent Ranking service. Please wait a few minutes and try again, or contact Support for help.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.KendraRankingException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
create
static KendraRankingClient create()
Create aKendraRankingClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.
-
builder
static KendraRankingClientBuilder builder()
Create a builder that can be used to configure and create aKendraRankingClient.
-
serviceMetadata
static ServiceMetadata serviceMetadata()
-
serviceClientConfiguration
default KendraRankingServiceClientConfiguration serviceClientConfiguration()
- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient
-
-