aws_sdk_m2/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 identifier for the deployment.</p><br>
7 /// - [`application_id(impl Into<String>)`](crate::operation::get_deployment::builders::GetDeploymentFluentBuilder::application_id) / [`set_application_id(Option<String>)`](crate::operation::get_deployment::builders::GetDeploymentFluentBuilder::set_application_id):<br>required: **true**<br><p>The unique identifier of the application.</p><br>
8 /// - On success, responds with [`GetDeploymentOutput`](crate::operation::get_deployment::GetDeploymentOutput) with field(s):
9 /// - [`deployment_id(String)`](crate::operation::get_deployment::GetDeploymentOutput::deployment_id): <p>The unique identifier of the deployment.</p>
10 /// - [`application_id(String)`](crate::operation::get_deployment::GetDeploymentOutput::application_id): <p>The unique identifier of the application.</p>
11 /// - [`environment_id(String)`](crate::operation::get_deployment::GetDeploymentOutput::environment_id): <p>The unique identifier of the runtime environment.</p>
12 /// - [`application_version(i32)`](crate::operation::get_deployment::GetDeploymentOutput::application_version): <p>The application version.</p>
13 /// - [`status(DeploymentLifecycle)`](crate::operation::get_deployment::GetDeploymentOutput::status): <p>The status of the deployment.</p>
14 /// - [`creation_time(DateTime)`](crate::operation::get_deployment::GetDeploymentOutput::creation_time): <p>The timestamp when the deployment was created.</p>
15 /// - [`status_reason(Option<String>)`](crate::operation::get_deployment::GetDeploymentOutput::status_reason): <p>The reason for the reported status.</p>
16 /// - On failure, responds with [`SdkError<GetDeploymentError>`](crate::operation::get_deployment::GetDeploymentError)
17 pub fn get_deployment(&self) -> crate::operation::get_deployment::builders::GetDeploymentFluentBuilder {
18 crate::operation::get_deployment::builders::GetDeploymentFluentBuilder::new(self.handle.clone())
19 }
20}