aws_sdk_bedrock/client/
get_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 [`GetCustomModelDeployment`](crate::operation::get_custom_model_deployment::builders::GetCustomModelDeploymentFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`custom_model_deployment_identifier(impl Into<String>)`](crate::operation::get_custom_model_deployment::builders::GetCustomModelDeploymentFluentBuilder::custom_model_deployment_identifier) / [`set_custom_model_deployment_identifier(Option<String>)`](crate::operation::get_custom_model_deployment::builders::GetCustomModelDeploymentFluentBuilder::set_custom_model_deployment_identifier):<br>required: **true**<br><p>The Amazon Resource Name (ARN) or name of the custom model deployment to retrieve information about.</p><br>
7    /// - On success, responds with [`GetCustomModelDeploymentOutput`](crate::operation::get_custom_model_deployment::GetCustomModelDeploymentOutput) with field(s):
8    ///   - [`custom_model_deployment_arn(String)`](crate::operation::get_custom_model_deployment::GetCustomModelDeploymentOutput::custom_model_deployment_arn): <p>The Amazon Resource Name (ARN) of the custom model deployment.</p>
9    ///   - [`model_deployment_name(String)`](crate::operation::get_custom_model_deployment::GetCustomModelDeploymentOutput::model_deployment_name): <p>The name of the custom model deployment.</p>
10    ///   - [`model_arn(String)`](crate::operation::get_custom_model_deployment::GetCustomModelDeploymentOutput::model_arn): <p>The Amazon Resource Name (ARN) of the custom model associated with this deployment.</p>
11    ///   - [`created_at(DateTime)`](crate::operation::get_custom_model_deployment::GetCustomModelDeploymentOutput::created_at): <p>The date and time when the custom model deployment was created.</p>
12    ///   - [`status(CustomModelDeploymentStatus)`](crate::operation::get_custom_model_deployment::GetCustomModelDeploymentOutput::status): <p>The status of the custom model deployment. Possible values are:</p> <ul>  <li>   <p><code>CREATING</code> - The deployment is being set up and prepared for inference.</p></li>  <li>   <p><code>ACTIVE</code> - The deployment is ready and available for inference requests.</p></li>  <li>   <p><code>FAILED</code> - The deployment failed to be created or became unavailable.</p></li> </ul>
13    ///   - [`description(Option<String>)`](crate::operation::get_custom_model_deployment::GetCustomModelDeploymentOutput::description): <p>The description of the custom model deployment.</p>
14    ///   - [`failure_message(Option<String>)`](crate::operation::get_custom_model_deployment::GetCustomModelDeploymentOutput::failure_message): <p>If the deployment status is <code>FAILED</code>, this field contains a message describing the failure reason.</p>
15    ///   - [`last_updated_at(Option<DateTime>)`](crate::operation::get_custom_model_deployment::GetCustomModelDeploymentOutput::last_updated_at): <p>The date and time when the custom model deployment was last updated.</p>
16    /// - On failure, responds with [`SdkError<GetCustomModelDeploymentError>`](crate::operation::get_custom_model_deployment::GetCustomModelDeploymentError)
17    pub fn get_custom_model_deployment(&self) -> crate::operation::get_custom_model_deployment::builders::GetCustomModelDeploymentFluentBuilder {
18        crate::operation::get_custom_model_deployment::builders::GetCustomModelDeploymentFluentBuilder::new(self.handle.clone())
19    }
20}