aws_sdk_proton/client/
get_component.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 [`GetComponent`](crate::operation::get_component::builders::GetComponentFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`name(impl Into<String>)`](crate::operation::get_component::builders::GetComponentFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::get_component::builders::GetComponentFluentBuilder::set_name):<br>required: **true**<br><p>The name of the component that you want to get the detailed data for.</p><br>
7    /// - On success, responds with [`GetComponentOutput`](crate::operation::get_component::GetComponentOutput) with field(s):
8    ///   - [`component(Option<Component>)`](crate::operation::get_component::GetComponentOutput::component): <p>The detailed data of the requested component.</p>
9    /// - On failure, responds with [`SdkError<GetComponentError>`](crate::operation::get_component::GetComponentError)
10    pub fn get_component(&self) -> crate::operation::get_component::builders::GetComponentFluentBuilder {
11        crate::operation::get_component::builders::GetComponentFluentBuilder::new(self.handle.clone())
12    }
13}