Interface BedrockAgentAsyncClient

    • Method Detail

      • associateAgentKnowledgeBase

        default CompletableFuture<AssociateAgentKnowledgeBaseResponse> associateAgentKnowledgeBase​(AssociateAgentKnowledgeBaseRequest associateAgentKnowledgeBaseRequest)

        Associate a Knowledge Base to an existing Amazon Bedrock Agent

        Parameters:
        associateAgentKnowledgeBaseRequest - Associate Agent Knowledge Base Request
        Returns:
        A Java Future containing the result of the AssociateAgentKnowledgeBase operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • ConflictException This exception is thrown when there is a conflict performing an operation
        • ServiceQuotaExceededException This exception is thrown when a request is made beyond the service quota
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • associateAgentKnowledgeBase

        default CompletableFuture<AssociateAgentKnowledgeBaseResponse> associateAgentKnowledgeBase​(Consumer<AssociateAgentKnowledgeBaseRequest.Builder> associateAgentKnowledgeBaseRequest)

        Associate a Knowledge Base to an existing Amazon Bedrock Agent


        This is a convenience which creates an instance of the AssociateAgentKnowledgeBaseRequest.Builder avoiding the need to create one manually via AssociateAgentKnowledgeBaseRequest.builder()

        Parameters:
        associateAgentKnowledgeBaseRequest - A Consumer that will call methods on AssociateAgentKnowledgeBaseRequest.Builder to create a request. Associate Agent Knowledge Base Request
        Returns:
        A Java Future containing the result of the AssociateAgentKnowledgeBase operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • ConflictException This exception is thrown when there is a conflict performing an operation
        • ServiceQuotaExceededException This exception is thrown when a request is made beyond the service quota
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • createAgent

        default CompletableFuture<CreateAgentResponse> createAgent​(CreateAgentRequest createAgentRequest)

        Creates an Amazon Bedrock Agent

        Parameters:
        createAgentRequest - Create Agent Request
        Returns:
        A Java Future containing the result of the CreateAgent operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ConflictException This exception is thrown when there is a conflict performing an operation
        • ServiceQuotaExceededException This exception is thrown when a request is made beyond the service quota
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • createAgent

        default CompletableFuture<CreateAgentResponse> createAgent​(Consumer<CreateAgentRequest.Builder> createAgentRequest)

        Creates an Amazon Bedrock Agent


        This is a convenience which creates an instance of the CreateAgentRequest.Builder avoiding the need to create one manually via CreateAgentRequest.builder()

        Parameters:
        createAgentRequest - A Consumer that will call methods on CreateAgentRequest.Builder to create a request. Create Agent Request
        Returns:
        A Java Future containing the result of the CreateAgent operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ConflictException This exception is thrown when there is a conflict performing an operation
        • ServiceQuotaExceededException This exception is thrown when a request is made beyond the service quota
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • createAgentActionGroup

        default CompletableFuture<CreateAgentActionGroupResponse> createAgentActionGroup​(CreateAgentActionGroupRequest createAgentActionGroupRequest)

        Creates an Action Group for existing Amazon Bedrock Agent

        Parameters:
        createAgentActionGroupRequest - Create Action Group Request
        Returns:
        A Java Future containing the result of the CreateAgentActionGroup operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • ConflictException This exception is thrown when there is a conflict performing an operation
        • ServiceQuotaExceededException This exception is thrown when a request is made beyond the service quota
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • createAgentActionGroup

        default CompletableFuture<CreateAgentActionGroupResponse> createAgentActionGroup​(Consumer<CreateAgentActionGroupRequest.Builder> createAgentActionGroupRequest)

        Creates an Action Group for existing Amazon Bedrock Agent


        This is a convenience which creates an instance of the CreateAgentActionGroupRequest.Builder avoiding the need to create one manually via CreateAgentActionGroupRequest.builder()

        Parameters:
        createAgentActionGroupRequest - A Consumer that will call methods on CreateAgentActionGroupRequest.Builder to create a request. Create Action Group Request
        Returns:
        A Java Future containing the result of the CreateAgentActionGroup operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • ConflictException This exception is thrown when there is a conflict performing an operation
        • ServiceQuotaExceededException This exception is thrown when a request is made beyond the service quota
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • createAgentAlias

        default CompletableFuture<CreateAgentAliasResponse> createAgentAlias​(CreateAgentAliasRequest createAgentAliasRequest)

        Creates an Alias for an existing Amazon Bedrock Agent

        Parameters:
        createAgentAliasRequest - Create Agent Alias Request
        Returns:
        A Java Future containing the result of the CreateAgentAlias operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • ConflictException This exception is thrown when there is a conflict performing an operation
        • ServiceQuotaExceededException This exception is thrown when a request is made beyond the service quota
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • createAgentAlias

        default CompletableFuture<CreateAgentAliasResponse> createAgentAlias​(Consumer<CreateAgentAliasRequest.Builder> createAgentAliasRequest)

        Creates an Alias for an existing Amazon Bedrock Agent


        This is a convenience which creates an instance of the CreateAgentAliasRequest.Builder avoiding the need to create one manually via CreateAgentAliasRequest.builder()

        Parameters:
        createAgentAliasRequest - A Consumer that will call methods on CreateAgentAliasRequest.Builder to create a request. Create Agent Alias Request
        Returns:
        A Java Future containing the result of the CreateAgentAlias operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • ConflictException This exception is thrown when there is a conflict performing an operation
        • ServiceQuotaExceededException This exception is thrown when a request is made beyond the service quota
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • createDataSource

        default CompletableFuture<CreateDataSourceResponse> createDataSource​(CreateDataSourceRequest createDataSourceRequest)

        Create a new data source

        Parameters:
        createDataSourceRequest -
        Returns:
        A Java Future containing the result of the CreateDataSource operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • ConflictException This exception is thrown when there is a conflict performing an operation
        • ServiceQuotaExceededException This exception is thrown when a request is made beyond the service quota
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • createDataSource

        default CompletableFuture<CreateDataSourceResponse> createDataSource​(Consumer<CreateDataSourceRequest.Builder> createDataSourceRequest)

        Create a new data source


        This is a convenience which creates an instance of the CreateDataSourceRequest.Builder avoiding the need to create one manually via CreateDataSourceRequest.builder()

        Parameters:
        createDataSourceRequest - A Consumer that will call methods on CreateDataSourceRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the CreateDataSource operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • ConflictException This exception is thrown when there is a conflict performing an operation
        • ServiceQuotaExceededException This exception is thrown when a request is made beyond the service quota
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • createKnowledgeBase

        default CompletableFuture<CreateKnowledgeBaseResponse> createKnowledgeBase​(CreateKnowledgeBaseRequest createKnowledgeBaseRequest)

        Create a new knowledge base

        Parameters:
        createKnowledgeBaseRequest -
        Returns:
        A Java Future containing the result of the CreateKnowledgeBase operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ConflictException This exception is thrown when there is a conflict performing an operation
        • ServiceQuotaExceededException This exception is thrown when a request is made beyond the service quota
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • createKnowledgeBase

        default CompletableFuture<CreateKnowledgeBaseResponse> createKnowledgeBase​(Consumer<CreateKnowledgeBaseRequest.Builder> createKnowledgeBaseRequest)

        Create a new knowledge base


        This is a convenience which creates an instance of the CreateKnowledgeBaseRequest.Builder avoiding the need to create one manually via CreateKnowledgeBaseRequest.builder()

        Parameters:
        createKnowledgeBaseRequest - A Consumer that will call methods on CreateKnowledgeBaseRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the CreateKnowledgeBase operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ConflictException This exception is thrown when there is a conflict performing an operation
        • ServiceQuotaExceededException This exception is thrown when a request is made beyond the service quota
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • deleteAgent

        default CompletableFuture<DeleteAgentResponse> deleteAgent​(DeleteAgentRequest deleteAgentRequest)

        Deletes an Agent for existing Amazon Bedrock Agent

        Parameters:
        deleteAgentRequest - Delete Agent Request
        Returns:
        A Java Future containing the result of the DeleteAgent operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • ConflictException This exception is thrown when there is a conflict performing an operation
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • deleteAgent

        default CompletableFuture<DeleteAgentResponse> deleteAgent​(Consumer<DeleteAgentRequest.Builder> deleteAgentRequest)

        Deletes an Agent for existing Amazon Bedrock Agent


        This is a convenience which creates an instance of the DeleteAgentRequest.Builder avoiding the need to create one manually via DeleteAgentRequest.builder()

        Parameters:
        deleteAgentRequest - A Consumer that will call methods on DeleteAgentRequest.Builder to create a request. Delete Agent Request
        Returns:
        A Java Future containing the result of the DeleteAgent operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • ConflictException This exception is thrown when there is a conflict performing an operation
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • deleteAgentActionGroup

        default CompletableFuture<DeleteAgentActionGroupResponse> deleteAgentActionGroup​(DeleteAgentActionGroupRequest deleteAgentActionGroupRequest)

        Deletes an Action Group for existing Amazon Bedrock Agent.

        Parameters:
        deleteAgentActionGroupRequest - Delete Action Group Request
        Returns:
        A Java Future containing the result of the DeleteAgentActionGroup operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • ConflictException This exception is thrown when there is a conflict performing an operation
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • deleteAgentActionGroup

        default CompletableFuture<DeleteAgentActionGroupResponse> deleteAgentActionGroup​(Consumer<DeleteAgentActionGroupRequest.Builder> deleteAgentActionGroupRequest)

        Deletes an Action Group for existing Amazon Bedrock Agent.


        This is a convenience which creates an instance of the DeleteAgentActionGroupRequest.Builder avoiding the need to create one manually via DeleteAgentActionGroupRequest.builder()

        Parameters:
        deleteAgentActionGroupRequest - A Consumer that will call methods on DeleteAgentActionGroupRequest.Builder to create a request. Delete Action Group Request
        Returns:
        A Java Future containing the result of the DeleteAgentActionGroup operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • ConflictException This exception is thrown when there is a conflict performing an operation
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • deleteAgentAlias

        default CompletableFuture<DeleteAgentAliasResponse> deleteAgentAlias​(DeleteAgentAliasRequest deleteAgentAliasRequest)

        Deletes an Alias for a Amazon Bedrock Agent

        Parameters:
        deleteAgentAliasRequest - Delete Agent Alias Request
        Returns:
        A Java Future containing the result of the DeleteAgentAlias operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • deleteAgentAlias

        default CompletableFuture<DeleteAgentAliasResponse> deleteAgentAlias​(Consumer<DeleteAgentAliasRequest.Builder> deleteAgentAliasRequest)

        Deletes an Alias for a Amazon Bedrock Agent


        This is a convenience which creates an instance of the DeleteAgentAliasRequest.Builder avoiding the need to create one manually via DeleteAgentAliasRequest.builder()

        Parameters:
        deleteAgentAliasRequest - A Consumer that will call methods on DeleteAgentAliasRequest.Builder to create a request. Delete Agent Alias Request
        Returns:
        A Java Future containing the result of the DeleteAgentAlias operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • deleteAgentVersion

        default CompletableFuture<DeleteAgentVersionResponse> deleteAgentVersion​(DeleteAgentVersionRequest deleteAgentVersionRequest)

        Deletes an Agent version for existing Amazon Bedrock Agent

        Parameters:
        deleteAgentVersionRequest - Delete Agent Version Request
        Returns:
        A Java Future containing the result of the DeleteAgentVersion operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • ConflictException This exception is thrown when there is a conflict performing an operation
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • deleteAgentVersion

        default CompletableFuture<DeleteAgentVersionResponse> deleteAgentVersion​(Consumer<DeleteAgentVersionRequest.Builder> deleteAgentVersionRequest)

        Deletes an Agent version for existing Amazon Bedrock Agent


        This is a convenience which creates an instance of the DeleteAgentVersionRequest.Builder avoiding the need to create one manually via DeleteAgentVersionRequest.builder()

        Parameters:
        deleteAgentVersionRequest - A Consumer that will call methods on DeleteAgentVersionRequest.Builder to create a request. Delete Agent Version Request
        Returns:
        A Java Future containing the result of the DeleteAgentVersion operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • ConflictException This exception is thrown when there is a conflict performing an operation
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • deleteDataSource

        default CompletableFuture<DeleteDataSourceResponse> deleteDataSource​(DeleteDataSourceRequest deleteDataSourceRequest)

        Delete an existing data source

        Parameters:
        deleteDataSourceRequest -
        Returns:
        A Java Future containing the result of the DeleteDataSource operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • ConflictException This exception is thrown when there is a conflict performing an operation
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • deleteDataSource

        default CompletableFuture<DeleteDataSourceResponse> deleteDataSource​(Consumer<DeleteDataSourceRequest.Builder> deleteDataSourceRequest)

        Delete an existing data source


        This is a convenience which creates an instance of the DeleteDataSourceRequest.Builder avoiding the need to create one manually via DeleteDataSourceRequest.builder()

        Parameters:
        deleteDataSourceRequest - A Consumer that will call methods on DeleteDataSourceRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the DeleteDataSource operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • ConflictException This exception is thrown when there is a conflict performing an operation
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • deleteKnowledgeBase

        default CompletableFuture<DeleteKnowledgeBaseResponse> deleteKnowledgeBase​(DeleteKnowledgeBaseRequest deleteKnowledgeBaseRequest)

        Delete an existing knowledge base

        Parameters:
        deleteKnowledgeBaseRequest -
        Returns:
        A Java Future containing the result of the DeleteKnowledgeBase operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • ConflictException This exception is thrown when there is a conflict performing an operation
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • deleteKnowledgeBase

        default CompletableFuture<DeleteKnowledgeBaseResponse> deleteKnowledgeBase​(Consumer<DeleteKnowledgeBaseRequest.Builder> deleteKnowledgeBaseRequest)

        Delete an existing knowledge base


        This is a convenience which creates an instance of the DeleteKnowledgeBaseRequest.Builder avoiding the need to create one manually via DeleteKnowledgeBaseRequest.builder()

        Parameters:
        deleteKnowledgeBaseRequest - A Consumer that will call methods on DeleteKnowledgeBaseRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the DeleteKnowledgeBase operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • ConflictException This exception is thrown when there is a conflict performing an operation
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • disassociateAgentKnowledgeBase

        default CompletableFuture<DisassociateAgentKnowledgeBaseResponse> disassociateAgentKnowledgeBase​(DisassociateAgentKnowledgeBaseRequest disassociateAgentKnowledgeBaseRequest)

        Disassociate an existing Knowledge Base from an Amazon Bedrock Agent

        Parameters:
        disassociateAgentKnowledgeBaseRequest - Disassociate Agent Knowledge Base Request
        Returns:
        A Java Future containing the result of the DisassociateAgentKnowledgeBase operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • ConflictException This exception is thrown when there is a conflict performing an operation
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • disassociateAgentKnowledgeBase

        default CompletableFuture<DisassociateAgentKnowledgeBaseResponse> disassociateAgentKnowledgeBase​(Consumer<DisassociateAgentKnowledgeBaseRequest.Builder> disassociateAgentKnowledgeBaseRequest)

        Disassociate an existing Knowledge Base from an Amazon Bedrock Agent


        This is a convenience which creates an instance of the DisassociateAgentKnowledgeBaseRequest.Builder avoiding the need to create one manually via DisassociateAgentKnowledgeBaseRequest.builder()

        Parameters:
        disassociateAgentKnowledgeBaseRequest - A Consumer that will call methods on DisassociateAgentKnowledgeBaseRequest.Builder to create a request. Disassociate Agent Knowledge Base Request
        Returns:
        A Java Future containing the result of the DisassociateAgentKnowledgeBase operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • ConflictException This exception is thrown when there is a conflict performing an operation
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getAgent

        default CompletableFuture<GetAgentResponse> getAgent​(GetAgentRequest getAgentRequest)

        Gets an Agent for existing Amazon Bedrock Agent

        Parameters:
        getAgentRequest - Get Agent Request
        Returns:
        A Java Future containing the result of the GetAgent operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getAgent

        default CompletableFuture<GetAgentResponse> getAgent​(Consumer<GetAgentRequest.Builder> getAgentRequest)

        Gets an Agent for existing Amazon Bedrock Agent


        This is a convenience which creates an instance of the GetAgentRequest.Builder avoiding the need to create one manually via GetAgentRequest.builder()

        Parameters:
        getAgentRequest - A Consumer that will call methods on GetAgentRequest.Builder to create a request. Get Agent Request
        Returns:
        A Java Future containing the result of the GetAgent operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getAgentActionGroup

        default CompletableFuture<GetAgentActionGroupResponse> getAgentActionGroup​(GetAgentActionGroupRequest getAgentActionGroupRequest)

        Gets an Action Group for existing Amazon Bedrock Agent Version

        Parameters:
        getAgentActionGroupRequest - Get Action Group Request
        Returns:
        A Java Future containing the result of the GetAgentActionGroup operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getAgentActionGroup

        default CompletableFuture<GetAgentActionGroupResponse> getAgentActionGroup​(Consumer<GetAgentActionGroupRequest.Builder> getAgentActionGroupRequest)

        Gets an Action Group for existing Amazon Bedrock Agent Version


        This is a convenience which creates an instance of the GetAgentActionGroupRequest.Builder avoiding the need to create one manually via GetAgentActionGroupRequest.builder()

        Parameters:
        getAgentActionGroupRequest - A Consumer that will call methods on GetAgentActionGroupRequest.Builder to create a request. Get Action Group Request
        Returns:
        A Java Future containing the result of the GetAgentActionGroup operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getAgentAlias

        default CompletableFuture<GetAgentAliasResponse> getAgentAlias​(GetAgentAliasRequest getAgentAliasRequest)

        Describes an Alias for a Amazon Bedrock Agent

        Parameters:
        getAgentAliasRequest - Get Agent Alias Request
        Returns:
        A Java Future containing the result of the GetAgentAlias operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getAgentAlias

        default CompletableFuture<GetAgentAliasResponse> getAgentAlias​(Consumer<GetAgentAliasRequest.Builder> getAgentAliasRequest)

        Describes an Alias for a Amazon Bedrock Agent


        This is a convenience which creates an instance of the GetAgentAliasRequest.Builder avoiding the need to create one manually via GetAgentAliasRequest.builder()

        Parameters:
        getAgentAliasRequest - A Consumer that will call methods on GetAgentAliasRequest.Builder to create a request. Get Agent Alias Request
        Returns:
        A Java Future containing the result of the GetAgentAlias operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getAgentKnowledgeBase

        default CompletableFuture<GetAgentKnowledgeBaseResponse> getAgentKnowledgeBase​(GetAgentKnowledgeBaseRequest getAgentKnowledgeBaseRequest)

        Gets a knowledge base associated to an existing Amazon Bedrock Agent Version

        Parameters:
        getAgentKnowledgeBaseRequest - Get Agent Knowledge Base Request
        Returns:
        A Java Future containing the result of the GetAgentKnowledgeBase operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getAgentKnowledgeBase

        default CompletableFuture<GetAgentKnowledgeBaseResponse> getAgentKnowledgeBase​(Consumer<GetAgentKnowledgeBaseRequest.Builder> getAgentKnowledgeBaseRequest)

        Gets a knowledge base associated to an existing Amazon Bedrock Agent Version


        This is a convenience which creates an instance of the GetAgentKnowledgeBaseRequest.Builder avoiding the need to create one manually via GetAgentKnowledgeBaseRequest.builder()

        Parameters:
        getAgentKnowledgeBaseRequest - A Consumer that will call methods on GetAgentKnowledgeBaseRequest.Builder to create a request. Get Agent Knowledge Base Request
        Returns:
        A Java Future containing the result of the GetAgentKnowledgeBase operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getAgentVersion

        default CompletableFuture<GetAgentVersionResponse> getAgentVersion​(GetAgentVersionRequest getAgentVersionRequest)

        Gets an Agent version for existing Amazon Bedrock Agent

        Parameters:
        getAgentVersionRequest - Get Agent Version Request
        Returns:
        A Java Future containing the result of the GetAgentVersion operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getAgentVersion

        default CompletableFuture<GetAgentVersionResponse> getAgentVersion​(Consumer<GetAgentVersionRequest.Builder> getAgentVersionRequest)

        Gets an Agent version for existing Amazon Bedrock Agent


        This is a convenience which creates an instance of the GetAgentVersionRequest.Builder avoiding the need to create one manually via GetAgentVersionRequest.builder()

        Parameters:
        getAgentVersionRequest - A Consumer that will call methods on GetAgentVersionRequest.Builder to create a request. Get Agent Version Request
        Returns:
        A Java Future containing the result of the GetAgentVersion operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getDataSource

        default CompletableFuture<GetDataSourceResponse> getDataSource​(GetDataSourceRequest getDataSourceRequest)

        Get an existing data source

        Parameters:
        getDataSourceRequest -
        Returns:
        A Java Future containing the result of the GetDataSource operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getDataSource

        default CompletableFuture<GetDataSourceResponse> getDataSource​(Consumer<GetDataSourceRequest.Builder> getDataSourceRequest)

        Get an existing data source


        This is a convenience which creates an instance of the GetDataSourceRequest.Builder avoiding the need to create one manually via GetDataSourceRequest.builder()

        Parameters:
        getDataSourceRequest - A Consumer that will call methods on GetDataSourceRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the GetDataSource operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getIngestionJob

        default CompletableFuture<GetIngestionJobResponse> getIngestionJob​(GetIngestionJobRequest getIngestionJobRequest)

        Get an ingestion job

        Parameters:
        getIngestionJobRequest -
        Returns:
        A Java Future containing the result of the GetIngestionJob operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getIngestionJob

        default CompletableFuture<GetIngestionJobResponse> getIngestionJob​(Consumer<GetIngestionJobRequest.Builder> getIngestionJobRequest)

        Get an ingestion job


        This is a convenience which creates an instance of the GetIngestionJobRequest.Builder avoiding the need to create one manually via GetIngestionJobRequest.builder()

        Parameters:
        getIngestionJobRequest - A Consumer that will call methods on GetIngestionJobRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the GetIngestionJob operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getKnowledgeBase

        default CompletableFuture<GetKnowledgeBaseResponse> getKnowledgeBase​(GetKnowledgeBaseRequest getKnowledgeBaseRequest)

        Get an existing knowledge base

        Parameters:
        getKnowledgeBaseRequest -
        Returns:
        A Java Future containing the result of the GetKnowledgeBase operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getKnowledgeBase

        default CompletableFuture<GetKnowledgeBaseResponse> getKnowledgeBase​(Consumer<GetKnowledgeBaseRequest.Builder> getKnowledgeBaseRequest)

        Get an existing knowledge base


        This is a convenience which creates an instance of the GetKnowledgeBaseRequest.Builder avoiding the need to create one manually via GetKnowledgeBaseRequest.builder()

        Parameters:
        getKnowledgeBaseRequest - A Consumer that will call methods on GetKnowledgeBaseRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the GetKnowledgeBase operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listAgentActionGroups

        default CompletableFuture<ListAgentActionGroupsResponse> listAgentActionGroups​(ListAgentActionGroupsRequest listAgentActionGroupsRequest)

        Lists an Action Group for existing Amazon Bedrock Agent Version

        Parameters:
        listAgentActionGroupsRequest - List Action Groups Request
        Returns:
        A Java Future containing the result of the ListAgentActionGroups operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listAgentActionGroups

        default CompletableFuture<ListAgentActionGroupsResponse> listAgentActionGroups​(Consumer<ListAgentActionGroupsRequest.Builder> listAgentActionGroupsRequest)

        Lists an Action Group for existing Amazon Bedrock Agent Version


        This is a convenience which creates an instance of the ListAgentActionGroupsRequest.Builder avoiding the need to create one manually via ListAgentActionGroupsRequest.builder()

        Parameters:
        listAgentActionGroupsRequest - A Consumer that will call methods on ListAgentActionGroupsRequest.Builder to create a request. List Action Groups Request
        Returns:
        A Java Future containing the result of the ListAgentActionGroups operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listAgentActionGroupsPaginator

        default ListAgentActionGroupsPublisher listAgentActionGroupsPaginator​(ListAgentActionGroupsRequest listAgentActionGroupsRequest)

        This is a variant of listAgentActionGroups(software.amazon.awssdk.services.bedrockagent.model.ListAgentActionGroupsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.bedrockagent.paginators.ListAgentActionGroupsPublisher publisher = client.listAgentActionGroupsPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.bedrockagent.paginators.ListAgentActionGroupsPublisher publisher = client.listAgentActionGroupsPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrockagent.model.ListAgentActionGroupsResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.bedrockagent.model.ListAgentActionGroupsResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        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 listAgentActionGroups(software.amazon.awssdk.services.bedrockagent.model.ListAgentActionGroupsRequest) operation.

        Parameters:
        listAgentActionGroupsRequest - List Action Groups Request
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listAgentActionGroupsPaginator

        default ListAgentActionGroupsPublisher listAgentActionGroupsPaginator​(Consumer<ListAgentActionGroupsRequest.Builder> listAgentActionGroupsRequest)

        This is a variant of listAgentActionGroups(software.amazon.awssdk.services.bedrockagent.model.ListAgentActionGroupsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.bedrockagent.paginators.ListAgentActionGroupsPublisher publisher = client.listAgentActionGroupsPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.bedrockagent.paginators.ListAgentActionGroupsPublisher publisher = client.listAgentActionGroupsPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrockagent.model.ListAgentActionGroupsResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.bedrockagent.model.ListAgentActionGroupsResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        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 listAgentActionGroups(software.amazon.awssdk.services.bedrockagent.model.ListAgentActionGroupsRequest) operation.


        This is a convenience which creates an instance of the ListAgentActionGroupsRequest.Builder avoiding the need to create one manually via ListAgentActionGroupsRequest.builder()

        Parameters:
        listAgentActionGroupsRequest - A Consumer that will call methods on ListAgentActionGroupsRequest.Builder to create a request. List Action Groups Request
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listAgentAliases

        default CompletableFuture<ListAgentAliasesResponse> listAgentAliases​(ListAgentAliasesRequest listAgentAliasesRequest)

        Lists all the Aliases for an Amazon Bedrock Agent

        Parameters:
        listAgentAliasesRequest - List Agent Aliases Request
        Returns:
        A Java Future containing the result of the ListAgentAliases operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listAgentAliases

        default CompletableFuture<ListAgentAliasesResponse> listAgentAliases​(Consumer<ListAgentAliasesRequest.Builder> listAgentAliasesRequest)

        Lists all the Aliases for an Amazon Bedrock Agent


        This is a convenience which creates an instance of the ListAgentAliasesRequest.Builder avoiding the need to create one manually via ListAgentAliasesRequest.builder()

        Parameters:
        listAgentAliasesRequest - A Consumer that will call methods on ListAgentAliasesRequest.Builder to create a request. List Agent Aliases Request
        Returns:
        A Java Future containing the result of the ListAgentAliases operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listAgentAliasesPaginator

        default ListAgentAliasesPublisher listAgentAliasesPaginator​(ListAgentAliasesRequest listAgentAliasesRequest)

        This is a variant of listAgentAliases(software.amazon.awssdk.services.bedrockagent.model.ListAgentAliasesRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.bedrockagent.paginators.ListAgentAliasesPublisher publisher = client.listAgentAliasesPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.bedrockagent.paginators.ListAgentAliasesPublisher publisher = client.listAgentAliasesPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrockagent.model.ListAgentAliasesResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.bedrockagent.model.ListAgentAliasesResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        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 listAgentAliases(software.amazon.awssdk.services.bedrockagent.model.ListAgentAliasesRequest) operation.

        Parameters:
        listAgentAliasesRequest - List Agent Aliases Request
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listAgentAliasesPaginator

        default ListAgentAliasesPublisher listAgentAliasesPaginator​(Consumer<ListAgentAliasesRequest.Builder> listAgentAliasesRequest)

        This is a variant of listAgentAliases(software.amazon.awssdk.services.bedrockagent.model.ListAgentAliasesRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.bedrockagent.paginators.ListAgentAliasesPublisher publisher = client.listAgentAliasesPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.bedrockagent.paginators.ListAgentAliasesPublisher publisher = client.listAgentAliasesPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrockagent.model.ListAgentAliasesResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.bedrockagent.model.ListAgentAliasesResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        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 listAgentAliases(software.amazon.awssdk.services.bedrockagent.model.ListAgentAliasesRequest) operation.


        This is a convenience which creates an instance of the ListAgentAliasesRequest.Builder avoiding the need to create one manually via ListAgentAliasesRequest.builder()

        Parameters:
        listAgentAliasesRequest - A Consumer that will call methods on ListAgentAliasesRequest.Builder to create a request. List Agent Aliases Request
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listAgentKnowledgeBases

        default CompletableFuture<ListAgentKnowledgeBasesResponse> listAgentKnowledgeBases​(ListAgentKnowledgeBasesRequest listAgentKnowledgeBasesRequest)

        List of Knowledge Bases associated to an existing Amazon Bedrock Agent Version

        Parameters:
        listAgentKnowledgeBasesRequest - List Agent Knowledge Bases Request
        Returns:
        A Java Future containing the result of the ListAgentKnowledgeBases operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listAgentKnowledgeBases

        default CompletableFuture<ListAgentKnowledgeBasesResponse> listAgentKnowledgeBases​(Consumer<ListAgentKnowledgeBasesRequest.Builder> listAgentKnowledgeBasesRequest)

        List of Knowledge Bases associated to an existing Amazon Bedrock Agent Version


        This is a convenience which creates an instance of the ListAgentKnowledgeBasesRequest.Builder avoiding the need to create one manually via ListAgentKnowledgeBasesRequest.builder()

        Parameters:
        listAgentKnowledgeBasesRequest - A Consumer that will call methods on ListAgentKnowledgeBasesRequest.Builder to create a request. List Agent Knowledge Bases Request
        Returns:
        A Java Future containing the result of the ListAgentKnowledgeBases operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listAgentKnowledgeBasesPaginator

        default ListAgentKnowledgeBasesPublisher listAgentKnowledgeBasesPaginator​(ListAgentKnowledgeBasesRequest listAgentKnowledgeBasesRequest)

        This is a variant of listAgentKnowledgeBases(software.amazon.awssdk.services.bedrockagent.model.ListAgentKnowledgeBasesRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.bedrockagent.paginators.ListAgentKnowledgeBasesPublisher publisher = client.listAgentKnowledgeBasesPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.bedrockagent.paginators.ListAgentKnowledgeBasesPublisher publisher = client.listAgentKnowledgeBasesPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrockagent.model.ListAgentKnowledgeBasesResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.bedrockagent.model.ListAgentKnowledgeBasesResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        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 listAgentKnowledgeBases(software.amazon.awssdk.services.bedrockagent.model.ListAgentKnowledgeBasesRequest) operation.

        Parameters:
        listAgentKnowledgeBasesRequest - List Agent Knowledge Bases Request
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listAgentKnowledgeBasesPaginator

        default ListAgentKnowledgeBasesPublisher listAgentKnowledgeBasesPaginator​(Consumer<ListAgentKnowledgeBasesRequest.Builder> listAgentKnowledgeBasesRequest)

        This is a variant of listAgentKnowledgeBases(software.amazon.awssdk.services.bedrockagent.model.ListAgentKnowledgeBasesRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.bedrockagent.paginators.ListAgentKnowledgeBasesPublisher publisher = client.listAgentKnowledgeBasesPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.bedrockagent.paginators.ListAgentKnowledgeBasesPublisher publisher = client.listAgentKnowledgeBasesPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrockagent.model.ListAgentKnowledgeBasesResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.bedrockagent.model.ListAgentKnowledgeBasesResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        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 listAgentKnowledgeBases(software.amazon.awssdk.services.bedrockagent.model.ListAgentKnowledgeBasesRequest) operation.


        This is a convenience which creates an instance of the ListAgentKnowledgeBasesRequest.Builder avoiding the need to create one manually via ListAgentKnowledgeBasesRequest.builder()

        Parameters:
        listAgentKnowledgeBasesRequest - A Consumer that will call methods on ListAgentKnowledgeBasesRequest.Builder to create a request. List Agent Knowledge Bases Request
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listAgentVersions

        default CompletableFuture<ListAgentVersionsResponse> listAgentVersions​(ListAgentVersionsRequest listAgentVersionsRequest)

        Lists Agent Versions

        Parameters:
        listAgentVersionsRequest - List Agent Versions Request
        Returns:
        A Java Future containing the result of the ListAgentVersions operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listAgentVersions

        default CompletableFuture<ListAgentVersionsResponse> listAgentVersions​(Consumer<ListAgentVersionsRequest.Builder> listAgentVersionsRequest)

        Lists Agent Versions


        This is a convenience which creates an instance of the ListAgentVersionsRequest.Builder avoiding the need to create one manually via ListAgentVersionsRequest.builder()

        Parameters:
        listAgentVersionsRequest - A Consumer that will call methods on ListAgentVersionsRequest.Builder to create a request. List Agent Versions Request
        Returns:
        A Java Future containing the result of the ListAgentVersions operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listAgentVersionsPaginator

        default ListAgentVersionsPublisher listAgentVersionsPaginator​(ListAgentVersionsRequest listAgentVersionsRequest)

        This is a variant of listAgentVersions(software.amazon.awssdk.services.bedrockagent.model.ListAgentVersionsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.bedrockagent.paginators.ListAgentVersionsPublisher publisher = client.listAgentVersionsPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.bedrockagent.paginators.ListAgentVersionsPublisher publisher = client.listAgentVersionsPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrockagent.model.ListAgentVersionsResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.bedrockagent.model.ListAgentVersionsResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        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 listAgentVersions(software.amazon.awssdk.services.bedrockagent.model.ListAgentVersionsRequest) operation.

        Parameters:
        listAgentVersionsRequest - List Agent Versions Request
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listAgentVersionsPaginator

        default ListAgentVersionsPublisher listAgentVersionsPaginator​(Consumer<ListAgentVersionsRequest.Builder> listAgentVersionsRequest)

        This is a variant of listAgentVersions(software.amazon.awssdk.services.bedrockagent.model.ListAgentVersionsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.bedrockagent.paginators.ListAgentVersionsPublisher publisher = client.listAgentVersionsPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.bedrockagent.paginators.ListAgentVersionsPublisher publisher = client.listAgentVersionsPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrockagent.model.ListAgentVersionsResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.bedrockagent.model.ListAgentVersionsResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        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 listAgentVersions(software.amazon.awssdk.services.bedrockagent.model.ListAgentVersionsRequest) operation.


        This is a convenience which creates an instance of the ListAgentVersionsRequest.Builder avoiding the need to create one manually via ListAgentVersionsRequest.builder()

        Parameters:
        listAgentVersionsRequest - A Consumer that will call methods on ListAgentVersionsRequest.Builder to create a request. List Agent Versions Request
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listAgents

        default CompletableFuture<ListAgentsResponse> listAgents​(ListAgentsRequest listAgentsRequest)

        Lists Agents

        Parameters:
        listAgentsRequest - List Agent Request
        Returns:
        A Java Future containing the result of the ListAgents operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listAgents

        default CompletableFuture<ListAgentsResponse> listAgents​(Consumer<ListAgentsRequest.Builder> listAgentsRequest)

        Lists Agents


        This is a convenience which creates an instance of the ListAgentsRequest.Builder avoiding the need to create one manually via ListAgentsRequest.builder()

        Parameters:
        listAgentsRequest - A Consumer that will call methods on ListAgentsRequest.Builder to create a request. List Agent Request
        Returns:
        A Java Future containing the result of the ListAgents operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listAgentsPaginator

        default ListAgentsPublisher listAgentsPaginator​(ListAgentsRequest listAgentsRequest)

        This is a variant of listAgents(software.amazon.awssdk.services.bedrockagent.model.ListAgentsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.bedrockagent.paginators.ListAgentsPublisher publisher = client.listAgentsPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.bedrockagent.paginators.ListAgentsPublisher publisher = client.listAgentsPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrockagent.model.ListAgentsResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.bedrockagent.model.ListAgentsResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        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 listAgents(software.amazon.awssdk.services.bedrockagent.model.ListAgentsRequest) operation.

        Parameters:
        listAgentsRequest - List Agent Request
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listAgentsPaginator

        default ListAgentsPublisher listAgentsPaginator​(Consumer<ListAgentsRequest.Builder> listAgentsRequest)

        This is a variant of listAgents(software.amazon.awssdk.services.bedrockagent.model.ListAgentsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.bedrockagent.paginators.ListAgentsPublisher publisher = client.listAgentsPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.bedrockagent.paginators.ListAgentsPublisher publisher = client.listAgentsPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrockagent.model.ListAgentsResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.bedrockagent.model.ListAgentsResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        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 listAgents(software.amazon.awssdk.services.bedrockagent.model.ListAgentsRequest) operation.


        This is a convenience which creates an instance of the ListAgentsRequest.Builder avoiding the need to create one manually via ListAgentsRequest.builder()

        Parameters:
        listAgentsRequest - A Consumer that will call methods on ListAgentsRequest.Builder to create a request. List Agent Request
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listDataSources

        default CompletableFuture<ListDataSourcesResponse> listDataSources​(ListDataSourcesRequest listDataSourcesRequest)

        List data sources

        Parameters:
        listDataSourcesRequest -
        Returns:
        A Java Future containing the result of the ListDataSources operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listDataSources

        default CompletableFuture<ListDataSourcesResponse> listDataSources​(Consumer<ListDataSourcesRequest.Builder> listDataSourcesRequest)

        List data sources


        This is a convenience which creates an instance of the ListDataSourcesRequest.Builder avoiding the need to create one manually via ListDataSourcesRequest.builder()

        Parameters:
        listDataSourcesRequest - A Consumer that will call methods on ListDataSourcesRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the ListDataSources operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listDataSourcesPaginator

        default ListDataSourcesPublisher listDataSourcesPaginator​(ListDataSourcesRequest listDataSourcesRequest)

        This is a variant of listDataSources(software.amazon.awssdk.services.bedrockagent.model.ListDataSourcesRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.bedrockagent.paginators.ListDataSourcesPublisher publisher = client.listDataSourcesPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.bedrockagent.paginators.ListDataSourcesPublisher publisher = client.listDataSourcesPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrockagent.model.ListDataSourcesResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.bedrockagent.model.ListDataSourcesResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        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 listDataSources(software.amazon.awssdk.services.bedrockagent.model.ListDataSourcesRequest) operation.

        Parameters:
        listDataSourcesRequest -
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listDataSourcesPaginator

        default ListDataSourcesPublisher listDataSourcesPaginator​(Consumer<ListDataSourcesRequest.Builder> listDataSourcesRequest)

        This is a variant of listDataSources(software.amazon.awssdk.services.bedrockagent.model.ListDataSourcesRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.bedrockagent.paginators.ListDataSourcesPublisher publisher = client.listDataSourcesPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.bedrockagent.paginators.ListDataSourcesPublisher publisher = client.listDataSourcesPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrockagent.model.ListDataSourcesResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.bedrockagent.model.ListDataSourcesResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        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 listDataSources(software.amazon.awssdk.services.bedrockagent.model.ListDataSourcesRequest) operation.


        This is a convenience which creates an instance of the ListDataSourcesRequest.Builder avoiding the need to create one manually via ListDataSourcesRequest.builder()

        Parameters:
        listDataSourcesRequest - A Consumer that will call methods on ListDataSourcesRequest.Builder to create a request.
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listIngestionJobs

        default CompletableFuture<ListIngestionJobsResponse> listIngestionJobs​(ListIngestionJobsRequest listIngestionJobsRequest)

        List ingestion jobs

        Parameters:
        listIngestionJobsRequest -
        Returns:
        A Java Future containing the result of the ListIngestionJobs operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listIngestionJobs

        default CompletableFuture<ListIngestionJobsResponse> listIngestionJobs​(Consumer<ListIngestionJobsRequest.Builder> listIngestionJobsRequest)

        List ingestion jobs


        This is a convenience which creates an instance of the ListIngestionJobsRequest.Builder avoiding the need to create one manually via ListIngestionJobsRequest.builder()

        Parameters:
        listIngestionJobsRequest - A Consumer that will call methods on ListIngestionJobsRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the ListIngestionJobs operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listIngestionJobsPaginator

        default ListIngestionJobsPublisher listIngestionJobsPaginator​(ListIngestionJobsRequest listIngestionJobsRequest)

        This is a variant of listIngestionJobs(software.amazon.awssdk.services.bedrockagent.model.ListIngestionJobsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.bedrockagent.paginators.ListIngestionJobsPublisher publisher = client.listIngestionJobsPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.bedrockagent.paginators.ListIngestionJobsPublisher publisher = client.listIngestionJobsPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrockagent.model.ListIngestionJobsResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.bedrockagent.model.ListIngestionJobsResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        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 listIngestionJobs(software.amazon.awssdk.services.bedrockagent.model.ListIngestionJobsRequest) operation.

        Parameters:
        listIngestionJobsRequest -
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listIngestionJobsPaginator

        default ListIngestionJobsPublisher listIngestionJobsPaginator​(Consumer<ListIngestionJobsRequest.Builder> listIngestionJobsRequest)

        This is a variant of listIngestionJobs(software.amazon.awssdk.services.bedrockagent.model.ListIngestionJobsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.bedrockagent.paginators.ListIngestionJobsPublisher publisher = client.listIngestionJobsPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.bedrockagent.paginators.ListIngestionJobsPublisher publisher = client.listIngestionJobsPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrockagent.model.ListIngestionJobsResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.bedrockagent.model.ListIngestionJobsResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        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 listIngestionJobs(software.amazon.awssdk.services.bedrockagent.model.ListIngestionJobsRequest) operation.


        This is a convenience which creates an instance of the ListIngestionJobsRequest.Builder avoiding the need to create one manually via ListIngestionJobsRequest.builder()

        Parameters:
        listIngestionJobsRequest - A Consumer that will call methods on ListIngestionJobsRequest.Builder to create a request.
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listKnowledgeBases

        default CompletableFuture<ListKnowledgeBasesResponse> listKnowledgeBases​(ListKnowledgeBasesRequest listKnowledgeBasesRequest)

        List Knowledge Bases

        Parameters:
        listKnowledgeBasesRequest -
        Returns:
        A Java Future containing the result of the ListKnowledgeBases operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listKnowledgeBases

        default CompletableFuture<ListKnowledgeBasesResponse> listKnowledgeBases​(Consumer<ListKnowledgeBasesRequest.Builder> listKnowledgeBasesRequest)

        List Knowledge Bases


        This is a convenience which creates an instance of the ListKnowledgeBasesRequest.Builder avoiding the need to create one manually via ListKnowledgeBasesRequest.builder()

        Parameters:
        listKnowledgeBasesRequest - A Consumer that will call methods on ListKnowledgeBasesRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the ListKnowledgeBases operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listKnowledgeBasesPaginator

        default ListKnowledgeBasesPublisher listKnowledgeBasesPaginator​(ListKnowledgeBasesRequest listKnowledgeBasesRequest)

        This is a variant of listKnowledgeBases(software.amazon.awssdk.services.bedrockagent.model.ListKnowledgeBasesRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.bedrockagent.paginators.ListKnowledgeBasesPublisher publisher = client.listKnowledgeBasesPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.bedrockagent.paginators.ListKnowledgeBasesPublisher publisher = client.listKnowledgeBasesPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrockagent.model.ListKnowledgeBasesResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.bedrockagent.model.ListKnowledgeBasesResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        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 listKnowledgeBases(software.amazon.awssdk.services.bedrockagent.model.ListKnowledgeBasesRequest) operation.

        Parameters:
        listKnowledgeBasesRequest -
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listKnowledgeBasesPaginator

        default ListKnowledgeBasesPublisher listKnowledgeBasesPaginator​(Consumer<ListKnowledgeBasesRequest.Builder> listKnowledgeBasesRequest)

        This is a variant of listKnowledgeBases(software.amazon.awssdk.services.bedrockagent.model.ListKnowledgeBasesRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.bedrockagent.paginators.ListKnowledgeBasesPublisher publisher = client.listKnowledgeBasesPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.bedrockagent.paginators.ListKnowledgeBasesPublisher publisher = client.listKnowledgeBasesPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrockagent.model.ListKnowledgeBasesResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.bedrockagent.model.ListKnowledgeBasesResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        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 listKnowledgeBases(software.amazon.awssdk.services.bedrockagent.model.ListKnowledgeBasesRequest) operation.


        This is a convenience which creates an instance of the ListKnowledgeBasesRequest.Builder avoiding the need to create one manually via ListKnowledgeBasesRequest.builder()

        Parameters:
        listKnowledgeBasesRequest - A Consumer that will call methods on ListKnowledgeBasesRequest.Builder to create a request.
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listTagsForResource

        default CompletableFuture<ListTagsForResourceResponse> listTagsForResource​(ListTagsForResourceRequest listTagsForResourceRequest)

        List tags for a resource

        Parameters:
        listTagsForResourceRequest -
        Returns:
        A Java Future containing the result of the ListTagsForResource operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listTagsForResource

        default CompletableFuture<ListTagsForResourceResponse> listTagsForResource​(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest)

        List tags for a resource


        This is a convenience which creates an instance of the ListTagsForResourceRequest.Builder avoiding the need to create one manually via ListTagsForResourceRequest.builder()

        Parameters:
        listTagsForResourceRequest - A Consumer that will call methods on ListTagsForResourceRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the ListTagsForResource operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • prepareAgent

        default CompletableFuture<PrepareAgentResponse> prepareAgent​(PrepareAgentRequest prepareAgentRequest)

        Prepares an existing Amazon Bedrock Agent to receive runtime requests

        Parameters:
        prepareAgentRequest - PrepareAgent Request
        Returns:
        A Java Future containing the result of the PrepareAgent operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • ConflictException This exception is thrown when there is a conflict performing an operation
        • ServiceQuotaExceededException This exception is thrown when a request is made beyond the service quota
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • prepareAgent

        default CompletableFuture<PrepareAgentResponse> prepareAgent​(Consumer<PrepareAgentRequest.Builder> prepareAgentRequest)

        Prepares an existing Amazon Bedrock Agent to receive runtime requests


        This is a convenience which creates an instance of the PrepareAgentRequest.Builder avoiding the need to create one manually via PrepareAgentRequest.builder()

        Parameters:
        prepareAgentRequest - A Consumer that will call methods on PrepareAgentRequest.Builder to create a request. PrepareAgent Request
        Returns:
        A Java Future containing the result of the PrepareAgent operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • ConflictException This exception is thrown when there is a conflict performing an operation
        • ServiceQuotaExceededException This exception is thrown when a request is made beyond the service quota
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • startIngestionJob

        default CompletableFuture<StartIngestionJobResponse> startIngestionJob​(StartIngestionJobRequest startIngestionJobRequest)

        Start a new ingestion job

        Parameters:
        startIngestionJobRequest -
        Returns:
        A Java Future containing the result of the StartIngestionJob operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • ConflictException This exception is thrown when there is a conflict performing an operation
        • ServiceQuotaExceededException This exception is thrown when a request is made beyond the service quota
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • startIngestionJob

        default CompletableFuture<StartIngestionJobResponse> startIngestionJob​(Consumer<StartIngestionJobRequest.Builder> startIngestionJobRequest)

        Start a new ingestion job


        This is a convenience which creates an instance of the StartIngestionJobRequest.Builder avoiding the need to create one manually via StartIngestionJobRequest.builder()

        Parameters:
        startIngestionJobRequest - A Consumer that will call methods on StartIngestionJobRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the StartIngestionJob operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • ConflictException This exception is thrown when there is a conflict performing an operation
        • ServiceQuotaExceededException This exception is thrown when a request is made beyond the service quota
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • tagResource

        default CompletableFuture<TagResourceResponse> tagResource​(TagResourceRequest tagResourceRequest)

        Tag a resource

        Parameters:
        tagResourceRequest -
        Returns:
        A Java Future containing the result of the TagResource operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • ServiceQuotaExceededException This exception is thrown when a request is made beyond the service quota
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • tagResource

        default CompletableFuture<TagResourceResponse> tagResource​(Consumer<TagResourceRequest.Builder> tagResourceRequest)

        Tag a resource


        This is a convenience which creates an instance of the TagResourceRequest.Builder avoiding the need to create one manually via TagResourceRequest.builder()

        Parameters:
        tagResourceRequest - A Consumer that will call methods on TagResourceRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the TagResource operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • ServiceQuotaExceededException This exception is thrown when a request is made beyond the service quota
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • untagResource

        default CompletableFuture<UntagResourceResponse> untagResource​(UntagResourceRequest untagResourceRequest)

        Untag a resource

        Parameters:
        untagResourceRequest -
        Returns:
        A Java Future containing the result of the UntagResource operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • untagResource

        default CompletableFuture<UntagResourceResponse> untagResource​(Consumer<UntagResourceRequest.Builder> untagResourceRequest)

        Untag a resource


        This is a convenience which creates an instance of the UntagResourceRequest.Builder avoiding the need to create one manually via UntagResourceRequest.builder()

        Parameters:
        untagResourceRequest - A Consumer that will call methods on UntagResourceRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the UntagResource operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • updateAgent

        default CompletableFuture<UpdateAgentResponse> updateAgent​(UpdateAgentRequest updateAgentRequest)

        Updates an existing Amazon Bedrock Agent

        Parameters:
        updateAgentRequest - Update Agent Request
        Returns:
        A Java Future containing the result of the UpdateAgent operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • ConflictException This exception is thrown when there is a conflict performing an operation
        • ServiceQuotaExceededException This exception is thrown when a request is made beyond the service quota
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • updateAgent

        default CompletableFuture<UpdateAgentResponse> updateAgent​(Consumer<UpdateAgentRequest.Builder> updateAgentRequest)

        Updates an existing Amazon Bedrock Agent


        This is a convenience which creates an instance of the UpdateAgentRequest.Builder avoiding the need to create one manually via UpdateAgentRequest.builder()

        Parameters:
        updateAgentRequest - A Consumer that will call methods on UpdateAgentRequest.Builder to create a request. Update Agent Request
        Returns:
        A Java Future containing the result of the UpdateAgent operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • ConflictException This exception is thrown when there is a conflict performing an operation
        • ServiceQuotaExceededException This exception is thrown when a request is made beyond the service quota
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • updateAgentActionGroup

        default CompletableFuture<UpdateAgentActionGroupResponse> updateAgentActionGroup​(UpdateAgentActionGroupRequest updateAgentActionGroupRequest)

        Updates an existing Action Group for Amazon Bedrock Agent

        Parameters:
        updateAgentActionGroupRequest - Update Action Group Request
        Returns:
        A Java Future containing the result of the UpdateAgentActionGroup operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • ConflictException This exception is thrown when there is a conflict performing an operation
        • ServiceQuotaExceededException This exception is thrown when a request is made beyond the service quota
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • updateAgentActionGroup

        default CompletableFuture<UpdateAgentActionGroupResponse> updateAgentActionGroup​(Consumer<UpdateAgentActionGroupRequest.Builder> updateAgentActionGroupRequest)

        Updates an existing Action Group for Amazon Bedrock Agent


        This is a convenience which creates an instance of the UpdateAgentActionGroupRequest.Builder avoiding the need to create one manually via UpdateAgentActionGroupRequest.builder()

        Parameters:
        updateAgentActionGroupRequest - A Consumer that will call methods on UpdateAgentActionGroupRequest.Builder to create a request. Update Action Group Request
        Returns:
        A Java Future containing the result of the UpdateAgentActionGroup operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • ConflictException This exception is thrown when there is a conflict performing an operation
        • ServiceQuotaExceededException This exception is thrown when a request is made beyond the service quota
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • updateAgentAlias

        default CompletableFuture<UpdateAgentAliasResponse> updateAgentAlias​(UpdateAgentAliasRequest updateAgentAliasRequest)

        Updates an existing Alias for an Amazon Bedrock Agent

        Parameters:
        updateAgentAliasRequest - Update Agent Alias Request
        Returns:
        A Java Future containing the result of the UpdateAgentAlias operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • ConflictException This exception is thrown when there is a conflict performing an operation
        • ServiceQuotaExceededException This exception is thrown when a request is made beyond the service quota
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • updateAgentAlias

        default CompletableFuture<UpdateAgentAliasResponse> updateAgentAlias​(Consumer<UpdateAgentAliasRequest.Builder> updateAgentAliasRequest)

        Updates an existing Alias for an Amazon Bedrock Agent


        This is a convenience which creates an instance of the UpdateAgentAliasRequest.Builder avoiding the need to create one manually via UpdateAgentAliasRequest.builder()

        Parameters:
        updateAgentAliasRequest - A Consumer that will call methods on UpdateAgentAliasRequest.Builder to create a request. Update Agent Alias Request
        Returns:
        A Java Future containing the result of the UpdateAgentAlias operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • ConflictException This exception is thrown when there is a conflict performing an operation
        • ServiceQuotaExceededException This exception is thrown when a request is made beyond the service quota
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • updateAgentKnowledgeBase

        default CompletableFuture<UpdateAgentKnowledgeBaseResponse> updateAgentKnowledgeBase​(UpdateAgentKnowledgeBaseRequest updateAgentKnowledgeBaseRequest)

        Updates an existing Knowledge Base associated to an Amazon Bedrock Agent

        Parameters:
        updateAgentKnowledgeBaseRequest - Update Agent Knowledge Base Request
        Returns:
        A Java Future containing the result of the UpdateAgentKnowledgeBase operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • ConflictException This exception is thrown when there is a conflict performing an operation
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • updateAgentKnowledgeBase

        default CompletableFuture<UpdateAgentKnowledgeBaseResponse> updateAgentKnowledgeBase​(Consumer<UpdateAgentKnowledgeBaseRequest.Builder> updateAgentKnowledgeBaseRequest)

        Updates an existing Knowledge Base associated to an Amazon Bedrock Agent


        This is a convenience which creates an instance of the UpdateAgentKnowledgeBaseRequest.Builder avoiding the need to create one manually via UpdateAgentKnowledgeBaseRequest.builder()

        Parameters:
        updateAgentKnowledgeBaseRequest - A Consumer that will call methods on UpdateAgentKnowledgeBaseRequest.Builder to create a request. Update Agent Knowledge Base Request
        Returns:
        A Java Future containing the result of the UpdateAgentKnowledgeBase operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • ConflictException This exception is thrown when there is a conflict performing an operation
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • updateDataSource

        default CompletableFuture<UpdateDataSourceResponse> updateDataSource​(UpdateDataSourceRequest updateDataSourceRequest)

        Update an existing data source

        Parameters:
        updateDataSourceRequest -
        Returns:
        A Java Future containing the result of the UpdateDataSource operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • ConflictException This exception is thrown when there is a conflict performing an operation
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • updateDataSource

        default CompletableFuture<UpdateDataSourceResponse> updateDataSource​(Consumer<UpdateDataSourceRequest.Builder> updateDataSourceRequest)

        Update an existing data source


        This is a convenience which creates an instance of the UpdateDataSourceRequest.Builder avoiding the need to create one manually via UpdateDataSourceRequest.builder()

        Parameters:
        updateDataSourceRequest - A Consumer that will call methods on UpdateDataSourceRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the UpdateDataSource operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • ConflictException This exception is thrown when there is a conflict performing an operation
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • updateKnowledgeBase

        default CompletableFuture<UpdateKnowledgeBaseResponse> updateKnowledgeBase​(UpdateKnowledgeBaseRequest updateKnowledgeBaseRequest)

        Update an existing knowledge base

        Parameters:
        updateKnowledgeBaseRequest -
        Returns:
        A Java Future containing the result of the UpdateKnowledgeBase operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • ConflictException This exception is thrown when there is a conflict performing an operation
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • updateKnowledgeBase

        default CompletableFuture<UpdateKnowledgeBaseResponse> updateKnowledgeBase​(Consumer<UpdateKnowledgeBaseRequest.Builder> updateKnowledgeBaseRequest)

        Update an existing knowledge base


        This is a convenience which creates an instance of the UpdateKnowledgeBaseRequest.Builder avoiding the need to create one manually via UpdateKnowledgeBaseRequest.builder()

        Parameters:
        updateKnowledgeBaseRequest - A Consumer that will call methods on UpdateKnowledgeBaseRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the UpdateKnowledgeBase operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ThrottlingException This exception is thrown when the number of requests exceeds the limit
        • AccessDeniedException This exception is thrown when a request is denied per access permissions
        • ValidationException This exception is thrown when the request's input validation fails
        • InternalServerException This exception is thrown if there was an unexpected error during processing of request
        • ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
        • ConflictException This exception is thrown when there is a conflict performing an operation
        • 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.
        • BedrockAgentException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation