Class: Aws::GreengrassV2::Types::LambdaExecutionParameters

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

Overview

Contains parameters for a Lambda function that runs on IoT Greengrass.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#environment_variablesHash<String,String>

The map of environment variables that are available to the Lambda function when it runs.

Returns:

  • (Hash<String,String>)


2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
# File 'gems/aws-sdk-greengrassv2/lib/aws-sdk-greengrassv2/types.rb', line 2196

class LambdaExecutionParameters < Struct.new(
  :event_sources,
  :max_queue_size,
  :max_instances_count,
  :max_idle_time_in_seconds,
  :timeout_in_seconds,
  :status_timeout_in_seconds,
  :pinned,
  :input_payload_encoding_type,
  :exec_args,
  :environment_variables,
  :linux_process_params)
  SENSITIVE = []
  include Aws::Structure
end

#event_sourcesArray<Types::LambdaEventSource>

The list of event sources to which to subscribe to receive work messages. The Lambda function runs when it receives a message from an event source. You can subscribe this function to local publish/subscribe messages and Amazon Web Services IoT Core MQTT messages.

Returns:



2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
# File 'gems/aws-sdk-greengrassv2/lib/aws-sdk-greengrassv2/types.rb', line 2196

class LambdaExecutionParameters < Struct.new(
  :event_sources,
  :max_queue_size,
  :max_instances_count,
  :max_idle_time_in_seconds,
  :timeout_in_seconds,
  :status_timeout_in_seconds,
  :pinned,
  :input_payload_encoding_type,
  :exec_args,
  :environment_variables,
  :linux_process_params)
  SENSITIVE = []
  include Aws::Structure
end

#exec_argsArray<String>

The list of arguments to pass to the Lambda function when it runs.

Returns:

  • (Array<String>)


2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
# File 'gems/aws-sdk-greengrassv2/lib/aws-sdk-greengrassv2/types.rb', line 2196

class LambdaExecutionParameters < Struct.new(
  :event_sources,
  :max_queue_size,
  :max_instances_count,
  :max_idle_time_in_seconds,
  :timeout_in_seconds,
  :status_timeout_in_seconds,
  :pinned,
  :input_payload_encoding_type,
  :exec_args,
  :environment_variables,
  :linux_process_params)
  SENSITIVE = []
  include Aws::Structure
end

#input_payload_encoding_typeString

The encoding type that the Lambda function supports.

Default: json

Returns:

  • (String)


2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
# File 'gems/aws-sdk-greengrassv2/lib/aws-sdk-greengrassv2/types.rb', line 2196

class LambdaExecutionParameters < Struct.new(
  :event_sources,
  :max_queue_size,
  :max_instances_count,
  :max_idle_time_in_seconds,
  :timeout_in_seconds,
  :status_timeout_in_seconds,
  :pinned,
  :input_payload_encoding_type,
  :exec_args,
  :environment_variables,
  :linux_process_params)
  SENSITIVE = []
  include Aws::Structure
end

#linux_process_paramsTypes::LambdaLinuxProcessParams

The parameters for the Linux process that contains the Lambda function.



2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
# File 'gems/aws-sdk-greengrassv2/lib/aws-sdk-greengrassv2/types.rb', line 2196

class LambdaExecutionParameters < Struct.new(
  :event_sources,
  :max_queue_size,
  :max_instances_count,
  :max_idle_time_in_seconds,
  :timeout_in_seconds,
  :status_timeout_in_seconds,
  :pinned,
  :input_payload_encoding_type,
  :exec_args,
  :environment_variables,
  :linux_process_params)
  SENSITIVE = []
  include Aws::Structure
end

#max_idle_time_in_secondsInteger

The maximum amount of time in seconds that a non-pinned Lambda function can idle before the IoT Greengrass Core software stops its process.

Returns:

  • (Integer)


2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
# File 'gems/aws-sdk-greengrassv2/lib/aws-sdk-greengrassv2/types.rb', line 2196

