@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, managing, fine-turning, and evaluating Amazon Bedrock models.
ENDPOINT_PREFIX
createEvaluationJob, createGuardrail, createGuardrailVersion, createModelCustomizationJob, createProvisionedModelThroughput, deleteCustomModel, deleteGuardrail, deleteModelInvocationLoggingConfiguration, deleteProvisionedModelThroughput, getCachedResponseMetadata, getCustomModel, getEvaluationJob, getFoundationModel, getGuardrail, getModelCustomizationJob, getModelInvocationLoggingConfiguration, getProvisionedModelThroughput, listCustomModels, listEvaluationJobs, listFoundationModels, listGuardrails, listModelCustomizationJobs, listProvisionedModelThroughputs, listTagsForResource, putModelInvocationLoggingConfiguration, shutdown, stopEvaluationJob, stopModelCustomizationJob, tagResource, untagResource, updateGuardrail, updateProvisionedModelThroughput
Future<CreateEvaluationJobResult> createEvaluationJobAsync(CreateEvaluationJobRequest createEvaluationJobRequest)
API operation for creating and managing Amazon Bedrock automatic model evaluation jobs and model evaluation jobs that use human workers. To learn more about the requirements for creating a model evaluation job see, Model evaluations.
createEvaluationJobRequest
- Future<CreateEvaluationJobResult> createEvaluationJobAsync(CreateEvaluationJobRequest createEvaluationJobRequest, AsyncHandler<CreateEvaluationJobRequest,CreateEvaluationJobResult> asyncHandler)
API operation for creating and managing Amazon Bedrock automatic model evaluation jobs and model evaluation jobs that use human workers. To learn more about the requirements for creating a model evaluation job see, Model evaluations.
createEvaluationJobRequest
- 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<CreateGuardrailResult> createGuardrailAsync(CreateGuardrailRequest createGuardrailRequest)
Creates a guardrail to block topics and to implement safeguards for your generative AI applications.
You can configure the following policies in a guardrail to avoid undesirable and harmful content, filter out denied topics and words, and remove sensitive information for privacy protection.
Content filters - Adjust filter strengths to block input prompts or model responses containing harmful content.
Denied topics - Define a set of topics that are undesirable in the context of your application. These topics will be blocked if detected in user queries or model responses.
Word filters - Configure filters to block undesirable words, phrases, and profanity. Such words can include offensive terms, competitor names etc.
Sensitive information filters - Block or mask sensitive information such as personally identifiable information (PII) or custom regex in user inputs and model responses.
In addition to the above policies, you can also configure the messages to be returned to the user if a user input or model response is in violation of the policies defined in the guardrail.
For more information, see Guardrails for Amazon Bedrock in the Amazon Bedrock User Guide.
createGuardrailRequest
- Future<CreateGuardrailResult> createGuardrailAsync(CreateGuardrailRequest createGuardrailRequest, AsyncHandler<CreateGuardrailRequest,CreateGuardrailResult> asyncHandler)
Creates a guardrail to block topics and to implement safeguards for your generative AI applications.
You can configure the following policies in a guardrail to avoid undesirable and harmful content, filter out denied topics and words, and remove sensitive information for privacy protection.
Content filters - Adjust filter strengths to block input prompts or model responses containing harmful content.
Denied topics - Define a set of topics that are undesirable in the context of your application. These topics will be blocked if detected in user queries or model responses.
Word filters - Configure filters to block undesirable words, phrases, and profanity. Such words can include offensive terms, competitor names etc.
Sensitive information filters - Block or mask sensitive information such as personally identifiable information (PII) or custom regex in user inputs and model responses.
In addition to the above policies, you can also configure the messages to be returned to the user if a user input or model response is in violation of the policies defined in the guardrail.
For more information, see Guardrails for Amazon Bedrock in the Amazon Bedrock User Guide.
createGuardrailRequest
- 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<CreateGuardrailVersionResult> createGuardrailVersionAsync(CreateGuardrailVersionRequest createGuardrailVersionRequest)
Creates a version of the guardrail. Use this API to create a snapshot of the guardrail when you are satisfied with a configuration, or to compare the configuration with another version.
createGuardrailVersionRequest
- Future<CreateGuardrailVersionResult> createGuardrailVersionAsync(CreateGuardrailVersionRequest createGuardrailVersionRequest, AsyncHandler<CreateGuardrailVersionRequest,CreateGuardrailVersionResult> asyncHandler)
Creates a version of the guardrail. Use this API to create a snapshot of the guardrail when you are satisfied with a configuration, or to compare the configuration with another version.
createGuardrailVersionRequest
- 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<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. Amazon Bedrock returns validation loss metrics and output generations after the job completes.
For information on the format of training and validation data, see Prepare the datasets.
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 Amazon 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. Amazon Bedrock returns validation loss metrics and output generations after the job completes.
For information on the format of training and validation data, see Prepare the datasets.
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 Amazon 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 dedicated throughput for a base or custom model with the model units and for the duration that you specify. For pricing details, see Amazon Bedrock Pricing. For more information, see Provisioned Throughput in the Amazon Bedrock User Guide.
createProvisionedModelThroughputRequest
- Future<CreateProvisionedModelThroughputResult> createProvisionedModelThroughputAsync(CreateProvisionedModelThroughputRequest createProvisionedModelThroughputRequest, AsyncHandler<CreateProvisionedModelThroughputRequest,CreateProvisionedModelThroughputResult> asyncHandler)
Creates dedicated throughput for a base or custom model with the model units and for the duration that you specify. For pricing details, see Amazon Bedrock Pricing. For more information, see Provisioned Throughput in the Amazon 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 Amazon 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 Amazon 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<DeleteGuardrailResult> deleteGuardrailAsync(DeleteGuardrailRequest deleteGuardrailRequest)
Deletes a guardrail.
To delete a guardrail, only specify the ARN of the guardrail in the guardrailIdentifier
field. If
you delete a guardrail, all of its versions will be deleted.
To delete a version of a guardrail, specify the ARN of the guardrail in the guardrailIdentifier
field and the version in the guardrailVersion
field.
deleteGuardrailRequest
- Future<DeleteGuardrailResult> deleteGuardrailAsync(DeleteGuardrailRequest deleteGuardrailRequest, AsyncHandler<DeleteGuardrailRequest,DeleteGuardrailResult> asyncHandler)
Deletes a guardrail.
To delete a guardrail, only specify the ARN of the guardrail in the guardrailIdentifier
field. If
you delete a guardrail, all of its versions will be deleted.
To delete a version of a guardrail, specify the ARN of the guardrail in the guardrailIdentifier
field and the version in the guardrailVersion
field.
deleteGuardrailRequest
- 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. You can't delete a Provisioned Throughput before the commitment term is over. For more information, see Provisioned Throughput in the Amazon Bedrock User Guide.
deleteProvisionedModelThroughputRequest
- Future<DeleteProvisionedModelThroughputResult> deleteProvisionedModelThroughputAsync(DeleteProvisionedModelThroughputRequest deleteProvisionedModelThroughputRequest, AsyncHandler<DeleteProvisionedModelThroughputRequest,DeleteProvisionedModelThroughputResult> asyncHandler)
Deletes a Provisioned Throughput. You can't delete a Provisioned Throughput before the commitment term is over. For more information, see Provisioned Throughput in the Amazon 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 Amazon Bedrock custom model that you have created.For more information, see Custom models in the Amazon Bedrock User Guide.
getCustomModelRequest
- Future<GetCustomModelResult> getCustomModelAsync(GetCustomModelRequest getCustomModelRequest, AsyncHandler<GetCustomModelRequest,GetCustomModelResult> asyncHandler)
Get the properties associated with a Amazon Bedrock custom model that you have created.For more information, see Custom models in the Amazon 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<GetEvaluationJobResult> getEvaluationJobAsync(GetEvaluationJobRequest getEvaluationJobRequest)
Retrieves the properties associated with a model evaluation job, including the status of the job. For more information, see Model evaluations.
getEvaluationJobRequest
- Future<GetEvaluationJobResult> getEvaluationJobAsync(GetEvaluationJobRequest getEvaluationJobRequest, AsyncHandler<GetEvaluationJobRequest,GetEvaluationJobResult> asyncHandler)
Retrieves the properties associated with a model evaluation job, including the status of the job. For more information, see Model evaluations.
getEvaluationJobRequest
- 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 Amazon Bedrock foundation model.
getFoundationModelRequest
- Future<GetFoundationModelResult> getFoundationModelAsync(GetFoundationModelRequest getFoundationModelRequest, AsyncHandler<GetFoundationModelRequest,GetFoundationModelResult> asyncHandler)
Get details about a Amazon 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<GetGuardrailResult> getGuardrailAsync(GetGuardrailRequest getGuardrailRequest)
Gets details about a guardrail. If you don't specify a version, the response returns details for the
DRAFT
version.
getGuardrailRequest
- Future<GetGuardrailResult> getGuardrailAsync(GetGuardrailRequest getGuardrailRequest, AsyncHandler<GetGuardrailRequest,GetGuardrailResult> asyncHandler)
Gets details about a guardrail. If you don't specify a version, the response returns details for the
DRAFT
version.
getGuardrailRequest
- 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 Amazon 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 Amazon 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)
Returns details for a Provisioned Throughput. For more information, see Provisioned Throughput in the Amazon Bedrock User Guide.
getProvisionedModelThroughputRequest
- Future<GetProvisionedModelThroughputResult> getProvisionedModelThroughputAsync(GetProvisionedModelThroughputRequest getProvisionedModelThroughputRequest, AsyncHandler<GetProvisionedModelThroughputRequest,GetProvisionedModelThroughputResult> asyncHandler)
Returns details for a Provisioned Throughput. For more information, see Provisioned Throughput in the Amazon 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 Amazon 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 Amazon 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<ListEvaluationJobsResult> listEvaluationJobsAsync(ListEvaluationJobsRequest listEvaluationJobsRequest)
Lists model evaluation jobs.
listEvaluationJobsRequest
- Future<ListEvaluationJobsResult> listEvaluationJobsAsync(ListEvaluationJobsRequest listEvaluationJobsRequest, AsyncHandler<ListEvaluationJobsRequest,ListEvaluationJobsResult> asyncHandler)
Lists model evaluation jobs.
listEvaluationJobsRequest
- 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)
Lists Amazon Bedrock foundation models that you can use. You can filter the results with the request parameters. For more information, see Foundation models in the Amazon Bedrock User Guide.
listFoundationModelsRequest
- Future<ListFoundationModelsResult> listFoundationModelsAsync(ListFoundationModelsRequest listFoundationModelsRequest, AsyncHandler<ListFoundationModelsRequest,ListFoundationModelsResult> asyncHandler)
Lists Amazon Bedrock foundation models that you can use. You can filter the results with the request parameters. For more information, see Foundation models in the Amazon 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<ListGuardrailsResult> listGuardrailsAsync(ListGuardrailsRequest listGuardrailsRequest)
Lists details about all the guardrails in an account. To list the DRAFT
version of all your
guardrails, don't specify the guardrailIdentifier
field. To list all versions of a guardrail,
specify the ARN of the guardrail in the guardrailIdentifier
field.
You can set the maximum number of results to return in a response in the maxResults
field. If there
are more results than the number you set, the response returns a nextToken
that you can send in
another ListGuardrails
request to see the next batch of results.
listGuardrailsRequest
- Future<ListGuardrailsResult> listGuardrailsAsync(ListGuardrailsRequest listGuardrailsRequest, AsyncHandler<ListGuardrailsRequest,ListGuardrailsResult> asyncHandler)
Lists details about all the guardrails in an account. To list the DRAFT
version of all your
guardrails, don't specify the guardrailIdentifier
field. To list all versions of a guardrail,
specify the ARN of the guardrail in the guardrailIdentifier
field.
You can set the maximum number of results to return in a response in the maxResults
field. If there
are more results than the number you set, the response returns a nextToken
that you can send in
another ListGuardrails
request to see the next batch of results.
listGuardrailsRequest
- 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 Amazon 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 Amazon 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)
Lists the Provisioned Throughputs in the account. For more information, see Provisioned Throughput in the Amazon Bedrock User Guide.
listProvisionedModelThroughputsRequest
- Future<ListProvisionedModelThroughputsResult> listProvisionedModelThroughputsAsync(ListProvisionedModelThroughputsRequest listProvisionedModelThroughputsRequest, AsyncHandler<ListProvisionedModelThroughputsRequest,ListProvisionedModelThroughputsResult> asyncHandler)
Lists the Provisioned Throughputs in the account. For more information, see Provisioned Throughput in the Amazon 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 Amazon 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 Amazon 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<StopEvaluationJobResult> stopEvaluationJobAsync(StopEvaluationJobRequest stopEvaluationJobRequest)
Stops an in progress model evaluation job.
stopEvaluationJobRequest
- Future<StopEvaluationJobResult> stopEvaluationJobAsync(StopEvaluationJobRequest stopEvaluationJobRequest, AsyncHandler<StopEvaluationJobRequest,StopEvaluationJobResult> asyncHandler)
Stops an in progress model evaluation job.
stopEvaluationJobRequest
- 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 Amazon 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 Amazon 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 Amazon 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 Amazon 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 Amazon 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 Amazon 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<UpdateGuardrailResult> updateGuardrailAsync(UpdateGuardrailRequest updateGuardrailRequest)
Updates a guardrail with the values you specify.
Specify a name
and optional description
.
Specify messages for when the guardrail successfully blocks a prompt or a model response in the
blockedInputMessaging
and blockedOutputsMessaging
fields.
Specify topics for the guardrail to deny in the topicPolicyConfig
object. Each GuardrailTopicConfig object in the topicsConfig
list pertains to one topic.
Give a name
and description
so that the guardrail can properly identify the topic.
Specify DENY
in the type
field.
(Optional) Provide up to five prompts that you would categorize as belonging to the topic in the
examples
list.
Specify filter strengths for the harmful categories defined in Amazon Bedrock in the
contentPolicyConfig
object. Each GuardrailContentFilterConfig object in the filtersConfig
list pertains to a harmful category.
For more information, see Content filters. For
more information about the fields in a content filter, see GuardrailContentFilterConfig.
Specify the category in the type
field.
Specify the strength of the filter for prompts in the inputStrength
field and for model responses in
the strength
field of the GuardrailContentFilterConfig.
(Optional) For security, include the ARN of a KMS key in the kmsKeyId
field.
updateGuardrailRequest
- Future<UpdateGuardrailResult> updateGuardrailAsync(UpdateGuardrailRequest updateGuardrailRequest, AsyncHandler<UpdateGuardrailRequest,UpdateGuardrailResult> asyncHandler)
Updates a guardrail with the values you specify.
Specify a name
and optional description
.
Specify messages for when the guardrail successfully blocks a prompt or a model response in the
blockedInputMessaging
and blockedOutputsMessaging
fields.
Specify topics for the guardrail to deny in the topicPolicyConfig
object. Each GuardrailTopicConfig object in the topicsConfig
list pertains to one topic.
Give a name
and description
so that the guardrail can properly identify the topic.
Specify DENY
in the type
field.
(Optional) Provide up to five prompts that you would categorize as belonging to the topic in the
examples
list.
Specify filter strengths for the harmful categories defined in Amazon Bedrock in the
contentPolicyConfig
object. Each GuardrailContentFilterConfig object in the filtersConfig
list pertains to a harmful category.
For more information, see Content filters. For
more information about the fields in a content filter, see GuardrailContentFilterConfig.
Specify the category in the type
field.
Specify the strength of the filter for prompts in the inputStrength
field and for model responses in
the strength
field of the GuardrailContentFilterConfig.
(Optional) For security, include the ARN of a KMS key in the kmsKeyId
field.
updateGuardrailRequest
- 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)
Updates the name or associated model for a Provisioned Throughput. For more information, see Provisioned Throughput in the Amazon Bedrock User Guide.
updateProvisionedModelThroughputRequest
- Future<UpdateProvisionedModelThroughputResult> updateProvisionedModelThroughputAsync(UpdateProvisionedModelThroughputRequest updateProvisionedModelThroughputRequest, AsyncHandler<UpdateProvisionedModelThroughputRequest,UpdateProvisionedModelThroughputResult> asyncHandler)
Updates the name or associated model for a Provisioned Throughput. For more information, see Provisioned Throughput in the Amazon 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.