Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data LambdaExecutionParameters = LambdaExecutionParameters' {
- execArgs :: Maybe [Text]
- maxQueueSize :: Maybe Int
- pinned :: Maybe Bool
- inputPayloadEncodingType :: Maybe LambdaInputPayloadEncodingType
- maxIdleTimeInSeconds :: Maybe Int
- timeoutInSeconds :: Maybe Int
- eventSources :: Maybe [LambdaEventSource]
- maxInstancesCount :: Maybe Int
- environmentVariables :: Maybe (HashMap Text Text)
- statusTimeoutInSeconds :: Maybe Int
- linuxProcessParams :: Maybe LambdaLinuxProcessParams
- newLambdaExecutionParameters :: LambdaExecutionParameters
- lambdaExecutionParameters_execArgs :: Lens' LambdaExecutionParameters (Maybe [Text])
- lambdaExecutionParameters_maxQueueSize :: Lens' LambdaExecutionParameters (Maybe Int)
- lambdaExecutionParameters_pinned :: Lens' LambdaExecutionParameters (Maybe Bool)
- lambdaExecutionParameters_inputPayloadEncodingType :: Lens' LambdaExecutionParameters (Maybe LambdaInputPayloadEncodingType)
- lambdaExecutionParameters_maxIdleTimeInSeconds :: Lens' LambdaExecutionParameters (Maybe Int)
- lambdaExecutionParameters_timeoutInSeconds :: Lens' LambdaExecutionParameters (Maybe Int)
- lambdaExecutionParameters_eventSources :: Lens' LambdaExecutionParameters (Maybe [LambdaEventSource])
- lambdaExecutionParameters_maxInstancesCount :: Lens' LambdaExecutionParameters (Maybe Int)
- lambdaExecutionParameters_environmentVariables :: Lens' LambdaExecutionParameters (Maybe (HashMap Text Text))
- lambdaExecutionParameters_statusTimeoutInSeconds :: Lens' LambdaExecutionParameters (Maybe Int)
- lambdaExecutionParameters_linuxProcessParams :: Lens' LambdaExecutionParameters (Maybe LambdaLinuxProcessParams)
Documentation
data LambdaExecutionParameters Source #
Contains parameters for a Lambda function that runs on IoT Greengrass.
See: newLambdaExecutionParameters
smart constructor.
LambdaExecutionParameters' | |
|
Instances
newLambdaExecutionParameters :: LambdaExecutionParameters Source #
Create a value of LambdaExecutionParameters
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:execArgs:LambdaExecutionParameters'
, lambdaExecutionParameters_execArgs
- The list of arguments to pass to the Lambda function when it runs.
$sel:maxQueueSize:LambdaExecutionParameters'
, lambdaExecutionParameters_maxQueueSize
- 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.
$sel:pinned:LambdaExecutionParameters'
, lambdaExecutionParameters_pinned
- 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
$sel:inputPayloadEncodingType:LambdaExecutionParameters'
, lambdaExecutionParameters_inputPayloadEncodingType
- The encoding type that the Lambda function supports.
Default: json
$sel:maxIdleTimeInSeconds:LambdaExecutionParameters'
, lambdaExecutionParameters_maxIdleTimeInSeconds
- The maximum amount of time in seconds that a non-pinned Lambda function
can idle before the IoT Greengrass Core software stops its process.
$sel:timeoutInSeconds:LambdaExecutionParameters'
, lambdaExecutionParameters_timeoutInSeconds
- The maximum amount of time in seconds that the Lambda function can
process a work item.
$sel:eventSources:LambdaExecutionParameters'
, lambdaExecutionParameters_eventSources
- 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.
$sel:maxInstancesCount:LambdaExecutionParameters'
, lambdaExecutionParameters_maxInstancesCount
- The maximum number of instances that a non-pinned Lambda function can
run at the same time.
$sel:environmentVariables:LambdaExecutionParameters'
, lambdaExecutionParameters_environmentVariables
- The map of environment variables that are available to the Lambda
function when it runs.
$sel:statusTimeoutInSeconds:LambdaExecutionParameters'
, lambdaExecutionParameters_statusTimeoutInSeconds
- The interval in seconds at which a pinned (also known as long-lived)
Lambda function component sends status updates to the Lambda manager
component.
$sel:linuxProcessParams:LambdaExecutionParameters'
, lambdaExecutionParameters_linuxProcessParams
- The parameters for the Linux process that contains the Lambda function.
lambdaExecutionParameters_execArgs :: Lens' LambdaExecutionParameters (Maybe [Text]) Source #
The list of arguments to pass to the Lambda function when it runs.
lambdaExecutionParameters_maxQueueSize :: Lens' LambdaExecutionParameters (Maybe Int) Source #
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.
lambdaExecutionParameters_pinned :: Lens' LambdaExecutionParameters (Maybe Bool) Source #
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
lambdaExecutionParameters_inputPayloadEncodingType :: Lens' LambdaExecutionParameters (Maybe LambdaInputPayloadEncodingType) Source #
The encoding type that the Lambda function supports.
Default: json
lambdaExecutionParameters_maxIdleTimeInSeconds :: Lens' LambdaExecutionParameters (Maybe Int) Source #
The maximum amount of time in seconds that a non-pinned Lambda function can idle before the IoT Greengrass Core software stops its process.
lambdaExecutionParameters_timeoutInSeconds :: Lens' LambdaExecutionParameters (Maybe Int) Source #
The maximum amount of time in seconds that the Lambda function can process a work item.
lambdaExecutionParameters_eventSources :: Lens' LambdaExecutionParameters (Maybe [LambdaEventSource]) Source #
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.
lambdaExecutionParameters_maxInstancesCount :: Lens' LambdaExecutionParameters (Maybe Int) Source #
The maximum number of instances that a non-pinned Lambda function can run at the same time.
lambdaExecutionParameters_environmentVariables :: Lens' LambdaExecutionParameters (Maybe (HashMap Text Text)) Source #
The map of environment variables that are available to the Lambda function when it runs.
lambdaExecutionParameters_statusTimeoutInSeconds :: Lens' LambdaExecutionParameters (Maybe Int) Source #
The interval in seconds at which a pinned (also known as long-lived) Lambda function component sends status updates to the Lambda manager component.
lambdaExecutionParameters_linuxProcessParams :: Lens' LambdaExecutionParameters (Maybe LambdaLinuxProcessParams) Source #
The parameters for the Linux process that contains the Lambda function.