class LambdaExecutionParameters < Struct.new(
  :event_sources,
  :max_queue_size,
  :max_instances_count,
  :max_idle_time_in_seconds,
  :timeout_in_seconds,
  :status_timeout_in_seconds,
  :pinned,
  :input_payload_encoding_type,
  :exec_args,
  :environment_variables,
  :linux_process_params)
  SENSITIVE = []
  include Aws::Structure
end

#max_instances_countInteger

The maximum number of instances that a non-pinned Lambda function can run at the same time.

Returns:

  • (Integer)


2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
# File 'gems/aws-sdk-greengrassv2/lib/aws-sdk-greengrassv2/types.rb', line 2196

class LambdaExecutionParameters < Struct.new(
  :event_sources,
  :max_queue_size,
  :max_instances_count,
  :max_idle_time_in_seconds,
  :timeout_in_seconds,
  :status_timeout_in_seconds,
  :pinned,
  :input_payload_encoding_type,
  :exec_args,
  :environment_variables,
  :linux_process_params)
  SENSITIVE = []
  include Aws::Structure
end

#max_queue_sizeInteger

The maximum size of the message queue for the Lambda function component. The IoT Greengrass core stores messages in a FIFO (first-in-first-out) queue until it can run the Lambda function to consume each message.

Returns:

  • (Integer)


2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
# File 'gems/aws-sdk-greengrassv2/lib/aws-sdk-greengrassv2/types.rb', line 2196

class LambdaExecutionParameters < Struct.new(
  :event_sources,
  :max_queue_size,
  :max_instances_count,
  :max_idle_time_in_seconds,
  :timeout_in_seconds,
  :status_timeout_in_seconds,
  :pinned,
  :input_payload_encoding_type,
  :exec_args,
  :environment_variables,
  :linux_process_params)
  SENSITIVE = []
  include Aws::Structure
end

#pinnedBoolean

Whether or not the Lambda function is pinned, or long-lived.

  • A pinned Lambda function starts when IoT Greengrass starts and keeps running in its own container.

  • A non-pinned Lambda function starts only when it receives a work item and exists after it idles for maxIdleTimeInSeconds. If the function has multiple work items, the IoT Greengrass Core software creates multiple instances of the function.

Default: true

Returns:

  • (Boolean)


2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
# File 'gems/aws-sdk-greengrassv2/lib/aws-sdk-greengrassv2/types.rb', line 2196

class LambdaExecutionParameters < Struct.new(
  :event_sources,
  :max_queue_size,
  :max_instances_count,
  :max_idle_time_in_seconds,
  :timeout_in_seconds,
  :status_timeout_in_seconds,
  :pinned,
  :input_payload_encoding_type,
  :exec_args,
  :environment_variables,
  :linux_process_params)
  SENSITIVE = []
  include Aws::Structure
end

#status_timeout_in_secondsInteger

The interval in seconds at which a pinned (also known as long-lived) Lambda function component sends status updates to the Lambda manager component.

Returns:

  • (Integer)


2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
# File 'gems/aws-sdk-greengrassv2/lib/aws-sdk-greengrassv2/types.rb', line 2196

class LambdaExecutionParameters < Struct.new(
  :event_sources,
  :max_queue_size,
  :max_instances_count,
  :max_idle_time_in_seconds,
  :timeout_in_seconds,
  :status_timeout_in_seconds,
  :pinned,
  :input_payload_encoding_type,
  :exec_args,
  :environment_variables,
  :linux_process_params)
  SENSITIVE = []
  include Aws::Structure
end

#timeout_in_secondsInteger

The maximum amount of time in seconds that the Lambda function can process a work item.

Returns:

  • (Integer)


2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
# File 'gems/aws-sdk-greengrassv2/lib/aws-sdk-greengrassv2/types.rb', line 2196

class LambdaExecutionParameters < Struct.new(
  :event_sources,
  :max_queue_size,
  :max_instances_count,
  :max_idle_time_in_seconds,
  :timeout_in_seconds,
  :status_timeout_in_seconds,
  :pinned,
  :input_payload_encoding_type,
  :exec_args,
  :environment_variables,
  :linux_process_params)
  SENSITIVE = []
  include Aws::Structure
end