Struct aws_sdk_greengrassv2::model::lambda_execution_parameters::Builder [−][src]
#[non_exhaustive]pub struct Builder { /* fields omitted */ }
Expand description
A builder for LambdaExecutionParameters
Implementations
Appends an item to event_sources
.
To override the contents of this collection use set_event_sources
.
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.
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.
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.
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.
The maximum number of instances that a non-pinned Lambda function can run at the same time.
The maximum number of instances that a non-pinned Lambda function can run at the same time.
The maximum amount of time in seconds that a non-pinned Lambda function can idle before the IoT Greengrass Core software stops its process.
The maximum amount of time in seconds that a non-pinned Lambda function can idle before the IoT Greengrass Core software stops its process.
The maximum amount of time in seconds that the Lambda function can process a work item.
The maximum amount of time in seconds that the Lambda function can process a work item.
The interval in seconds at which a pinned (also known as long-lived) Lambda function component sends status updates to the Lambda manager component.
The interval in seconds at which a pinned (also known as long-lived) Lambda function component sends status updates to the Lambda manager component.
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
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
The encoding type that the Lambda function supports.
Default: json
pub fn set_input_payload_encoding_type(
self,
input: Option<LambdaInputPayloadEncodingType>
) -> Self
pub fn set_input_payload_encoding_type(
self,
input: Option<LambdaInputPayloadEncodingType>
) -> Self
The encoding type that the Lambda function supports.
Default: json
Appends an item to exec_args
.
To override the contents of this collection use set_exec_args
.
The list of arguments to pass to the Lambda function when it runs.
The list of arguments to pass to the Lambda function when it runs.
Adds a key-value pair to environment_variables
.
To override the contents of this collection use set_environment_variables
.
The map of environment variables that are available to the Lambda function when it runs.
The map of environment variables that are available to the Lambda function when it runs.
The parameters for the Linux process that contains the Lambda function.
The parameters for the Linux process that contains the Lambda function.
Consumes the builder and constructs a LambdaExecutionParameters
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl UnwindSafe for Builder
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more