Struct aws_sdk_greengrass::types::FunctionConfiguration
source · #[non_exhaustive]pub struct FunctionConfiguration {
pub encoding_type: Option<EncodingType>,
pub environment: Option<FunctionConfigurationEnvironment>,
pub exec_args: Option<String>,
pub executable: Option<String>,
pub memory_size: Option<i32>,
pub pinned: Option<bool>,
pub timeout: Option<i32>,
pub function_runtime_override: Option<String>,
}
Expand description
The configuration of the Lambda function.
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.encoding_type: Option<EncodingType>
The expected encoding type of the input payload for the function. The default is ’‘json’’.
environment: Option<FunctionConfigurationEnvironment>
The environment configuration of the function.
exec_args: Option<String>
The execution arguments.
executable: Option<String>
The name of the function executable.
memory_size: Option<i32>
The memory size, in KB, which the function requires. This setting is not applicable and should be cleared when you run the Lambda function without containerization.
pinned: Option<bool>
True if the function is pinned. Pinned means the function is long-lived and starts when the core starts.
timeout: Option<i32>
The allowed function execution time, after which Lambda should terminate the function. This timeout still applies to pinned Lambda functions for each request.
function_runtime_override: Option<String>
The Lambda runtime supported by Greengrass which is to be used instead of the one specified in the Lambda function.
Implementations§
source§impl FunctionConfiguration
impl FunctionConfiguration
sourcepub fn encoding_type(&self) -> Option<&EncodingType>
pub fn encoding_type(&self) -> Option<&EncodingType>
The expected encoding type of the input payload for the function. The default is ’‘json’’.
sourcepub fn environment(&self) -> Option<&FunctionConfigurationEnvironment>
pub fn environment(&self) -> Option<&FunctionConfigurationEnvironment>
The environment configuration of the function.
sourcepub fn executable(&self) -> Option<&str>
pub fn executable(&self) -> Option<&str>
The name of the function executable.
sourcepub fn memory_size(&self) -> Option<i32>
pub fn memory_size(&self) -> Option<i32>
The memory size, in KB, which the function requires. This setting is not applicable and should be cleared when you run the Lambda function without containerization.
sourcepub fn pinned(&self) -> Option<bool>
pub fn pinned(&self) -> Option<bool>
True if the function is pinned. Pinned means the function is long-lived and starts when the core starts.
sourcepub fn timeout(&self) -> Option<i32>
pub fn timeout(&self) -> Option<i32>
The allowed function execution time, after which Lambda should terminate the function. This timeout still applies to pinned Lambda functions for each request.
sourcepub fn function_runtime_override(&self) -> Option<&str>
pub fn function_runtime_override(&self) -> Option<&str>
The Lambda runtime supported by Greengrass which is to be used instead of the one specified in the Lambda function.
source§impl FunctionConfiguration
impl FunctionConfiguration
sourcepub fn builder() -> FunctionConfigurationBuilder
pub fn builder() -> FunctionConfigurationBuilder
Creates a new builder-style object to manufacture FunctionConfiguration
.
Trait Implementations§
source§impl Clone for FunctionConfiguration
impl Clone for FunctionConfiguration
source§fn clone(&self) -> FunctionConfiguration
fn clone(&self) -> FunctionConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FunctionConfiguration
impl Debug for FunctionConfiguration
source§impl PartialEq for FunctionConfiguration
impl PartialEq for FunctionConfiguration
source§fn eq(&self, other: &FunctionConfiguration) -> bool
fn eq(&self, other: &FunctionConfiguration) -> bool
self
and other
values to be equal, and is used
by ==
.