Bedrock / Client / create_provisioned_model_throughput

create_provisioned_model_throughput#

Bedrock.Client.create_provisioned_model_throughput(**kwargs)#

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.

See also: AWS API Documentation

Request Syntax

response = client.create_provisioned_model_throughput(
    clientRequestToken='string',
    modelUnits=123,
    provisionedModelName='string',
    modelId='string',
    commitmentDuration='OneMonth'|'SixMonths',
    tags=[
        {
            'key': 'string',
            'value': 'string'
        },
    ]
)
Parameters:
  • clientRequestToken (string) –

    Unique token value that you can provide. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error.

    This field is autopopulated if not provided.

  • modelUnits (integer) –

    [REQUIRED]

    Number of model units to allocate.

  • provisionedModelName (string) –

    [REQUIRED]

    Unique name for this provisioned throughput.

  • modelId (string) –

    [REQUIRED]

    Name or ARN of the model to associate with this provisioned throughput.

  • commitmentDuration (string) – Commitment duration requested for the provisioned throughput.

  • tags (list) –

    Tags to associate with this provisioned throughput.

    • (dict) –

      Definition of the key/value pair for a tag.

      • key (string) – [REQUIRED]

        Key for the tag.

      • value (string) – [REQUIRED]

        Value for the tag.

Return type:

dict

Returns:

Response Syntax

{
    'provisionedModelArn': 'string'
}

Response Structure

  • (dict) –

    • provisionedModelArn (string) –

      The ARN for this provisioned throughput.

Exceptions

  • Bedrock.Client.exceptions.ResourceNotFoundException

  • Bedrock.Client.exceptions.AccessDeniedException

  • Bedrock.Client.exceptions.ValidationException

  • Bedrock.Client.exceptions.InternalServerException

  • Bedrock.Client.exceptions.TooManyTagsException

  • Bedrock.Client.exceptions.ServiceQuotaExceededException

  • Bedrock.Client.exceptions.ThrottlingException