Class: Aws::Greengrass::Types::Function

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 Function data as a hash:

{
  function_arn: "__string",
  function_configuration: {
    encoding_type: "binary", # accepts binary, json
    environment: {
      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",
      },
    },
    exec_args: "__string",
    executable: "__string",
    memory_size: 1,
    pinned: false,
    timeout: 1,
  },
  id: "__string", # required
}

Information about a Lambda function.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#function_arnString

The ARN of the Lambda function.

Returns:

  • (String)


2310
2311
2312
2313
2314
2315
2316
# File 'gems/aws-sdk-greengrass/lib/aws-sdk-greengrass/types.rb', line 2310

class Function < Struct.new(
  :function_arn,
  :function_configuration,
  :id)
  SENSITIVE = []
  include Aws::Structure
end

#function_configurationTypes::FunctionConfiguration

The configuration of the Lambda function.



2310
2311
2312
2313
2314
2315
2316
# File 'gems/aws-sdk-greengrass/lib/aws-sdk-greengrass/types.rb', line 2310

class Function < Struct.new(
  :function_arn,
  :function_configuration,
  :id)
  SENSITIVE = []
  include Aws::Structure
end

#idString

A descriptive or arbitrary ID for the function. This value must be unique within the function definition version. Max length is 128 characters with pattern ''[a-zA-Z0-9:_-]+''.

Returns:

  • (String)


2310
2311
2312
2313
2314
2315
2316
# File 'gems/aws-sdk-greengrass/lib/aws-sdk-greengrass/types.rb', line 2310

class Function < Struct.new(
  :function_arn,
  :function_configuration,
  :id)
  SENSITIVE = []
  include Aws::Structure
end