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
show all
Defined in:
(unknown)

Overview

Note:

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

Instance Attribute Details

#access_sysfsBoolean

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.

Returns:

  • (Boolean)

    If true, the Lambda function is allowed to access the host\'s /sys folder.

#executionTypes::FunctionExecutionConfig

Configuration related to executing the Lambda function

Returns:

#resource_access_policiesArray<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.

Returns:

  • (Array<Types::ResourceAccessPolicy>)

    A list of the resources, with their permissions, to which the Lambda function will be granted access.

#variablesHash<String,String>

Environment variables for the Lambda function\'s configuration.

Returns:

  • (Hash<String,String>)

    Environment variables for the Lambda function\'s configuration.