Interface BedrockAgentClient
-
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
@Generated("software.amazon.awssdk:codegen") @ThreadSafe public interface BedrockAgentClient extends AwsClient
Service client for accessing Agents for Amazon Bedrock. This can be created using the staticbuilder()method.An example service, deployed with the Octane Service creator, which will echo the string
-
-
Field Summary
Fields Modifier and Type Field Description static StringSERVICE_METADATA_IDValue for looking up the service's metadata from theServiceMetadataProvider.static StringSERVICE_NAME
-
Method Summary
-
Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
-
Methods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
-
-
-
Field Detail
-
SERVICE_NAME
static final String SERVICE_NAME
- See Also:
- Constant Field Values
-
SERVICE_METADATA_ID
static final String SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider.- See Also:
- Constant Field Values
-
-
Method Detail
-
associateAgentKnowledgeBase
default AssociateAgentKnowledgeBaseResponse associateAgentKnowledgeBase(AssociateAgentKnowledgeBaseRequest associateAgentKnowledgeBaseRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, ConflictException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, BedrockAgentException
Associate a Knowledge Base to an existing Amazon Bedrock Agent
- Parameters:
associateAgentKnowledgeBaseRequest- Associate Agent Knowledge Base Request- Returns:
- Result of the AssociateAgentKnowledgeBase operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existConflictException- This exception is thrown when there is a conflict performing an operationServiceQuotaExceededException- This exception is thrown when a request is made beyond the service quotaSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
associateAgentKnowledgeBase
default AssociateAgentKnowledgeBaseResponse associateAgentKnowledgeBase(Consumer<AssociateAgentKnowledgeBaseRequest.Builder> associateAgentKnowledgeBaseRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, ConflictException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, BedrockAgentException
Associate a Knowledge Base to an existing Amazon Bedrock Agent
This is a convenience which creates an instance of the
AssociateAgentKnowledgeBaseRequest.Builderavoiding the need to create one manually viaAssociateAgentKnowledgeBaseRequest.builder()- Parameters:
associateAgentKnowledgeBaseRequest- AConsumerthat will call methods onAssociateAgentKnowledgeBaseRequest.Builderto create a request. Associate Agent Knowledge Base Request- Returns:
- Result of the AssociateAgentKnowledgeBase operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existConflictException- This exception is thrown when there is a conflict performing an operationServiceQuotaExceededException- This exception is thrown when a request is made beyond the service quotaSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
createAgent
default CreateAgentResponse createAgent(CreateAgentRequest createAgentRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ConflictException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, BedrockAgentException
Creates an Amazon Bedrock Agent
- Parameters:
createAgentRequest- Create Agent Request- Returns:
- Result of the CreateAgent operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestConflictException- This exception is thrown when there is a conflict performing an operationServiceQuotaExceededException- This exception is thrown when a request is made beyond the service quotaSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
createAgent
default CreateAgentResponse createAgent(Consumer<CreateAgentRequest.Builder> createAgentRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ConflictException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, BedrockAgentException
Creates an Amazon Bedrock Agent
This is a convenience which creates an instance of the
CreateAgentRequest.Builderavoiding the need to create one manually viaCreateAgentRequest.builder()- Parameters:
createAgentRequest- AConsumerthat will call methods onCreateAgentRequest.Builderto create a request. Create Agent Request- Returns:
- Result of the CreateAgent operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestConflictException- This exception is thrown when there is a conflict performing an operationServiceQuotaExceededException- This exception is thrown when a request is made beyond the service quotaSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
createAgentActionGroup
default CreateAgentActionGroupResponse createAgentActionGroup(CreateAgentActionGroupRequest createAgentActionGroupRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, ConflictException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, BedrockAgentException
Creates an Action Group for existing Amazon Bedrock Agent
- Parameters:
createAgentActionGroupRequest- Create Action Group Request- Returns:
- Result of the CreateAgentActionGroup operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existConflictException- This exception is thrown when there is a conflict performing an operationServiceQuotaExceededException- This exception is thrown when a request is made beyond the service quotaSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
createAgentActionGroup
default CreateAgentActionGroupResponse createAgentActionGroup(Consumer<CreateAgentActionGroupRequest.Builder> createAgentActionGroupRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, ConflictException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, BedrockAgentException
Creates an Action Group for existing Amazon Bedrock Agent
This is a convenience which creates an instance of the
CreateAgentActionGroupRequest.Builderavoiding the need to create one manually viaCreateAgentActionGroupRequest.builder()- Parameters:
createAgentActionGroupRequest- AConsumerthat will call methods onCreateAgentActionGroupRequest.Builderto create a request. Create Action Group Request- Returns:
- Result of the CreateAgentActionGroup operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existConflictException- This exception is thrown when there is a conflict performing an operationServiceQuotaExceededException- This exception is thrown when a request is made beyond the service quotaSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
createAgentAlias
default CreateAgentAliasResponse createAgentAlias(CreateAgentAliasRequest createAgentAliasRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, ConflictException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, BedrockAgentException
Creates an Alias for an existing Amazon Bedrock Agent
- Parameters:
createAgentAliasRequest- Create Agent Alias Request- Returns:
- Result of the CreateAgentAlias operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existConflictException- This exception is thrown when there is a conflict performing an operationServiceQuotaExceededException- This exception is thrown when a request is made beyond the service quotaSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
createAgentAlias
default CreateAgentAliasResponse createAgentAlias(Consumer<CreateAgentAliasRequest.Builder> createAgentAliasRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, ConflictException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, BedrockAgentException
Creates an Alias for an existing Amazon Bedrock Agent
This is a convenience which creates an instance of the
CreateAgentAliasRequest.Builderavoiding the need to create one manually viaCreateAgentAliasRequest.builder()- Parameters:
createAgentAliasRequest- AConsumerthat will call methods onCreateAgentAliasRequest.Builderto create a request. Create Agent Alias Request- Returns:
- Result of the CreateAgentAlias operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existConflictException- This exception is thrown when there is a conflict performing an operationServiceQuotaExceededException- This exception is thrown when a request is made beyond the service quotaSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
createDataSource
default CreateDataSourceResponse createDataSource(CreateDataSourceRequest createDataSourceRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, ConflictException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, BedrockAgentException
Create a new data source
- Parameters:
createDataSourceRequest-- Returns:
- Result of the CreateDataSource operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existConflictException- This exception is thrown when there is a conflict performing an operationServiceQuotaExceededException- This exception is thrown when a request is made beyond the service quotaSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
createDataSource
default CreateDataSourceResponse createDataSource(Consumer<CreateDataSourceRequest.Builder> createDataSourceRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, ConflictException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, BedrockAgentException
Create a new data source
This is a convenience which creates an instance of the
CreateDataSourceRequest.Builderavoiding the need to create one manually viaCreateDataSourceRequest.builder()- Parameters:
createDataSourceRequest- AConsumerthat will call methods onCreateDataSourceRequest.Builderto create a request.- Returns:
- Result of the CreateDataSource operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existConflictException- This exception is thrown when there is a conflict performing an operationServiceQuotaExceededException- This exception is thrown when a request is made beyond the service quotaSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
createKnowledgeBase
default CreateKnowledgeBaseResponse createKnowledgeBase(CreateKnowledgeBaseRequest createKnowledgeBaseRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ConflictException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, BedrockAgentException
Create a new knowledge base
- Parameters:
createKnowledgeBaseRequest-- Returns:
- Result of the CreateKnowledgeBase operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestConflictException- This exception is thrown when there is a conflict performing an operationServiceQuotaExceededException- This exception is thrown when a request is made beyond the service quotaSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
createKnowledgeBase
default CreateKnowledgeBaseResponse createKnowledgeBase(Consumer<CreateKnowledgeBaseRequest.Builder> createKnowledgeBaseRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ConflictException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, BedrockAgentException
Create a new knowledge base
This is a convenience which creates an instance of the
CreateKnowledgeBaseRequest.Builderavoiding the need to create one manually viaCreateKnowledgeBaseRequest.builder()- Parameters:
createKnowledgeBaseRequest- AConsumerthat will call methods onCreateKnowledgeBaseRequest.Builderto create a request.- Returns:
- Result of the CreateKnowledgeBase operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestConflictException- This exception is thrown when there is a conflict performing an operationServiceQuotaExceededException- This exception is thrown when a request is made beyond the service quotaSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
deleteAgent
default DeleteAgentResponse deleteAgent(DeleteAgentRequest deleteAgentRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, ConflictException, AwsServiceException, SdkClientException, BedrockAgentException
Deletes an Agent for existing Amazon Bedrock Agent
- Parameters:
deleteAgentRequest- Delete Agent Request- Returns:
- Result of the DeleteAgent operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existConflictException- This exception is thrown when there is a conflict performing an operationSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
deleteAgent
default DeleteAgentResponse deleteAgent(Consumer<DeleteAgentRequest.Builder> deleteAgentRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, ConflictException, AwsServiceException, SdkClientException, BedrockAgentException
Deletes an Agent for existing Amazon Bedrock Agent
This is a convenience which creates an instance of the
DeleteAgentRequest.Builderavoiding the need to create one manually viaDeleteAgentRequest.builder()- Parameters:
deleteAgentRequest- AConsumerthat will call methods onDeleteAgentRequest.Builderto create a request. Delete Agent Request- Returns:
- Result of the DeleteAgent operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existConflictException- This exception is thrown when there is a conflict performing an operationSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
deleteAgentActionGroup
default DeleteAgentActionGroupResponse deleteAgentActionGroup(DeleteAgentActionGroupRequest deleteAgentActionGroupRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, ConflictException, AwsServiceException, SdkClientException, BedrockAgentException
Deletes an Action Group for existing Amazon Bedrock Agent.
- Parameters:
deleteAgentActionGroupRequest- Delete Action Group Request- Returns:
- Result of the DeleteAgentActionGroup operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existConflictException- This exception is thrown when there is a conflict performing an operationSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
deleteAgentActionGroup
default DeleteAgentActionGroupResponse deleteAgentActionGroup(Consumer<DeleteAgentActionGroupRequest.Builder> deleteAgentActionGroupRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, ConflictException, AwsServiceException, SdkClientException, BedrockAgentException
Deletes an Action Group for existing Amazon Bedrock Agent.
This is a convenience which creates an instance of the
DeleteAgentActionGroupRequest.Builderavoiding the need to create one manually viaDeleteAgentActionGroupRequest.builder()- Parameters:
deleteAgentActionGroupRequest- AConsumerthat will call methods onDeleteAgentActionGroupRequest.Builderto create a request. Delete Action Group Request- Returns:
- Result of the DeleteAgentActionGroup operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existConflictException- This exception is thrown when there is a conflict performing an operationSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
deleteAgentAlias
default DeleteAgentAliasResponse deleteAgentAlias(DeleteAgentAliasRequest deleteAgentAliasRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, BedrockAgentException
Deletes an Alias for a Amazon Bedrock Agent
- Parameters:
deleteAgentAliasRequest- Delete Agent Alias Request- Returns:
- Result of the DeleteAgentAlias operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
deleteAgentAlias
default DeleteAgentAliasResponse deleteAgentAlias(Consumer<DeleteAgentAliasRequest.Builder> deleteAgentAliasRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, BedrockAgentException
Deletes an Alias for a Amazon Bedrock Agent
This is a convenience which creates an instance of the
DeleteAgentAliasRequest.Builderavoiding the need to create one manually viaDeleteAgentAliasRequest.builder()- Parameters:
deleteAgentAliasRequest- AConsumerthat will call methods onDeleteAgentAliasRequest.Builderto create a request. Delete Agent Alias Request- Returns:
- Result of the DeleteAgentAlias operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
deleteAgentVersion
default DeleteAgentVersionResponse deleteAgentVersion(DeleteAgentVersionRequest deleteAgentVersionRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, ConflictException, AwsServiceException, SdkClientException, BedrockAgentException
Deletes an Agent version for existing Amazon Bedrock Agent
- Parameters:
deleteAgentVersionRequest- Delete Agent Version Request- Returns:
- Result of the DeleteAgentVersion operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existConflictException- This exception is thrown when there is a conflict performing an operationSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
deleteAgentVersion
default DeleteAgentVersionResponse deleteAgentVersion(Consumer<DeleteAgentVersionRequest.Builder> deleteAgentVersionRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, ConflictException, AwsServiceException, SdkClientException, BedrockAgentException
Deletes an Agent version for existing Amazon Bedrock Agent
This is a convenience which creates an instance of the
DeleteAgentVersionRequest.Builderavoiding the need to create one manually viaDeleteAgentVersionRequest.builder()- Parameters:
deleteAgentVersionRequest- AConsumerthat will call methods onDeleteAgentVersionRequest.Builderto create a request. Delete Agent Version Request- Returns:
- Result of the DeleteAgentVersion operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existConflictException- This exception is thrown when there is a conflict performing an operationSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
deleteDataSource
default DeleteDataSourceResponse deleteDataSource(DeleteDataSourceRequest deleteDataSourceRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, ConflictException, AwsServiceException, SdkClientException, BedrockAgentException
Delete an existing data source
- Parameters:
deleteDataSourceRequest-- Returns:
- Result of the DeleteDataSource operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existConflictException- This exception is thrown when there is a conflict performing an operationSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
deleteDataSource
default DeleteDataSourceResponse deleteDataSource(Consumer<DeleteDataSourceRequest.Builder> deleteDataSourceRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, ConflictException, AwsServiceException, SdkClientException, BedrockAgentException
Delete an existing data source
This is a convenience which creates an instance of the
DeleteDataSourceRequest.Builderavoiding the need to create one manually viaDeleteDataSourceRequest.builder()- Parameters:
deleteDataSourceRequest- AConsumerthat will call methods onDeleteDataSourceRequest.Builderto create a request.- Returns:
- Result of the DeleteDataSource operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existConflictException- This exception is thrown when there is a conflict performing an operationSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
deleteKnowledgeBase
default DeleteKnowledgeBaseResponse deleteKnowledgeBase(DeleteKnowledgeBaseRequest deleteKnowledgeBaseRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, ConflictException, AwsServiceException, SdkClientException, BedrockAgentException
Delete an existing knowledge base
- Parameters:
deleteKnowledgeBaseRequest-- Returns:
- Result of the DeleteKnowledgeBase operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existConflictException- This exception is thrown when there is a conflict performing an operationSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
deleteKnowledgeBase
default DeleteKnowledgeBaseResponse deleteKnowledgeBase(Consumer<DeleteKnowledgeBaseRequest.Builder> deleteKnowledgeBaseRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, ConflictException, AwsServiceException, SdkClientException, BedrockAgentException
Delete an existing knowledge base
This is a convenience which creates an instance of the
DeleteKnowledgeBaseRequest.Builderavoiding the need to create one manually viaDeleteKnowledgeBaseRequest.builder()- Parameters:
deleteKnowledgeBaseRequest- AConsumerthat will call methods onDeleteKnowledgeBaseRequest.Builderto create a request.- Returns:
- Result of the DeleteKnowledgeBase operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existConflictException- This exception is thrown when there is a conflict performing an operationSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
disassociateAgentKnowledgeBase
default DisassociateAgentKnowledgeBaseResponse disassociateAgentKnowledgeBase(DisassociateAgentKnowledgeBaseRequest disassociateAgentKnowledgeBaseRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, ConflictException, AwsServiceException, SdkClientException, BedrockAgentException
Disassociate an existing Knowledge Base from an Amazon Bedrock Agent
- Parameters:
disassociateAgentKnowledgeBaseRequest- Disassociate Agent Knowledge Base Request- Returns:
- Result of the DisassociateAgentKnowledgeBase operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existConflictException- This exception is thrown when there is a conflict performing an operationSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
disassociateAgentKnowledgeBase
default DisassociateAgentKnowledgeBaseResponse disassociateAgentKnowledgeBase(Consumer<DisassociateAgentKnowledgeBaseRequest.Builder> disassociateAgentKnowledgeBaseRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, ConflictException, AwsServiceException, SdkClientException, BedrockAgentException
Disassociate an existing Knowledge Base from an Amazon Bedrock Agent
This is a convenience which creates an instance of the
DisassociateAgentKnowledgeBaseRequest.Builderavoiding the need to create one manually viaDisassociateAgentKnowledgeBaseRequest.builder()- Parameters:
disassociateAgentKnowledgeBaseRequest- AConsumerthat will call methods onDisassociateAgentKnowledgeBaseRequest.Builderto create a request. Disassociate Agent Knowledge Base Request- Returns:
- Result of the DisassociateAgentKnowledgeBase operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existConflictException- This exception is thrown when there is a conflict performing an operationSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
getAgent
default GetAgentResponse getAgent(GetAgentRequest getAgentRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, BedrockAgentException
Gets an Agent for existing Amazon Bedrock Agent
- Parameters:
getAgentRequest- Get Agent Request- Returns:
- Result of the GetAgent operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
getAgent
default GetAgentResponse getAgent(Consumer<GetAgentRequest.Builder> getAgentRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, BedrockAgentException
Gets an Agent for existing Amazon Bedrock Agent
This is a convenience which creates an instance of the
GetAgentRequest.Builderavoiding the need to create one manually viaGetAgentRequest.builder()- Parameters:
getAgentRequest- AConsumerthat will call methods onGetAgentRequest.Builderto create a request. Get Agent Request- Returns:
- Result of the GetAgent operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
getAgentActionGroup
default GetAgentActionGroupResponse getAgentActionGroup(GetAgentActionGroupRequest getAgentActionGroupRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, BedrockAgentException
Gets an Action Group for existing Amazon Bedrock Agent Version
- Parameters:
getAgentActionGroupRequest- Get Action Group Request- Returns:
- Result of the GetAgentActionGroup operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
getAgentActionGroup
default GetAgentActionGroupResponse getAgentActionGroup(Consumer<GetAgentActionGroupRequest.Builder> getAgentActionGroupRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, BedrockAgentException
Gets an Action Group for existing Amazon Bedrock Agent Version
This is a convenience which creates an instance of the
GetAgentActionGroupRequest.Builderavoiding the need to create one manually viaGetAgentActionGroupRequest.builder()- Parameters:
getAgentActionGroupRequest- AConsumerthat will call methods onGetAgentActionGroupRequest.Builderto create a request. Get Action Group Request- Returns:
- Result of the GetAgentActionGroup operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
getAgentAlias
default GetAgentAliasResponse getAgentAlias(GetAgentAliasRequest getAgentAliasRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, BedrockAgentException
Describes an Alias for a Amazon Bedrock Agent
- Parameters:
getAgentAliasRequest- Get Agent Alias Request- Returns:
- Result of the GetAgentAlias operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
getAgentAlias
default GetAgentAliasResponse getAgentAlias(Consumer<GetAgentAliasRequest.Builder> getAgentAliasRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, BedrockAgentException
Describes an Alias for a Amazon Bedrock Agent
This is a convenience which creates an instance of the
GetAgentAliasRequest.Builderavoiding the need to create one manually viaGetAgentAliasRequest.builder()- Parameters:
getAgentAliasRequest- AConsumerthat will call methods onGetAgentAliasRequest.Builderto create a request. Get Agent Alias Request- Returns:
- Result of the GetAgentAlias operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
getAgentKnowledgeBase
default GetAgentKnowledgeBaseResponse getAgentKnowledgeBase(GetAgentKnowledgeBaseRequest getAgentKnowledgeBaseRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, BedrockAgentException
Gets a knowledge base associated to an existing Amazon Bedrock Agent Version
- Parameters:
getAgentKnowledgeBaseRequest- Get Agent Knowledge Base Request- Returns:
- Result of the GetAgentKnowledgeBase operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
getAgentKnowledgeBase
default GetAgentKnowledgeBaseResponse getAgentKnowledgeBase(Consumer<GetAgentKnowledgeBaseRequest.Builder> getAgentKnowledgeBaseRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, BedrockAgentException
Gets a knowledge base associated to an existing Amazon Bedrock Agent Version
This is a convenience which creates an instance of the
GetAgentKnowledgeBaseRequest.Builderavoiding the need to create one manually viaGetAgentKnowledgeBaseRequest.builder()- Parameters:
getAgentKnowledgeBaseRequest- AConsumerthat will call methods onGetAgentKnowledgeBaseRequest.Builderto create a request. Get Agent Knowledge Base Request- Returns:
- Result of the GetAgentKnowledgeBase operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
getAgentVersion
default GetAgentVersionResponse getAgentVersion(GetAgentVersionRequest getAgentVersionRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, BedrockAgentException
Gets an Agent version for existing Amazon Bedrock Agent
- Parameters:
getAgentVersionRequest- Get Agent Version Request- Returns:
- Result of the GetAgentVersion operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
getAgentVersion
default GetAgentVersionResponse getAgentVersion(Consumer<GetAgentVersionRequest.Builder> getAgentVersionRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, BedrockAgentException
Gets an Agent version for existing Amazon Bedrock Agent
This is a convenience which creates an instance of the
GetAgentVersionRequest.Builderavoiding the need to create one manually viaGetAgentVersionRequest.builder()- Parameters:
getAgentVersionRequest- AConsumerthat will call methods onGetAgentVersionRequest.Builderto create a request. Get Agent Version Request- Returns:
- Result of the GetAgentVersion operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
getDataSource
default GetDataSourceResponse getDataSource(GetDataSourceRequest getDataSourceRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, BedrockAgentException
Get an existing data source
- Parameters:
getDataSourceRequest-- Returns:
- Result of the GetDataSource operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
getDataSource
default GetDataSourceResponse getDataSource(Consumer<GetDataSourceRequest.Builder> getDataSourceRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, BedrockAgentException
Get an existing data source
This is a convenience which creates an instance of the
GetDataSourceRequest.Builderavoiding the need to create one manually viaGetDataSourceRequest.builder()- Parameters:
getDataSourceRequest- AConsumerthat will call methods onGetDataSourceRequest.Builderto create a request.- Returns:
- Result of the GetDataSource operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
getIngestionJob
default GetIngestionJobResponse getIngestionJob(GetIngestionJobRequest getIngestionJobRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, BedrockAgentException
Get an ingestion job
- Parameters:
getIngestionJobRequest-- Returns:
- Result of the GetIngestionJob operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
getIngestionJob
default GetIngestionJobResponse getIngestionJob(Consumer<GetIngestionJobRequest.Builder> getIngestionJobRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, BedrockAgentException
Get an ingestion job
This is a convenience which creates an instance of the
GetIngestionJobRequest.Builderavoiding the need to create one manually viaGetIngestionJobRequest.builder()- Parameters:
getIngestionJobRequest- AConsumerthat will call methods onGetIngestionJobRequest.Builderto create a request.- Returns:
- Result of the GetIngestionJob operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
getKnowledgeBase
default GetKnowledgeBaseResponse getKnowledgeBase(GetKnowledgeBaseRequest getKnowledgeBaseRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, BedrockAgentException
Get an existing knowledge base
- Parameters:
getKnowledgeBaseRequest-- Returns:
- Result of the GetKnowledgeBase operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
getKnowledgeBase
default GetKnowledgeBaseResponse getKnowledgeBase(Consumer<GetKnowledgeBaseRequest.Builder> getKnowledgeBaseRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, BedrockAgentException
Get an existing knowledge base
This is a convenience which creates an instance of the
GetKnowledgeBaseRequest.Builderavoiding the need to create one manually viaGetKnowledgeBaseRequest.builder()- Parameters:
getKnowledgeBaseRequest- AConsumerthat will call methods onGetKnowledgeBaseRequest.Builderto create a request.- Returns:
- Result of the GetKnowledgeBase operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
listAgentActionGroups
default ListAgentActionGroupsResponse listAgentActionGroups(ListAgentActionGroupsRequest listAgentActionGroupsRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, BedrockAgentException
Lists an Action Group for existing Amazon Bedrock Agent Version
- Parameters:
listAgentActionGroupsRequest- List Action Groups Request- Returns:
- Result of the ListAgentActionGroups operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
listAgentActionGroups
default ListAgentActionGroupsResponse listAgentActionGroups(Consumer<ListAgentActionGroupsRequest.Builder> listAgentActionGroupsRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, BedrockAgentException
Lists an Action Group for existing Amazon Bedrock Agent Version
This is a convenience which creates an instance of the
ListAgentActionGroupsRequest.Builderavoiding the need to create one manually viaListAgentActionGroupsRequest.builder()- Parameters:
listAgentActionGroupsRequest- AConsumerthat will call methods onListAgentActionGroupsRequest.Builderto create a request. List Action Groups Request- Returns:
- Result of the ListAgentActionGroups operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
listAgentActionGroupsPaginator
default ListAgentActionGroupsIterable listAgentActionGroupsPaginator(ListAgentActionGroupsRequest listAgentActionGroupsRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, BedrockAgentException
This is a variant of
listAgentActionGroups(software.amazon.awssdk.services.bedrockagent.model.ListAgentActionGroupsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.bedrockagent.paginators.ListAgentActionGroupsIterable responses = client.listAgentActionGroupsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.bedrockagent.paginators.ListAgentActionGroupsIterable responses = client .listAgentActionGroupsPaginator(request); for (software.amazon.awssdk.services.bedrockagent.model.ListAgentActionGroupsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.bedrockagent.paginators.ListAgentActionGroupsIterable responses = client.listAgentActionGroupsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAgentActionGroups(software.amazon.awssdk.services.bedrockagent.model.ListAgentActionGroupsRequest)operation.- Parameters:
listAgentActionGroupsRequest- List Action Groups Request- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
listAgentActionGroupsPaginator
default ListAgentActionGroupsIterable listAgentActionGroupsPaginator(Consumer<ListAgentActionGroupsRequest.Builder> listAgentActionGroupsRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, BedrockAgentException
This is a variant of
listAgentActionGroups(software.amazon.awssdk.services.bedrockagent.model.ListAgentActionGroupsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.bedrockagent.paginators.ListAgentActionGroupsIterable responses = client.listAgentActionGroupsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.bedrockagent.paginators.ListAgentActionGroupsIterable responses = client .listAgentActionGroupsPaginator(request); for (software.amazon.awssdk.services.bedrockagent.model.ListAgentActionGroupsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.bedrockagent.paginators.ListAgentActionGroupsIterable responses = client.listAgentActionGroupsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAgentActionGroups(software.amazon.awssdk.services.bedrockagent.model.ListAgentActionGroupsRequest)operation.
This is a convenience which creates an instance of the
ListAgentActionGroupsRequest.Builderavoiding the need to create one manually viaListAgentActionGroupsRequest.builder()- Parameters:
listAgentActionGroupsRequest- AConsumerthat will call methods onListAgentActionGroupsRequest.Builderto create a request. List Action Groups Request- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
listAgentAliases
default ListAgentAliasesResponse listAgentAliases(ListAgentAliasesRequest listAgentAliasesRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, BedrockAgentException
Lists all the Aliases for an Amazon Bedrock Agent
- Parameters:
listAgentAliasesRequest- List Agent Aliases Request- Returns:
- Result of the ListAgentAliases operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
listAgentAliases
default ListAgentAliasesResponse listAgentAliases(Consumer<ListAgentAliasesRequest.Builder> listAgentAliasesRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, BedrockAgentException
Lists all the Aliases for an Amazon Bedrock Agent
This is a convenience which creates an instance of the
ListAgentAliasesRequest.Builderavoiding the need to create one manually viaListAgentAliasesRequest.builder()- Parameters:
listAgentAliasesRequest- AConsumerthat will call methods onListAgentAliasesRequest.Builderto create a request. List Agent Aliases Request- Returns:
- Result of the ListAgentAliases operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
listAgentAliasesPaginator
default ListAgentAliasesIterable listAgentAliasesPaginator(ListAgentAliasesRequest listAgentAliasesRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, BedrockAgentException
This is a variant of
listAgentAliases(software.amazon.awssdk.services.bedrockagent.model.ListAgentAliasesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.bedrockagent.paginators.ListAgentAliasesIterable responses = client.listAgentAliasesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.bedrockagent.paginators.ListAgentAliasesIterable responses = client .listAgentAliasesPaginator(request); for (software.amazon.awssdk.services.bedrockagent.model.ListAgentAliasesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.bedrockagent.paginators.ListAgentAliasesIterable responses = client.listAgentAliasesPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAgentAliases(software.amazon.awssdk.services.bedrockagent.model.ListAgentAliasesRequest)operation.- Parameters:
listAgentAliasesRequest- List Agent Aliases Request- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
listAgentAliasesPaginator
default ListAgentAliasesIterable listAgentAliasesPaginator(Consumer<ListAgentAliasesRequest.Builder> listAgentAliasesRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, BedrockAgentException
This is a variant of
listAgentAliases(software.amazon.awssdk.services.bedrockagent.model.ListAgentAliasesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.bedrockagent.paginators.ListAgentAliasesIterable responses = client.listAgentAliasesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.bedrockagent.paginators.ListAgentAliasesIterable responses = client .listAgentAliasesPaginator(request); for (software.amazon.awssdk.services.bedrockagent.model.ListAgentAliasesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.bedrockagent.paginators.ListAgentAliasesIterable responses = client.listAgentAliasesPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAgentAliases(software.amazon.awssdk.services.bedrockagent.model.ListAgentAliasesRequest)operation.
This is a convenience which creates an instance of the
ListAgentAliasesRequest.Builderavoiding the need to create one manually viaListAgentAliasesRequest.builder()- Parameters:
listAgentAliasesRequest- AConsumerthat will call methods onListAgentAliasesRequest.Builderto create a request. List Agent Aliases Request- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
listAgentKnowledgeBases
default ListAgentKnowledgeBasesResponse listAgentKnowledgeBases(ListAgentKnowledgeBasesRequest listAgentKnowledgeBasesRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, BedrockAgentException
List of Knowledge Bases associated to an existing Amazon Bedrock Agent Version
- Parameters:
listAgentKnowledgeBasesRequest- List Agent Knowledge Bases Request- Returns:
- Result of the ListAgentKnowledgeBases operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
listAgentKnowledgeBases
default ListAgentKnowledgeBasesResponse listAgentKnowledgeBases(Consumer<ListAgentKnowledgeBasesRequest.Builder> listAgentKnowledgeBasesRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, BedrockAgentException
List of Knowledge Bases associated to an existing Amazon Bedrock Agent Version
This is a convenience which creates an instance of the
ListAgentKnowledgeBasesRequest.Builderavoiding the need to create one manually viaListAgentKnowledgeBasesRequest.builder()- Parameters:
listAgentKnowledgeBasesRequest- AConsumerthat will call methods onListAgentKnowledgeBasesRequest.Builderto create a request. List Agent Knowledge Bases Request- Returns:
- Result of the ListAgentKnowledgeBases operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
listAgentKnowledgeBasesPaginator
default ListAgentKnowledgeBasesIterable listAgentKnowledgeBasesPaginator(ListAgentKnowledgeBasesRequest listAgentKnowledgeBasesRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, BedrockAgentException
This is a variant of
listAgentKnowledgeBases(software.amazon.awssdk.services.bedrockagent.model.ListAgentKnowledgeBasesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.bedrockagent.paginators.ListAgentKnowledgeBasesIterable responses = client.listAgentKnowledgeBasesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.bedrockagent.paginators.ListAgentKnowledgeBasesIterable responses = client .listAgentKnowledgeBasesPaginator(request); for (software.amazon.awssdk.services.bedrockagent.model.ListAgentKnowledgeBasesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.bedrockagent.paginators.ListAgentKnowledgeBasesIterable responses = client.listAgentKnowledgeBasesPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAgentKnowledgeBases(software.amazon.awssdk.services.bedrockagent.model.ListAgentKnowledgeBasesRequest)operation.- Parameters:
listAgentKnowledgeBasesRequest- List Agent Knowledge Bases Request- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
listAgentKnowledgeBasesPaginator
default ListAgentKnowledgeBasesIterable listAgentKnowledgeBasesPaginator(Consumer<ListAgentKnowledgeBasesRequest.Builder> listAgentKnowledgeBasesRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, BedrockAgentException
This is a variant of
listAgentKnowledgeBases(software.amazon.awssdk.services.bedrockagent.model.ListAgentKnowledgeBasesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.bedrockagent.paginators.ListAgentKnowledgeBasesIterable responses = client.listAgentKnowledgeBasesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.bedrockagent.paginators.ListAgentKnowledgeBasesIterable responses = client .listAgentKnowledgeBasesPaginator(request); for (software.amazon.awssdk.services.bedrockagent.model.ListAgentKnowledgeBasesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.bedrockagent.paginators.ListAgentKnowledgeBasesIterable responses = client.listAgentKnowledgeBasesPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAgentKnowledgeBases(software.amazon.awssdk.services.bedrockagent.model.ListAgentKnowledgeBasesRequest)operation.
This is a convenience which creates an instance of the
ListAgentKnowledgeBasesRequest.Builderavoiding the need to create one manually viaListAgentKnowledgeBasesRequest.builder()- Parameters:
listAgentKnowledgeBasesRequest- AConsumerthat will call methods onListAgentKnowledgeBasesRequest.Builderto create a request. List Agent Knowledge Bases Request- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
listAgentVersions
default ListAgentVersionsResponse listAgentVersions(ListAgentVersionsRequest listAgentVersionsRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, BedrockAgentException
Lists Agent Versions
- Parameters:
listAgentVersionsRequest- List Agent Versions Request- Returns:
- Result of the ListAgentVersions operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
listAgentVersions
default ListAgentVersionsResponse listAgentVersions(Consumer<ListAgentVersionsRequest.Builder> listAgentVersionsRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, BedrockAgentException
Lists Agent Versions
This is a convenience which creates an instance of the
ListAgentVersionsRequest.Builderavoiding the need to create one manually viaListAgentVersionsRequest.builder()- Parameters:
listAgentVersionsRequest- AConsumerthat will call methods onListAgentVersionsRequest.Builderto create a request. List Agent Versions Request- Returns:
- Result of the ListAgentVersions operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
listAgentVersionsPaginator
default ListAgentVersionsIterable listAgentVersionsPaginator(ListAgentVersionsRequest listAgentVersionsRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, BedrockAgentException
This is a variant of
listAgentVersions(software.amazon.awssdk.services.bedrockagent.model.ListAgentVersionsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.bedrockagent.paginators.ListAgentVersionsIterable responses = client.listAgentVersionsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.bedrockagent.paginators.ListAgentVersionsIterable responses = client .listAgentVersionsPaginator(request); for (software.amazon.awssdk.services.bedrockagent.model.ListAgentVersionsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.bedrockagent.paginators.ListAgentVersionsIterable responses = client.listAgentVersionsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAgentVersions(software.amazon.awssdk.services.bedrockagent.model.ListAgentVersionsRequest)operation.- Parameters:
listAgentVersionsRequest- List Agent Versions Request- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
listAgentVersionsPaginator
default ListAgentVersionsIterable listAgentVersionsPaginator(Consumer<ListAgentVersionsRequest.Builder> listAgentVersionsRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, BedrockAgentException
This is a variant of
listAgentVersions(software.amazon.awssdk.services.bedrockagent.model.ListAgentVersionsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.bedrockagent.paginators.ListAgentVersionsIterable responses = client.listAgentVersionsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.bedrockagent.paginators.ListAgentVersionsIterable responses = client .listAgentVersionsPaginator(request); for (software.amazon.awssdk.services.bedrockagent.model.ListAgentVersionsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.bedrockagent.paginators.ListAgentVersionsIterable responses = client.listAgentVersionsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAgentVersions(software.amazon.awssdk.services.bedrockagent.model.ListAgentVersionsRequest)operation.
This is a convenience which creates an instance of the
ListAgentVersionsRequest.Builderavoiding the need to create one manually viaListAgentVersionsRequest.builder()- Parameters:
listAgentVersionsRequest- AConsumerthat will call methods onListAgentVersionsRequest.Builderto create a request. List Agent Versions Request- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
listAgents
default ListAgentsResponse listAgents(ListAgentsRequest listAgentsRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BedrockAgentException
Lists Agents
- Parameters:
listAgentsRequest- List Agent Request- Returns:
- Result of the ListAgents operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
listAgents
default ListAgentsResponse listAgents(Consumer<ListAgentsRequest.Builder> listAgentsRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BedrockAgentException
Lists Agents
This is a convenience which creates an instance of the
ListAgentsRequest.Builderavoiding the need to create one manually viaListAgentsRequest.builder()- Parameters:
listAgentsRequest- AConsumerthat will call methods onListAgentsRequest.Builderto create a request. List Agent Request- Returns:
- Result of the ListAgents operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
listAgentsPaginator
default ListAgentsIterable listAgentsPaginator(ListAgentsRequest listAgentsRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BedrockAgentException
This is a variant of
listAgents(software.amazon.awssdk.services.bedrockagent.model.ListAgentsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.bedrockagent.paginators.ListAgentsIterable responses = client.listAgentsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.bedrockagent.paginators.ListAgentsIterable responses = client.listAgentsPaginator(request); for (software.amazon.awssdk.services.bedrockagent.model.ListAgentsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.bedrockagent.paginators.ListAgentsIterable responses = client.listAgentsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAgents(software.amazon.awssdk.services.bedrockagent.model.ListAgentsRequest)operation.- Parameters:
listAgentsRequest- List Agent Request- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
listAgentsPaginator
default ListAgentsIterable listAgentsPaginator(Consumer<ListAgentsRequest.Builder> listAgentsRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BedrockAgentException
This is a variant of
listAgents(software.amazon.awssdk.services.bedrockagent.model.ListAgentsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.bedrockagent.paginators.ListAgentsIterable responses = client.listAgentsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.bedrockagent.paginators.ListAgentsIterable responses = client.listAgentsPaginator(request); for (software.amazon.awssdk.services.bedrockagent.model.ListAgentsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.bedrockagent.paginators.ListAgentsIterable responses = client.listAgentsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAgents(software.amazon.awssdk.services.bedrockagent.model.ListAgentsRequest)operation.
This is a convenience which creates an instance of the
ListAgentsRequest.Builderavoiding the need to create one manually viaListAgentsRequest.builder()- Parameters:
listAgentsRequest- AConsumerthat will call methods onListAgentsRequest.Builderto create a request. List Agent Request- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
listDataSources
default ListDataSourcesResponse listDataSources(ListDataSourcesRequest listDataSourcesRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, BedrockAgentException
List data sources
- Parameters:
listDataSourcesRequest-- Returns:
- Result of the ListDataSources operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
listDataSources
default ListDataSourcesResponse listDataSources(Consumer<ListDataSourcesRequest.Builder> listDataSourcesRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, BedrockAgentException
List data sources
This is a convenience which creates an instance of the
ListDataSourcesRequest.Builderavoiding the need to create one manually viaListDataSourcesRequest.builder()- Parameters:
listDataSourcesRequest- AConsumerthat will call methods onListDataSourcesRequest.Builderto create a request.- Returns:
- Result of the ListDataSources operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
listDataSourcesPaginator
default ListDataSourcesIterable listDataSourcesPaginator(ListDataSourcesRequest listDataSourcesRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, BedrockAgentException
This is a variant of
listDataSources(software.amazon.awssdk.services.bedrockagent.model.ListDataSourcesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.bedrockagent.paginators.ListDataSourcesIterable responses = client.listDataSourcesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.bedrockagent.paginators.ListDataSourcesIterable responses = client .listDataSourcesPaginator(request); for (software.amazon.awssdk.services.bedrockagent.model.ListDataSourcesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.bedrockagent.paginators.ListDataSourcesIterable responses = client.listDataSourcesPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listDataSources(software.amazon.awssdk.services.bedrockagent.model.ListDataSourcesRequest)operation.- Parameters:
listDataSourcesRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
listDataSourcesPaginator
default ListDataSourcesIterable listDataSourcesPaginator(Consumer<ListDataSourcesRequest.Builder> listDataSourcesRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, BedrockAgentException
This is a variant of
listDataSources(software.amazon.awssdk.services.bedrockagent.model.ListDataSourcesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.bedrockagent.paginators.ListDataSourcesIterable responses = client.listDataSourcesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.bedrockagent.paginators.ListDataSourcesIterable responses = client .listDataSourcesPaginator(request); for (software.amazon.awssdk.services.bedrockagent.model.ListDataSourcesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.bedrockagent.paginators.ListDataSourcesIterable responses = client.listDataSourcesPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listDataSources(software.amazon.awssdk.services.bedrockagent.model.ListDataSourcesRequest)operation.
This is a convenience which creates an instance of the
ListDataSourcesRequest.Builderavoiding the need to create one manually viaListDataSourcesRequest.builder()- Parameters:
listDataSourcesRequest- AConsumerthat will call methods onListDataSourcesRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
listIngestionJobs
default ListIngestionJobsResponse listIngestionJobs(ListIngestionJobsRequest listIngestionJobsRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, BedrockAgentException
List ingestion jobs
- Parameters:
listIngestionJobsRequest-- Returns:
- Result of the ListIngestionJobs operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
listIngestionJobs
default ListIngestionJobsResponse listIngestionJobs(Consumer<ListIngestionJobsRequest.Builder> listIngestionJobsRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, BedrockAgentException
List ingestion jobs
This is a convenience which creates an instance of the
ListIngestionJobsRequest.Builderavoiding the need to create one manually viaListIngestionJobsRequest.builder()- Parameters:
listIngestionJobsRequest- AConsumerthat will call methods onListIngestionJobsRequest.Builderto create a request.- Returns:
- Result of the ListIngestionJobs operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
listIngestionJobsPaginator
default ListIngestionJobsIterable listIngestionJobsPaginator(ListIngestionJobsRequest listIngestionJobsRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, BedrockAgentException
This is a variant of
listIngestionJobs(software.amazon.awssdk.services.bedrockagent.model.ListIngestionJobsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.bedrockagent.paginators.ListIngestionJobsIterable responses = client.listIngestionJobsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.bedrockagent.paginators.ListIngestionJobsIterable responses = client .listIngestionJobsPaginator(request); for (software.amazon.awssdk.services.bedrockagent.model.ListIngestionJobsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.bedrockagent.paginators.ListIngestionJobsIterable responses = client.listIngestionJobsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listIngestionJobs(software.amazon.awssdk.services.bedrockagent.model.ListIngestionJobsRequest)operation.- Parameters:
listIngestionJobsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
listIngestionJobsPaginator
default ListIngestionJobsIterable listIngestionJobsPaginator(Consumer<ListIngestionJobsRequest.Builder> listIngestionJobsRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, BedrockAgentException
This is a variant of
listIngestionJobs(software.amazon.awssdk.services.bedrockagent.model.ListIngestionJobsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.bedrockagent.paginators.ListIngestionJobsIterable responses = client.listIngestionJobsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.bedrockagent.paginators.ListIngestionJobsIterable responses = client .listIngestionJobsPaginator(request); for (software.amazon.awssdk.services.bedrockagent.model.ListIngestionJobsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.bedrockagent.paginators.ListIngestionJobsIterable responses = client.listIngestionJobsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listIngestionJobs(software.amazon.awssdk.services.bedrockagent.model.ListIngestionJobsRequest)operation.
This is a convenience which creates an instance of the
ListIngestionJobsRequest.Builderavoiding the need to create one manually viaListIngestionJobsRequest.builder()- Parameters:
listIngestionJobsRequest- AConsumerthat will call methods onListIngestionJobsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
listKnowledgeBases
default ListKnowledgeBasesResponse listKnowledgeBases(ListKnowledgeBasesRequest listKnowledgeBasesRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BedrockAgentException
List Knowledge Bases
- Parameters:
listKnowledgeBasesRequest-- Returns:
- Result of the ListKnowledgeBases operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
listKnowledgeBases
default ListKnowledgeBasesResponse listKnowledgeBases(Consumer<ListKnowledgeBasesRequest.Builder> listKnowledgeBasesRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BedrockAgentException
List Knowledge Bases
This is a convenience which creates an instance of the
ListKnowledgeBasesRequest.Builderavoiding the need to create one manually viaListKnowledgeBasesRequest.builder()- Parameters:
listKnowledgeBasesRequest- AConsumerthat will call methods onListKnowledgeBasesRequest.Builderto create a request.- Returns:
- Result of the ListKnowledgeBases operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
listKnowledgeBasesPaginator
default ListKnowledgeBasesIterable listKnowledgeBasesPaginator(ListKnowledgeBasesRequest listKnowledgeBasesRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BedrockAgentException
This is a variant of
listKnowledgeBases(software.amazon.awssdk.services.bedrockagent.model.ListKnowledgeBasesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.bedrockagent.paginators.ListKnowledgeBasesIterable responses = client.listKnowledgeBasesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.bedrockagent.paginators.ListKnowledgeBasesIterable responses = client .listKnowledgeBasesPaginator(request); for (software.amazon.awssdk.services.bedrockagent.model.ListKnowledgeBasesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.bedrockagent.paginators.ListKnowledgeBasesIterable responses = client.listKnowledgeBasesPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listKnowledgeBases(software.amazon.awssdk.services.bedrockagent.model.ListKnowledgeBasesRequest)operation.- Parameters:
listKnowledgeBasesRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
listKnowledgeBasesPaginator
default ListKnowledgeBasesIterable listKnowledgeBasesPaginator(Consumer<ListKnowledgeBasesRequest.Builder> listKnowledgeBasesRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BedrockAgentException
This is a variant of
listKnowledgeBases(software.amazon.awssdk.services.bedrockagent.model.ListKnowledgeBasesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.bedrockagent.paginators.ListKnowledgeBasesIterable responses = client.listKnowledgeBasesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.bedrockagent.paginators.ListKnowledgeBasesIterable responses = client .listKnowledgeBasesPaginator(request); for (software.amazon.awssdk.services.bedrockagent.model.ListKnowledgeBasesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.bedrockagent.paginators.ListKnowledgeBasesIterable responses = client.listKnowledgeBasesPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listKnowledgeBases(software.amazon.awssdk.services.bedrockagent.model.ListKnowledgeBasesRequest)operation.
This is a convenience which creates an instance of the
ListKnowledgeBasesRequest.Builderavoiding the need to create one manually viaListKnowledgeBasesRequest.builder()- Parameters:
listKnowledgeBasesRequest- AConsumerthat will call methods onListKnowledgeBasesRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, BedrockAgentException
List tags for a resource
- Parameters:
listTagsForResourceRequest-- Returns:
- Result of the ListTagsForResource operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, BedrockAgentException
List tags for a resource
This is a convenience which creates an instance of the
ListTagsForResourceRequest.Builderavoiding the need to create one manually viaListTagsForResourceRequest.builder()- Parameters:
listTagsForResourceRequest- AConsumerthat will call methods onListTagsForResourceRequest.Builderto create a request.- Returns:
- Result of the ListTagsForResource operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
prepareAgent
default PrepareAgentResponse prepareAgent(PrepareAgentRequest prepareAgentRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, ConflictException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, BedrockAgentException
Prepares an existing Amazon Bedrock Agent to receive runtime requests
- Parameters:
prepareAgentRequest- PrepareAgent Request- Returns:
- Result of the PrepareAgent operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existConflictException- This exception is thrown when there is a conflict performing an operationServiceQuotaExceededException- This exception is thrown when a request is made beyond the service quotaSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
prepareAgent
default PrepareAgentResponse prepareAgent(Consumer<PrepareAgentRequest.Builder> prepareAgentRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, ConflictException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, BedrockAgentException
Prepares an existing Amazon Bedrock Agent to receive runtime requests
This is a convenience which creates an instance of the
PrepareAgentRequest.Builderavoiding the need to create one manually viaPrepareAgentRequest.builder()- Parameters:
prepareAgentRequest- AConsumerthat will call methods onPrepareAgentRequest.Builderto create a request. PrepareAgent Request- Returns:
- Result of the PrepareAgent operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existConflictException- This exception is thrown when there is a conflict performing an operationServiceQuotaExceededException- This exception is thrown when a request is made beyond the service quotaSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
startIngestionJob
default StartIngestionJobResponse startIngestionJob(StartIngestionJobRequest startIngestionJobRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, ConflictException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, BedrockAgentException
Start a new ingestion job
- Parameters:
startIngestionJobRequest-- Returns:
- Result of the StartIngestionJob operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existConflictException- This exception is thrown when there is a conflict performing an operationServiceQuotaExceededException- This exception is thrown when a request is made beyond the service quotaSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
startIngestionJob
default StartIngestionJobResponse startIngestionJob(Consumer<StartIngestionJobRequest.Builder> startIngestionJobRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, ConflictException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, BedrockAgentException
Start a new ingestion job
This is a convenience which creates an instance of the
StartIngestionJobRequest.Builderavoiding the need to create one manually viaStartIngestionJobRequest.builder()- Parameters:
startIngestionJobRequest- AConsumerthat will call methods onStartIngestionJobRequest.Builderto create a request.- Returns:
- Result of the StartIngestionJob operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existConflictException- This exception is thrown when there is a conflict performing an operationServiceQuotaExceededException- This exception is thrown when a request is made beyond the service quotaSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
tagResource
default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, BedrockAgentException
Tag a resource
- Parameters:
tagResourceRequest-- Returns:
- Result of the TagResource operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existServiceQuotaExceededException- This exception is thrown when a request is made beyond the service quotaSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
tagResource
default TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, BedrockAgentException
Tag a resource
This is a convenience which creates an instance of the
TagResourceRequest.Builderavoiding the need to create one manually viaTagResourceRequest.builder()- Parameters:
tagResourceRequest- AConsumerthat will call methods onTagResourceRequest.Builderto create a request.- Returns:
- Result of the TagResource operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existServiceQuotaExceededException- This exception is thrown when a request is made beyond the service quotaSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
untagResource
default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, BedrockAgentException
Untag a resource
- Parameters:
untagResourceRequest-- Returns:
- Result of the UntagResource operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
untagResource
default UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, BedrockAgentException
Untag a resource
This is a convenience which creates an instance of the
UntagResourceRequest.Builderavoiding the need to create one manually viaUntagResourceRequest.builder()- Parameters:
untagResourceRequest- AConsumerthat will call methods onUntagResourceRequest.Builderto create a request.- Returns:
- Result of the UntagResource operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
updateAgent
default UpdateAgentResponse updateAgent(UpdateAgentRequest updateAgentRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, ConflictException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, BedrockAgentException
Updates an existing Amazon Bedrock Agent
- Parameters:
updateAgentRequest- Update Agent Request- Returns:
- Result of the UpdateAgent operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existConflictException- This exception is thrown when there is a conflict performing an operationServiceQuotaExceededException- This exception is thrown when a request is made beyond the service quotaSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
updateAgent
default UpdateAgentResponse updateAgent(Consumer<UpdateAgentRequest.Builder> updateAgentRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, ConflictException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, BedrockAgentException
Updates an existing Amazon Bedrock Agent
This is a convenience which creates an instance of the
UpdateAgentRequest.Builderavoiding the need to create one manually viaUpdateAgentRequest.builder()- Parameters:
updateAgentRequest- AConsumerthat will call methods onUpdateAgentRequest.Builderto create a request. Update Agent Request- Returns:
- Result of the UpdateAgent operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existConflictException- This exception is thrown when there is a conflict performing an operationServiceQuotaExceededException- This exception is thrown when a request is made beyond the service quotaSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
updateAgentActionGroup
default UpdateAgentActionGroupResponse updateAgentActionGroup(UpdateAgentActionGroupRequest updateAgentActionGroupRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, ConflictException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, BedrockAgentException
Updates an existing Action Group for Amazon Bedrock Agent
- Parameters:
updateAgentActionGroupRequest- Update Action Group Request- Returns:
- Result of the UpdateAgentActionGroup operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existConflictException- This exception is thrown when there is a conflict performing an operationServiceQuotaExceededException- This exception is thrown when a request is made beyond the service quotaSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
updateAgentActionGroup
default UpdateAgentActionGroupResponse updateAgentActionGroup(Consumer<UpdateAgentActionGroupRequest.Builder> updateAgentActionGroupRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, ConflictException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, BedrockAgentException
Updates an existing Action Group for Amazon Bedrock Agent
This is a convenience which creates an instance of the
UpdateAgentActionGroupRequest.Builderavoiding the need to create one manually viaUpdateAgentActionGroupRequest.builder()- Parameters:
updateAgentActionGroupRequest- AConsumerthat will call methods onUpdateAgentActionGroupRequest.Builderto create a request. Update Action Group Request- Returns:
- Result of the UpdateAgentActionGroup operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existConflictException- This exception is thrown when there is a conflict performing an operationServiceQuotaExceededException- This exception is thrown when a request is made beyond the service quotaSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
updateAgentAlias
default UpdateAgentAliasResponse updateAgentAlias(UpdateAgentAliasRequest updateAgentAliasRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, ConflictException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, BedrockAgentException
Updates an existing Alias for an Amazon Bedrock Agent
- Parameters:
updateAgentAliasRequest- Update Agent Alias Request- Returns:
- Result of the UpdateAgentAlias operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existConflictException- This exception is thrown when there is a conflict performing an operationServiceQuotaExceededException- This exception is thrown when a request is made beyond the service quotaSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
updateAgentAlias
default UpdateAgentAliasResponse updateAgentAlias(Consumer<UpdateAgentAliasRequest.Builder> updateAgentAliasRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, ConflictException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, BedrockAgentException
Updates an existing Alias for an Amazon Bedrock Agent
This is a convenience which creates an instance of the
UpdateAgentAliasRequest.Builderavoiding the need to create one manually viaUpdateAgentAliasRequest.builder()- Parameters:
updateAgentAliasRequest- AConsumerthat will call methods onUpdateAgentAliasRequest.Builderto create a request. Update Agent Alias Request- Returns:
- Result of the UpdateAgentAlias operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existConflictException- This exception is thrown when there is a conflict performing an operationServiceQuotaExceededException- This exception is thrown when a request is made beyond the service quotaSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
updateAgentKnowledgeBase
default UpdateAgentKnowledgeBaseResponse updateAgentKnowledgeBase(UpdateAgentKnowledgeBaseRequest updateAgentKnowledgeBaseRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, ConflictException, AwsServiceException, SdkClientException, BedrockAgentException
Updates an existing Knowledge Base associated to an Amazon Bedrock Agent
- Parameters:
updateAgentKnowledgeBaseRequest- Update Agent Knowledge Base Request- Returns:
- Result of the UpdateAgentKnowledgeBase operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existConflictException- This exception is thrown when there is a conflict performing an operationSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
updateAgentKnowledgeBase
default UpdateAgentKnowledgeBaseResponse updateAgentKnowledgeBase(Consumer<UpdateAgentKnowledgeBaseRequest.Builder> updateAgentKnowledgeBaseRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, ConflictException, AwsServiceException, SdkClientException, BedrockAgentException
Updates an existing Knowledge Base associated to an Amazon Bedrock Agent
This is a convenience which creates an instance of the
UpdateAgentKnowledgeBaseRequest.Builderavoiding the need to create one manually viaUpdateAgentKnowledgeBaseRequest.builder()- Parameters:
updateAgentKnowledgeBaseRequest- AConsumerthat will call methods onUpdateAgentKnowledgeBaseRequest.Builderto create a request. Update Agent Knowledge Base Request- Returns:
- Result of the UpdateAgentKnowledgeBase operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existConflictException- This exception is thrown when there is a conflict performing an operationSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
updateDataSource
default UpdateDataSourceResponse updateDataSource(UpdateDataSourceRequest updateDataSourceRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, ConflictException, AwsServiceException, SdkClientException, BedrockAgentException
Update an existing data source
- Parameters:
updateDataSourceRequest-- Returns:
- Result of the UpdateDataSource operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existConflictException- This exception is thrown when there is a conflict performing an operationSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
updateDataSource
default UpdateDataSourceResponse updateDataSource(Consumer<UpdateDataSourceRequest.Builder> updateDataSourceRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, ConflictException, AwsServiceException, SdkClientException, BedrockAgentException
Update an existing data source
This is a convenience which creates an instance of the
UpdateDataSourceRequest.Builderavoiding the need to create one manually viaUpdateDataSourceRequest.builder()- Parameters:
updateDataSourceRequest- AConsumerthat will call methods onUpdateDataSourceRequest.Builderto create a request.- Returns:
- Result of the UpdateDataSource operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existConflictException- This exception is thrown when there is a conflict performing an operationSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
updateKnowledgeBase
default UpdateKnowledgeBaseResponse updateKnowledgeBase(UpdateKnowledgeBaseRequest updateKnowledgeBaseRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, ConflictException, AwsServiceException, SdkClientException, BedrockAgentException
Update an existing knowledge base
- Parameters:
updateKnowledgeBaseRequest-- Returns:
- Result of the UpdateKnowledgeBase operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existConflictException- This exception is thrown when there is a conflict performing an operationSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
updateKnowledgeBase
default UpdateKnowledgeBaseResponse updateKnowledgeBase(Consumer<UpdateKnowledgeBaseRequest.Builder> updateKnowledgeBaseRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, ConflictException, AwsServiceException, SdkClientException, BedrockAgentException
Update an existing knowledge base
This is a convenience which creates an instance of the
UpdateKnowledgeBaseRequest.Builderavoiding the need to create one manually viaUpdateKnowledgeBaseRequest.builder()- Parameters:
updateKnowledgeBaseRequest- AConsumerthat will call methods onUpdateKnowledgeBaseRequest.Builderto create a request.- Returns:
- Result of the UpdateKnowledgeBase operation returned by the service.
- Throws:
ThrottlingException- This exception is thrown when the number of requests exceeds the limitAccessDeniedException- This exception is thrown when a request is denied per access permissionsValidationException- This exception is thrown when the request's input validation failsInternalServerException- This exception is thrown if there was an unexpected error during processing of requestResourceNotFoundException- This exception is thrown when a resource referenced by the operation does not existConflictException- This exception is thrown when there is a conflict performing an operationSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
create
static BedrockAgentClient create()
Create aBedrockAgentClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.
-
builder
static BedrockAgentClientBuilder builder()
Create a builder that can be used to configure and create aBedrockAgentClient.
-
serviceMetadata
static ServiceMetadata serviceMetadata()
-
serviceClientConfiguration
default BedrockAgentServiceClientConfiguration serviceClientConfiguration()
- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient
-
-