1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateProvisionedModelThroughput`](crate::operation::create_provisioned_model_throughput::builders::CreateProvisionedModelThroughputFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`client_request_token(impl Into<String>)`](crate::operation::create_provisioned_model_throughput::builders::CreateProvisionedModelThroughputFluentBuilder::client_request_token) / [`set_client_request_token(Option<String>)`](crate::operation::create_provisioned_model_throughput::builders::CreateProvisionedModelThroughputFluentBuilder::set_client_request_token):<br>required: **false**<br><p>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 <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html">Ensuring idempotency</a> in the Amazon S3 User Guide.</p><br>
    ///   - [`model_units(i32)`](crate::operation::create_provisioned_model_throughput::builders::CreateProvisionedModelThroughputFluentBuilder::model_units) / [`set_model_units(Option<i32>)`](crate::operation::create_provisioned_model_throughput::builders::CreateProvisionedModelThroughputFluentBuilder::set_model_units):<br>required: **true**<br><p>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 <a href="https://console.aws.amazon.com/support/home#/case/create?issueType=service-limit-increase">Amazon Web Services support center</a> to request MUs.</p> <p>For model unit quotas, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/quotas.html#prov-thru-quotas">Provisioned Throughput quotas</a> in the Amazon Bedrock User Guide.</p> <p>For more information about what an MU specifies, contact your Amazon Web Services account manager.</p><br>
    ///   - [`provisioned_model_name(impl Into<String>)`](crate::operation::create_provisioned_model_throughput::builders::CreateProvisionedModelThroughputFluentBuilder::provisioned_model_name) / [`set_provisioned_model_name(Option<String>)`](crate::operation::create_provisioned_model_throughput::builders::CreateProvisionedModelThroughputFluentBuilder::set_provisioned_model_name):<br>required: **true**<br><p>The name for this Provisioned Throughput.</p><br>
    ///   - [`model_id(impl Into<String>)`](crate::operation::create_provisioned_model_throughput::builders::CreateProvisionedModelThroughputFluentBuilder::model_id) / [`set_model_id(Option<String>)`](crate::operation::create_provisioned_model_throughput::builders::CreateProvisionedModelThroughputFluentBuilder::set_model_id):<br>required: **true**<br><p>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 <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-ids.html#prov-throughput-models">Amazon Bedrock model IDs for purchasing Provisioned Throughput</a> in the Amazon Bedrock User Guide.</p><br>
    ///   - [`commitment_duration(CommitmentDuration)`](crate::operation::create_provisioned_model_throughput::builders::CreateProvisionedModelThroughputFluentBuilder::commitment_duration) / [`set_commitment_duration(Option<CommitmentDuration>)`](crate::operation::create_provisioned_model_throughput::builders::CreateProvisionedModelThroughputFluentBuilder::set_commitment_duration):<br>required: **false**<br><p>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.</p> <p>Custom models support all levels of commitment. To see which base models support no commitment, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/pt-supported.html">Supported regions and models for Provisioned Throughput</a> in the Amazon Bedrock User Guide</p><br>
    ///   - [`tags(Tag)`](crate::operation::create_provisioned_model_throughput::builders::CreateProvisionedModelThroughputFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::create_provisioned_model_throughput::builders::CreateProvisionedModelThroughputFluentBuilder::set_tags):<br>required: **false**<br><p>Tags to associate with this Provisioned Throughput.</p><br>
    /// - On success, responds with [`CreateProvisionedModelThroughputOutput`](crate::operation::create_provisioned_model_throughput::CreateProvisionedModelThroughputOutput) with field(s):
    ///   - [`provisioned_model_arn(String)`](crate::operation::create_provisioned_model_throughput::CreateProvisionedModelThroughputOutput::provisioned_model_arn): <p>The Amazon Resource Name (ARN) for this Provisioned Throughput.</p>
    /// - On failure, responds with [`SdkError<CreateProvisionedModelThroughputError>`](crate::operation::create_provisioned_model_throughput::CreateProvisionedModelThroughputError)
    pub fn create_provisioned_model_throughput(
        &self,
    ) -> crate::operation::create_provisioned_model_throughput::builders::CreateProvisionedModelThroughputFluentBuilder {
        crate::operation::create_provisioned_model_throughput::builders::CreateProvisionedModelThroughputFluentBuilder::new(self.handle.clone())
    }
}