#[non_exhaustive]pub struct LambdaFunctionRecipeSource {
pub lambda_arn: Option<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: Option<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
sourceimpl LambdaFunctionRecipeSource
impl LambdaFunctionRecipeSource
sourcepub fn lambda_arn(&self) -> Option<&str>
pub fn lambda_arn(&self) -> Option<&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) -> Option<&[ComponentPlatform]>
pub fn component_platforms(&self) -> Option<&[ComponentPlatform]>
The platforms that the component version supports.
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.
sourceimpl LambdaFunctionRecipeSource
impl LambdaFunctionRecipeSource
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture LambdaFunctionRecipeSource
Trait Implementations
sourceimpl Clone for LambdaFunctionRecipeSource
impl Clone for LambdaFunctionRecipeSource
sourcefn clone(&self) -> LambdaFunctionRecipeSource
fn clone(&self) -> LambdaFunctionRecipeSource
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for LambdaFunctionRecipeSource
impl Debug for LambdaFunctionRecipeSource
sourceimpl PartialEq<LambdaFunctionRecipeSource> for LambdaFunctionRecipeSource
impl PartialEq<LambdaFunctionRecipeSource> for LambdaFunctionRecipeSource
sourcefn eq(&self, other: &LambdaFunctionRecipeSource) -> bool
fn eq(&self, other: &LambdaFunctionRecipeSource) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &LambdaFunctionRecipeSource) -> bool
fn ne(&self, other: &LambdaFunctionRecipeSource) -> bool
This method tests for !=
.
impl StructuralPartialEq for LambdaFunctionRecipeSource
Auto Trait Implementations
impl RefUnwindSafe for LambdaFunctionRecipeSource
impl Send for LambdaFunctionRecipeSource
impl Sync for LambdaFunctionRecipeSource
impl Unpin for LambdaFunctionRecipeSource
impl UnwindSafe for LambdaFunctionRecipeSource
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more