@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LambdaExecutionParameters extends Object implements Serializable, Cloneable, StructuredPojo
Contains parameters for a Lambda function that runs on IoT Greengrass.
Constructor and Description |
---|
LambdaExecutionParameters() |
Modifier and Type | Method and Description |
---|---|
LambdaExecutionParameters |
addEnvironmentVariablesEntry(String key,
String value)
Add a single EnvironmentVariables entry
|
LambdaExecutionParameters |
clearEnvironmentVariablesEntries()
Removes all the entries added into EnvironmentVariables.
|
LambdaExecutionParameters |
clone() |
boolean |
equals(Object obj) |
Map<String,String> |
getEnvironmentVariables()
The map of environment variables that are available to the Lambda function when it runs.
|
List<LambdaEventSource> |
getEventSources()
The list of event sources to which to subscribe to receive work messages.
|
List<String> |
getExecArgs()
The list of arguments to pass to the Lambda function when it runs.
|
String |
getInputPayloadEncodingType()
The encoding type that the Lambda function supports.
|
LambdaLinuxProcessParams |
getLinuxProcessParams()
The parameters for the Linux process that contains the Lambda function.
|
Integer |
getMaxIdleTimeInSeconds()
The maximum amount of time in seconds that a non-pinned Lambda function can idle before the IoT Greengrass Core
software stops its process.
|
Integer |
getMaxInstancesCount()
The maximum number of instances that a non-pinned Lambda function can run at the same time.
|
Integer |
getMaxQueueSize()
The maximum size of the message queue for the Lambda function component.
|
Boolean |
getPinned()
Whether or not the Lambda function is pinned, or long-lived.
|
Integer |
getStatusTimeoutInSeconds()
The interval in seconds at which a pinned (also known as long-lived) Lambda function component sends status
updates to the Lambda manager component.
|
Integer |
getTimeoutInSeconds()
The maximum amount of time in seconds that the Lambda function can process a work item.
|
int |
hashCode() |
Boolean |
isPinned()
Whether or not the Lambda function is pinned, or long-lived.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setEnvironmentVariables(Map<String,String> environmentVariables)
The map of environment variables that are available to the Lambda function when it runs.
|
void |
setEventSources(Collection<LambdaEventSource> eventSources)
The list of event sources to which to subscribe to receive work messages.
|
void |
setExecArgs(Collection<String> execArgs)
The list of arguments to pass to the Lambda function when it runs.
|
void |
setInputPayloadEncodingType(String inputPayloadEncodingType)
The encoding type that the Lambda function supports.
|
void |
setLinuxProcessParams(LambdaLinuxProcessParams linuxProcessParams)
The parameters for the Linux process that contains the Lambda function.
|
void |
setMaxIdleTimeInSeconds(Integer 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.
|
void |
setMaxInstancesCount(Integer maxInstancesCount)
The maximum number of instances that a non-pinned Lambda function can run at the same time.
|
void |
setMaxQueueSize(Integer maxQueueSize)
The maximum size of the message queue for the Lambda function component.
|
void |
setPinned(Boolean pinned)
Whether or not the Lambda function is pinned, or long-lived.
|
void |
setStatusTimeoutInSeconds(Integer 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.
|
void |
setTimeoutInSeconds(Integer timeoutInSeconds)
The maximum amount of time in seconds that the Lambda function can process a work item.
|
String |
toString()
Returns a string representation of this object.
|
LambdaExecutionParameters |
withEnvironmentVariables(Map<String,String> environmentVariables)
The map of environment variables that are available to the Lambda function when it runs.
|
LambdaExecutionParameters |
withEventSources(Collection<LambdaEventSource> eventSources)
The list of event sources to which to subscribe to receive work messages.
|
LambdaExecutionParameters |
withEventSources(LambdaEventSource... eventSources)
The list of event sources to which to subscribe to receive work messages.
|
LambdaExecutionParameters |
withExecArgs(Collection<String> execArgs)
The list of arguments to pass to the Lambda function when it runs.
|
LambdaExecutionParameters |
withExecArgs(String... execArgs)
The list of arguments to pass to the Lambda function when it runs.
|
LambdaExecutionParameters |
withInputPayloadEncodingType(LambdaInputPayloadEncodingType inputPayloadEncodingType)
The encoding type that the Lambda function supports.
|
LambdaExecutionParameters |
withInputPayloadEncodingType(String inputPayloadEncodingType)
The encoding type that the Lambda function supports.
|
LambdaExecutionParameters |
withLinuxProcessParams(LambdaLinuxProcessParams linuxProcessParams)
The parameters for the Linux process that contains the Lambda function.
|
LambdaExecutionParameters |
withMaxIdleTimeInSeconds(Integer 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.
|
LambdaExecutionParameters |
withMaxInstancesCount(Integer maxInstancesCount)
The maximum number of instances that a non-pinned Lambda function can run at the same time.
|
LambdaExecutionParameters |
withMaxQueueSize(Integer maxQueueSize)
The maximum size of the message queue for the Lambda function component.
|
LambdaExecutionParameters |
withPinned(Boolean pinned)
Whether or not the Lambda function is pinned, or long-lived.
|
LambdaExecutionParameters |
withStatusTimeoutInSeconds(Integer 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.
|
LambdaExecutionParameters |
withTimeoutInSeconds(Integer timeoutInSeconds)
The maximum amount of time in seconds that the Lambda function can process a work item.
|
public List<LambdaEventSource> getEventSources()
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.
public void setEventSources(Collection<LambdaEventSource> 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.
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.public LambdaExecutionParameters withEventSources(LambdaEventSource... 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.
NOTE: This method appends the values to the existing list (if any). Use
setEventSources(java.util.Collection)
or withEventSources(java.util.Collection)
if you want to
override the existing values.
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.public LambdaExecutionParameters withEventSources(Collection<LambdaEventSource> 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.
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.public void setMaxQueueSize(Integer 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.
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.public Integer getMaxQueueSize()
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.
public LambdaExecutionParameters withMaxQueueSize(Integer 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.
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.public void setMaxInstancesCount(Integer maxInstancesCount)
The maximum number of instances that a non-pinned Lambda function can run at the same time.
maxInstancesCount
- The maximum number of instances that a non-pinned Lambda function can run at the same time.public Integer getMaxInstancesCount()
The maximum number of instances that a non-pinned Lambda function can run at the same time.
public LambdaExecutionParameters withMaxInstancesCount(Integer maxInstancesCount)
The maximum number of instances that a non-pinned Lambda function can run at the same time.
maxInstancesCount
- The maximum number of instances that a non-pinned Lambda function can run at the same time.public void setMaxIdleTimeInSeconds(Integer 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.
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.public Integer getMaxIdleTimeInSeconds()
The maximum amount of time in seconds that a non-pinned Lambda function can idle before the IoT Greengrass Core software stops its process.
public LambdaExecutionParameters withMaxIdleTimeInSeconds(Integer 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.
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.public void setTimeoutInSeconds(Integer timeoutInSeconds)
The maximum amount of time in seconds that the Lambda function can process a work item.
timeoutInSeconds
- The maximum amount of time in seconds that the Lambda function can process a work item.public Integer getTimeoutInSeconds()
The maximum amount of time in seconds that the Lambda function can process a work item.
public LambdaExecutionParameters withTimeoutInSeconds(Integer timeoutInSeconds)
The maximum amount of time in seconds that the Lambda function can process a work item.
timeoutInSeconds
- The maximum amount of time in seconds that the Lambda function can process a work item.public void setStatusTimeoutInSeconds(Integer 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.
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.public Integer getStatusTimeoutInSeconds()
The interval in seconds at which a pinned (also known as long-lived) Lambda function component sends status updates to the Lambda manager component.
public LambdaExecutionParameters withStatusTimeoutInSeconds(Integer 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.
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.public void setPinned(Boolean 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
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
public Boolean getPinned()
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
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
public LambdaExecutionParameters withPinned(Boolean 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
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
public Boolean isPinned()
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
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
public void setInputPayloadEncodingType(String inputPayloadEncodingType)
The encoding type that the Lambda function supports.
Default: json
inputPayloadEncodingType
- The encoding type that the Lambda function supports.
Default: json
LambdaInputPayloadEncodingType
public String getInputPayloadEncodingType()
The encoding type that the Lambda function supports.
Default: json
Default: json
LambdaInputPayloadEncodingType
public LambdaExecutionParameters withInputPayloadEncodingType(String inputPayloadEncodingType)
The encoding type that the Lambda function supports.
Default: json
inputPayloadEncodingType
- The encoding type that the Lambda function supports.
Default: json
LambdaInputPayloadEncodingType
public LambdaExecutionParameters withInputPayloadEncodingType(LambdaInputPayloadEncodingType inputPayloadEncodingType)
The encoding type that the Lambda function supports.
Default: json
inputPayloadEncodingType
- The encoding type that the Lambda function supports.
Default: json
LambdaInputPayloadEncodingType
public List<String> getExecArgs()
The list of arguments to pass to the Lambda function when it runs.
public void setExecArgs(Collection<String> execArgs)
The list of arguments to pass to the Lambda function when it runs.
execArgs
- The list of arguments to pass to the Lambda function when it runs.public LambdaExecutionParameters withExecArgs(String... execArgs)
The list of arguments to pass to the Lambda function when it runs.
NOTE: This method appends the values to the existing list (if any). Use
setExecArgs(java.util.Collection)
or withExecArgs(java.util.Collection)
if you want to override
the existing values.
execArgs
- The list of arguments to pass to the Lambda function when it runs.public LambdaExecutionParameters withExecArgs(Collection<String> execArgs)
The list of arguments to pass to the Lambda function when it runs.
execArgs
- The list of arguments to pass to the Lambda function when it runs.public Map<String,String> getEnvironmentVariables()
The map of environment variables that are available to the Lambda function when it runs.
public void setEnvironmentVariables(Map<String,String> environmentVariables)
The map of environment variables that are available to the Lambda function when it runs.
environmentVariables
- The map of environment variables that are available to the Lambda function when it runs.public LambdaExecutionParameters withEnvironmentVariables(Map<String,String> environmentVariables)
The map of environment variables that are available to the Lambda function when it runs.
environmentVariables
- The map of environment variables that are available to the Lambda function when it runs.public LambdaExecutionParameters addEnvironmentVariablesEntry(String key, String value)
public LambdaExecutionParameters clearEnvironmentVariablesEntries()
public void setLinuxProcessParams(LambdaLinuxProcessParams linuxProcessParams)
The parameters for the Linux process that contains the Lambda function.
linuxProcessParams
- The parameters for the Linux process that contains the Lambda function.public LambdaLinuxProcessParams getLinuxProcessParams()
The parameters for the Linux process that contains the Lambda function.
public LambdaExecutionParameters withLinuxProcessParams(LambdaLinuxProcessParams linuxProcessParams)
The parameters for the Linux process that contains the Lambda function.
linuxProcessParams
- The parameters for the Linux process that contains the Lambda function.public String toString()
toString
in class Object
Object.toString()
public LambdaExecutionParameters clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.