@Generated(value="software.amazon.awssdk:codegen") @ThreadSafe public interface BedrockClient extends AwsClient
builder() method.
Describes the API operations for creating and managing Bedrock models.
| Modifier and Type | Field and Description |
|---|---|
static String |
SERVICE_METADATA_ID
Value for looking up the service's metadata from the
ServiceMetadataProvider. |
static String |
SERVICE_NAME |
| Modifier and Type | Method and Description |
|---|---|
static BedrockClientBuilder |
builder()
Create a builder that can be used to configure and create a
BedrockClient. |
static BedrockClient |
create()
Create a
BedrockClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider. |
default CreateModelCustomizationJobResponse |
createModelCustomizationJob(Consumer<CreateModelCustomizationJobRequest.Builder> createModelCustomizationJobRequest)
Creates a fine-tuning job to customize a base model.
|
default CreateModelCustomizationJobResponse |
createModelCustomizationJob(CreateModelCustomizationJobRequest createModelCustomizationJobRequest)
Creates a fine-tuning job to customize a base model.
|
default CreateProvisionedModelThroughputResponse |
createProvisionedModelThroughput(Consumer<CreateProvisionedModelThroughputRequest.Builder> createProvisionedModelThroughputRequest)
Creates a provisioned throughput with dedicated capacity for a foundation model or a fine-tuned model.
|
default CreateProvisionedModelThroughputResponse |
createProvisionedModelThroughput(CreateProvisionedModelThroughputRequest createProvisionedModelThroughputRequest)
Creates a provisioned throughput with dedicated capacity for a foundation model or a fine-tuned model.
|
default DeleteCustomModelResponse |
deleteCustomModel(Consumer<DeleteCustomModelRequest.Builder> deleteCustomModelRequest)
Deletes a custom model that you created earlier.
|
default DeleteCustomModelResponse |
deleteCustomModel(DeleteCustomModelRequest deleteCustomModelRequest)
Deletes a custom model that you created earlier.
|
default DeleteModelInvocationLoggingConfigurationResponse |
deleteModelInvocationLoggingConfiguration(Consumer<DeleteModelInvocationLoggingConfigurationRequest.Builder> deleteModelInvocationLoggingConfigurationRequest)
Delete the invocation logging.
|
default DeleteModelInvocationLoggingConfigurationResponse |
deleteModelInvocationLoggingConfiguration(DeleteModelInvocationLoggingConfigurationRequest deleteModelInvocationLoggingConfigurationRequest)
Delete the invocation logging.
|
default DeleteProvisionedModelThroughputResponse |
deleteProvisionedModelThroughput(Consumer<DeleteProvisionedModelThroughputRequest.Builder> deleteProvisionedModelThroughputRequest)
Deletes a provisioned throughput.
|
default DeleteProvisionedModelThroughputResponse |
deleteProvisionedModelThroughput(DeleteProvisionedModelThroughputRequest deleteProvisionedModelThroughputRequest)
Deletes a provisioned throughput.
|
default GetCustomModelResponse |
getCustomModel(Consumer<GetCustomModelRequest.Builder> 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.
|
default GetCustomModelResponse |
getCustomModel(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.
|
default GetFoundationModelResponse |
getFoundationModel(Consumer<GetFoundationModelRequest.Builder> getFoundationModelRequest)
Get details about a Bedrock foundation model.
|
default GetFoundationModelResponse |
getFoundationModel(GetFoundationModelRequest getFoundationModelRequest)
Get details about a Bedrock foundation model.
|
default GetModelCustomizationJobResponse |
getModelCustomizationJob(Consumer<GetModelCustomizationJobRequest.Builder> getModelCustomizationJobRequest)
Retrieves the properties associated with a model-customization job, including the status of the job.
|
default GetModelCustomizationJobResponse |
getModelCustomizationJob(GetModelCustomizationJobRequest getModelCustomizationJobRequest)
Retrieves the properties associated with a model-customization job, including the status of the job.
|
default GetModelInvocationLoggingConfigurationResponse |
getModelInvocationLoggingConfiguration(Consumer<GetModelInvocationLoggingConfigurationRequest.Builder> getModelInvocationLoggingConfigurationRequest)
Get the current configuration values for model invocation logging.
|
default GetModelInvocationLoggingConfigurationResponse |
getModelInvocationLoggingConfiguration(GetModelInvocationLoggingConfigurationRequest getModelInvocationLoggingConfigurationRequest)
Get the current configuration values for model invocation logging.
|
default GetProvisionedModelThroughputResponse |
getProvisionedModelThroughput(Consumer<GetProvisionedModelThroughputRequest.Builder> getProvisionedModelThroughputRequest)
Get details for a provisioned throughput.
|
default GetProvisionedModelThroughputResponse |
getProvisionedModelThroughput(GetProvisionedModelThroughputRequest getProvisionedModelThroughputRequest)
Get details for a provisioned throughput.
|
default ListCustomModelsResponse |
listCustomModels(Consumer<ListCustomModelsRequest.Builder> listCustomModelsRequest)
Returns a list of the custom models that you have created with the
CreateModelCustomizationJob
operation. |
default ListCustomModelsResponse |
listCustomModels(ListCustomModelsRequest listCustomModelsRequest)
Returns a list of the custom models that you have created with the
CreateModelCustomizationJob
operation. |
default ListCustomModelsIterable |
listCustomModelsPaginator(Consumer<ListCustomModelsRequest.Builder> listCustomModelsRequest)
Returns a list of the custom models that you have created with the
CreateModelCustomizationJob
operation. |
default ListCustomModelsIterable |
listCustomModelsPaginator(ListCustomModelsRequest listCustomModelsRequest)
Returns a list of the custom models that you have created with the
CreateModelCustomizationJob
operation. |
default ListFoundationModelsResponse |
listFoundationModels(Consumer<ListFoundationModelsRequest.Builder> listFoundationModelsRequest)
List of Bedrock foundation models that you can use.
|
default ListFoundationModelsResponse |
listFoundationModels(ListFoundationModelsRequest listFoundationModelsRequest)
List of Bedrock foundation models that you can use.
|
default ListModelCustomizationJobsResponse |
listModelCustomizationJobs(Consumer<ListModelCustomizationJobsRequest.Builder> listModelCustomizationJobsRequest)
Returns a list of model customization jobs that you have submitted.
|
default ListModelCustomizationJobsResponse |
listModelCustomizationJobs(ListModelCustomizationJobsRequest listModelCustomizationJobsRequest)
Returns a list of model customization jobs that you have submitted.
|
default ListModelCustomizationJobsIterable |
listModelCustomizationJobsPaginator(Consumer<ListModelCustomizationJobsRequest.Builder> listModelCustomizationJobsRequest)
Returns a list of model customization jobs that you have submitted.
|
default ListModelCustomizationJobsIterable |
listModelCustomizationJobsPaginator(ListModelCustomizationJobsRequest listModelCustomizationJobsRequest)
Returns a list of model customization jobs that you have submitted.
|
default ListProvisionedModelThroughputsResponse |
listProvisionedModelThroughputs(Consumer<ListProvisionedModelThroughputsRequest.Builder> listProvisionedModelThroughputsRequest)
List the provisioned capacities.
|
default ListProvisionedModelThroughputsResponse |
listProvisionedModelThroughputs(ListProvisionedModelThroughputsRequest listProvisionedModelThroughputsRequest)
List the provisioned capacities.
|
default ListProvisionedModelThroughputsIterable |
listProvisionedModelThroughputsPaginator(Consumer<ListProvisionedModelThroughputsRequest.Builder> listProvisionedModelThroughputsRequest)
List the provisioned capacities.
|
default ListProvisionedModelThroughputsIterable |
listProvisionedModelThroughputsPaginator(ListProvisionedModelThroughputsRequest listProvisionedModelThroughputsRequest)
List the provisioned capacities.
|
default ListTagsForResourceResponse |
listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest)
List the tags associated with the specified resource.
|
default ListTagsForResourceResponse |
listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)
List the tags associated with the specified resource.
|
default PutModelInvocationLoggingConfigurationResponse |
putModelInvocationLoggingConfiguration(Consumer<PutModelInvocationLoggingConfigurationRequest.Builder> putModelInvocationLoggingConfigurationRequest)
Set the configuration values for model invocation logging.
|
default PutModelInvocationLoggingConfigurationResponse |
putModelInvocationLoggingConfiguration(PutModelInvocationLoggingConfigurationRequest putModelInvocationLoggingConfigurationRequest)
Set the configuration values for model invocation logging.
|
default BedrockServiceClientConfiguration |
serviceClientConfiguration() |
static ServiceMetadata |
serviceMetadata() |
default StopModelCustomizationJobResponse |
stopModelCustomizationJob(Consumer<StopModelCustomizationJobRequest.Builder> stopModelCustomizationJobRequest)
Stops an active model customization job.
|
default StopModelCustomizationJobResponse |
stopModelCustomizationJob(StopModelCustomizationJobRequest stopModelCustomizationJobRequest)
Stops an active model customization job.
|
default TagResourceResponse |
tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest)
Associate tags with a resource.
|
default TagResourceResponse |
tagResource(TagResourceRequest tagResourceRequest)
Associate tags with a resource.
|
default UntagResourceResponse |
untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest)
Remove one or more tags from a resource.
|
default UntagResourceResponse |
untagResource(UntagResourceRequest untagResourceRequest)
Remove one or more tags from a resource.
|
default UpdateProvisionedModelThroughputResponse |
updateProvisionedModelThroughput(Consumer<UpdateProvisionedModelThroughputRequest.Builder> updateProvisionedModelThroughputRequest)
Update a provisioned throughput.
|
default UpdateProvisionedModelThroughputResponse |
updateProvisionedModelThroughput(UpdateProvisionedModelThroughputRequest updateProvisionedModelThroughputRequest)
Update a provisioned throughput.
|
serviceNameclosestatic final String SERVICE_NAME
static final String SERVICE_METADATA_ID
ServiceMetadataProvider.default CreateModelCustomizationJobResponse createModelCustomizationJob(CreateModelCustomizationJobRequest createModelCustomizationJobRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, TooManyTagsException, ServiceQuotaExceededException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException
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 - 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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BedrockException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault CreateModelCustomizationJobResponse createModelCustomizationJob(Consumer<CreateModelCustomizationJobRequest.Builder> createModelCustomizationJobRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, TooManyTagsException, ServiceQuotaExceededException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException
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.
This is a convenience which creates an instance of the CreateModelCustomizationJobRequest.Builder
avoiding the need to create one manually via CreateModelCustomizationJobRequest.builder()
createModelCustomizationJobRequest - A Consumer that will call methods on
CreateModelCustomizationJobRequest.Builder to create
a request.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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BedrockException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault CreateProvisionedModelThroughputResponse createProvisionedModelThroughput(CreateProvisionedModelThroughputRequest createProvisionedModelThroughputRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, TooManyTagsException, ServiceQuotaExceededException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException
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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BedrockException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault CreateProvisionedModelThroughputResponse createProvisionedModelThroughput(Consumer<CreateProvisionedModelThroughputRequest.Builder> createProvisionedModelThroughputRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, TooManyTagsException, ServiceQuotaExceededException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException
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.
This is a convenience which creates an instance of the CreateProvisionedModelThroughputRequest.Builder
avoiding the need to create one manually via CreateProvisionedModelThroughputRequest.builder()
createProvisionedModelThroughputRequest - A Consumer that will call methods on
CreateProvisionedModelThroughputRequest.Builder to
create a request.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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BedrockException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeleteCustomModelResponse deleteCustomModel(DeleteCustomModelRequest deleteCustomModelRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException
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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BedrockException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeleteCustomModelResponse deleteCustomModel(Consumer<DeleteCustomModelRequest.Builder> deleteCustomModelRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException
Deletes a custom model that you created earlier. For more information, see Custom models in the Bedrock User Guide.
This is a convenience which creates an instance of the DeleteCustomModelRequest.Builder avoiding the need
to create one manually via DeleteCustomModelRequest.builder()
deleteCustomModelRequest - A Consumer that will call methods on
DeleteCustomModelRequest.Builder to create a
request.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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BedrockException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeleteModelInvocationLoggingConfigurationResponse deleteModelInvocationLoggingConfiguration(DeleteModelInvocationLoggingConfigurationRequest deleteModelInvocationLoggingConfigurationRequest) throws AccessDeniedException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException
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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BedrockException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeleteModelInvocationLoggingConfigurationResponse deleteModelInvocationLoggingConfiguration(Consumer<DeleteModelInvocationLoggingConfigurationRequest.Builder> deleteModelInvocationLoggingConfigurationRequest) throws AccessDeniedException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException
Delete the invocation logging.
This is a convenience which creates an instance of the
DeleteModelInvocationLoggingConfigurationRequest.Builder avoiding the need to create one manually via
DeleteModelInvocationLoggingConfigurationRequest.builder()
deleteModelInvocationLoggingConfigurationRequest - A Consumer that will call methods on
DeleteModelInvocationLoggingConfigurationRequest.Builder
to create a request.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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BedrockException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeleteProvisionedModelThroughputResponse deleteProvisionedModelThroughput(DeleteProvisionedModelThroughputRequest deleteProvisionedModelThroughputRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException
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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BedrockException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeleteProvisionedModelThroughputResponse deleteProvisionedModelThroughput(Consumer<DeleteProvisionedModelThroughputRequest.Builder> deleteProvisionedModelThroughputRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException
Deletes a provisioned throughput. For more information, see Provisioned throughput in the Bedrock User Guide.
This is a convenience which creates an instance of the DeleteProvisionedModelThroughputRequest.Builder
avoiding the need to create one manually via DeleteProvisionedModelThroughputRequest.builder()
deleteProvisionedModelThroughputRequest - A Consumer that will call methods on
DeleteProvisionedModelThroughputRequest.Builder to
create a request.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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BedrockException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetCustomModelResponse getCustomModel(GetCustomModelRequest getCustomModelRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException
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 - 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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BedrockException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetCustomModelResponse getCustomModel(Consumer<GetCustomModelRequest.Builder> getCustomModelRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException
Get the properties associated with a Bedrock custom model that you have created.For more information, see Custom models in the Bedrock User Guide.
This is a convenience which creates an instance of the GetCustomModelRequest.Builder avoiding the need to
create one manually via GetCustomModelRequest.builder()
getCustomModelRequest - A Consumer that will call methods on
GetCustomModelRequest.Builder to create a request.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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BedrockException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetFoundationModelResponse getFoundationModel(GetFoundationModelRequest getFoundationModelRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException
Get details about a 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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BedrockException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetFoundationModelResponse getFoundationModel(Consumer<GetFoundationModelRequest.Builder> getFoundationModelRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException
Get details about a Bedrock foundation model.
This is a convenience which creates an instance of the GetFoundationModelRequest.Builder avoiding the
need to create one manually via GetFoundationModelRequest.builder()
getFoundationModelRequest - A Consumer that will call methods on
GetFoundationModelRequest.Builder to create a
request.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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BedrockException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetModelCustomizationJobResponse getModelCustomizationJob(GetModelCustomizationJobRequest getModelCustomizationJobRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException
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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BedrockException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetModelCustomizationJobResponse getModelCustomizationJob(Consumer<GetModelCustomizationJobRequest.Builder> getModelCustomizationJobRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException
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.
This is a convenience which creates an instance of the GetModelCustomizationJobRequest.Builder avoiding
the need to create one manually via GetModelCustomizationJobRequest.builder()
getModelCustomizationJobRequest - A Consumer that will call methods on
GetModelCustomizationJobRequest.Builder to create a
request.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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BedrockException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetModelInvocationLoggingConfigurationResponse getModelInvocationLoggingConfiguration(GetModelInvocationLoggingConfigurationRequest getModelInvocationLoggingConfigurationRequest) throws AccessDeniedException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException
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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BedrockException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetModelInvocationLoggingConfigurationResponse getModelInvocationLoggingConfiguration(Consumer<GetModelInvocationLoggingConfigurationRequest.Builder> getModelInvocationLoggingConfigurationRequest) throws AccessDeniedException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException
Get the current configuration values for model invocation logging.
This is a convenience which creates an instance of the
GetModelInvocationLoggingConfigurationRequest.Builder avoiding the need to create one manually via
GetModelInvocationLoggingConfigurationRequest.builder()
getModelInvocationLoggingConfigurationRequest - A Consumer that will call methods on
GetModelInvocationLoggingConfigurationRequest.Builder
to create a request.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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BedrockException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetProvisionedModelThroughputResponse getProvisionedModelThroughput(GetProvisionedModelThroughputRequest getProvisionedModelThroughputRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException
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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BedrockException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetProvisionedModelThroughputResponse getProvisionedModelThroughput(Consumer<GetProvisionedModelThroughputRequest.Builder> getProvisionedModelThroughputRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException
Get details for a provisioned throughput. For more information, see Provisioned throughput in the Bedrock User Guide.
This is a convenience which creates an instance of the GetProvisionedModelThroughputRequest.Builder
avoiding the need to create one manually via GetProvisionedModelThroughputRequest.builder()
getProvisionedModelThroughputRequest - A Consumer that will call methods on
GetProvisionedModelThroughputRequest.Builder to
create a request.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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BedrockException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListCustomModelsResponse listCustomModels(ListCustomModelsRequest listCustomModelsRequest) throws AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException
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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BedrockException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListCustomModelsResponse listCustomModels(Consumer<ListCustomModelsRequest.Builder> listCustomModelsRequest) throws AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException
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.
This is a convenience which creates an instance of the ListCustomModelsRequest.Builder avoiding the need
to create one manually via ListCustomModelsRequest.builder()
listCustomModelsRequest - A Consumer that will call methods on
ListCustomModelsRequest.Builder to create a request.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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BedrockException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListCustomModelsIterable listCustomModelsPaginator(ListCustomModelsRequest listCustomModelsRequest) throws AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException
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.
This is a variant of
listCustomModels(software.amazon.awssdk.services.bedrock.model.ListCustomModelsRequest) operation. The
return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle
making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.bedrock.paginators.ListCustomModelsIterable responses = client.listCustomModelsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.bedrock.paginators.ListCustomModelsIterable responses = client
.listCustomModelsPaginator(request);
for (software.amazon.awssdk.services.bedrock.model.ListCustomModelsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.bedrock.paginators.ListCustomModelsIterable responses = client.listCustomModelsPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listCustomModels(software.amazon.awssdk.services.bedrock.model.ListCustomModelsRequest) operation.
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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BedrockException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListCustomModelsIterable listCustomModelsPaginator(Consumer<ListCustomModelsRequest.Builder> listCustomModelsRequest) throws AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException
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.
This is a variant of
listCustomModels(software.amazon.awssdk.services.bedrock.model.ListCustomModelsRequest) operation. The
return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle
making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.bedrock.paginators.ListCustomModelsIterable responses = client.listCustomModelsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.bedrock.paginators.ListCustomModelsIterable responses = client
.listCustomModelsPaginator(request);
for (software.amazon.awssdk.services.bedrock.model.ListCustomModelsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.bedrock.paginators.ListCustomModelsIterable responses = client.listCustomModelsPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listCustomModels(software.amazon.awssdk.services.bedrock.model.ListCustomModelsRequest) operation.
This is a convenience which creates an instance of the ListCustomModelsRequest.Builder avoiding the need
to create one manually via ListCustomModelsRequest.builder()
listCustomModelsRequest - A Consumer that will call methods on
ListCustomModelsRequest.Builder to create a request.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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BedrockException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListFoundationModelsResponse listFoundationModels(ListFoundationModelsRequest listFoundationModelsRequest) throws AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException
List of 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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BedrockException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListFoundationModelsResponse listFoundationModels(Consumer<ListFoundationModelsRequest.Builder> listFoundationModelsRequest) throws AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException
List of Bedrock foundation models that you can use. For more information, see Foundation models in the Bedrock User Guide.
This is a convenience which creates an instance of the ListFoundationModelsRequest.Builder avoiding the
need to create one manually via ListFoundationModelsRequest.builder()
listFoundationModelsRequest - A Consumer that will call methods on
ListFoundationModelsRequest.Builder to create a
request.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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BedrockException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListModelCustomizationJobsResponse listModelCustomizationJobs(ListModelCustomizationJobsRequest listModelCustomizationJobsRequest) throws AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException
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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BedrockException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListModelCustomizationJobsResponse listModelCustomizationJobs(Consumer<ListModelCustomizationJobsRequest.Builder> listModelCustomizationJobsRequest) throws AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException
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.
This is a convenience which creates an instance of the ListModelCustomizationJobsRequest.Builder avoiding
the need to create one manually via ListModelCustomizationJobsRequest.builder()
listModelCustomizationJobsRequest - A Consumer that will call methods on
ListModelCustomizationJobsRequest.Builder to create
a request.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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BedrockException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListModelCustomizationJobsIterable listModelCustomizationJobsPaginator(ListModelCustomizationJobsRequest listModelCustomizationJobsRequest) throws AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException
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.
This is a variant of
listModelCustomizationJobs(software.amazon.awssdk.services.bedrock.model.ListModelCustomizationJobsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.bedrock.paginators.ListModelCustomizationJobsIterable responses = client.listModelCustomizationJobsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.bedrock.paginators.ListModelCustomizationJobsIterable responses = client
.listModelCustomizationJobsPaginator(request);
for (software.amazon.awssdk.services.bedrock.model.ListModelCustomizationJobsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.bedrock.paginators.ListModelCustomizationJobsIterable responses = client.listModelCustomizationJobsPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listModelCustomizationJobs(software.amazon.awssdk.services.bedrock.model.ListModelCustomizationJobsRequest)
operation.
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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BedrockException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListModelCustomizationJobsIterable listModelCustomizationJobsPaginator(Consumer<ListModelCustomizationJobsRequest.Builder> listModelCustomizationJobsRequest) throws AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException
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.
This is a variant of
listModelCustomizationJobs(software.amazon.awssdk.services.bedrock.model.ListModelCustomizationJobsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.bedrock.paginators.ListModelCustomizationJobsIterable responses = client.listModelCustomizationJobsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.bedrock.paginators.ListModelCustomizationJobsIterable responses = client
.listModelCustomizationJobsPaginator(request);
for (software.amazon.awssdk.services.bedrock.model.ListModelCustomizationJobsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.bedrock.paginators.ListModelCustomizationJobsIterable responses = client.listModelCustomizationJobsPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listModelCustomizationJobs(software.amazon.awssdk.services.bedrock.model.ListModelCustomizationJobsRequest)
operation.
This is a convenience which creates an instance of the ListModelCustomizationJobsRequest.Builder avoiding
the need to create one manually via ListModelCustomizationJobsRequest.builder()
listModelCustomizationJobsRequest - A Consumer that will call methods on
ListModelCustomizationJobsRequest.Builder to create
a request.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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BedrockException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListProvisionedModelThroughputsResponse listProvisionedModelThroughputs(ListProvisionedModelThroughputsRequest listProvisionedModelThroughputsRequest) throws AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException
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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BedrockException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListProvisionedModelThroughputsResponse listProvisionedModelThroughputs(Consumer<ListProvisionedModelThroughputsRequest.Builder> listProvisionedModelThroughputsRequest) throws AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException
List the provisioned capacities. For more information, see Provisioned throughput in the Bedrock User Guide.
This is a convenience which creates an instance of the ListProvisionedModelThroughputsRequest.Builder
avoiding the need to create one manually via ListProvisionedModelThroughputsRequest.builder()
listProvisionedModelThroughputsRequest - A Consumer that will call methods on
ListProvisionedModelThroughputsRequest.Builder to
create a request.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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BedrockException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListProvisionedModelThroughputsIterable listProvisionedModelThroughputsPaginator(ListProvisionedModelThroughputsRequest listProvisionedModelThroughputsRequest) throws AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException
List the provisioned capacities. For more information, see Provisioned throughput in the Bedrock User Guide.
This is a variant of
listProvisionedModelThroughputs(software.amazon.awssdk.services.bedrock.model.ListProvisionedModelThroughputsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.bedrock.paginators.ListProvisionedModelThroughputsIterable responses = client.listProvisionedModelThroughputsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.bedrock.paginators.ListProvisionedModelThroughputsIterable responses = client
.listProvisionedModelThroughputsPaginator(request);
for (software.amazon.awssdk.services.bedrock.model.ListProvisionedModelThroughputsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.bedrock.paginators.ListProvisionedModelThroughputsIterable responses = client.listProvisionedModelThroughputsPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listProvisionedModelThroughputs(software.amazon.awssdk.services.bedrock.model.ListProvisionedModelThroughputsRequest)
operation.
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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BedrockException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListProvisionedModelThroughputsIterable listProvisionedModelThroughputsPaginator(Consumer<ListProvisionedModelThroughputsRequest.Builder> listProvisionedModelThroughputsRequest) throws AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException
List the provisioned capacities. For more information, see Provisioned throughput in the Bedrock User Guide.
This is a variant of
listProvisionedModelThroughputs(software.amazon.awssdk.services.bedrock.model.ListProvisionedModelThroughputsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.bedrock.paginators.ListProvisionedModelThroughputsIterable responses = client.listProvisionedModelThroughputsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.bedrock.paginators.ListProvisionedModelThroughputsIterable responses = client
.listProvisionedModelThroughputsPaginator(request);
for (software.amazon.awssdk.services.bedrock.model.ListProvisionedModelThroughputsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.bedrock.paginators.ListProvisionedModelThroughputsIterable responses = client.listProvisionedModelThroughputsPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listProvisionedModelThroughputs(software.amazon.awssdk.services.bedrock.model.ListProvisionedModelThroughputsRequest)
operation.
This is a convenience which creates an instance of the ListProvisionedModelThroughputsRequest.Builder
avoiding the need to create one manually via ListProvisionedModelThroughputsRequest.builder()
listProvisionedModelThroughputsRequest - A Consumer that will call methods on
ListProvisionedModelThroughputsRequest.Builder to
create a request.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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BedrockException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException
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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BedrockException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListTagsForResourceResponse listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException
List the tags associated with the specified resource.
For more information, see Tagging resources in the Bedrock User Guide.
This is a convenience which creates an instance of the ListTagsForResourceRequest.Builder avoiding the
need to create one manually via ListTagsForResourceRequest.builder()
listTagsForResourceRequest - A Consumer that will call methods on
ListTagsForResourceRequest.Builder to create a
request.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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BedrockException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault PutModelInvocationLoggingConfigurationResponse putModelInvocationLoggingConfiguration(PutModelInvocationLoggingConfigurationRequest putModelInvocationLoggingConfigurationRequest) throws AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException
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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BedrockException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault PutModelInvocationLoggingConfigurationResponse putModelInvocationLoggingConfiguration(Consumer<PutModelInvocationLoggingConfigurationRequest.Builder> putModelInvocationLoggingConfigurationRequest) throws AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException
Set the configuration values for model invocation logging.
This is a convenience which creates an instance of the
PutModelInvocationLoggingConfigurationRequest.Builder avoiding the need to create one manually via
PutModelInvocationLoggingConfigurationRequest.builder()
putModelInvocationLoggingConfigurationRequest - A Consumer that will call methods on
PutModelInvocationLoggingConfigurationRequest.Builder
to create a request.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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BedrockException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault StopModelCustomizationJobResponse stopModelCustomizationJob(StopModelCustomizationJobRequest stopModelCustomizationJobRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException
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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BedrockException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault StopModelCustomizationJobResponse stopModelCustomizationJob(Consumer<StopModelCustomizationJobRequest.Builder> stopModelCustomizationJobRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException
Stops an active model customization job. For more information, see Custom models in the Bedrock User Guide.
This is a convenience which creates an instance of the StopModelCustomizationJobRequest.Builder avoiding
the need to create one manually via StopModelCustomizationJobRequest.builder()
stopModelCustomizationJobRequest - A Consumer that will call methods on
StopModelCustomizationJobRequest.Builder to create a
request.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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BedrockException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, TooManyTagsException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException
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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BedrockException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, TooManyTagsException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException
Associate tags with a resource. For more information, see Tagging resources in the Bedrock User Guide.
This is a convenience which creates an instance of the TagResourceRequest.Builder avoiding the need to
create one manually via TagResourceRequest.builder()
tagResourceRequest - A Consumer that will call methods on
TagResourceRequest.Builder to create a request.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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BedrockException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException
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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BedrockException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException
Remove one or more tags from a resource. For more information, see Tagging resources in the Bedrock User Guide.
This is a convenience which creates an instance of the UntagResourceRequest.Builder avoiding the need to
create one manually via UntagResourceRequest.builder()
untagResourceRequest - A Consumer that will call methods on
UntagResourceRequest.Builder to create a request.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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BedrockException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UpdateProvisionedModelThroughputResponse updateProvisionedModelThroughput(UpdateProvisionedModelThroughputRequest updateProvisionedModelThroughputRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException
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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BedrockException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UpdateProvisionedModelThroughputResponse updateProvisionedModelThroughput(Consumer<UpdateProvisionedModelThroughputRequest.Builder> updateProvisionedModelThroughputRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException
Update a provisioned throughput. For more information, see Provisioned throughput in the Bedrock User Guide.
This is a convenience which creates an instance of the UpdateProvisionedModelThroughputRequest.Builder
avoiding the need to create one manually via UpdateProvisionedModelThroughputRequest.builder()
updateProvisionedModelThroughputRequest - A Consumer that will call methods on
UpdateProvisionedModelThroughputRequest.Builder to
create a request.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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.BedrockException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptionstatic BedrockClient create()
BedrockClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider.static BedrockClientBuilder builder()
BedrockClient.static ServiceMetadata serviceMetadata()
default BedrockServiceClientConfiguration serviceClientConfiguration()
serviceClientConfiguration in interface AwsClientserviceClientConfiguration in interface SdkClientCopyright © 2023. All rights reserved.