aws_sdk_greengrassv2/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 /// - [`recipe_output_format(RecipeOutputFormat)`](crate::operation::get_component::builders::GetComponentFluentBuilder::recipe_output_format) / [`set_recipe_output_format(Option<RecipeOutputFormat>)`](crate::operation::get_component::builders::GetComponentFluentBuilder::set_recipe_output_format):<br>required: **false**<br><p>The format of the recipe.</p><br>
7 /// - [`arn(impl Into<String>)`](crate::operation::get_component::builders::GetComponentFluentBuilder::arn) / [`set_arn(Option<String>)`](crate::operation::get_component::builders::GetComponentFluentBuilder::set_arn):<br>required: **true**<br><p>The <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">ARN</a> of the component version.</p><br>
8 /// - On success, responds with [`GetComponentOutput`](crate::operation::get_component::GetComponentOutput) with field(s):
9 /// - [`recipe_output_format(RecipeOutputFormat)`](crate::operation::get_component::GetComponentOutput::recipe_output_format): <p>The format of the recipe.</p>
10 /// - [`recipe(Blob)`](crate::operation::get_component::GetComponentOutput::recipe): <p>The recipe of the component version.</p>
11 /// - [`tags(Option<HashMap::<String, String>>)`](crate::operation::get_component::GetComponentOutput::tags): <p>A list of key-value pairs that contain metadata for the resource. For more information, see <a href="https://docs.aws.amazon.com/greengrass/v2/developerguide/tag-resources.html">Tag your resources</a> in the <i>IoT Greengrass V2 Developer Guide</i>.</p>
12 /// - On failure, responds with [`SdkError<GetComponentError>`](crate::operation::get_component::GetComponentError)
13 pub fn get_component(&self) -> crate::operation::get_component::builders::GetComponentFluentBuilder {
14 crate::operation::get_component::builders::GetComponentFluentBuilder::new(self.handle.clone())
15 }
16}