Skip to content

BedrockClient.create_provisioned_model_throughput

rboto-bedrock==0.4.0 · Service index · Types

Model summary (excerpt): 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 .

Install and imports

python -m pip install "rboto[bedrock]==0.4.0"
from rboto import BedrockClient
from collections.abc import Sequence
from rboto_bedrock.types import (
    CommitmentDuration,
    CreateProvisionedModelThroughputOutput,
    Tag,
)

Signature

async def create_provisioned_model_throughput(
    *,
    model_units: int,
    provisioned_model_name: str,
    model_id: str,
    client_request_token: str | None = None,
    commitment_duration: CommitmentDuration | None = None,
    tags: Sequence[Tag] | None = None,
) -> CreateProvisionedModelThroughputOutput: ...

Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.

Arguments

Argument Required Model notes (excerpt)
model_units Yes Number of model units to allocate. A model unit delivers a specific throughput level for the specified model. The throughput level of a model unit specifies the total number of input and output tokens that it can process and generate within a span of one minute. By default, your account has no model units for purchasing Provisioned Throughputs with commitment. You must first visit the Amazon...
provisioned_model_name Yes The name for this Provisioned Throughput.
model_id Yes The Amazon Resource Name (ARN) or name of the model to associate with this Provisioned Throughput. For a list of models for which you can purchase Provisioned Throughput, see Amazon Bedrock model IDs for purchasing Provisioned Throughput in the Amazon Bedrock User Guide .
client_request_token No A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency in the Amazon S3 User Guide.
commitment_duration No The commitment duration requested for the Provisioned Throughput. Billing occurs hourly and is discounted for longer commitment terms. To request a no-commit Provisioned Throughput, omit this field. Custom models support all levels of commitment. To see which base models support no commitment, see Supported regions and models for Provisioned Throughput in the Amazon Bedrock User Guide
tags No Tags to associate with this Provisioned Throughput.

Output

CreateProvisionedModelThroughputOutput.

Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.

Field Type Presence References
provisioned_model_arn str Always present —

| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.

CommitmentDuration, CreateProvisionedModelThroughputOutput, Tag

Follow these links for nested inputs and outputs; recursive types link back to the same type page.

Pagination and streaming

No generated paginator for this operation.

No output stream.

Errors

Import from rboto_bedrock.exceptions:

AccessDeniedError, InternalServerError, ResourceNotFoundError, ServiceQuotaExceededError, ThrottlingError, TooManyTagsError, ValidationError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model