#[non_exhaustive]pub struct LambdaFunctionRecipeSource {
pub lambda_arn: String,
pub component_name: Option<String>,
pub component_version: Option<String>,
pub component_platforms: Option<Vec<ComponentPlatform>>,
pub component_dependencies: Option<HashMap<String, ComponentDependencyRequirement>>,
pub component_lambda_parameters: Option<LambdaExecutionParameters>,
}
Expand description
Contains information about an Lambda function to import to create a component.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.lambda_arn: String
The ARN of the Lambda function. The ARN must include the version of the function to import. You can't use version aliases like $LATEST
.
component_name: Option<String>
The name of the component.
Defaults to the name of the Lambda function.
component_version: Option<String>
The version of the component.
Defaults to the version of the Lambda function as a semantic version. For example, if your function version is 3
, the component version becomes 3.0.0
.
component_platforms: Option<Vec<ComponentPlatform>>
The platforms that the component version supports.
component_dependencies: Option<HashMap<String, ComponentDependencyRequirement>>
The component versions on which this Lambda function component depends.
component_lambda_parameters: Option<LambdaExecutionParameters>
The system and runtime parameters for the Lambda function as it runs on the Greengrass core device.
Implementations§
source§impl LambdaFunctionRecipeSource
impl LambdaFunctionRecipeSource
sourcepub fn lambda_arn(&self) -> &str
pub fn lambda_arn(&self) -> &str
The ARN of the Lambda function. The ARN must include the version of the function to import. You can't use version aliases like $LATEST
.
sourcepub fn component_name(&self) -> Option<&str>
pub fn component_name(&self) -> Option<&str>
The name of the component.
Defaults to the name of the Lambda function.
sourcepub fn component_version(&self) -> Option<&str>
pub fn component_version(&self) -> Option<&str>
The version of the component.
Defaults to the version of the Lambda function as a semantic version. For example, if your function version is 3
, the component version becomes 3.0.0
.
sourcepub fn component_platforms(&self) -> &[ComponentPlatform]
pub fn component_platforms(&self) -> &[ComponentPlatform]
The platforms that the component version supports.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .component_platforms.is_none()
.
sourcepub fn component_dependencies(
&self,
) -> Option<&HashMap<String, ComponentDependencyRequirement>>
pub fn component_dependencies( &self, ) -> Option<&HashMap<String, ComponentDependencyRequirement>>
The component versions on which this Lambda function component depends.
sourcepub fn component_lambda_parameters(&self) -> Option<&LambdaExecutionParameters>
pub fn component_lambda_parameters(&self) -> Option<&LambdaExecutionParameters>
The system and runtime parameters for the Lambda function as it runs on the Greengrass core device.
source§impl LambdaFunctionRecipeSource
impl LambdaFunctionRecipeSource
sourcepub fn builder() -> LambdaFunctionRecipeSourceBuilder
pub fn builder() -> LambdaFunctionRecipeSourceBuilder
Creates a new builder-style object to manufacture LambdaFunctionRecipeSource
.
Trait Implementations§
source§impl Clone for LambdaFunctionRecipeSource
impl Clone for LambdaFunctionRecipeSource
source§fn clone(&self) -> LambdaFunctionRecipeSource
fn clone(&self) -> LambdaFunctionRecipeSource
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LambdaFunctionRecipeSource
impl Debug for LambdaFunctionRecipeSource
source§impl PartialEq for LambdaFunctionRecipeSource
impl PartialEq for LambdaFunctionRecipeSource
source§fn eq(&self, other: &LambdaFunctionRecipeSource) -> bool
fn eq(&self, other: &LambdaFunctionRecipeSource) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for LambdaFunctionRecipeSource
Auto Trait Implementations§
impl Freeze for LambdaFunctionRecipeSource
impl RefUnwindSafe for LambdaFunctionRecipeSource
impl Send for LambdaFunctionRecipeSource
impl Sync for LambdaFunctionRecipeSource
impl Unpin for LambdaFunctionRecipeSource
impl UnwindSafe for LambdaFunctionRecipeSource
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more