aws_sdk_proton/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    ///   - [`id(impl Into<String>)`](crate::operation::get_deployment::builders::GetDeploymentFluentBuilder::id) / [`set_id(Option<String>)`](crate::operation::get_deployment::builders::GetDeploymentFluentBuilder::set_id):<br>required: **true**<br><p>The ID of the deployment that you want to get the detailed data for.</p><br>
7    ///   - [`environment_name(impl Into<String>)`](crate::operation::get_deployment::builders::GetDeploymentFluentBuilder::environment_name) / [`set_environment_name(Option<String>)`](crate::operation::get_deployment::builders::GetDeploymentFluentBuilder::set_environment_name):<br>required: **false**<br><p>The name of a environment that you want to get the detailed data for.</p><br>
8    ///   - [`service_name(impl Into<String>)`](crate::operation::get_deployment::builders::GetDeploymentFluentBuilder::service_name) / [`set_service_name(Option<String>)`](crate::operation::get_deployment::builders::GetDeploymentFluentBuilder::set_service_name):<br>required: **false**<br><p>The name of the service associated with the given deployment ID.</p><br>
9    ///   - [`service_instance_name(impl Into<String>)`](crate::operation::get_deployment::builders::GetDeploymentFluentBuilder::service_instance_name) / [`set_service_instance_name(Option<String>)`](crate::operation::get_deployment::builders::GetDeploymentFluentBuilder::set_service_instance_name):<br>required: **false**<br><p>The name of the service instance associated with the given deployment ID. <code>serviceName</code> must be specified to identify the service instance.</p><br>
10    ///   - [`component_name(impl Into<String>)`](crate::operation::get_deployment::builders::GetDeploymentFluentBuilder::component_name) / [`set_component_name(Option<String>)`](crate::operation::get_deployment::builders::GetDeploymentFluentBuilder::set_component_name):<br>required: **false**<br><p>The name of a component that you want to get the detailed data for.</p><br>
11    /// - On success, responds with [`GetDeploymentOutput`](crate::operation::get_deployment::GetDeploymentOutput) with field(s):
12    ///   - [`deployment(Option<Deployment>)`](crate::operation::get_deployment::GetDeploymentOutput::deployment): <p>The detailed data of the requested deployment.</p>
13    /// - On failure, responds with [`SdkError<GetDeploymentError>`](crate::operation::get_deployment::GetDeploymentError)
14    pub fn get_deployment(&self) -> crate::operation::get_deployment::builders::GetDeploymentFluentBuilder {
15        crate::operation::get_deployment::builders::GetDeploymentFluentBuilder::new(self.handle.clone())
16    }
17}