Skip to main content

provisioned_model_throughputs

Creates, updates, deletes, gets or lists a provisioned_model_throughputs resource.

Overview

Nameprovisioned_model_throughputs
TypeResource
Idaws.bedrock.provisioned_model_throughputs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
commitment_durationstringCommitment duration of the Provisioned Throughput. (OneMonth, SixMonths)
commitment_expiration_timestring (date-time)The timestamp for when the commitment term for the Provisioned Throughput expires.
creation_timestring (date-time)The timestamp of the creation time for this Provisioned Throughput.
desired_model_arnstringThe Amazon Resource Name (ARN) of the model requested to be associated to this Provisioned Throughput. This value differs from the modelArn if updating hasn't completed. (pattern: <code>arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:(([0-9]{12}:custom-model/((imported)|([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}))(([:][a-z0-9-]{1,63}){0,2})?/[a-z0-9]{12})|(:foundation-model/[a-z0-9-]{1,63}[.]{1}([a-z0-9-]{1,63}[.]){0,2}[a-z0-9-]{1,63}([:][a-z0-9-]{1,63}){0,2}))</code>)
desired_model_unitsintegerThe number of model units that was requested for this Provisioned Throughput.
failure_messagestringA failure message for any issues that occurred during creation, updating, or deletion of the Provisioned Throughput.
foundation_model_arnstringThe Amazon Resource Name (ARN) of the base model for which the Provisioned Throughput was created, or of the base model that the custom model for which the Provisioned Throughput was created was customized. (pattern: <code>arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}::foundation-model/[a-z0-9-]{1,63}[.]{1}([a-z0-9-]{1,63}[.]){0,2}[a-z0-9-]{1,63}([:][a-z0-9-]{1,63}){0,2}</code>)
last_modified_timestring (date-time)The timestamp of the last time that this Provisioned Throughput was modified.
model_arnstringThe Amazon Resource Name (ARN) of the model associated with this Provisioned Throughput. (pattern: <code>arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:(([0-9]{12}:custom-model/((imported)|([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}))(([:][a-z0-9-]{1,63}){0,2})?/[a-z0-9]{12})|(:foundation-model/[a-z0-9-]{1,63}[.]{1}([a-z0-9-]{1,63}[.]){0,2}[a-z0-9-]{1,63}([:][a-z0-9-]{1,63}){0,2}))</code>)
model_unitsintegerThe number of model units allocated to this Provisioned Throughput.
provisioned_model_arnstringThe Amazon Resource Name (ARN) of the Provisioned Throughput. (pattern: <code>arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:[0-9]{12}:provisioned-model/[a-z0-9]{12}</code>)
provisioned_model_namestringThe name of the Provisioned Throughput. (pattern: <code>([0-9a-zA-Z][_-]?)+</code>)
statusstringThe status of the Provisioned Throughput. (Creating, InService, Updating, Failed)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_provisioned_model_throughputselectprovisioned_model_id, regionReturns details for a Provisioned Throughput. For more information, see Provisioned Throughput in the Amazon Bedrock User Guide.
list_provisioned_model_throughputsselectregioncreationTimeAfter, creationTimeBefore, statusEquals, modelArnEquals, nameContains, maxResults, nextToken, sortBy, sortOrderLists the Provisioned Throughputs in the account. For more information, see Provisioned Throughput in the Amazon Bedrock User Guide.
create_provisioned_model_throughputinsertregion, modelUnits, provisionedModelName, modelIdCreates dedicated throughput for a base or custom model with the model units and for the duration that you specify. For pricing details, see Amazon Bedrock Pricing. For more information, see Provisioned Throughput in the Amazon Bedrock User Guide.
update_provisioned_model_throughputupdateprovisioned_model_id, regionUpdates the name or associated model for a Provisioned Throughput. For more information, see Provisioned Throughput in the Amazon Bedrock User Guide.
delete_provisioned_model_throughputdeleteprovisioned_model_id, regionDeletes a Provisioned Throughput. You can't delete a Provisioned Throughput before the commitment term is over. For more information, see Provisioned Throughput in the Amazon Bedrock User Guide.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
provisioned_model_idstringThe Amazon Resource Name (ARN) or name of the Provisioned Throughput.
regionstringAWS region (default: us-east-1)
creationTimeAfterstring (date-time)A filter that returns Provisioned Throughputs created after the specified time.
creationTimeBeforestring (date-time)A filter that returns Provisioned Throughputs created before the specified time.
maxResultsintegerTHe maximum number of results to return in the response. If there are more results than the number you specified, the response returns a nextToken value. To see the next batch of results, send the nextToken value in another list request.
modelArnEqualsstringA filter that returns Provisioned Throughputs whose model Amazon Resource Name (ARN) is equal to the value that you specify.
nameContainsstringA filter that returns Provisioned Throughputs if their name contains the expression that you specify.
nextTokenstringIf there are more results than the number you specified in the maxResults field, the response returns a nextToken value. To see the next batch of results, specify the nextToken value in this field.
sortBystringThe field by which to sort the returned list of Provisioned Throughputs.
sortOrderstringThe sort order of the results.
statusEqualsstringA filter that returns Provisioned Throughputs if their statuses matches the value that you specify.

SELECT examples

Returns details for a Provisioned Throughput. For more information, see Provisioned Throughput in the Amazon Bedrock User Guide.

SELECT
commitment_duration,
commitment_expiration_time,
creation_time,
desired_model_arn,
desired_model_units,
failure_message,
foundation_model_arn,
last_modified_time,
model_arn,
model_units,
provisioned_model_arn,
provisioned_model_name,
status
FROM aws.bedrock.provisioned_model_throughputs
WHERE provisioned_model_id = '{{ provisioned_model_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates dedicated throughput for a base or custom model with the model units and for the duration that you specify. For pricing details, see Amazon Bedrock Pricing. For more information, see Provisioned Throughput in the Amazon Bedrock User Guide.

INSERT INTO aws.bedrock.provisioned_model_throughputs (
clientRequestToken,
modelUnits,
provisionedModelName,
modelId,
commitmentDuration,
tags,
region
)
SELECT
'{{ clientRequestToken }}',
{{ modelUnits }} /* required */,
'{{ provisionedModelName }}' /* required */,
'{{ modelId }}' /* required */,
'{{ commitmentDuration }}',
'{{ tags }}',
'{{ region }}'
RETURNING
provisioned_model_arn
;

UPDATE examples

Updates the name or associated model for a Provisioned Throughput. For more information, see Provisioned Throughput in the Amazon Bedrock User Guide.

UPDATE aws.bedrock.provisioned_model_throughputs
SET
desiredProvisionedModelName = '{{ desiredProvisionedModelName }}',
desiredModelId = '{{ desiredModelId }}'
WHERE
provisioned_model_id = '{{ provisioned_model_id }}' --required
AND region = '{{ region }}' --required;

DELETE examples

Deletes a Provisioned Throughput. You can't delete a Provisioned Throughput before the commitment term is over. For more information, see Provisioned Throughput in the Amazon Bedrock User Guide.

DELETE FROM aws.bedrock.provisioned_model_throughputs
WHERE provisioned_model_id = '{{ provisioned_model_id }}' --required
AND region = '{{ region }}' --required
;