#[non_exhaustive]pub struct FunctionDefaultExecutionConfig {
pub isolation_mode: Option<FunctionIsolationMode>,
pub run_as: Option<FunctionRunAsConfig>,
}
Expand description
Configuration information that specifies how a Lambda function runs.
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.isolation_mode: Option<FunctionIsolationMode>
Specifies whether the Lambda function runs in a Greengrass container (default) or without containerization. Unless your scenario requires that you run without containerization, we recommend that you run in a Greengrass container. Omit this value to run the Lambda function with the default containerization for the group.
run_as: Option<FunctionRunAsConfig>
Specifies the user and group whose permissions are used when running the Lambda function. You can specify one or both values to override the default values. We recommend that you avoid running as root unless absolutely necessary to minimize the risk of unintended changes or malicious attacks. To run as root, you must set ’‘IsolationMode’’ to ’‘NoContainer’’ and update config.json in ’‘greengrass-root/config’’ to set ’‘allowFunctionsToRunAsRoot’’ to ’‘yes’’.
Implementations§
source§impl FunctionDefaultExecutionConfig
impl FunctionDefaultExecutionConfig
sourcepub fn isolation_mode(&self) -> Option<&FunctionIsolationMode>
pub fn isolation_mode(&self) -> Option<&FunctionIsolationMode>
Specifies whether the Lambda function runs in a Greengrass container (default) or without containerization. Unless your scenario requires that you run without containerization, we recommend that you run in a Greengrass container. Omit this value to run the Lambda function with the default containerization for the group.
sourcepub fn run_as(&self) -> Option<&FunctionRunAsConfig>
pub fn run_as(&self) -> Option<&FunctionRunAsConfig>
Specifies the user and group whose permissions are used when running the Lambda function. You can specify one or both values to override the default values. We recommend that you avoid running as root unless absolutely necessary to minimize the risk of unintended changes or malicious attacks. To run as root, you must set ’‘IsolationMode’’ to ’‘NoContainer’’ and update config.json in ’‘greengrass-root/config’’ to set ’‘allowFunctionsToRunAsRoot’’ to ’‘yes’’.
source§impl FunctionDefaultExecutionConfig
impl FunctionDefaultExecutionConfig
sourcepub fn builder() -> FunctionDefaultExecutionConfigBuilder
pub fn builder() -> FunctionDefaultExecutionConfigBuilder
Creates a new builder-style object to manufacture FunctionDefaultExecutionConfig
.
Trait Implementations§
source§impl Clone for FunctionDefaultExecutionConfig
impl Clone for FunctionDefaultExecutionConfig
source§fn clone(&self) -> FunctionDefaultExecutionConfig
fn clone(&self) -> FunctionDefaultExecutionConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for FunctionDefaultExecutionConfig
impl PartialEq for FunctionDefaultExecutionConfig
source§fn eq(&self, other: &FunctionDefaultExecutionConfig) -> bool
fn eq(&self, other: &FunctionDefaultExecutionConfig) -> bool
self
and other
values to be equal, and is used
by ==
.