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

Class: Aws::Greengrass::Types::FunctionConfiguration

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

{
  environment: {
    variables: {
      "__string" => "__string",
    },
  },
  exec_args: "__string",
  executable: "__string",
  memory_size: 1,
  pinned: false,
  timeout: 1,
}

Configuration of the function

Instance Attribute Summary collapse

Instance Attribute Details

#environmentTypes::FunctionConfigurationEnvironment

Environment of the function configuration



1485
1486
1487
1488
1489
1490
1491
1492
1493
# File 'gems/aws-sdk-greengrass/lib/aws-sdk-greengrass/types.rb', line 1485

class FunctionConfiguration < Struct.new(
  :environment,
  :exec_args,
  :executable,
  :memory_size,
  :pinned,
  :timeout)
  include Aws::Structure
end

#exec_argsString

Execution Arguments

Returns:

  • (String)


1485
1486
1487
1488
1489
1490
1491
1492
1493
# File 'gems/aws-sdk-greengrass/lib/aws-sdk-greengrass/types.rb', line 1485

class FunctionConfiguration < Struct.new(
  :environment,
  :exec_args,
  :executable,
  :memory_size,
  :pinned,
  :timeout)
  include Aws::Structure
end

#executableString

Executable

Returns:

  • (String)


1485
1486
1487
1488
1489
1490
1491
1492
1493
# File 'gems/aws-sdk-greengrass/lib/aws-sdk-greengrass/types.rb', line 1485

class FunctionConfiguration < Struct.new(
  :environment,
  :exec_args,
  :executable,
  :memory_size,
  :pinned,
  :timeout)
  include Aws::Structure
end

#memory_sizeInteger

The memory size, in KB, you configured for the function.

Returns:

  • (Integer)


1485
1486
1487
1488
1489
1490
1491
1492
1493
# File 'gems/aws-sdk-greengrass/lib/aws-sdk-greengrass/types.rb', line 1485

class FunctionConfiguration < Struct.new(
  :environment,
  :exec_args,
  :executable,
  :memory_size,
  :pinned,
  :timeout)
  include Aws::Structure
end

#pinnedBoolean

Whether the function is pinned or not. Pinned means the function is long-lived and starts when the core starts.

Returns:

  • (Boolean)


1485
1486
1487
1488
1489
1490
1491
1492
1493
# File 'gems/aws-sdk-greengrass/lib/aws-sdk-greengrass/types.rb', line 1485

class FunctionConfiguration < Struct.new(
  :environment,
  :exec_args,
  :executable,
  :memory_size,
  :pinned,
  :timeout)
  include Aws::Structure
end

#timeoutInteger

The function execution time at which Lambda should terminate the function. This timeout still applies to pinned lambdas for each request.

Returns:

  • (Integer)


1485
1486
1487
1488
1489
1490
1491
1492
1493
# File 'gems/aws-sdk-greengrass/lib/aws-sdk-greengrass/types.rb', line 1485

class FunctionConfiguration < Struct.new(
  :environment,
  :exec_args,
  :executable,
  :memory_size,
  :pinned,
  :timeout)
  include Aws::Structure
end