@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AbstractAmazonBedrock extends Object implements AmazonBedrock
AmazonBedrock
. Convenient method forms pass through to the corresponding overload
that takes a request object, which throws an UnsupportedOperationException
.ENDPOINT_PREFIX
public CreateModelCustomizationJobResult createModelCustomizationJob(CreateModelCustomizationJobRequest request)
AmazonBedrock
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.
createModelCustomizationJob
in interface AmazonBedrock
public CreateProvisionedModelThroughputResult createProvisionedModelThroughput(CreateProvisionedModelThroughputRequest request)
AmazonBedrock
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.
createProvisionedModelThroughput
in interface AmazonBedrock
public DeleteCustomModelResult deleteCustomModel(DeleteCustomModelRequest request)
AmazonBedrock
Deletes a custom model that you created earlier. For more information, see Custom models in the Bedrock User Guide.
deleteCustomModel
in interface AmazonBedrock
public DeleteModelInvocationLoggingConfigurationResult deleteModelInvocationLoggingConfiguration(DeleteModelInvocationLoggingConfigurationRequest request)
AmazonBedrock
Delete the invocation logging.
deleteModelInvocationLoggingConfiguration
in interface AmazonBedrock
public DeleteProvisionedModelThroughputResult deleteProvisionedModelThroughput(DeleteProvisionedModelThroughputRequest request)
AmazonBedrock
Deletes a provisioned throughput. For more information, see Provisioned throughput in the Bedrock User Guide.
deleteProvisionedModelThroughput
in interface AmazonBedrock
public GetCustomModelResult getCustomModel(GetCustomModelRequest request)
AmazonBedrock
Get the properties associated with a Bedrock custom model that you have created.For more information, see Custom models in the Bedrock User Guide.
getCustomModel
in interface AmazonBedrock
public GetFoundationModelResult getFoundationModel(GetFoundationModelRequest request)
AmazonBedrock
Get details about a Bedrock foundation model.
getFoundationModel
in interface AmazonBedrock
public GetModelCustomizationJobResult getModelCustomizationJob(GetModelCustomizationJobRequest request)
AmazonBedrock
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.
getModelCustomizationJob
in interface AmazonBedrock
public GetModelInvocationLoggingConfigurationResult getModelInvocationLoggingConfiguration(GetModelInvocationLoggingConfigurationRequest request)
AmazonBedrock
Get the current configuration values for model invocation logging.
getModelInvocationLoggingConfiguration
in interface AmazonBedrock
public GetProvisionedModelThroughputResult getProvisionedModelThroughput(GetProvisionedModelThroughputRequest request)
AmazonBedrock
Get details for a provisioned throughput. For more information, see Provisioned throughput in the Bedrock User Guide.
getProvisionedModelThroughput
in interface AmazonBedrock
public ListCustomModelsResult listCustomModels(ListCustomModelsRequest request)
AmazonBedrock
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.
listCustomModels
in interface AmazonBedrock
public ListFoundationModelsResult listFoundationModels(ListFoundationModelsRequest request)
AmazonBedrock
List of Bedrock foundation models that you can use. For more information, see Foundation models in the Bedrock User Guide.
listFoundationModels
in interface AmazonBedrock
public ListModelCustomizationJobsResult listModelCustomizationJobs(ListModelCustomizationJobsRequest request)
AmazonBedrock
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.
listModelCustomizationJobs
in interface AmazonBedrock
public ListProvisionedModelThroughputsResult listProvisionedModelThroughputs(ListProvisionedModelThroughputsRequest request)
AmazonBedrock
List the provisioned capacities. For more information, see Provisioned throughput in the Bedrock User Guide.
listProvisionedModelThroughputs
in interface AmazonBedrock
public ListTagsForResourceResult listTagsForResource(ListTagsForResourceRequest request)
AmazonBedrock
List the tags associated with the specified resource.
For more information, see Tagging resources in the Bedrock User Guide.
listTagsForResource
in interface AmazonBedrock
public PutModelInvocationLoggingConfigurationResult putModelInvocationLoggingConfiguration(PutModelInvocationLoggingConfigurationRequest request)
AmazonBedrock
Set the configuration values for model invocation logging.
putModelInvocationLoggingConfiguration
in interface AmazonBedrock
public StopModelCustomizationJobResult stopModelCustomizationJob(StopModelCustomizationJobRequest request)
AmazonBedrock
Stops an active model customization job. For more information, see Custom models in the Bedrock User Guide.
stopModelCustomizationJob
in interface AmazonBedrock
public TagResourceResult tagResource(TagResourceRequest request)
AmazonBedrock
Associate tags with a resource. For more information, see Tagging resources in the Bedrock User Guide.
tagResource
in interface AmazonBedrock
public UntagResourceResult untagResource(UntagResourceRequest request)
AmazonBedrock
Remove one or more tags from a resource. For more information, see Tagging resources in the Bedrock User Guide.
untagResource
in interface AmazonBedrock
public UpdateProvisionedModelThroughputResult updateProvisionedModelThroughput(UpdateProvisionedModelThroughputRequest request)
AmazonBedrock
Update a provisioned throughput. For more information, see Provisioned throughput in the Bedrock User Guide.
updateProvisionedModelThroughput
in interface AmazonBedrock
public void shutdown()
AmazonBedrock
shutdown
in interface AmazonBedrock
public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
AmazonBedrock
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.
getCachedResponseMetadata
in interface AmazonBedrock
request
- The originally executed request.