Struct aws_sdk_greengrass::types::FunctionExecutionConfig
source · #[non_exhaustive]pub struct FunctionExecutionConfig {
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 FunctionExecutionConfig
impl FunctionExecutionConfig
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 FunctionExecutionConfig
impl FunctionExecutionConfig
sourcepub fn builder() -> FunctionExecutionConfigBuilder
pub fn builder() -> FunctionExecutionConfigBuilder
Creates a new builder-style object to manufacture FunctionExecutionConfig
.
Trait Implementations§
source§impl Clone for FunctionExecutionConfig
impl Clone for FunctionExecutionConfig
source§fn clone(&self) -> FunctionExecutionConfig
fn clone(&self) -> FunctionExecutionConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FunctionExecutionConfig
impl Debug for FunctionExecutionConfig
source§impl PartialEq for FunctionExecutionConfig
impl PartialEq for FunctionExecutionConfig
source§fn eq(&self, other: &FunctionExecutionConfig) -> bool
fn eq(&self, other: &FunctionExecutionConfig) -> bool
self
and other
values to be equal, and is used
by ==
.