Class: Aws::Greengrass::Types::FunctionConfigurationEnvironment

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-greengrass/lib/aws-sdk-greengrass/types.rb

Overview

Note:

When making an API call, you may pass FunctionConfigurationEnvironment data as a 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.

Constant Summary collapse

SENSITIVE =
[]

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)


2448
2449
2450
2451
2452
2453
2454
2455
# File 'gems/aws-sdk-greengrass/lib/aws-sdk-greengrass/types.rb', line 2448

class FunctionConfigurationEnvironment < Struct.new(
  :access_sysfs,
  :execution,
  :resource_access_policies,
  :variables)
  SENSITIVE = []
  include Aws::Structure
end

#executionTypes::FunctionExecutionConfig

Configuration related to executing the Lambda function



2448
2449
2450
2451
2452
2453
2454
2455
# File 'gems/aws-sdk-greengrass/lib/aws-sdk-greengrass/types.rb', line 2448

class FunctionConfigurationEnvironment < Struct.new(
  :access_sysfs,
  :execution,
  :resource_access_policies,
  :variables)
  SENSITIVE = []
  include Aws::Structure
end

#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:



2448
2449
2450
2451
2452
2453
2454
2455
# File 'gems/aws-sdk-greengrass/lib/aws-sdk-greengrass/types.rb', line 2448

class FunctionConfigurationEnvironment < Struct.new(
  :access_sysfs,
  :execution,
  :resource_access_policies,
  :variables)
  SENSITIVE = []
  include Aws::Structure
end

#variablesHash<String,String>

Environment variables for the Lambda function's configuration.

Returns:

  • (Hash<String,String>)


2448
2449
2450
2451
2452
2453
2454
2455
# File 'gems/aws-sdk-greengrass/lib/aws-sdk-greengrass/types.rb', line 2448

class FunctionConfigurationEnvironment < Struct.new(
  :access_sysfs,
  :execution,
  :resource_access_policies,
  :variables)
  SENSITIVE = []
  include Aws::Structure
end