aws_sdk_bedrock/client/
create_custom_model_deployment.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`CreateCustomModelDeployment`](crate::operation::create_custom_model_deployment::builders::CreateCustomModelDeploymentFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`model_deployment_name(impl Into<String>)`](crate::operation::create_custom_model_deployment::builders::CreateCustomModelDeploymentFluentBuilder::model_deployment_name) / [`set_model_deployment_name(Option<String>)`](crate::operation::create_custom_model_deployment::builders::CreateCustomModelDeploymentFluentBuilder::set_model_deployment_name):<br>required: **true**<br><p>The name for the custom model deployment. The name must be unique within your Amazon Web Services account and Region.</p><br>
7    ///   - [`model_arn(impl Into<String>)`](crate::operation::create_custom_model_deployment::builders::CreateCustomModelDeploymentFluentBuilder::model_arn) / [`set_model_arn(Option<String>)`](crate::operation::create_custom_model_deployment::builders::CreateCustomModelDeploymentFluentBuilder::set_model_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the custom model to deploy for on-demand inference. The custom model must be in the <code>Active</code> state.</p><br>
8    ///   - [`description(impl Into<String>)`](crate::operation::create_custom_model_deployment::builders::CreateCustomModelDeploymentFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_custom_model_deployment::builders::CreateCustomModelDeploymentFluentBuilder::set_description):<br>required: **false**<br><p>A description for the custom model deployment to help you identify its purpose.</p><br>
9    ///   - [`tags(Tag)`](crate::operation::create_custom_model_deployment::builders::CreateCustomModelDeploymentFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::create_custom_model_deployment::builders::CreateCustomModelDeploymentFluentBuilder::set_tags):<br>required: **false**<br><p>Tags to assign to the custom model deployment. You can use tags to organize and track your Amazon Web Services resources for cost allocation and management purposes.</p><br>
10    ///   - [`client_request_token(impl Into<String>)`](crate::operation::create_custom_model_deployment::builders::CreateCustomModelDeploymentFluentBuilder::client_request_token) / [`set_client_request_token(Option<String>)`](crate::operation::create_custom_model_deployment::builders::CreateCustomModelDeploymentFluentBuilder::set_client_request_token):<br>required: **false**<br><p>A unique, case-sensitive identifier to ensure that the operation 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/bedrock/latest/userguide/model-customization-idempotency.html">Ensuring idempotency</a>.</p><br>
11    /// - On success, responds with [`CreateCustomModelDeploymentOutput`](crate::operation::create_custom_model_deployment::CreateCustomModelDeploymentOutput) with field(s):
12    ///   - [`custom_model_deployment_arn(String)`](crate::operation::create_custom_model_deployment::CreateCustomModelDeploymentOutput::custom_model_deployment_arn): <p>The Amazon Resource Name (ARN) of the custom model deployment. Use this ARN as the <code>modelId</code> parameter when invoking the model with the <code>InvokeModel</code> or <code>Converse</code> operations.</p>
13    /// - On failure, responds with [`SdkError<CreateCustomModelDeploymentError>`](crate::operation::create_custom_model_deployment::CreateCustomModelDeploymentError)
14    pub fn create_custom_model_deployment(
15        &self,
16    ) -> crate::operation::create_custom_model_deployment::builders::CreateCustomModelDeploymentFluentBuilder {
17        crate::operation::create_custom_model_deployment::builders::CreateCustomModelDeploymentFluentBuilder::new(self.handle.clone())
18    }
19}