aws_sdk_imagebuilder/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    ///   - [`component_build_version_arn(impl Into<String>)`](crate::operation::get_component::builders::GetComponentFluentBuilder::component_build_version_arn) / [`set_component_build_version_arn(Option<String>)`](crate::operation::get_component::builders::GetComponentFluentBuilder::set_component_build_version_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the component that you want to get. Regex requires the suffix <code>/\d+$</code>.</p><br>
7    /// - On success, responds with [`GetComponentOutput`](crate::operation::get_component::GetComponentOutput) with field(s):
8    ///   - [`request_id(Option<String>)`](crate::operation::get_component::GetComponentOutput::request_id): <p>The request ID that uniquely identifies this request.</p>
9    ///   - [`component(Option<Component>)`](crate::operation::get_component::GetComponentOutput::component): <p>The component object specified in the request.</p>
10    /// - On failure, responds with [`SdkError<GetComponentError>`](crate::operation::get_component::GetComponentError)
11    pub fn get_component(&self) -> crate::operation::get_component::builders::GetComponentFluentBuilder {
12        crate::operation::get_component::builders::GetComponentFluentBuilder::new(self.handle.clone())
13    }
14}