#[non_exhaustive]pub struct FunctionDefaultExecutionConfigBuilder { /* private fields */ }
Expand description
A builder for FunctionDefaultExecutionConfig
.
Implementations§
source§impl FunctionDefaultExecutionConfigBuilder
impl FunctionDefaultExecutionConfigBuilder
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) -> FunctionDefaultExecutionConfig
pub fn build(self) -> FunctionDefaultExecutionConfig
Consumes the builder and constructs a FunctionDefaultExecutionConfig
.
Trait Implementations§
source§impl Clone for FunctionDefaultExecutionConfigBuilder
impl Clone for FunctionDefaultExecutionConfigBuilder
source§fn clone(&self) -> FunctionDefaultExecutionConfigBuilder
fn clone(&self) -> FunctionDefaultExecutionConfigBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for FunctionDefaultExecutionConfigBuilder
impl Default for FunctionDefaultExecutionConfigBuilder
source§fn default() -> FunctionDefaultExecutionConfigBuilder
fn default() -> FunctionDefaultExecutionConfigBuilder
source§impl PartialEq for FunctionDefaultExecutionConfigBuilder
impl PartialEq for FunctionDefaultExecutionConfigBuilder
source§fn eq(&self, other: &FunctionDefaultExecutionConfigBuilder) -> bool
fn eq(&self, other: &FunctionDefaultExecutionConfigBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.