@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public interface AmazonBedrock
Note: Do not directly implement this interface, new methods are added to it regularly. Extend from
AbstractAmazonBedrock instead.
Describes the API operations for creating and managing Amazon Bedrock models.
| Modifier and Type | Field and Description |
|---|---|
static String |
ENDPOINT_PREFIX
The region metadata service name for computing region endpoints.
|
| Modifier and Type | Method and Description |
|---|---|
CreateModelCustomizationJobResult |
createModelCustomizationJob(CreateModelCustomizationJobRequest createModelCustomizationJobRequest)
Creates a fine-tuning job to customize a base model.
|
CreateProvisionedModelThroughputResult |
createProvisionedModelThroughput(CreateProvisionedModelThroughputRequest createProvisionedModelThroughputRequest)
Creates a provisioned throughput with dedicated capacity for a foundation model or a fine-tuned model.
|
DeleteCustomModelResult |
deleteCustomModel(DeleteCustomModelRequest deleteCustomModelRequest)
Deletes a custom model that you created earlier.
|
DeleteModelInvocationLoggingConfigurationResult |
deleteModelInvocationLoggingConfiguration(DeleteModelInvocationLoggingConfigurationRequest deleteModelInvocationLoggingConfigurationRequest)
Delete the invocation logging.
|
DeleteProvisionedModelThroughputResult |
deleteProvisionedModelThroughput(DeleteProvisionedModelThroughputRequest deleteProvisionedModelThroughputRequest)
Deletes a provisioned throughput.
|
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.
|
GetCustomModelResult |
getCustomModel(GetCustomModelRequest getCustomModelRequest)
Get the properties associated with a Amazon Bedrock custom model that you have created.For more information, see
Custom models in the
Bedrock User Guide.
|
GetFoundationModelResult |
getFoundationModel(GetFoundationModelRequest getFoundationModelRequest)
Get details about a Amazon Bedrock foundation model.
|
GetModelCustomizationJobResult |
getModelCustomizationJob(GetModelCustomizationJobRequest getModelCustomizationJobRequest)
Retrieves the properties associated with a model-customization job, including the status of the job.
|
GetModelInvocationLoggingConfigurationResult |
getModelInvocationLoggingConfiguration(GetModelInvocationLoggingConfigurationRequest getModelInvocationLoggingConfigurationRequest)
Get the current configuration values for model invocation logging.
|
GetProvisionedModelThroughputResult |
getProvisionedModelThroughput(GetProvisionedModelThroughputRequest getProvisionedModelThroughputRequest)
Get details for a provisioned throughput.
|
ListCustomModelsResult |
listCustomModels(ListCustomModelsRequest listCustomModelsRequest)
Returns a list of the custom models that you have created with the
CreateModelCustomizationJob
operation. |
ListFoundationModelsResult |
listFoundationModels(ListFoundationModelsRequest listFoundationModelsRequest)
List of Amazon Bedrock foundation models that you can use.
|
ListModelCustomizationJobsResult |
listModelCustomizationJobs(ListModelCustomizationJobsRequest listModelCustomizationJobsRequest)
Returns a list of model customization jobs that you have submitted.
|
ListProvisionedModelThroughputsResult |
listProvisionedModelThroughputs(ListProvisionedModelThroughputsRequest listProvisionedModelThroughputsRequest)
List the provisioned capacities.
|
ListTagsForResourceResult |
listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)
List the tags associated with the specified resource.
|
PutModelInvocationLoggingConfigurationResult |
putModelInvocationLoggingConfiguration(PutModelInvocationLoggingConfigurationRequest putModelInvocationLoggingConfigurationRequest)
Set the configuration values for model invocation logging.
|
void |
shutdown()
Shuts down this client object, releasing any resources that might be held open.
|
StopModelCustomizationJobResult |
stopModelCustomizationJob(StopModelCustomizationJobRequest stopModelCustomizationJobRequest)
Stops an active model customization job.
|
TagResourceResult |
tagResource(TagResourceRequest tagResourceRequest)
Associate tags with a resource.
|
UntagResourceResult |
untagResource(UntagResourceRequest untagResourceRequest)
Remove one or more tags from a resource.
|
UpdateProvisionedModelThroughputResult |
updateProvisionedModelThroughput(UpdateProvisionedModelThroughputRequest updateProvisionedModelThroughputRequest)
Update a provisioned throughput.
|
static final String ENDPOINT_PREFIX
CreateModelCustomizationJobResult createModelCustomizationJob(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. Amazon 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 - ResourceNotFoundException - The specified resource ARN was not found. Check the ARN and try your request again.AccessDeniedException - The request is denied because of missing access permissions.ValidationException - Input validation failed. Check your request parameters and retry the request.ConflictException - Error occurred because of a conflict while performing an operation.InternalServerException - An internal server error occurred. Retry your request.TooManyTagsException - The request contains more tags than can be associated with a resource (50 tags per resource). The maximum
number of tags includes both existing tags and those included in your current request.ServiceQuotaExceededException - The number of requests exceeds the service quota. Resubmit your request later.ThrottlingException - The number of requests exceeds the limit. Resubmit your request later.CreateProvisionedModelThroughputResult createProvisionedModelThroughput(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 - ResourceNotFoundException - The specified resource ARN was not found. Check the ARN and try your request again.AccessDeniedException - The request is denied because of missing access permissions.ValidationException - Input validation failed. Check your request parameters and retry the request.InternalServerException - An internal server error occurred. Retry your request.TooManyTagsException - The request contains more tags than can be associated with a resource (50 tags per resource). The maximum
number of tags includes both existing tags and those included in your current request.ServiceQuotaExceededException - The number of requests exceeds the service quota. Resubmit your request later.ThrottlingException - The number of requests exceeds the limit. Resubmit your request later.DeleteCustomModelResult deleteCustomModel(DeleteCustomModelRequest deleteCustomModelRequest)
Deletes a custom model that you created earlier. For more information, see Custom models in the Bedrock User Guide.
deleteCustomModelRequest - ResourceNotFoundException - The specified resource ARN was not found. Check the ARN and try your request again.AccessDeniedException - The request is denied because of missing access permissions.ValidationException - Input validation failed. Check your request parameters and retry the request.ConflictException - Error occurred because of a conflict while performing an operation.InternalServerException - An internal server error occurred. Retry your request.ThrottlingException - The number of requests exceeds the limit. Resubmit your request later.DeleteModelInvocationLoggingConfigurationResult deleteModelInvocationLoggingConfiguration(DeleteModelInvocationLoggingConfigurationRequest deleteModelInvocationLoggingConfigurationRequest)
Delete the invocation logging.
deleteModelInvocationLoggingConfigurationRequest - AccessDeniedException - The request is denied because of missing access permissions.InternalServerException - An internal server error occurred. Retry your request.ThrottlingException - The number of requests exceeds the limit. Resubmit your request later.DeleteProvisionedModelThroughputResult deleteProvisionedModelThroughput(DeleteProvisionedModelThroughputRequest deleteProvisionedModelThroughputRequest)
Deletes a provisioned throughput. For more information, see Provisioned throughput in the Bedrock User Guide.
deleteProvisionedModelThroughputRequest - ResourceNotFoundException - The specified resource ARN was not found. Check the ARN and try your request again.AccessDeniedException - The request is denied because of missing access permissions.ValidationException - Input validation failed. Check your request parameters and retry the request.ConflictException - Error occurred because of a conflict while performing an operation.InternalServerException - An internal server error occurred. Retry your request.ThrottlingException - The number of requests exceeds the limit. Resubmit your request later.GetCustomModelResult getCustomModel(GetCustomModelRequest getCustomModelRequest)
Get the properties associated with a Amazon Bedrock custom model that you have created.For more information, see Custom models in the Bedrock User Guide.
getCustomModelRequest - ResourceNotFoundException - The specified resource ARN was not found. Check the ARN and try your request again.AccessDeniedException - The request is denied because of missing access permissions.ValidationException - Input validation failed. Check your request parameters and retry the request.InternalServerException - An internal server error occurred. Retry your request.ThrottlingException - The number of requests exceeds the limit. Resubmit your request later.GetFoundationModelResult getFoundationModel(GetFoundationModelRequest getFoundationModelRequest)
Get details about a Amazon Bedrock foundation model.
getFoundationModelRequest - ResourceNotFoundException - The specified resource ARN was not found. Check the ARN and try your request again.AccessDeniedException - The request is denied because of missing access permissions.ValidationException - Input validation failed. Check your request parameters and retry the request.InternalServerException - An internal server error occurred. Retry your request.ThrottlingException - The number of requests exceeds the limit. Resubmit your request later.GetModelCustomizationJobResult getModelCustomizationJob(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 - ResourceNotFoundException - The specified resource ARN was not found. Check the ARN and try your request again.AccessDeniedException - The request is denied because of missing access permissions.ValidationException - Input validation failed. Check your request parameters and retry the request.InternalServerException - An internal server error occurred. Retry your request.ThrottlingException - The number of requests exceeds the limit. Resubmit your request later.GetModelInvocationLoggingConfigurationResult getModelInvocationLoggingConfiguration(GetModelInvocationLoggingConfigurationRequest getModelInvocationLoggingConfigurationRequest)
Get the current configuration values for model invocation logging.
getModelInvocationLoggingConfigurationRequest - AccessDeniedException - The request is denied because of missing access permissions.InternalServerException - An internal server error occurred. Retry your request.ThrottlingException - The number of requests exceeds the limit. Resubmit your request later.GetProvisionedModelThroughputResult getProvisionedModelThroughput(GetProvisionedModelThroughputRequest getProvisionedModelThroughputRequest)
Get details for a provisioned throughput. For more information, see Provisioned throughput in the Bedrock User Guide.
getProvisionedModelThroughputRequest - ResourceNotFoundException - The specified resource ARN was not found. Check the ARN and try your request again.AccessDeniedException - The request is denied because of missing access permissions.ValidationException - Input validation failed. Check your request parameters and retry the request.InternalServerException - An internal server error occurred. Retry your request.ThrottlingException - The number of requests exceeds the limit. Resubmit your request later.ListCustomModelsResult listCustomModels(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 - AccessDeniedException - The request is denied because of missing access permissions.ValidationException - Input validation failed. Check your request parameters and retry the request.InternalServerException - An internal server error occurred. Retry your request.ThrottlingException - The number of requests exceeds the limit. Resubmit your request later.ListFoundationModelsResult listFoundationModels(ListFoundationModelsRequest listFoundationModelsRequest)
List of Amazon Bedrock foundation models that you can use. For more information, see Foundation models in the Bedrock User Guide.
listFoundationModelsRequest - AccessDeniedException - The request is denied because of missing access permissions.ValidationException - Input validation failed. Check your request parameters and retry the request.InternalServerException - An internal server error occurred. Retry your request.ThrottlingException - The number of requests exceeds the limit. Resubmit your request later.ListModelCustomizationJobsResult listModelCustomizationJobs(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 - AccessDeniedException - The request is denied because of missing access permissions.ValidationException - Input validation failed. Check your request parameters and retry the request.InternalServerException - An internal server error occurred. Retry your request.ThrottlingException - The number of requests exceeds the limit. Resubmit your request later.ListProvisionedModelThroughputsResult listProvisionedModelThroughputs(ListProvisionedModelThroughputsRequest listProvisionedModelThroughputsRequest)
List the provisioned capacities. For more information, see Provisioned throughput in the Bedrock User Guide.
listProvisionedModelThroughputsRequest - AccessDeniedException - The request is denied because of missing access permissions.ValidationException - Input validation failed. Check your request parameters and retry the request.InternalServerException - An internal server error occurred. Retry your request.ThrottlingException - The number of requests exceeds the limit. Resubmit your request later.ListTagsForResourceResult listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)
List the tags associated with the specified resource.
For more information, see Tagging resources in the Bedrock User Guide.
listTagsForResourceRequest - ResourceNotFoundException - The specified resource ARN was not found. Check the ARN and try your request again.AccessDeniedException - The request is denied because of missing access permissions.ValidationException - Input validation failed. Check your request parameters and retry the request.InternalServerException - An internal server error occurred. Retry your request.ThrottlingException - The number of requests exceeds the limit. Resubmit your request later.PutModelInvocationLoggingConfigurationResult putModelInvocationLoggingConfiguration(PutModelInvocationLoggingConfigurationRequest putModelInvocationLoggingConfigurationRequest)
Set the configuration values for model invocation logging.
putModelInvocationLoggingConfigurationRequest - AccessDeniedException - The request is denied because of missing access permissions.ValidationException - Input validation failed. Check your request parameters and retry the request.InternalServerException - An internal server error occurred. Retry your request.ThrottlingException - The number of requests exceeds the limit. Resubmit your request later.StopModelCustomizationJobResult stopModelCustomizationJob(StopModelCustomizationJobRequest stopModelCustomizationJobRequest)
Stops an active model customization job. For more information, see Custom models in the Bedrock User Guide.
stopModelCustomizationJobRequest - ResourceNotFoundException - The specified resource ARN was not found. Check the ARN and try your request again.AccessDeniedException - The request is denied because of missing access permissions.ValidationException - Input validation failed. Check your request parameters and retry the request.ConflictException - Error occurred because of a conflict while performing an operation.InternalServerException - An internal server error occurred. Retry your request.ThrottlingException - The number of requests exceeds the limit. Resubmit your request later.TagResourceResult tagResource(TagResourceRequest tagResourceRequest)
Associate tags with a resource. For more information, see Tagging resources in the Bedrock User Guide.
tagResourceRequest - ResourceNotFoundException - The specified resource ARN was not found. Check the ARN and try your request again.AccessDeniedException - The request is denied because of missing access permissions.ValidationException - Input validation failed. Check your request parameters and retry the request.InternalServerException - An internal server error occurred. Retry your request.TooManyTagsException - The request contains more tags than can be associated with a resource (50 tags per resource). The maximum
number of tags includes both existing tags and those included in your current request.ThrottlingException - The number of requests exceeds the limit. Resubmit your request later.UntagResourceResult untagResource(UntagResourceRequest untagResourceRequest)
Remove one or more tags from a resource. For more information, see Tagging resources in the Bedrock User Guide.
untagResourceRequest - ResourceNotFoundException - The specified resource ARN was not found. Check the ARN and try your request again.AccessDeniedException - The request is denied because of missing access permissions.ValidationException - Input validation failed. Check your request parameters and retry the request.InternalServerException - An internal server error occurred. Retry your request.ThrottlingException - The number of requests exceeds the limit. Resubmit your request later.UpdateProvisionedModelThroughputResult updateProvisionedModelThroughput(UpdateProvisionedModelThroughputRequest updateProvisionedModelThroughputRequest)
Update a provisioned throughput. For more information, see Provisioned throughput in the Bedrock User Guide.
updateProvisionedModelThroughputRequest - ResourceNotFoundException - The specified resource ARN was not found. Check the ARN and try your request again.AccessDeniedException - The request is denied because of missing access permissions.ValidationException - Input validation failed. Check your request parameters and retry the request.InternalServerException - An internal server error occurred. Retry your request.ThrottlingException - The number of requests exceeds the limit. Resubmit your request later.void shutdown()
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 a request.
request - The originally executed request.Copyright © 2024. All rights reserved.