@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AbstractAmazonBedrockAsync extends AbstractAmazonBedrock implements AmazonBedrockAsync
AmazonBedrockAsync
. Convenient method forms pass through to the corresponding
overload that takes a request object and an AsyncHandler
, which throws an
UnsupportedOperationException
.ENDPOINT_PREFIX
createModelCustomizationJob, createProvisionedModelThroughput, deleteCustomModel, deleteModelInvocationLoggingConfiguration, deleteProvisionedModelThroughput, getCachedResponseMetadata, getCustomModel, getFoundationModel, getModelCustomizationJob, getModelInvocationLoggingConfiguration, getProvisionedModelThroughput, listCustomModels, listFoundationModels, listModelCustomizationJobs, listProvisionedModelThroughputs, listTagsForResource, putModelInvocationLoggingConfiguration, shutdown, stopModelCustomizationJob, tagResource, untagResource, updateProvisionedModelThroughput
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createModelCustomizationJob, createProvisionedModelThroughput, deleteCustomModel, deleteModelInvocationLoggingConfiguration, deleteProvisionedModelThroughput, getCachedResponseMetadata, getCustomModel, getFoundationModel, getModelCustomizationJob, getModelInvocationLoggingConfiguration, getProvisionedModelThroughput, listCustomModels, listFoundationModels, listModelCustomizationJobs, listProvisionedModelThroughputs, listTagsForResource, putModelInvocationLoggingConfiguration, shutdown, stopModelCustomizationJob, tagResource, untagResource, updateProvisionedModelThroughput
public Future<CreateModelCustomizationJobResult> createModelCustomizationJobAsync(CreateModelCustomizationJobRequest request)
AmazonBedrockAsync
Creates a fine-tuning job to customize a base model.
You specify the base foundation model and the location of the training data. After the model-customization job completes successfully, your custom model resource will be ready to use. Training data contains input and output text for each record in a JSONL format. Optionally, you can specify validation data in the same format as the training data. Bedrock returns validation loss metrics and output generations after the job completes.
Model-customization jobs are asynchronous and the completion time depends on the base model and the
training/validation data size. To monitor a job, use the GetModelCustomizationJob
operation to
retrieve the job status.
For more information, see Custom models in the Bedrock User Guide.
createModelCustomizationJobAsync
in interface AmazonBedrockAsync
public Future<CreateModelCustomizationJobResult> createModelCustomizationJobAsync(CreateModelCustomizationJobRequest request, AsyncHandler<CreateModelCustomizationJobRequest,CreateModelCustomizationJobResult> asyncHandler)
AmazonBedrockAsync
Creates a fine-tuning job to customize a base model.
You specify the base foundation model and the location of the training data. After the model-customization job completes successfully, your custom model resource will be ready to use. Training data contains input and output text for each record in a JSONL format. Optionally, you can specify validation data in the same format as the training data. Bedrock returns validation loss metrics and output generations after the job completes.
Model-customization jobs are asynchronous and the completion time depends on the base model and the
training/validation data size. To monitor a job, use the GetModelCustomizationJob
operation to
retrieve the job status.
For more information, see Custom models in the Bedrock User Guide.
createModelCustomizationJobAsync
in interface AmazonBedrockAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<CreateProvisionedModelThroughputResult> createProvisionedModelThroughputAsync(CreateProvisionedModelThroughputRequest request)
AmazonBedrockAsync
Creates a provisioned throughput with dedicated capacity for a foundation model or a fine-tuned model.
For more information, see Provisioned throughput in the Bedrock User Guide.
createProvisionedModelThroughputAsync
in interface AmazonBedrockAsync
public Future<CreateProvisionedModelThroughputResult> createProvisionedModelThroughputAsync(CreateProvisionedModelThroughputRequest request, AsyncHandler<CreateProvisionedModelThroughputRequest,CreateProvisionedModelThroughputResult> asyncHandler)
AmazonBedrockAsync
Creates a provisioned throughput with dedicated capacity for a foundation model or a fine-tuned model.
For more information, see Provisioned throughput in the Bedrock User Guide.
createProvisionedModelThroughputAsync
in interface AmazonBedrockAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DeleteCustomModelResult> deleteCustomModelAsync(DeleteCustomModelRequest request)
AmazonBedrockAsync
Deletes a custom model that you created earlier. For more information, see Custom models in the Bedrock User Guide.
deleteCustomModelAsync
in interface AmazonBedrockAsync
public Future<DeleteCustomModelResult> deleteCustomModelAsync(DeleteCustomModelRequest request, AsyncHandler<DeleteCustomModelRequest,DeleteCustomModelResult> asyncHandler)
AmazonBedrockAsync
Deletes a custom model that you created earlier. For more information, see Custom models in the Bedrock User Guide.
deleteCustomModelAsync
in interface AmazonBedrockAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DeleteModelInvocationLoggingConfigurationResult> deleteModelInvocationLoggingConfigurationAsync(DeleteModelInvocationLoggingConfigurationRequest request)
AmazonBedrockAsync
Delete the invocation logging.
deleteModelInvocationLoggingConfigurationAsync
in interface AmazonBedrockAsync
public Future<DeleteModelInvocationLoggingConfigurationResult> deleteModelInvocationLoggingConfigurationAsync(DeleteModelInvocationLoggingConfigurationRequest request, AsyncHandler<DeleteModelInvocationLoggingConfigurationRequest,DeleteModelInvocationLoggingConfigurationResult> asyncHandler)
AmazonBedrockAsync
Delete the invocation logging.
deleteModelInvocationLoggingConfigurationAsync
in interface AmazonBedrockAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DeleteProvisionedModelThroughputResult> deleteProvisionedModelThroughputAsync(DeleteProvisionedModelThroughputRequest request)
AmazonBedrockAsync
Deletes a provisioned throughput. For more information, see Provisioned throughput in the Bedrock User Guide.
deleteProvisionedModelThroughputAsync
in interface AmazonBedrockAsync
public Future<DeleteProvisionedModelThroughputResult> deleteProvisionedModelThroughputAsync(DeleteProvisionedModelThroughputRequest request, AsyncHandler<DeleteProvisionedModelThroughputRequest,DeleteProvisionedModelThroughputResult> asyncHandler)
AmazonBedrockAsync
Deletes a provisioned throughput. For more information, see Provisioned throughput in the Bedrock User Guide.
deleteProvisionedModelThroughputAsync
in interface AmazonBedrockAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetCustomModelResult> getCustomModelAsync(GetCustomModelRequest request)
AmazonBedrockAsync
Get the properties associated with a Bedrock custom model that you have created.For more information, see Custom models in the Bedrock User Guide.
getCustomModelAsync
in interface AmazonBedrockAsync
public Future<GetCustomModelResult> getCustomModelAsync(GetCustomModelRequest request, AsyncHandler<GetCustomModelRequest,GetCustomModelResult> asyncHandler)
AmazonBedrockAsync
Get the properties associated with a Bedrock custom model that you have created.For more information, see Custom models in the Bedrock User Guide.
getCustomModelAsync
in interface AmazonBedrockAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetFoundationModelResult> getFoundationModelAsync(GetFoundationModelRequest request)
AmazonBedrockAsync
Get details about a Bedrock foundation model.
getFoundationModelAsync
in interface AmazonBedrockAsync
public Future<GetFoundationModelResult> getFoundationModelAsync(GetFoundationModelRequest request, AsyncHandler<GetFoundationModelRequest,GetFoundationModelResult> asyncHandler)
AmazonBedrockAsync
Get details about a Bedrock foundation model.
getFoundationModelAsync
in interface AmazonBedrockAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetModelCustomizationJobResult> getModelCustomizationJobAsync(GetModelCustomizationJobRequest request)
AmazonBedrockAsync
Retrieves the properties associated with a model-customization job, including the status of the job. For more information, see Custom models in the Bedrock User Guide.
getModelCustomizationJobAsync
in interface AmazonBedrockAsync
public Future<GetModelCustomizationJobResult> getModelCustomizationJobAsync(GetModelCustomizationJobRequest request, AsyncHandler<GetModelCustomizationJobRequest,GetModelCustomizationJobResult> asyncHandler)
AmazonBedrockAsync
Retrieves the properties associated with a model-customization job, including the status of the job. For more information, see Custom models in the Bedrock User Guide.
getModelCustomizationJobAsync
in interface AmazonBedrockAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetModelInvocationLoggingConfigurationResult> getModelInvocationLoggingConfigurationAsync(GetModelInvocationLoggingConfigurationRequest request)
AmazonBedrockAsync
Get the current configuration values for model invocation logging.
getModelInvocationLoggingConfigurationAsync
in interface AmazonBedrockAsync
public Future<GetModelInvocationLoggingConfigurationResult> getModelInvocationLoggingConfigurationAsync(GetModelInvocationLoggingConfigurationRequest request, AsyncHandler<GetModelInvocationLoggingConfigurationRequest,GetModelInvocationLoggingConfigurationResult> asyncHandler)
AmazonBedrockAsync
Get the current configuration values for model invocation logging.
getModelInvocationLoggingConfigurationAsync
in interface AmazonBedrockAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetProvisionedModelThroughputResult> getProvisionedModelThroughputAsync(GetProvisionedModelThroughputRequest request)
AmazonBedrockAsync
Get details for a provisioned throughput. For more information, see Provisioned throughput in the Bedrock User Guide.
getProvisionedModelThroughputAsync
in interface AmazonBedrockAsync
public Future<GetProvisionedModelThroughputResult> getProvisionedModelThroughputAsync(GetProvisionedModelThroughputRequest request, AsyncHandler<GetProvisionedModelThroughputRequest,GetProvisionedModelThroughputResult> asyncHandler)
AmazonBedrockAsync
Get details for a provisioned throughput. For more information, see Provisioned throughput in the Bedrock User Guide.
getProvisionedModelThroughputAsync
in interface AmazonBedrockAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListCustomModelsResult> listCustomModelsAsync(ListCustomModelsRequest request)
AmazonBedrockAsync
Returns a list of the custom models that you have created with the CreateModelCustomizationJob
operation.
For more information, see Custom models in the Bedrock User Guide.
listCustomModelsAsync
in interface AmazonBedrockAsync
public Future<ListCustomModelsResult> listCustomModelsAsync(ListCustomModelsRequest request, AsyncHandler<ListCustomModelsRequest,ListCustomModelsResult> asyncHandler)
AmazonBedrockAsync
Returns a list of the custom models that you have created with the CreateModelCustomizationJob
operation.
For more information, see Custom models in the Bedrock User Guide.
listCustomModelsAsync
in interface AmazonBedrockAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListFoundationModelsResult> listFoundationModelsAsync(ListFoundationModelsRequest request)
AmazonBedrockAsync
List of Bedrock foundation models that you can use. For more information, see Foundation models in the Bedrock User Guide.
listFoundationModelsAsync
in interface AmazonBedrockAsync
public Future<ListFoundationModelsResult> listFoundationModelsAsync(ListFoundationModelsRequest request, AsyncHandler<ListFoundationModelsRequest,ListFoundationModelsResult> asyncHandler)
AmazonBedrockAsync
List of Bedrock foundation models that you can use. For more information, see Foundation models in the Bedrock User Guide.
listFoundationModelsAsync
in interface AmazonBedrockAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListModelCustomizationJobsResult> listModelCustomizationJobsAsync(ListModelCustomizationJobsRequest request)
AmazonBedrockAsync
Returns a list of model customization jobs that you have submitted. You can filter the jobs to return based on one or more criteria.
For more information, see Custom models in the Bedrock User Guide.
listModelCustomizationJobsAsync
in interface AmazonBedrockAsync
public Future<ListModelCustomizationJobsResult> listModelCustomizationJobsAsync(ListModelCustomizationJobsRequest request, AsyncHandler<ListModelCustomizationJobsRequest,ListModelCustomizationJobsResult> asyncHandler)
AmazonBedrockAsync
Returns a list of model customization jobs that you have submitted. You can filter the jobs to return based on one or more criteria.
For more information, see Custom models in the Bedrock User Guide.
listModelCustomizationJobsAsync
in interface AmazonBedrockAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListProvisionedModelThroughputsResult> listProvisionedModelThroughputsAsync(ListProvisionedModelThroughputsRequest request)
AmazonBedrockAsync
List the provisioned capacities. For more information, see Provisioned throughput in the Bedrock User Guide.
listProvisionedModelThroughputsAsync
in interface AmazonBedrockAsync
public Future<ListProvisionedModelThroughputsResult> listProvisionedModelThroughputsAsync(ListProvisionedModelThroughputsRequest request, AsyncHandler<ListProvisionedModelThroughputsRequest,ListProvisionedModelThroughputsResult> asyncHandler)
AmazonBedrockAsync
List the provisioned capacities. For more information, see Provisioned throughput in the Bedrock User Guide.
listProvisionedModelThroughputsAsync
in interface AmazonBedrockAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest request)
AmazonBedrockAsync
List the tags associated with the specified resource.
For more information, see Tagging resources in the Bedrock User Guide.
listTagsForResourceAsync
in interface AmazonBedrockAsync
public Future<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest request, AsyncHandler<ListTagsForResourceRequest,ListTagsForResourceResult> asyncHandler)
AmazonBedrockAsync
List the tags associated with the specified resource.
For more information, see Tagging resources in the Bedrock User Guide.
listTagsForResourceAsync
in interface AmazonBedrockAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<PutModelInvocationLoggingConfigurationResult> putModelInvocationLoggingConfigurationAsync(PutModelInvocationLoggingConfigurationRequest request)
AmazonBedrockAsync
Set the configuration values for model invocation logging.
putModelInvocationLoggingConfigurationAsync
in interface AmazonBedrockAsync
public Future<PutModelInvocationLoggingConfigurationResult> putModelInvocationLoggingConfigurationAsync(PutModelInvocationLoggingConfigurationRequest request, AsyncHandler<PutModelInvocationLoggingConfigurationRequest,PutModelInvocationLoggingConfigurationResult> asyncHandler)
AmazonBedrockAsync
Set the configuration values for model invocation logging.
putModelInvocationLoggingConfigurationAsync
in interface AmazonBedrockAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<StopModelCustomizationJobResult> stopModelCustomizationJobAsync(StopModelCustomizationJobRequest request)
AmazonBedrockAsync
Stops an active model customization job. For more information, see Custom models in the Bedrock User Guide.
stopModelCustomizationJobAsync
in interface AmazonBedrockAsync
public Future<StopModelCustomizationJobResult> stopModelCustomizationJobAsync(StopModelCustomizationJobRequest request, AsyncHandler<StopModelCustomizationJobRequest,StopModelCustomizationJobResult> asyncHandler)
AmazonBedrockAsync
Stops an active model customization job. For more information, see Custom models in the Bedrock User Guide.
stopModelCustomizationJobAsync
in interface AmazonBedrockAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<TagResourceResult> tagResourceAsync(TagResourceRequest request)
AmazonBedrockAsync
Associate tags with a resource. For more information, see Tagging resources in the Bedrock User Guide.
tagResourceAsync
in interface AmazonBedrockAsync
public Future<TagResourceResult> tagResourceAsync(TagResourceRequest request, AsyncHandler<TagResourceRequest,TagResourceResult> asyncHandler)
AmazonBedrockAsync
Associate tags with a resource. For more information, see Tagging resources in the Bedrock User Guide.
tagResourceAsync
in interface AmazonBedrockAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<UntagResourceResult> untagResourceAsync(UntagResourceRequest request)
AmazonBedrockAsync
Remove one or more tags from a resource. For more information, see Tagging resources in the Bedrock User Guide.
untagResourceAsync
in interface AmazonBedrockAsync
public Future<UntagResourceResult> untagResourceAsync(UntagResourceRequest request, AsyncHandler<UntagResourceRequest,UntagResourceResult> asyncHandler)
AmazonBedrockAsync
Remove one or more tags from a resource. For more information, see Tagging resources in the Bedrock User Guide.
untagResourceAsync
in interface AmazonBedrockAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<UpdateProvisionedModelThroughputResult> updateProvisionedModelThroughputAsync(UpdateProvisionedModelThroughputRequest request)
AmazonBedrockAsync
Update a provisioned throughput. For more information, see Provisioned throughput in the Bedrock User Guide.
updateProvisionedModelThroughputAsync
in interface AmazonBedrockAsync
public Future<UpdateProvisionedModelThroughputResult> updateProvisionedModelThroughputAsync(UpdateProvisionedModelThroughputRequest request, AsyncHandler<UpdateProvisionedModelThroughputRequest,UpdateProvisionedModelThroughputResult> asyncHandler)
AmazonBedrockAsync
Update a provisioned throughput. For more information, see Provisioned throughput in the Bedrock User Guide.
updateProvisionedModelThroughputAsync
in interface AmazonBedrockAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.