Struct aws_sdk_greengrass::model::FunctionDefaultExecutionConfig [−][src]
#[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
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.
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’’.
Creates a new builder-style object to manufacture FunctionDefaultExecutionConfig
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl Send for FunctionDefaultExecutionConfig
impl Sync for FunctionDefaultExecutionConfig
impl Unpin for FunctionDefaultExecutionConfig
impl UnwindSafe for FunctionDefaultExecutionConfig
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more