@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AWSBedrockAgentRuntimeClient extends AmazonWebServiceClient implements AWSBedrockAgentRuntime
Amazon Bedrock Agent
LOGGING_AWS_REQUEST_METRIC
ENDPOINT_PREFIX
Modifier and Type | Method and Description |
---|---|
static AWSBedrockAgentRuntimeClientBuilder |
builder() |
ResponseMetadata |
getCachedResponseMetadata(AmazonWebServiceRequest request)
Returns additional metadata for a previously executed successful, request, typically used for debugging issues
where a service isn't acting as expected.
|
RetrieveResult |
retrieve(RetrieveRequest request)
Retrieve from knowledge base.
|
RetrieveAndGenerateResult |
retrieveAndGenerate(RetrieveAndGenerateRequest request)
RetrieveAndGenerate API
|
void |
shutdown()
Shuts down this client object, releasing any resources that might be held
open.
|
addRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffset
public static AWSBedrockAgentRuntimeClientBuilder builder()
public RetrieveResult retrieve(RetrieveRequest request)
Retrieve from knowledge base.
retrieve
in interface AWSBedrockAgentRuntime
retrieveRequest
- ConflictException
- This exception is thrown when there is a conflict performing an operationResourceNotFoundException
- This exception is thrown when a resource referenced by the operation does not existValidationException
- This exception is thrown when the request's input validation failsInternalServerException
- This exception is thrown if there was an unexpected error during processing of requestDependencyFailedException
- This exception is thrown when a request fails due to dependency like Lambda, Bedrock, STS resource due to
a customer fault (i.e. bad configuration)BadGatewayException
- This exception is thrown when a request fails due to dependency like Lambda, Bedrock, STS resourceThrottlingException
- This exception is thrown when the number of requests exceeds the limitAccessDeniedException
- This exception is thrown when a request is denied per access permissionsServiceQuotaExceededException
- This exception is thrown when a request is made beyond the service quotapublic RetrieveAndGenerateResult retrieveAndGenerate(RetrieveAndGenerateRequest request)
RetrieveAndGenerate API
retrieveAndGenerate
in interface AWSBedrockAgentRuntime
retrieveAndGenerateRequest
- ConflictException
- This exception is thrown when there is a conflict performing an operationResourceNotFoundException
- This exception is thrown when a resource referenced by the operation does not existValidationException
- This exception is thrown when the request's input validation failsInternalServerException
- This exception is thrown if there was an unexpected error during processing of requestDependencyFailedException
- This exception is thrown when a request fails due to dependency like Lambda, Bedrock, STS resource due to
a customer fault (i.e. bad configuration)BadGatewayException
- This exception is thrown when a request fails due to dependency like Lambda, Bedrock, STS resourceThrottlingException
- This exception is thrown when the number of requests exceeds the limitAccessDeniedException
- This exception is thrown when a request is denied per access permissionsServiceQuotaExceededException
- This exception is thrown when a request is made beyond the service quotapublic ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing the request.
getCachedResponseMetadata
in interface AWSBedrockAgentRuntime
request
- The originally executed requestpublic void shutdown()
AmazonWebServiceClient
shutdown
in interface AWSBedrockAgentRuntime
shutdown
in class AmazonWebServiceClient