We recommend new projects start with resources from the AWS provider.
aws-native.greengrassv2.ComponentVersion
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
Resource for Greengrass component version.
Create ComponentVersion Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ComponentVersion(name: string, args?: ComponentVersionArgs, opts?: CustomResourceOptions);
@overload
def ComponentVersion(resource_name: str,
args: Optional[ComponentVersionArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def ComponentVersion(resource_name: str,
opts: Optional[ResourceOptions] = None,
inline_recipe: Optional[str] = None,
lambda_function: Optional[ComponentVersionLambdaFunctionRecipeSourceArgs] = None,
tags: Optional[Mapping[str, str]] = None)
func NewComponentVersion(ctx *Context, name string, args *ComponentVersionArgs, opts ...ResourceOption) (*ComponentVersion, error)
public ComponentVersion(string name, ComponentVersionArgs? args = null, CustomResourceOptions? opts = null)
public ComponentVersion(String name, ComponentVersionArgs args)
public ComponentVersion(String name, ComponentVersionArgs args, CustomResourceOptions options)
type: aws-native:greengrassv2:ComponentVersion
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ComponentVersionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ComponentVersionArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ComponentVersionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ComponentVersionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ComponentVersionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
ComponentVersion Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ComponentVersion resource accepts the following input properties:
- Inline
Recipe string The recipe to use to create the component. The recipe defines the component's metadata, parameters, dependencies, lifecycle, artifacts, and platform compatibility.
You must specify either
InlineRecipe
orLambdaFunction
.- Lambda
Function Pulumi.Aws Native. Greengrass V2. Inputs. Component Version Lambda Function Recipe Source The parameters to create a component from a Lambda function.
You must specify either
InlineRecipe
orLambdaFunction
.- Dictionary<string, string>
Application-specific metadata to attach to the component version. You can use tags in IAM policies to control access to AWS IoT Greengrass resources. You can also use tags to categorize your resources. For more information, see Tag your AWS IoT Greengrass Version 2 resources in the AWS IoT Greengrass V2 Developer Guide .
This
Json
property type is processed as a map of key-value pairs. It uses the following format, which is different from mostTags
implementations in AWS CloudFormation templates."Tags": { "KeyName0": "value", "KeyName1": "value", "KeyName2": "value" }
- Inline
Recipe string The recipe to use to create the component. The recipe defines the component's metadata, parameters, dependencies, lifecycle, artifacts, and platform compatibility.
You must specify either
InlineRecipe
orLambdaFunction
.- Lambda
Function ComponentVersion Lambda Function Recipe Source Args The parameters to create a component from a Lambda function.
You must specify either
InlineRecipe
orLambdaFunction
.- map[string]string
Application-specific metadata to attach to the component version. You can use tags in IAM policies to control access to AWS IoT Greengrass resources. You can also use tags to categorize your resources. For more information, see Tag your AWS IoT Greengrass Version 2 resources in the AWS IoT Greengrass V2 Developer Guide .
This
Json
property type is processed as a map of key-value pairs. It uses the following format, which is different from mostTags
implementations in AWS CloudFormation templates."Tags": { "KeyName0": "value", "KeyName1": "value", "KeyName2": "value" }
- inline
Recipe String The recipe to use to create the component. The recipe defines the component's metadata, parameters, dependencies, lifecycle, artifacts, and platform compatibility.
You must specify either
InlineRecipe
orLambdaFunction
.- lambda
Function ComponentVersion Lambda Function Recipe Source The parameters to create a component from a Lambda function.
You must specify either
InlineRecipe
orLambdaFunction
.- Map<String,String>
Application-specific metadata to attach to the component version. You can use tags in IAM policies to control access to AWS IoT Greengrass resources. You can also use tags to categorize your resources. For more information, see Tag your AWS IoT Greengrass Version 2 resources in the AWS IoT Greengrass V2 Developer Guide .
This
Json
property type is processed as a map of key-value pairs. It uses the following format, which is different from mostTags
implementations in AWS CloudFormation templates."Tags": { "KeyName0": "value", "KeyName1": "value", "KeyName2": "value" }
- inline
Recipe string The recipe to use to create the component. The recipe defines the component's metadata, parameters, dependencies, lifecycle, artifacts, and platform compatibility.
You must specify either
InlineRecipe
orLambdaFunction
.- lambda
Function ComponentVersion Lambda Function Recipe Source The parameters to create a component from a Lambda function.
You must specify either
InlineRecipe
orLambdaFunction
.- {[key: string]: string}
Application-specific metadata to attach to the component version. You can use tags in IAM policies to control access to AWS IoT Greengrass resources. You can also use tags to categorize your resources. For more information, see Tag your AWS IoT Greengrass Version 2 resources in the AWS IoT Greengrass V2 Developer Guide .
This
Json
property type is processed as a map of key-value pairs. It uses the following format, which is different from mostTags
implementations in AWS CloudFormation templates."Tags": { "KeyName0": "value", "KeyName1": "value", "KeyName2": "value" }
- inline_
recipe str The recipe to use to create the component. The recipe defines the component's metadata, parameters, dependencies, lifecycle, artifacts, and platform compatibility.
You must specify either
InlineRecipe
orLambdaFunction
.- lambda_
function ComponentVersion Lambda Function Recipe Source Args The parameters to create a component from a Lambda function.
You must specify either
InlineRecipe
orLambdaFunction
.- Mapping[str, str]
Application-specific metadata to attach to the component version. You can use tags in IAM policies to control access to AWS IoT Greengrass resources. You can also use tags to categorize your resources. For more information, see Tag your AWS IoT Greengrass Version 2 resources in the AWS IoT Greengrass V2 Developer Guide .
This
Json
property type is processed as a map of key-value pairs. It uses the following format, which is different from mostTags
implementations in AWS CloudFormation templates."Tags": { "KeyName0": "value", "KeyName1": "value", "KeyName2": "value" }
- inline
Recipe String The recipe to use to create the component. The recipe defines the component's metadata, parameters, dependencies, lifecycle, artifacts, and platform compatibility.
You must specify either
InlineRecipe
orLambdaFunction
.- lambda
Function Property Map The parameters to create a component from a Lambda function.
You must specify either
InlineRecipe
orLambdaFunction
.- Map<String>
Application-specific metadata to attach to the component version. You can use tags in IAM policies to control access to AWS IoT Greengrass resources. You can also use tags to categorize your resources. For more information, see Tag your AWS IoT Greengrass Version 2 resources in the AWS IoT Greengrass V2 Developer Guide .
This
Json
property type is processed as a map of key-value pairs. It uses the following format, which is different from mostTags
implementations in AWS CloudFormation templates."Tags": { "KeyName0": "value", "KeyName1": "value", "KeyName2": "value" }
Outputs
All input properties are implicitly available as output properties. Additionally, the ComponentVersion resource produces the following output properties:
- Arn string
- The ARN of the component version.
- Component
Name string - The name of the component.
- Component
Version stringValue - The version of the component.
- Id string
- The provider-assigned unique ID for this managed resource.
- Arn string
- The ARN of the component version.
- Component
Name string - The name of the component.
- Component
Version string - The version of the component.
- Id string
- The provider-assigned unique ID for this managed resource.
- arn String
- The ARN of the component version.
- component
Name String - The name of the component.
- component
Version String - The version of the component.
- id String
- The provider-assigned unique ID for this managed resource.
- arn string
- The ARN of the component version.
- component
Name string - The name of the component.
- component
Version string - The version of the component.
- id string
- The provider-assigned unique ID for this managed resource.
- arn str
- The ARN of the component version.
- component_
name str - The name of the component.
- component_
version str - The version of the component.
- id str
- The provider-assigned unique ID for this managed resource.
- arn String
- The ARN of the component version.
- component
Name String - The name of the component.
- component
Version String - The version of the component.
- id String
- The provider-assigned unique ID for this managed resource.
Supporting Types
ComponentVersionComponentDependencyRequirement, ComponentVersionComponentDependencyRequirementArgs
ComponentVersionComponentDependencyRequirementDependencyType, ComponentVersionComponentDependencyRequirementDependencyTypeArgs
- Soft
- SOFT
- Hard
- HARD
- Component
Version Component Dependency Requirement Dependency Type Soft - SOFT
- Component
Version Component Dependency Requirement Dependency Type Hard - HARD
- Soft
- SOFT
- Hard
- HARD
- Soft
- SOFT
- Hard
- HARD
- SOFT
- SOFT
- HARD
- HARD
- "SOFT"
- SOFT
- "HARD"
- HARD
ComponentVersionComponentPlatform, ComponentVersionComponentPlatformArgs
- Attributes Dictionary<string, string>
- A dictionary of attributes for the platform. The AWS IoT Greengrass Core software defines the
os
andplatform
by default. You can specify additional platform attributes for a core device when you deploy the AWS IoT Greengrass nucleus component. For more information, see the AWS IoT Greengrass nucleus component in the AWS IoT Greengrass V2 Developer Guide . - Name string
The friendly name of the platform. This name helps you identify the platform.
If you omit this parameter, AWS IoT Greengrass creates a friendly name from the
os
andarchitecture
of the platform.
- Attributes map[string]string
- A dictionary of attributes for the platform. The AWS IoT Greengrass Core software defines the
os
andplatform
by default. You can specify additional platform attributes for a core device when you deploy the AWS IoT Greengrass nucleus component. For more information, see the AWS IoT Greengrass nucleus component in the AWS IoT Greengrass V2 Developer Guide . - Name string
The friendly name of the platform. This name helps you identify the platform.
If you omit this parameter, AWS IoT Greengrass creates a friendly name from the
os
andarchitecture
of the platform.
- attributes Map<String,String>
- A dictionary of attributes for the platform. The AWS IoT Greengrass Core software defines the
os
andplatform
by default. You can specify additional platform attributes for a core device when you deploy the AWS IoT Greengrass nucleus component. For more information, see the AWS IoT Greengrass nucleus component in the AWS IoT Greengrass V2 Developer Guide . - name String
The friendly name of the platform. This name helps you identify the platform.
If you omit this parameter, AWS IoT Greengrass creates a friendly name from the
os
andarchitecture
of the platform.
- attributes {[key: string]: string}
- A dictionary of attributes for the platform. The AWS IoT Greengrass Core software defines the
os
andplatform
by default. You can specify additional platform attributes for a core device when you deploy the AWS IoT Greengrass nucleus component. For more information, see the AWS IoT Greengrass nucleus component in the AWS IoT Greengrass V2 Developer Guide . - name string
The friendly name of the platform. This name helps you identify the platform.
If you omit this parameter, AWS IoT Greengrass creates a friendly name from the
os
andarchitecture
of the platform.
- attributes Mapping[str, str]
- A dictionary of attributes for the platform. The AWS IoT Greengrass Core software defines the
os
andplatform
by default. You can specify additional platform attributes for a core device when you deploy the AWS IoT Greengrass nucleus component. For more information, see the AWS IoT Greengrass nucleus component in the AWS IoT Greengrass V2 Developer Guide . - name str
The friendly name of the platform. This name helps you identify the platform.
If you omit this parameter, AWS IoT Greengrass creates a friendly name from the
os
andarchitecture
of the platform.
- attributes Map<String>
- A dictionary of attributes for the platform. The AWS IoT Greengrass Core software defines the
os
andplatform
by default. You can specify additional platform attributes for a core device when you deploy the AWS IoT Greengrass nucleus component. For more information, see the AWS IoT Greengrass nucleus component in the AWS IoT Greengrass V2 Developer Guide . - name String
The friendly name of the platform. This name helps you identify the platform.
If you omit this parameter, AWS IoT Greengrass creates a friendly name from the
os
andarchitecture
of the platform.
ComponentVersionLambdaContainerParams, ComponentVersionLambdaContainerParamsArgs
- Devices
List<Pulumi.
Aws Native. Greengrass V2. Inputs. Component Version Lambda Device Mount> - The list of system devices that the container can access.
- Memory
Size intIn Kb The memory size of the container, expressed in kilobytes.
Default:
16384
(16 MB)- Mount
Ro boolSysfs Whether or not the container can read information from the device's
/sys
folder.Default:
false
- Volumes
List<Pulumi.
Aws Native. Greengrass V2. Inputs. Component Version Lambda Volume Mount> - The list of volumes that the container can access.
- Devices
[]Component
Version Lambda Device Mount - The list of system devices that the container can access.
- Memory
Size intIn Kb The memory size of the container, expressed in kilobytes.
Default:
16384
(16 MB)- Mount
Ro boolSysfs Whether or not the container can read information from the device's
/sys
folder.Default:
false
- Volumes
[]Component
Version Lambda Volume Mount - The list of volumes that the container can access.
- devices
List<Component
Version Lambda Device Mount> - The list of system devices that the container can access.
- memory
Size IntegerIn Kb The memory size of the container, expressed in kilobytes.
Default:
16384
(16 MB)- mount
Ro BooleanSysfs Whether or not the container can read information from the device's
/sys
folder.Default:
false
- volumes
List<Component
Version Lambda Volume Mount> - The list of volumes that the container can access.
- devices
Component
Version Lambda Device Mount[] - The list of system devices that the container can access.
- memory
Size numberIn Kb The memory size of the container, expressed in kilobytes.
Default:
16384
(16 MB)- mount
Ro booleanSysfs Whether or not the container can read information from the device's
/sys
folder.Default:
false
- volumes
Component
Version Lambda Volume Mount[] - The list of volumes that the container can access.
- devices
Sequence[Component
Version Lambda Device Mount] - The list of system devices that the container can access.
- memory_
size_ intin_ kb The memory size of the container, expressed in kilobytes.
Default:
16384
(16 MB)- mount_
ro_ boolsysfs Whether or not the container can read information from the device's
/sys
folder.Default:
false
- volumes
Sequence[Component
Version Lambda Volume Mount] - The list of volumes that the container can access.
- devices List<Property Map>
- The list of system devices that the container can access.
- memory
Size NumberIn Kb The memory size of the container, expressed in kilobytes.
Default:
16384
(16 MB)- mount
Ro BooleanSysfs Whether or not the container can read information from the device's
/sys
folder.Default:
false
- volumes List<Property Map>
- The list of volumes that the container can access.
ComponentVersionLambdaDeviceMount, ComponentVersionLambdaDeviceMountArgs
- Add
Group boolOwner Whether or not to add the component's system user as an owner of the device.
Default:
false
- Path string
- The mount path for the device in the file system.
- Permission
Pulumi.
Aws Native. Greengrass V2. Component Version Lambda Filesystem Permission The permission to access the device: read/only (
ro
) or read/write (rw
).Default:
ro
- Add
Group boolOwner Whether or not to add the component's system user as an owner of the device.
Default:
false
- Path string
- The mount path for the device in the file system.
- Permission
Component
Version Lambda Filesystem Permission The permission to access the device: read/only (
ro
) or read/write (rw
).Default:
ro
- add
Group BooleanOwner Whether or not to add the component's system user as an owner of the device.
Default:
false
- path String
- The mount path for the device in the file system.
- permission
Component
Version Lambda Filesystem Permission The permission to access the device: read/only (
ro
) or read/write (rw
).Default:
ro
- add
Group booleanOwner Whether or not to add the component's system user as an owner of the device.
Default:
false
- path string
- The mount path for the device in the file system.
- permission
Component
Version Lambda Filesystem Permission The permission to access the device: read/only (
ro
) or read/write (rw
).Default:
ro
- add_
group_ boolowner Whether or not to add the component's system user as an owner of the device.
Default:
false
- path str
- The mount path for the device in the file system.
- permission
Component
Version Lambda Filesystem Permission The permission to access the device: read/only (
ro
) or read/write (rw
).Default:
ro
- add
Group BooleanOwner Whether or not to add the component's system user as an owner of the device.
Default:
false
- path String
- The mount path for the device in the file system.
- permission "ro" | "rw"
The permission to access the device: read/only (
ro
) or read/write (rw
).Default:
ro
ComponentVersionLambdaEventSource, ComponentVersionLambdaEventSourceArgs
- Topic string
- The topic to which to subscribe to receive event messages.
- Type
Pulumi.
Aws Native. Greengrass V2. Component Version Lambda Event Source Type - The type of event source. Choose from the following options:
PUB_SUB
– Subscribe to local publish/subscribe messages. This event source type doesn't support MQTT wildcards (+
and#
) in the event source topic.IOT_CORE
– Subscribe to AWS IoT Core MQTT messages. This event source type supports MQTT wildcards (+
and#
) in the event source topic.
- Topic string
- The topic to which to subscribe to receive event messages.
- Type
Component
Version Lambda Event Source Type - The type of event source. Choose from the following options:
PUB_SUB
– Subscribe to local publish/subscribe messages. This event source type doesn't support MQTT wildcards (+
and#
) in the event source topic.IOT_CORE
– Subscribe to AWS IoT Core MQTT messages. This event source type supports MQTT wildcards (+
and#
) in the event source topic.
- topic String
- The topic to which to subscribe to receive event messages.
- type
Component
Version Lambda Event Source Type - The type of event source. Choose from the following options:
PUB_SUB
– Subscribe to local publish/subscribe messages. This event source type doesn't support MQTT wildcards (+
and#
) in the event source topic.IOT_CORE
– Subscribe to AWS IoT Core MQTT messages. This event source type supports MQTT wildcards (+
and#
) in the event source topic.
- topic string
- The topic to which to subscribe to receive event messages.
- type
Component
Version Lambda Event Source Type - The type of event source. Choose from the following options:
PUB_SUB
– Subscribe to local publish/subscribe messages. This event source type doesn't support MQTT wildcards (+
and#
) in the event source topic.IOT_CORE
– Subscribe to AWS IoT Core MQTT messages. This event source type supports MQTT wildcards (+
and#
) in the event source topic.
- topic str
- The topic to which to subscribe to receive event messages.
- type
Component
Version Lambda Event Source Type - The type of event source. Choose from the following options:
PUB_SUB
– Subscribe to local publish/subscribe messages. This event source type doesn't support MQTT wildcards (+
and#
) in the event source topic.IOT_CORE
– Subscribe to AWS IoT Core MQTT messages. This event source type supports MQTT wildcards (+
and#
) in the event source topic.
- topic String
- The topic to which to subscribe to receive event messages.
- type "PUB_SUB" | "IOT_CORE"
- The type of event source. Choose from the following options:
PUB_SUB
– Subscribe to local publish/subscribe messages. This event source type doesn't support MQTT wildcards (+
and#
) in the event source topic.IOT_CORE
– Subscribe to AWS IoT Core MQTT messages. This event source type supports MQTT wildcards (+
and#
) in the event source topic.
ComponentVersionLambdaEventSourceType, ComponentVersionLambdaEventSourceTypeArgs
- Pub
Sub - PUB_SUB
- Iot
Core - IOT_CORE
- Component
Version Lambda Event Source Type Pub Sub - PUB_SUB
- Component
Version Lambda Event Source Type Iot Core - IOT_CORE
- Pub
Sub - PUB_SUB
- Iot
Core - IOT_CORE
- Pub
Sub - PUB_SUB
- Iot
Core - IOT_CORE
- PUB_SUB
- PUB_SUB
- IOT_CORE
- IOT_CORE
- "PUB_SUB"
- PUB_SUB
- "IOT_CORE"
- IOT_CORE
ComponentVersionLambdaExecutionParameters, ComponentVersionLambdaExecutionParametersArgs
- Environment
Variables Dictionary<string, string> - The map of environment variables that are available to the Lambda function when it runs.
- Event
Sources List<Pulumi.Aws Native. Greengrass V2. Inputs. Component Version Lambda Event 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 AWS IoT Core MQTT messages.
- Exec
Args List<string> - The list of arguments to pass to the Lambda function when it runs.
- Input
Payload Pulumi.Encoding Type Aws Native. Greengrass V2. Component Version Lambda Execution Parameters Input Payload Encoding Type The encoding type that the Lambda function supports.
Default:
json
- Linux
Process Pulumi.Params Aws Native. Greengrass V2. Inputs. Component Version Lambda Linux Process Params - The parameters for the Linux process that contains the Lambda function.
- Max
Idle intTime In Seconds - The maximum amount of time in seconds that a non-pinned Lambda function can idle before the AWS IoT Greengrass Core software stops its process.
- Max
Instances intCount - The maximum number of instances that a non-pinned Lambda function can run at the same time.
- Max
Queue intSize - The maximum size of the message queue for the Lambda function component. The AWS IoT Greengrass core device stores messages in a FIFO (first-in-first-out) queue until it can run the Lambda function to consume each message.
- Pinned bool
Whether or not the Lambda function is pinned, or long-lived.
- A pinned Lambda function starts when the AWS IoT Greengrass Core 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 AWS IoT Greengrass Core software creates multiple instances of the function.
Default:
true
- Status
Timeout intIn Seconds - The interval in seconds at which a pinned (also known as long-lived) Lambda function component sends status updates to the Lambda manager component.
- Timeout
In intSeconds - The maximum amount of time in seconds that the Lambda function can process a work item.
- Environment
Variables map[string]string - The map of environment variables that are available to the Lambda function when it runs.
- Event
Sources []ComponentVersion Lambda Event 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 AWS IoT Core MQTT messages.
- Exec
Args []string - The list of arguments to pass to the Lambda function when it runs.
- Input
Payload ComponentEncoding Type Version Lambda Execution Parameters Input Payload Encoding Type The encoding type that the Lambda function supports.
Default:
json
- Linux
Process ComponentParams Version Lambda Linux Process Params - The parameters for the Linux process that contains the Lambda function.
- Max
Idle intTime In Seconds - The maximum amount of time in seconds that a non-pinned Lambda function can idle before the AWS IoT Greengrass Core software stops its process.
- Max
Instances intCount - The maximum number of instances that a non-pinned Lambda function can run at the same time.
- Max
Queue intSize - The maximum size of the message queue for the Lambda function component. The AWS IoT Greengrass core device stores messages in a FIFO (first-in-first-out) queue until it can run the Lambda function to consume each message.
- Pinned bool
Whether or not the Lambda function is pinned, or long-lived.
- A pinned Lambda function starts when the AWS IoT Greengrass Core 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 AWS IoT Greengrass Core software creates multiple instances of the function.
Default:
true
- Status
Timeout intIn Seconds - The interval in seconds at which a pinned (also known as long-lived) Lambda function component sends status updates to the Lambda manager component.
- Timeout
In intSeconds - The maximum amount of time in seconds that the Lambda function can process a work item.
- environment
Variables Map<String,String> - The map of environment variables that are available to the Lambda function when it runs.
- event
Sources List<ComponentVersion Lambda Event 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 AWS IoT Core MQTT messages.
- exec
Args List<String> - The list of arguments to pass to the Lambda function when it runs.
- input
Payload ComponentEncoding Type Version Lambda Execution Parameters Input Payload Encoding Type The encoding type that the Lambda function supports.
Default:
json
- linux
Process ComponentParams Version Lambda Linux Process Params - The parameters for the Linux process that contains the Lambda function.
- max
Idle IntegerTime In Seconds - The maximum amount of time in seconds that a non-pinned Lambda function can idle before the AWS IoT Greengrass Core software stops its process.
- max
Instances IntegerCount - The maximum number of instances that a non-pinned Lambda function can run at the same time.
- max
Queue IntegerSize - The maximum size of the message queue for the Lambda function component. The AWS IoT Greengrass core device stores messages in a FIFO (first-in-first-out) queue until it can run the Lambda function to consume each message.
- pinned Boolean
Whether or not the Lambda function is pinned, or long-lived.
- A pinned Lambda function starts when the AWS IoT Greengrass Core 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 AWS IoT Greengrass Core software creates multiple instances of the function.
Default:
true
- status
Timeout IntegerIn Seconds - The interval in seconds at which a pinned (also known as long-lived) Lambda function component sends status updates to the Lambda manager component.
- timeout
In IntegerSeconds - The maximum amount of time in seconds that the Lambda function can process a work item.
- environment
Variables {[key: string]: string} - The map of environment variables that are available to the Lambda function when it runs.
- event
Sources ComponentVersion Lambda Event 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 AWS IoT Core MQTT messages.
- exec
Args string[] - The list of arguments to pass to the Lambda function when it runs.
- input
Payload ComponentEncoding Type Version Lambda Execution Parameters Input Payload Encoding Type The encoding type that the Lambda function supports.
Default:
json
- linux
Process ComponentParams Version Lambda Linux Process Params - The parameters for the Linux process that contains the Lambda function.
- max
Idle numberTime In Seconds - The maximum amount of time in seconds that a non-pinned Lambda function can idle before the AWS IoT Greengrass Core software stops its process.
- max
Instances numberCount - The maximum number of instances that a non-pinned Lambda function can run at the same time.
- max
Queue numberSize - The maximum size of the message queue for the Lambda function component. The AWS IoT Greengrass core device stores messages in a FIFO (first-in-first-out) queue until it can run the Lambda function to consume each message.
- pinned boolean
Whether or not the Lambda function is pinned, or long-lived.
- A pinned Lambda function starts when the AWS IoT Greengrass Core 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 AWS IoT Greengrass Core software creates multiple instances of the function.
Default:
true
- status
Timeout numberIn Seconds - The interval in seconds at which a pinned (also known as long-lived) Lambda function component sends status updates to the Lambda manager component.
- timeout
In numberSeconds - The maximum amount of time in seconds that the Lambda function can process a work item.
- environment_
variables Mapping[str, str] - The map of environment variables that are available to the Lambda function when it runs.
- event_
sources Sequence[ComponentVersion Lambda Event 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 AWS IoT Core MQTT messages.
- exec_
args Sequence[str] - The list of arguments to pass to the Lambda function when it runs.
- input_
payload_ Componentencoding_ type Version Lambda Execution Parameters Input Payload Encoding Type The encoding type that the Lambda function supports.
Default:
json
- linux_
process_ Componentparams Version Lambda Linux Process Params - The parameters for the Linux process that contains the Lambda function.
- max_
idle_ inttime_ in_ seconds - The maximum amount of time in seconds that a non-pinned Lambda function can idle before the AWS IoT Greengrass Core software stops its process.
- max_
instances_ intcount - The maximum number of instances that a non-pinned Lambda function can run at the same time.
- max_
queue_ intsize - The maximum size of the message queue for the Lambda function component. The AWS IoT Greengrass core device stores messages in a FIFO (first-in-first-out) queue until it can run the Lambda function to consume each message.
- pinned bool
Whether or not the Lambda function is pinned, or long-lived.
- A pinned Lambda function starts when the AWS IoT Greengrass Core 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 AWS IoT Greengrass Core software creates multiple instances of the function.
Default:
true
- status_
timeout_ intin_ seconds - The interval in seconds at which a pinned (also known as long-lived) Lambda function component sends status updates to the Lambda manager component.
- timeout_
in_ intseconds - The maximum amount of time in seconds that the Lambda function can process a work item.
- environment
Variables Map<String> - The map of environment variables that are available to the Lambda function when it runs.
- event
Sources List<Property Map> - 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 AWS IoT Core MQTT messages.
- exec
Args List<String> - The list of arguments to pass to the Lambda function when it runs.
- input
Payload "json" | "binary"Encoding Type The encoding type that the Lambda function supports.
Default:
json
- linux
Process Property MapParams - The parameters for the Linux process that contains the Lambda function.
- max
Idle NumberTime In Seconds - The maximum amount of time in seconds that a non-pinned Lambda function can idle before the AWS IoT Greengrass Core software stops its process.
- max
Instances NumberCount - The maximum number of instances that a non-pinned Lambda function can run at the same time.
- max
Queue NumberSize - The maximum size of the message queue for the Lambda function component. The AWS IoT Greengrass core device stores messages in a FIFO (first-in-first-out) queue until it can run the Lambda function to consume each message.
- pinned Boolean
Whether or not the Lambda function is pinned, or long-lived.
- A pinned Lambda function starts when the AWS IoT Greengrass Core 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 AWS IoT Greengrass Core software creates multiple instances of the function.
Default:
true
- status
Timeout NumberIn Seconds - The interval in seconds at which a pinned (also known as long-lived) Lambda function component sends status updates to the Lambda manager component.
- timeout
In NumberSeconds - The maximum amount of time in seconds that the Lambda function can process a work item.
ComponentVersionLambdaExecutionParametersInputPayloadEncodingType, ComponentVersionLambdaExecutionParametersInputPayloadEncodingTypeArgs
- Json
- json
- Binary
- binary
- Component
Version Lambda Execution Parameters Input Payload Encoding Type Json - json
- Component
Version Lambda Execution Parameters Input Payload Encoding Type Binary - binary
- Json
- json
- Binary
- binary
- Json
- json
- Binary
- binary
- JSON
- json
- BINARY
- binary
- "json"
- json
- "binary"
- binary
ComponentVersionLambdaFilesystemPermission, ComponentVersionLambdaFilesystemPermissionArgs
- Ro
- ro
- Rw
- rw
- Component
Version Lambda Filesystem Permission Ro - ro
- Component
Version Lambda Filesystem Permission Rw - rw
- Ro
- ro
- Rw
- rw
- Ro
- ro
- Rw
- rw
- RO
- ro
- RW
- rw
- "ro"
- ro
- "rw"
- rw
ComponentVersionLambdaFunctionRecipeSource, ComponentVersionLambdaFunctionRecipeSourceArgs
- Component
Dependencies Dictionary<string, Pulumi.Aws Native. Greengrass V2. Inputs. Component Version Component Dependency Requirement> - The component versions on which this Lambda function component depends.
- Component
Lambda Pulumi.Parameters Aws Native. Greengrass V2. Inputs. Component Version Lambda Execution Parameters - The system and runtime parameters for the Lambda function as it runs on the AWS IoT Greengrass core device.
- Component
Name string The name of the component.
Defaults to the name of the Lambda function.
- Component
Platforms List<Pulumi.Aws Native. Greengrass V2. Inputs. Component Version Component Platform> - The platforms that the component version supports.
- Component
Version string The version of the component.
Defaults to the version of the Lambda function as a semantic version. For example, if your function version is
3
, the component version becomes3.0.0
.- Lambda
Arn string - The ARN of the Lambda function. The ARN must include the version of the function to import. You can't use version aliases like
$LATEST
.
- Component
Dependencies map[string]ComponentVersion Component Dependency Requirement - The component versions on which this Lambda function component depends.
- Component
Lambda ComponentParameters Version Lambda Execution Parameters - The system and runtime parameters for the Lambda function as it runs on the AWS IoT Greengrass core device.
- Component
Name string The name of the component.
Defaults to the name of the Lambda function.
- Component
Platforms []ComponentVersion Component Platform - The platforms that the component version supports.
- Component
Version string The version of the component.
Defaults to the version of the Lambda function as a semantic version. For example, if your function version is
3
, the component version becomes3.0.0
.- Lambda
Arn string - The ARN of the Lambda function. The ARN must include the version of the function to import. You can't use version aliases like
$LATEST
.
- component
Dependencies Map<String,ComponentVersion Component Dependency Requirement> - The component versions on which this Lambda function component depends.
- component
Lambda ComponentParameters Version Lambda Execution Parameters - The system and runtime parameters for the Lambda function as it runs on the AWS IoT Greengrass core device.
- component
Name String The name of the component.
Defaults to the name of the Lambda function.
- component
Platforms List<ComponentVersion Component Platform> - The platforms that the component version supports.
- component
Version String The version of the component.
Defaults to the version of the Lambda function as a semantic version. For example, if your function version is
3
, the component version becomes3.0.0
.- lambda
Arn String - The ARN of the Lambda function. The ARN must include the version of the function to import. You can't use version aliases like
$LATEST
.
- component
Dependencies {[key: string]: ComponentVersion Component Dependency Requirement} - The component versions on which this Lambda function component depends.
- component
Lambda ComponentParameters Version Lambda Execution Parameters - The system and runtime parameters for the Lambda function as it runs on the AWS IoT Greengrass core device.
- component
Name string The name of the component.
Defaults to the name of the Lambda function.
- component
Platforms ComponentVersion Component Platform[] - The platforms that the component version supports.
- component
Version string The version of the component.
Defaults to the version of the Lambda function as a semantic version. For example, if your function version is
3
, the component version becomes3.0.0
.- lambda
Arn string - The ARN of the Lambda function. The ARN must include the version of the function to import. You can't use version aliases like
$LATEST
.
- component_
dependencies Mapping[str, ComponentVersion Component Dependency Requirement] - The component versions on which this Lambda function component depends.
- component_
lambda_ Componentparameters Version Lambda Execution Parameters - The system and runtime parameters for the Lambda function as it runs on the AWS IoT Greengrass core device.
- component_
name str The name of the component.
Defaults to the name of the Lambda function.
- component_
platforms Sequence[ComponentVersion Component Platform] - The platforms that the component version supports.
- component_
version str The version of the component.
Defaults to the version of the Lambda function as a semantic version. For example, if your function version is
3
, the component version becomes3.0.0
.- lambda_
arn str - The ARN of the Lambda function. The ARN must include the version of the function to import. You can't use version aliases like
$LATEST
.
- component
Dependencies Map<Property Map> - The component versions on which this Lambda function component depends.
- component
Lambda Property MapParameters - The system and runtime parameters for the Lambda function as it runs on the AWS IoT Greengrass core device.
- component
Name String The name of the component.
Defaults to the name of the Lambda function.
- component
Platforms List<Property Map> - The platforms that the component version supports.
- component
Version String The version of the component.
Defaults to the version of the Lambda function as a semantic version. For example, if your function version is
3
, the component version becomes3.0.0
.- lambda
Arn String - The ARN of the Lambda function. The ARN must include the version of the function to import. You can't use version aliases like
$LATEST
.
ComponentVersionLambdaLinuxProcessParams, ComponentVersionLambdaLinuxProcessParamsArgs
- Container
Params Pulumi.Aws Native. Greengrass V2. Inputs. Component Version Lambda Container Params - The parameters for the container in which the Lambda function runs.
- Isolation
Mode Pulumi.Aws Native. Greengrass V2. Component Version Lambda Linux Process Params Isolation Mode The isolation mode for the process that contains the Lambda function. The process can run in an isolated runtime environment inside the AWS IoT Greengrass container, or as a regular process outside any container.
Default:
GreengrassContainer
- Container
Params ComponentVersion Lambda Container Params - The parameters for the container in which the Lambda function runs.
- Isolation
Mode ComponentVersion Lambda Linux Process Params Isolation Mode The isolation mode for the process that contains the Lambda function. The process can run in an isolated runtime environment inside the AWS IoT Greengrass container, or as a regular process outside any container.
Default:
GreengrassContainer
- container
Params ComponentVersion Lambda Container Params - The parameters for the container in which the Lambda function runs.
- isolation
Mode ComponentVersion Lambda Linux Process Params Isolation Mode The isolation mode for the process that contains the Lambda function. The process can run in an isolated runtime environment inside the AWS IoT Greengrass container, or as a regular process outside any container.
Default:
GreengrassContainer
- container
Params ComponentVersion Lambda Container Params - The parameters for the container in which the Lambda function runs.
- isolation
Mode ComponentVersion Lambda Linux Process Params Isolation Mode The isolation mode for the process that contains the Lambda function. The process can run in an isolated runtime environment inside the AWS IoT Greengrass container, or as a regular process outside any container.
Default:
GreengrassContainer
- container_
params ComponentVersion Lambda Container Params - The parameters for the container in which the Lambda function runs.
- isolation_
mode ComponentVersion Lambda Linux Process Params Isolation Mode The isolation mode for the process that contains the Lambda function. The process can run in an isolated runtime environment inside the AWS IoT Greengrass container, or as a regular process outside any container.
Default:
GreengrassContainer
- container
Params Property Map - The parameters for the container in which the Lambda function runs.
- isolation
Mode "GreengrassContainer" | "No Container" The isolation mode for the process that contains the Lambda function. The process can run in an isolated runtime environment inside the AWS IoT Greengrass container, or as a regular process outside any container.
Default:
GreengrassContainer
ComponentVersionLambdaLinuxProcessParamsIsolationMode, ComponentVersionLambdaLinuxProcessParamsIsolationModeArgs
- Greengrass
Container - GreengrassContainer
- No
Container - NoContainer
- Component
Version Lambda Linux Process Params Isolation Mode Greengrass Container - GreengrassContainer
- Component
Version Lambda Linux Process Params Isolation Mode No Container - NoContainer
- Greengrass
Container - GreengrassContainer
- No
Container - NoContainer
- Greengrass
Container - GreengrassContainer
- No
Container - NoContainer
- GREENGRASS_CONTAINER
- GreengrassContainer
- NO_CONTAINER
- NoContainer
- "Greengrass
Container" - GreengrassContainer
- "No
Container" - NoContainer
ComponentVersionLambdaVolumeMount, ComponentVersionLambdaVolumeMountArgs
- Add
Group boolOwner Whether or not to add the AWS IoT Greengrass user group as an owner of the volume.
Default:
false
- Destination
Path string - The path to the logical volume in the file system.
- Permission
Pulumi.
Aws Native. Greengrass V2. Component Version Lambda Filesystem Permission The permission to access the volume: read/only (
ro
) or read/write (rw
).Default:
ro
- Source
Path string - The path to the physical volume in the file system.
- Add
Group boolOwner Whether or not to add the AWS IoT Greengrass user group as an owner of the volume.
Default:
false
- Destination
Path string - The path to the logical volume in the file system.
- Permission
Component
Version Lambda Filesystem Permission The permission to access the volume: read/only (
ro
) or read/write (rw
).Default:
ro
- Source
Path string - The path to the physical volume in the file system.
- add
Group BooleanOwner Whether or not to add the AWS IoT Greengrass user group as an owner of the volume.
Default:
false
- destination
Path String - The path to the logical volume in the file system.
- permission
Component
Version Lambda Filesystem Permission The permission to access the volume: read/only (
ro
) or read/write (rw
).Default:
ro
- source
Path String - The path to the physical volume in the file system.
- add
Group booleanOwner Whether or not to add the AWS IoT Greengrass user group as an owner of the volume.
Default:
false
- destination
Path string - The path to the logical volume in the file system.
- permission
Component
Version Lambda Filesystem Permission The permission to access the volume: read/only (
ro
) or read/write (rw
).Default:
ro
- source
Path string - The path to the physical volume in the file system.
- add_
group_ boolowner Whether or not to add the AWS IoT Greengrass user group as an owner of the volume.
Default:
false
- destination_
path str - The path to the logical volume in the file system.
- permission
Component
Version Lambda Filesystem Permission The permission to access the volume: read/only (
ro
) or read/write (rw
).Default:
ro
- source_
path str - The path to the physical volume in the file system.
- add
Group BooleanOwner Whether or not to add the AWS IoT Greengrass user group as an owner of the volume.
Default:
false
- destination
Path String - The path to the logical volume in the file system.
- permission "ro" | "rw"
The permission to access the volume: read/only (
ro
) or read/write (rw
).Default:
ro
- source
Path String - The path to the physical volume in the file system.
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.