#[non_exhaustive]pub struct FunctionConfigurationEnvironment {
pub access_sysfs: Option<bool>,
pub execution: Option<FunctionExecutionConfig>,
pub resource_access_policies: Option<Vec<ResourceAccessPolicy>>,
pub variables: Option<HashMap<String, String>>,
}
Expand description
The environment configuration of the function.
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.access_sysfs: Option<bool>
If true, the Lambda function is allowed to access the host’s /sys folder. Use this when the Lambda function needs to read device information from /sys. This setting applies only when you run the Lambda function in a Greengrass container.
execution: Option<FunctionExecutionConfig>
Configuration related to executing the Lambda function
resource_access_policies: Option<Vec<ResourceAccessPolicy>>
A list of the resources, with their permissions, to which the Lambda function will be granted access. A Lambda function can have at most 10 resources. ResourceAccessPolicies apply only when you run the Lambda function in a Greengrass container.
variables: Option<HashMap<String, String>>
Environment variables for the Lambda function’s configuration.
Implementations§
source§impl FunctionConfigurationEnvironment
impl FunctionConfigurationEnvironment
sourcepub fn access_sysfs(&self) -> Option<bool>
pub fn access_sysfs(&self) -> Option<bool>
If true, the Lambda function is allowed to access the host’s /sys folder. Use this when the Lambda function needs to read device information from /sys. This setting applies only when you run the Lambda function in a Greengrass container.
sourcepub fn execution(&self) -> Option<&FunctionExecutionConfig>
pub fn execution(&self) -> Option<&FunctionExecutionConfig>
Configuration related to executing the Lambda function
sourcepub fn resource_access_policies(&self) -> &[ResourceAccessPolicy]
pub fn resource_access_policies(&self) -> &[ResourceAccessPolicy]
A list of the resources, with their permissions, to which the Lambda function will be granted access. A Lambda function can have at most 10 resources. ResourceAccessPolicies apply only when you run the Lambda function in a Greengrass container.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .resource_access_policies.is_none()
.
source§impl FunctionConfigurationEnvironment
impl FunctionConfigurationEnvironment
sourcepub fn builder() -> FunctionConfigurationEnvironmentBuilder
pub fn builder() -> FunctionConfigurationEnvironmentBuilder
Creates a new builder-style object to manufacture FunctionConfigurationEnvironment
.
Trait Implementations§
source§impl Clone for FunctionConfigurationEnvironment
impl Clone for FunctionConfigurationEnvironment
source§fn clone(&self) -> FunctionConfigurationEnvironment
fn clone(&self) -> FunctionConfigurationEnvironment
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for FunctionConfigurationEnvironment
impl PartialEq for FunctionConfigurationEnvironment
source§fn eq(&self, other: &FunctionConfigurationEnvironment) -> bool
fn eq(&self, other: &FunctionConfigurationEnvironment) -> bool
self
and other
values to be equal, and is used
by ==
.