aws-sdk-greengrassv2 1.112.0

AWS SDK for AWS IoT Greengrass V2
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetComponent`](crate::operation::get_component::builders::GetComponentFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`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>
    ///   - [`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>
    /// - On success, responds with [`GetComponentOutput`](crate::operation::get_component::GetComponentOutput) with field(s):
    ///   - [`recipe_output_format(RecipeOutputFormat)`](crate::operation::get_component::GetComponentOutput::recipe_output_format): <p>The format of the recipe.</p>
    ///   - [`recipe(Blob)`](crate::operation::get_component::GetComponentOutput::recipe): <p>The recipe of the component version.</p>
    ///   - [`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>
    /// - On failure, responds with [`SdkError<GetComponentError>`](crate::operation::get_component::GetComponentError)
    pub fn get_component(&self) -> crate::operation::get_component::builders::GetComponentFluentBuilder {
        crate::operation::get_component::builders::GetComponentFluentBuilder::new(self.handle.clone())
    }
}