You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::Greengrass::Types::FunctionConfigurationEnvironment
- Inherits:
-
Struct
- Object
- Struct
- Aws::Greengrass::Types::FunctionConfigurationEnvironment
- Defined in:
- (unknown)
Overview
When passing FunctionConfigurationEnvironment as input to an Aws::Client method, you can use a vanilla Hash:
{
access_sysfs: false,
execution: {
isolation_mode: "GreengrassContainer", # accepts GreengrassContainer, NoContainer
run_as: {
gid: 1,
uid: 1,
},
},
resource_access_policies: [
{
permission: "ro", # accepts ro, rw
resource_id: "__string", # required
},
],
variables: {
"__string" => "__string",
},
}
The environment configuration of the function.
Returned by:
Instance Attribute Summary collapse
-
#access_sysfs ⇒ Boolean
If true, the Lambda function is allowed to access the host\'s /sys folder.
-
#execution ⇒ Types::FunctionExecutionConfig
Configuration related to executing the Lambda function.
-
#resource_access_policies ⇒ Array<Types::ResourceAccessPolicy>
A list of the resources, with their permissions, to which the Lambda function will be granted access.
-
#variables ⇒ Hash<String,String>
Environment variables for the Lambda function\'s configuration.
Instance Attribute Details
#access_sysfs ⇒ Boolean
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 ⇒ Types::FunctionExecutionConfig
Configuration related to executing the Lambda function
#resource_access_policies ⇒ Array<Types::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 ⇒ Hash<String,String>
Environment variables for the Lambda function\'s configuration.