aws_sdk_codedeploy/client/
get_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 [`GetDeployment`](crate::operation::get_deployment::builders::GetDeploymentFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`deployment_id(impl Into<String>)`](crate::operation::get_deployment::builders::GetDeploymentFluentBuilder::deployment_id) / [`set_deployment_id(Option<String>)`](crate::operation::get_deployment::builders::GetDeploymentFluentBuilder::set_deployment_id):<br>required: **true**<br><p>The unique ID of a deployment associated with the user or Amazon Web Services account.</p><br>
7    /// - On success, responds with [`GetDeploymentOutput`](crate::operation::get_deployment::GetDeploymentOutput) with field(s):
8    ///   - [`deployment_info(Option<DeploymentInfo>)`](crate::operation::get_deployment::GetDeploymentOutput::deployment_info): <p>Information about the deployment.</p>
9    /// - On failure, responds with [`SdkError<GetDeploymentError>`](crate::operation::get_deployment::GetDeploymentError)
10    pub fn get_deployment(&self) -> crate::operation::get_deployment::builders::GetDeploymentFluentBuilder {
11        crate::operation::get_deployment::builders::GetDeploymentFluentBuilder::new(self.handle.clone())
12    }
13}