aws_sdk_greengrass/client/
get_function_definition.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 [`GetFunctionDefinition`](crate::operation::get_function_definition::builders::GetFunctionDefinitionFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`function_definition_id(impl Into<String>)`](crate::operation::get_function_definition::builders::GetFunctionDefinitionFluentBuilder::function_definition_id) / [`set_function_definition_id(Option<String>)`](crate::operation::get_function_definition::builders::GetFunctionDefinitionFluentBuilder::set_function_definition_id):<br>required: **true**<br>The ID of the Lambda function definition.<br>
7    /// - On success, responds with [`GetFunctionDefinitionOutput`](crate::operation::get_function_definition::GetFunctionDefinitionOutput) with field(s):
8    ///   - [`arn(Option<String>)`](crate::operation::get_function_definition::GetFunctionDefinitionOutput::arn): The ARN of the definition.
9    ///   - [`creation_timestamp(Option<String>)`](crate::operation::get_function_definition::GetFunctionDefinitionOutput::creation_timestamp): The time, in milliseconds since the epoch, when the definition was created.
10    ///   - [`id(Option<String>)`](crate::operation::get_function_definition::GetFunctionDefinitionOutput::id): The ID of the definition.
11    ///   - [`last_updated_timestamp(Option<String>)`](crate::operation::get_function_definition::GetFunctionDefinitionOutput::last_updated_timestamp): The time, in milliseconds since the epoch, when the definition was last updated.
12    ///   - [`latest_version(Option<String>)`](crate::operation::get_function_definition::GetFunctionDefinitionOutput::latest_version): The ID of the latest version associated with the definition.
13    ///   - [`latest_version_arn(Option<String>)`](crate::operation::get_function_definition::GetFunctionDefinitionOutput::latest_version_arn): The ARN of the latest version associated with the definition.
14    ///   - [`name(Option<String>)`](crate::operation::get_function_definition::GetFunctionDefinitionOutput::name): The name of the definition.
15    ///   - [`tags(Option<HashMap::<String, String>>)`](crate::operation::get_function_definition::GetFunctionDefinitionOutput::tags): Tag(s) attached to the resource arn.
16    /// - On failure, responds with [`SdkError<GetFunctionDefinitionError>`](crate::operation::get_function_definition::GetFunctionDefinitionError)
17    pub fn get_function_definition(&self) -> crate::operation::get_function_definition::builders::GetFunctionDefinitionFluentBuilder {
18        crate::operation::get_function_definition::builders::GetFunctionDefinitionFluentBuilder::new(self.handle.clone())
19    }
20}