#[non_exhaustive]pub struct FunctionExecutionConfigBuilder { /* private fields */ }
Expand description
A builder for FunctionExecutionConfig
.
Implementations§
source§impl FunctionExecutionConfigBuilder
impl FunctionExecutionConfigBuilder
sourcepub fn isolation_mode(self, input: FunctionIsolationMode) -> Self
pub fn isolation_mode(self, input: FunctionIsolationMode) -> Self
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 set_isolation_mode(self, input: Option<FunctionIsolationMode>) -> Self
pub fn set_isolation_mode(self, input: Option<FunctionIsolationMode>) -> Self
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 get_isolation_mode(&self) -> &Option<FunctionIsolationMode>
pub fn get_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, input: FunctionRunAsConfig) -> Self
pub fn run_as(self, input: FunctionRunAsConfig) -> Self
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’’.
sourcepub fn set_run_as(self, input: Option<FunctionRunAsConfig>) -> Self
pub fn set_run_as(self, input: Option<FunctionRunAsConfig>) -> Self
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’’.
sourcepub fn get_run_as(&self) -> &Option<FunctionRunAsConfig>
pub fn get_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’’.
sourcepub fn build(self) -> FunctionExecutionConfig
pub fn build(self) -> FunctionExecutionConfig
Consumes the builder and constructs a FunctionExecutionConfig
.
Trait Implementations§
source§impl Clone for FunctionExecutionConfigBuilder
impl Clone for FunctionExecutionConfigBuilder
source§fn clone(&self) -> FunctionExecutionConfigBuilder
fn clone(&self) -> FunctionExecutionConfigBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for FunctionExecutionConfigBuilder
impl Default for FunctionExecutionConfigBuilder
source§fn default() -> FunctionExecutionConfigBuilder
fn default() -> FunctionExecutionConfigBuilder
source§impl PartialEq for FunctionExecutionConfigBuilder
impl PartialEq for FunctionExecutionConfigBuilder
source§fn eq(&self, other: &FunctionExecutionConfigBuilder) -> bool
fn eq(&self, other: &FunctionExecutionConfigBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.