You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

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,
      resource_access_policies: [
        {
          permission: "ro", # accepts ro, rw
          resource_id: "__string",
        },
      ],
      variables: {
        "__string" => "__string",
      },
    },
    exec_args: "__string",
    executable: "__string",
    memory_size: 1,
    pinned: false,
    timeout: 1,
  },
  id: "__string",
}

Information about a Lambda function.

Instance Attribute Summary collapse

Instance Attribute Details

#function_arnString

The ARN of the Lambda function.

Returns:

  • (String)


1742
1743
1744
1745
1746
1747
# File 'gems/aws-sdk-greengrass/lib/aws-sdk-greengrass/types.rb', line 1742

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

#function_configurationTypes::FunctionConfiguration

The configuration of the Lambda function.



1742
1743
1744
1745
1746
1747
# File 'gems/aws-sdk-greengrass/lib/aws-sdk-greengrass/types.rb', line 1742

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

#idString

The ID of the Lambda function.

Returns:

  • (String)


1742
1743
1744
1745
1746
1747
# File 'gems/aws-sdk-greengrass/lib/aws-sdk-greengrass/types.rb', line 1742

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