@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AWSBedrockAgentRuntimeClient extends AmazonWebServiceClient implements AWSBedrockAgentRuntime
Amazon Bedrock Agent
| Modifier and Type | Field and Description |
|---|---|
protected static ClientConfigurationFactory |
configFactory
Client configuration factory providing ClientConfigurations tailored to this client
|
client, clientConfiguration, endpoint, isEndpointOverridden, LOGGING_AWS_REQUEST_METRIC, requestHandler2s, timeOffsetENDPOINT_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, beforeClientExecution, beforeMarshalling, calculateCRC32FromCompressedData, checkMutability, configureRegion, createExecutionContext, createExecutionContext, createExecutionContext, createSignerProvider, endClientExecution, endClientExecution, getClientConfiguration, getClientId, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceAbbreviation, getServiceName, getServiceNameIntern, getSigner, getSignerByURI, getSignerOverride, getSignerProvider, getSignerRegionOverride, getSigningRegion, getTimeOffset, isCsmEnabled, isEndpointOverridden, isProfilingEnabled, isRequestMetricsEnabled, makeImmutable, removeRequestHandler, removeRequestHandler, requestMetricCollector, setEndpoint, setEndpoint, setEndpointPrefix, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, shouldGenerateClientSideMonitoringEvents, useStrictHostNameVerification, withEndpoint, withRegion, withRegion, withTimeOffsetprotected static final ClientConfigurationFactory configFactory
public static AWSBedrockAgentRuntimeClientBuilder builder()
public RetrieveResult retrieve(RetrieveRequest request)
Retrieve from knowledge base.
retrieve in interface AWSBedrockAgentRuntimeretrieveRequest - 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 AWSBedrockAgentRuntimeretrieveAndGenerateRequest - 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 AWSBedrockAgentRuntimerequest - The originally executed requestpublic void shutdown()
AWSBedrockAgentRuntimeshutdown in interface AWSBedrockAgentRuntimeshutdown in class AmazonWebServiceClientCopyright © 2024. All rights reserved.