@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public interface AmazonBedrockAsync extends AmazonBedrock
AsyncHandler can be used to receive
notification when an asynchronous operation completes.
Note: Do not directly implement this interface, new methods are added to it regularly. Extend from
AbstractAmazonBedrockAsync instead.
Describes the API operations for creating and managing Bedrock models.
ENDPOINT_PREFIXcreateModelCustomizationJob, createProvisionedModelThroughput, deleteCustomModel, deleteModelInvocationLoggingConfiguration, deleteProvisionedModelThroughput, getCachedResponseMetadata, getCustomModel, getFoundationModel, getModelCustomizationJob, getModelInvocationLoggingConfiguration, getProvisionedModelThroughput, listCustomModels, listFoundationModels, listModelCustomizationJobs, listProvisionedModelThroughputs, listTagsForResource, putModelInvocationLoggingConfiguration, shutdown, stopModelCustomizationJob, tagResource, untagResource, updateProvisionedModelThroughputFuture<CreateModelCustomizationJobResult> createModelCustomizationJobAsync(CreateModelCustomizationJobRequest createModelCustomizationJobRequest)
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.
createModelCustomizationJobRequest - Future<CreateModelCustomizationJobResult> createModelCustomizationJobAsync(CreateModelCustomizationJobRequest createModelCustomizationJobRequest, AsyncHandler<CreateModelCustomizationJobRequest,CreateModelCustomizationJobResult> asyncHandler)
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.
createModelCustomizationJobRequest - 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.Future<CreateProvisionedModelThroughputResult> createProvisionedModelThroughputAsync(CreateProvisionedModelThroughputRequest createProvisionedModelThroughputRequest)
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.
createProvisionedModelThroughputRequest - Future<CreateProvisionedModelThroughputResult> createProvisionedModelThroughputAsync(CreateProvisionedModelThroughputRequest createProvisionedModelThroughputRequest, AsyncHandler<CreateProvisionedModelThroughputRequest,CreateProvisionedModelThroughputResult> asyncHandler)
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.
createProvisionedModelThroughputRequest - 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.Future<DeleteCustomModelResult> deleteCustomModelAsync(DeleteCustomModelRequest deleteCustomModelRequest)
Deletes a custom model that you created earlier. For more information, see Custom models in the Bedrock User Guide.
deleteCustomModelRequest - Future<DeleteCustomModelResult> deleteCustomModelAsync(DeleteCustomModelRequest deleteCustomModelRequest, AsyncHandler<DeleteCustomModelRequest,DeleteCustomModelResult> asyncHandler)
Deletes a custom model that you created earlier. For more information, see Custom models in the Bedrock User Guide.
deleteCustomModelRequest - 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.Future<DeleteModelInvocationLoggingConfigurationResult> deleteModelInvocationLoggingConfigurationAsync(DeleteModelInvocationLoggingConfigurationRequest deleteModelInvocationLoggingConfigurationRequest)
Delete the invocation logging.
deleteModelInvocationLoggingConfigurationRequest - Future<DeleteModelInvocationLoggingConfigurationResult> deleteModelInvocationLoggingConfigurationAsync(DeleteModelInvocationLoggingConfigurationRequest deleteModelInvocationLoggingConfigurationRequest, AsyncHandler<DeleteModelInvocationLoggingConfigurationRequest,DeleteModelInvocationLoggingConfigurationResult> asyncHandler)
Delete the invocation logging.
deleteModelInvocationLoggingConfigurationRequest - 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.Future<DeleteProvisionedModelThroughputResult> deleteProvisionedModelThroughputAsync(DeleteProvisionedModelThroughputRequest deleteProvisionedModelThroughputRequest)
Deletes a provisioned throughput. For more information, see Provisioned throughput in the Bedrock User Guide.
deleteProvisionedModelThroughputRequest - Future<DeleteProvisionedModelThroughputResult> deleteProvisionedModelThroughputAsync(DeleteProvisionedModelThroughputRequest deleteProvisionedModelThroughputRequest, AsyncHandler<DeleteProvisionedModelThroughputRequest,DeleteProvisionedModelThroughputResult> asyncHandler)
Deletes a provisioned throughput. For more information, see Provisioned throughput in the Bedrock User Guide.
deleteProvisionedModelThroughputRequest - 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.Future<GetCustomModelResult> getCustomModelAsync(GetCustomModelRequest getCustomModelRequest)
Get the properties associated with a Bedrock custom model that you have created.For more information, see Custom models in the Bedrock User Guide.
getCustomModelRequest - Future<GetCustomModelResult> getCustomModelAsync(GetCustomModelRequest getCustomModelRequest, AsyncHandler<GetCustomModelRequest,GetCustomModelResult> asyncHandler)
Get the properties associated with a Bedrock custom model that you have created.For more information, see Custom models in the Bedrock User Guide.
getCustomModelRequest - 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.Future<GetFoundationModelResult> getFoundationModelAsync(GetFoundationModelRequest getFoundationModelRequest)
Get details about a Bedrock foundation model.
getFoundationModelRequest - Future<GetFoundationModelResult> getFoundationModelAsync(GetFoundationModelRequest getFoundationModelRequest, AsyncHandler<GetFoundationModelRequest,GetFoundationModelResult> asyncHandler)
Get details about a Bedrock foundation model.
getFoundationModelRequest - 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.Future<GetModelCustomizationJobResult> getModelCustomizationJobAsync(GetModelCustomizationJobRequest getModelCustomizationJobRequest)
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.
getModelCustomizationJobRequest - Future<GetModelCustomizationJobResult> getModelCustomizationJobAsync(GetModelCustomizationJobRequest getModelCustomizationJobRequest, AsyncHandler<GetModelCustomizationJobRequest,GetModelCustomizationJobResult> asyncHandler)
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.
getModelCustomizationJobRequest - 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.Future<GetModelInvocationLoggingConfigurationResult> getModelInvocationLoggingConfigurationAsync(GetModelInvocationLoggingConfigurationRequest getModelInvocationLoggingConfigurationRequest)
Get the current configuration values for model invocation logging.
getModelInvocationLoggingConfigurationRequest - Future<GetModelInvocationLoggingConfigurationResult> getModelInvocationLoggingConfigurationAsync(GetModelInvocationLoggingConfigurationRequest getModelInvocationLoggingConfigurationRequest, AsyncHandler<GetModelInvocationLoggingConfigurationRequest,GetModelInvocationLoggingConfigurationResult> asyncHandler)
Get the current configuration values for model invocation logging.
getModelInvocationLoggingConfigurationRequest - 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.Future<GetProvisionedModelThroughputResult> getProvisionedModelThroughputAsync(GetProvisionedModelThroughputRequest getProvisionedModelThroughputRequest)
Get details for a provisioned throughput. For more information, see Provisioned throughput in the Bedrock User Guide.
getProvisionedModelThroughputRequest - Future<GetProvisionedModelThroughputResult> getProvisionedModelThroughputAsync(GetProvisionedModelThroughputRequest getProvisionedModelThroughputRequest, AsyncHandler<GetProvisionedModelThroughputRequest,GetProvisionedModelThroughputResult> asyncHandler)
Get details for a provisioned throughput. For more information, see Provisioned throughput in the Bedrock User Guide.
getProvisionedModelThroughputRequest - 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.Future<ListCustomModelsResult> listCustomModelsAsync(ListCustomModelsRequest listCustomModelsRequest)
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.
listCustomModelsRequest - Future<ListCustomModelsResult> listCustomModelsAsync(ListCustomModelsRequest listCustomModelsRequest, AsyncHandler<ListCustomModelsRequest,ListCustomModelsResult> asyncHandler)
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.
listCustomModelsRequest - 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.Future<ListFoundationModelsResult> listFoundationModelsAsync(ListFoundationModelsRequest listFoundationModelsRequest)
List of Bedrock foundation models that you can use. For more information, see Foundation models in the Bedrock User Guide.
listFoundationModelsRequest - Future<ListFoundationModelsResult> listFoundationModelsAsync(ListFoundationModelsRequest listFoundationModelsRequest, AsyncHandler<ListFoundationModelsRequest,ListFoundationModelsResult> asyncHandler)
List of Bedrock foundation models that you can use. For more information, see Foundation models in the Bedrock User Guide.
listFoundationModelsRequest - 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.Future<ListModelCustomizationJobsResult> listModelCustomizationJobsAsync(ListModelCustomizationJobsRequest listModelCustomizationJobsRequest)
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.
listModelCustomizationJobsRequest - Future<ListModelCustomizationJobsResult> listModelCustomizationJobsAsync(ListModelCustomizationJobsRequest listModelCustomizationJobsRequest, AsyncHandler<ListModelCustomizationJobsRequest,ListModelCustomizationJobsResult> asyncHandler)
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.
listModelCustomizationJobsRequest - 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.Future<ListProvisionedModelThroughputsResult> listProvisionedModelThroughputsAsync(ListProvisionedModelThroughputsRequest listProvisionedModelThroughputsRequest)
List the provisioned capacities. For more information, see Provisioned throughput in the Bedrock User Guide.
listProvisionedModelThroughputsRequest - Future<ListProvisionedModelThroughputsResult> listProvisionedModelThroughputsAsync(ListProvisionedModelThroughputsRequest listProvisionedModelThroughputsRequest, AsyncHandler<ListProvisionedModelThroughputsRequest,ListProvisionedModelThroughputsResult> asyncHandler)
List the provisioned capacities. For more information, see Provisioned throughput in the Bedrock User Guide.
listProvisionedModelThroughputsRequest - 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.Future<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest listTagsForResourceRequest)
List the tags associated with the specified resource.
For more information, see Tagging resources in the Bedrock User Guide.
listTagsForResourceRequest - Future<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest listTagsForResourceRequest, AsyncHandler<ListTagsForResourceRequest,ListTagsForResourceResult> asyncHandler)
List the tags associated with the specified resource.
For more information, see Tagging resources in the Bedrock User Guide.
listTagsForResourceRequest - 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.Future<PutModelInvocationLoggingConfigurationResult> putModelInvocationLoggingConfigurationAsync(PutModelInvocationLoggingConfigurationRequest putModelInvocationLoggingConfigurationRequest)
Set the configuration values for model invocation logging.
putModelInvocationLoggingConfigurationRequest - Future<PutModelInvocationLoggingConfigurationResult> putModelInvocationLoggingConfigurationAsync(PutModelInvocationLoggingConfigurationRequest putModelInvocationLoggingConfigurationRequest, AsyncHandler<PutModelInvocationLoggingConfigurationRequest,PutModelInvocationLoggingConfigurationResult> asyncHandler)
Set the configuration values for model invocation logging.
putModelInvocationLoggingConfigurationRequest - 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.Future<StopModelCustomizationJobResult> stopModelCustomizationJobAsync(StopModelCustomizationJobRequest stopModelCustomizationJobRequest)
Stops an active model customization job. For more information, see Custom models in the Bedrock User Guide.
stopModelCustomizationJobRequest - Future<StopModelCustomizationJobResult> stopModelCustomizationJobAsync(StopModelCustomizationJobRequest stopModelCustomizationJobRequest, AsyncHandler<StopModelCustomizationJobRequest,StopModelCustomizationJobResult> asyncHandler)
Stops an active model customization job. For more information, see Custom models in the Bedrock User Guide.
stopModelCustomizationJobRequest - 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.Future<TagResourceResult> tagResourceAsync(TagResourceRequest tagResourceRequest)
Associate tags with a resource. For more information, see Tagging resources in the Bedrock User Guide.
tagResourceRequest - Future<TagResourceResult> tagResourceAsync(TagResourceRequest tagResourceRequest, AsyncHandler<TagResourceRequest,TagResourceResult> asyncHandler)
Associate tags with a resource. For more information, see Tagging resources in the Bedrock User Guide.
tagResourceRequest - 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.Future<UntagResourceResult> untagResourceAsync(UntagResourceRequest untagResourceRequest)
Remove one or more tags from a resource. For more information, see Tagging resources in the Bedrock User Guide.
untagResourceRequest - Future<UntagResourceResult> untagResourceAsync(UntagResourceRequest untagResourceRequest, AsyncHandler<UntagResourceRequest,UntagResourceResult> asyncHandler)
Remove one or more tags from a resource. For more information, see Tagging resources in the Bedrock User Guide.
untagResourceRequest - 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.Future<UpdateProvisionedModelThroughputResult> updateProvisionedModelThroughputAsync(UpdateProvisionedModelThroughputRequest updateProvisionedModelThroughputRequest)
Update a provisioned throughput. For more information, see Provisioned throughput in the Bedrock User Guide.
updateProvisionedModelThroughputRequest - Future<UpdateProvisionedModelThroughputResult> updateProvisionedModelThroughputAsync(UpdateProvisionedModelThroughputRequest updateProvisionedModelThroughputRequest, AsyncHandler<UpdateProvisionedModelThroughputRequest,UpdateProvisionedModelThroughputResult> asyncHandler)
Update a provisioned throughput. For more information, see Provisioned throughput in the Bedrock User Guide.
updateProvisionedModelThroughputRequest - 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.Copyright © 2023. All rights reserved.