1. Packages
  2. AWS Cloud Control
  3. API Docs
  4. greengrassv2
  5. ComponentVersion

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.26.0 published on Wednesday, Mar 12, 2025 by Pulumi

aws-native.greengrassv2.ComponentVersion

Explore with Pulumi AI

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.26.0 published on Wednesday, Mar 12, 2025 by Pulumi

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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. String
The unique name of the resource.
args This property is required. 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:

InlineRecipe 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 or LambdaFunction .

LambdaFunction Pulumi.AwsNative.GreengrassV2.Inputs.ComponentVersionLambdaFunctionRecipeSource

The parameters to create a component from a Lambda function.

You must specify either InlineRecipe or LambdaFunction .

Tags 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 most Tags implementations in AWS CloudFormation templates.

"Tags": { "KeyName0": "value", "KeyName1": "value", "KeyName2": "value"
}
InlineRecipe 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 or LambdaFunction .

LambdaFunction ComponentVersionLambdaFunctionRecipeSourceArgs

The parameters to create a component from a Lambda function.

You must specify either InlineRecipe or LambdaFunction .

Tags 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 most Tags implementations in AWS CloudFormation templates.

"Tags": { "KeyName0": "value", "KeyName1": "value", "KeyName2": "value"
}
inlineRecipe 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 or LambdaFunction .

lambdaFunction ComponentVersionLambdaFunctionRecipeSource

The parameters to create a component from a Lambda function.

You must specify either InlineRecipe or LambdaFunction .

tags 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 most Tags implementations in AWS CloudFormation templates.

"Tags": { "KeyName0": "value", "KeyName1": "value", "KeyName2": "value"
}
inlineRecipe 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 or LambdaFunction .

lambdaFunction ComponentVersionLambdaFunctionRecipeSource

The parameters to create a component from a Lambda function.

You must specify either InlineRecipe or LambdaFunction .

tags {[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 most Tags 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 or LambdaFunction .

lambda_function ComponentVersionLambdaFunctionRecipeSourceArgs

The parameters to create a component from a Lambda function.

You must specify either InlineRecipe or LambdaFunction .

tags 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 most Tags implementations in AWS CloudFormation templates.

"Tags": { "KeyName0": "value", "KeyName1": "value", "KeyName2": "value"
}
inlineRecipe 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 or LambdaFunction .

lambdaFunction Property Map

The parameters to create a component from a Lambda function.

You must specify either InlineRecipe or LambdaFunction .

tags 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 most Tags 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.
ComponentName string
The name of the component.
ComponentVersionValue 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.
ComponentName string
The name of the component.
ComponentVersion 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.
componentName String
The name of the component.
componentVersion 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.
componentName string
The name of the component.
componentVersion 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.
componentName String
The name of the component.
componentVersion 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
ComponentVersionComponentDependencyRequirementDependencyTypeSoft
SOFT
ComponentVersionComponentDependencyRequirementDependencyTypeHard
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 and platform 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 and architecture of the platform.

Attributes map[string]string
A dictionary of attributes for the platform. The AWS IoT Greengrass Core software defines the os and platform 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 and architecture of the platform.

attributes Map<String,String>
A dictionary of attributes for the platform. The AWS IoT Greengrass Core software defines the os and platform 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 and architecture of the platform.

attributes {[key: string]: string}
A dictionary of attributes for the platform. The AWS IoT Greengrass Core software defines the os and platform 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 and architecture of the platform.

attributes Mapping[str, str]
A dictionary of attributes for the platform. The AWS IoT Greengrass Core software defines the os and platform 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 and architecture of the platform.

attributes Map<String>
A dictionary of attributes for the platform. The AWS IoT Greengrass Core software defines the os and platform 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 and architecture of the platform.

ComponentVersionLambdaContainerParams
, ComponentVersionLambdaContainerParamsArgs

Devices List<Pulumi.AwsNative.GreengrassV2.Inputs.ComponentVersionLambdaDeviceMount>
The list of system devices that the container can access.
MemorySizeInKb int

The memory size of the container, expressed in kilobytes.

Default: 16384 (16 MB)

MountRoSysfs bool

Whether or not the container can read information from the device's /sys folder.

Default: false

Volumes List<Pulumi.AwsNative.GreengrassV2.Inputs.ComponentVersionLambdaVolumeMount>
The list of volumes that the container can access.
Devices []ComponentVersionLambdaDeviceMount
The list of system devices that the container can access.
MemorySizeInKb int

The memory size of the container, expressed in kilobytes.

Default: 16384 (16 MB)

MountRoSysfs bool

Whether or not the container can read information from the device's /sys folder.

Default: false

Volumes []ComponentVersionLambdaVolumeMount
The list of volumes that the container can access.
devices List<ComponentVersionLambdaDeviceMount>
The list of system devices that the container can access.
memorySizeInKb Integer

The memory size of the container, expressed in kilobytes.

Default: 16384 (16 MB)

mountRoSysfs Boolean

Whether or not the container can read information from the device's /sys folder.

Default: false

volumes List<ComponentVersionLambdaVolumeMount>
The list of volumes that the container can access.
devices ComponentVersionLambdaDeviceMount[]
The list of system devices that the container can access.
memorySizeInKb number

The memory size of the container, expressed in kilobytes.

Default: 16384 (16 MB)

mountRoSysfs boolean

Whether or not the container can read information from the device's /sys folder.

Default: false

volumes ComponentVersionLambdaVolumeMount[]
The list of volumes that the container can access.
devices Sequence[ComponentVersionLambdaDeviceMount]
The list of system devices that the container can access.
memory_size_in_kb int

The memory size of the container, expressed in kilobytes.

Default: 16384 (16 MB)

mount_ro_sysfs bool

Whether or not the container can read information from the device's /sys folder.

Default: false

volumes Sequence[ComponentVersionLambdaVolumeMount]
The list of volumes that the container can access.
devices List<Property Map>
The list of system devices that the container can access.
memorySizeInKb Number

The memory size of the container, expressed in kilobytes.

Default: 16384 (16 MB)

mountRoSysfs Boolean

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

AddGroupOwner bool

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.AwsNative.GreengrassV2.ComponentVersionLambdaFilesystemPermission

The permission to access the device: read/only ( ro ) or read/write ( rw ).

Default: ro

AddGroupOwner bool

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 ComponentVersionLambdaFilesystemPermission

The permission to access the device: read/only ( ro ) or read/write ( rw ).

Default: ro

addGroupOwner Boolean

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 ComponentVersionLambdaFilesystemPermission

The permission to access the device: read/only ( ro ) or read/write ( rw ).

Default: ro

addGroupOwner boolean

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 ComponentVersionLambdaFilesystemPermission

The permission to access the device: read/only ( ro ) or read/write ( rw ).

Default: ro

add_group_owner bool

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 ComponentVersionLambdaFilesystemPermission

The permission to access the device: read/only ( ro ) or read/write ( rw ).

Default: ro

addGroupOwner Boolean

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.AwsNative.GreengrassV2.ComponentVersionLambdaEventSourceType
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 ComponentVersionLambdaEventSourceType
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 ComponentVersionLambdaEventSourceType
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 ComponentVersionLambdaEventSourceType
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 ComponentVersionLambdaEventSourceType
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

PubSub
PUB_SUB
IotCore
IOT_CORE
ComponentVersionLambdaEventSourceTypePubSub
PUB_SUB
ComponentVersionLambdaEventSourceTypeIotCore
IOT_CORE
PubSub
PUB_SUB
IotCore
IOT_CORE
PubSub
PUB_SUB
IotCore
IOT_CORE
PUB_SUB
PUB_SUB
IOT_CORE
IOT_CORE
"PUB_SUB"
PUB_SUB
"IOT_CORE"
IOT_CORE

ComponentVersionLambdaExecutionParameters
, ComponentVersionLambdaExecutionParametersArgs

EnvironmentVariables Dictionary<string, string>
The map of environment variables that are available to the Lambda function when it runs.
EventSources List<Pulumi.AwsNative.GreengrassV2.Inputs.ComponentVersionLambdaEventSource>
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.
ExecArgs List<string>
The list of arguments to pass to the Lambda function when it runs.
InputPayloadEncodingType Pulumi.AwsNative.GreengrassV2.ComponentVersionLambdaExecutionParametersInputPayloadEncodingType

The encoding type that the Lambda function supports.

Default: json

LinuxProcessParams Pulumi.AwsNative.GreengrassV2.Inputs.ComponentVersionLambdaLinuxProcessParams
The parameters for the Linux process that contains the Lambda function.
MaxIdleTimeInSeconds int
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.
MaxInstancesCount int
The maximum number of instances that a non-pinned Lambda function can run at the same time.
MaxQueueSize int
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

StatusTimeoutInSeconds int
The interval in seconds at which a pinned (also known as long-lived) Lambda function component sends status updates to the Lambda manager component.
TimeoutInSeconds int
The maximum amount of time in seconds that the Lambda function can process a work item.
EnvironmentVariables map[string]string
The map of environment variables that are available to the Lambda function when it runs.
EventSources []ComponentVersionLambdaEventSource
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.
ExecArgs []string
The list of arguments to pass to the Lambda function when it runs.
InputPayloadEncodingType ComponentVersionLambdaExecutionParametersInputPayloadEncodingType

The encoding type that the Lambda function supports.

Default: json

LinuxProcessParams ComponentVersionLambdaLinuxProcessParams
The parameters for the Linux process that contains the Lambda function.
MaxIdleTimeInSeconds int
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.
MaxInstancesCount int
The maximum number of instances that a non-pinned Lambda function can run at the same time.
MaxQueueSize int
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

StatusTimeoutInSeconds int
The interval in seconds at which a pinned (also known as long-lived) Lambda function component sends status updates to the Lambda manager component.
TimeoutInSeconds int
The maximum amount of time in seconds that the Lambda function can process a work item.
environmentVariables Map<String,String>
The map of environment variables that are available to the Lambda function when it runs.
eventSources List<ComponentVersionLambdaEventSource>
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.
execArgs List<String>
The list of arguments to pass to the Lambda function when it runs.
inputPayloadEncodingType ComponentVersionLambdaExecutionParametersInputPayloadEncodingType

The encoding type that the Lambda function supports.

Default: json

linuxProcessParams ComponentVersionLambdaLinuxProcessParams
The parameters for the Linux process that contains the Lambda function.
maxIdleTimeInSeconds Integer
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.
maxInstancesCount Integer
The maximum number of instances that a non-pinned Lambda function can run at the same time.
maxQueueSize Integer
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

statusTimeoutInSeconds Integer
The interval in seconds at which a pinned (also known as long-lived) Lambda function component sends status updates to the Lambda manager component.
timeoutInSeconds Integer
The maximum amount of time in seconds that the Lambda function can process a work item.
environmentVariables {[key: string]: string}
The map of environment variables that are available to the Lambda function when it runs.
eventSources ComponentVersionLambdaEventSource[]
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.
execArgs string[]
The list of arguments to pass to the Lambda function when it runs.
inputPayloadEncodingType ComponentVersionLambdaExecutionParametersInputPayloadEncodingType

The encoding type that the Lambda function supports.

Default: json

linuxProcessParams ComponentVersionLambdaLinuxProcessParams
The parameters for the Linux process that contains the Lambda function.
maxIdleTimeInSeconds number
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.
maxInstancesCount number
The maximum number of instances that a non-pinned Lambda function can run at the same time.
maxQueueSize number
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

statusTimeoutInSeconds number
The interval in seconds at which a pinned (also known as long-lived) Lambda function component sends status updates to the Lambda manager component.
timeoutInSeconds number
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[ComponentVersionLambdaEventSource]
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_encoding_type ComponentVersionLambdaExecutionParametersInputPayloadEncodingType

The encoding type that the Lambda function supports.

Default: json

linux_process_params ComponentVersionLambdaLinuxProcessParams
The parameters for the Linux process that contains the Lambda function.
max_idle_time_in_seconds int
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_count int
The maximum number of instances that a non-pinned Lambda function can run at the same time.
max_queue_size int
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_in_seconds int
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_seconds int
The maximum amount of time in seconds that the Lambda function can process a work item.
environmentVariables Map<String>
The map of environment variables that are available to the Lambda function when it runs.
eventSources 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.
execArgs List<String>
The list of arguments to pass to the Lambda function when it runs.
inputPayloadEncodingType "json" | "binary"

The encoding type that the Lambda function supports.

Default: json

linuxProcessParams Property Map
The parameters for the Linux process that contains the Lambda function.
maxIdleTimeInSeconds Number
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.
maxInstancesCount Number
The maximum number of instances that a non-pinned Lambda function can run at the same time.
maxQueueSize Number
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

statusTimeoutInSeconds Number
The interval in seconds at which a pinned (also known as long-lived) Lambda function component sends status updates to the Lambda manager component.
timeoutInSeconds Number
The maximum amount of time in seconds that the Lambda function can process a work item.

ComponentVersionLambdaExecutionParametersInputPayloadEncodingType
, ComponentVersionLambdaExecutionParametersInputPayloadEncodingTypeArgs

Json
json
Binary
binary
ComponentVersionLambdaExecutionParametersInputPayloadEncodingTypeJson
json
ComponentVersionLambdaExecutionParametersInputPayloadEncodingTypeBinary
binary
Json
json
Binary
binary
Json
json
Binary
binary
JSON
json
BINARY
binary
"json"
json
"binary"
binary

ComponentVersionLambdaFilesystemPermission
, ComponentVersionLambdaFilesystemPermissionArgs

Ro
ro
Rw
rw
ComponentVersionLambdaFilesystemPermissionRo
ro
ComponentVersionLambdaFilesystemPermissionRw
rw
Ro
ro
Rw
rw
Ro
ro
Rw
rw
RO
ro
RW
rw
"ro"
ro
"rw"
rw

ComponentVersionLambdaFunctionRecipeSource
, ComponentVersionLambdaFunctionRecipeSourceArgs

ComponentDependencies Dictionary<string, Pulumi.AwsNative.GreengrassV2.Inputs.ComponentVersionComponentDependencyRequirement>
The component versions on which this Lambda function component depends.
ComponentLambdaParameters Pulumi.AwsNative.GreengrassV2.Inputs.ComponentVersionLambdaExecutionParameters
The system and runtime parameters for the Lambda function as it runs on the AWS IoT Greengrass core device.
ComponentName string

The name of the component.

Defaults to the name of the Lambda function.

ComponentPlatforms List<Pulumi.AwsNative.GreengrassV2.Inputs.ComponentVersionComponentPlatform>
The platforms that the component version supports.
ComponentVersion 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 becomes 3.0.0 .

LambdaArn 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 .
ComponentDependencies map[string]ComponentVersionComponentDependencyRequirement
The component versions on which this Lambda function component depends.
ComponentLambdaParameters ComponentVersionLambdaExecutionParameters
The system and runtime parameters for the Lambda function as it runs on the AWS IoT Greengrass core device.
ComponentName string

The name of the component.

Defaults to the name of the Lambda function.

ComponentPlatforms []ComponentVersionComponentPlatform
The platforms that the component version supports.
ComponentVersion 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 becomes 3.0.0 .

LambdaArn 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 .
componentDependencies Map<String,ComponentVersionComponentDependencyRequirement>
The component versions on which this Lambda function component depends.
componentLambdaParameters ComponentVersionLambdaExecutionParameters
The system and runtime parameters for the Lambda function as it runs on the AWS IoT Greengrass core device.
componentName String

The name of the component.

Defaults to the name of the Lambda function.

componentPlatforms List<ComponentVersionComponentPlatform>
The platforms that the component version supports.
componentVersion 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 becomes 3.0.0 .

lambdaArn 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 .
componentDependencies {[key: string]: ComponentVersionComponentDependencyRequirement}
The component versions on which this Lambda function component depends.
componentLambdaParameters ComponentVersionLambdaExecutionParameters
The system and runtime parameters for the Lambda function as it runs on the AWS IoT Greengrass core device.
componentName string

The name of the component.

Defaults to the name of the Lambda function.

componentPlatforms ComponentVersionComponentPlatform[]
The platforms that the component version supports.
componentVersion 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 becomes 3.0.0 .

lambdaArn 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, ComponentVersionComponentDependencyRequirement]
The component versions on which this Lambda function component depends.
component_lambda_parameters ComponentVersionLambdaExecutionParameters
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[ComponentVersionComponentPlatform]
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 becomes 3.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 .
componentDependencies Map<Property Map>
The component versions on which this Lambda function component depends.
componentLambdaParameters Property Map
The system and runtime parameters for the Lambda function as it runs on the AWS IoT Greengrass core device.
componentName String

The name of the component.

Defaults to the name of the Lambda function.

componentPlatforms List<Property Map>
The platforms that the component version supports.
componentVersion 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 becomes 3.0.0 .

lambdaArn 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

ContainerParams Pulumi.AwsNative.GreengrassV2.Inputs.ComponentVersionLambdaContainerParams
The parameters for the container in which the Lambda function runs.
IsolationMode Pulumi.AwsNative.GreengrassV2.ComponentVersionLambdaLinuxProcessParamsIsolationMode

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

ContainerParams ComponentVersionLambdaContainerParams
The parameters for the container in which the Lambda function runs.
IsolationMode ComponentVersionLambdaLinuxProcessParamsIsolationMode

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

containerParams ComponentVersionLambdaContainerParams
The parameters for the container in which the Lambda function runs.
isolationMode ComponentVersionLambdaLinuxProcessParamsIsolationMode

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

containerParams ComponentVersionLambdaContainerParams
The parameters for the container in which the Lambda function runs.
isolationMode ComponentVersionLambdaLinuxProcessParamsIsolationMode

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 ComponentVersionLambdaContainerParams
The parameters for the container in which the Lambda function runs.
isolation_mode ComponentVersionLambdaLinuxProcessParamsIsolationMode

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

containerParams Property Map
The parameters for the container in which the Lambda function runs.
isolationMode "GreengrassContainer" | "NoContainer"

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

GreengrassContainer
GreengrassContainer
NoContainer
NoContainer
ComponentVersionLambdaLinuxProcessParamsIsolationModeGreengrassContainer
GreengrassContainer
ComponentVersionLambdaLinuxProcessParamsIsolationModeNoContainer
NoContainer
GreengrassContainer
GreengrassContainer
NoContainer
NoContainer
GreengrassContainer
GreengrassContainer
NoContainer
NoContainer
GREENGRASS_CONTAINER
GreengrassContainer
NO_CONTAINER
NoContainer
"GreengrassContainer"
GreengrassContainer
"NoContainer"
NoContainer

ComponentVersionLambdaVolumeMount
, ComponentVersionLambdaVolumeMountArgs

AddGroupOwner bool

Whether or not to add the AWS IoT Greengrass user group as an owner of the volume.

Default: false

DestinationPath string
The path to the logical volume in the file system.
Permission Pulumi.AwsNative.GreengrassV2.ComponentVersionLambdaFilesystemPermission

The permission to access the volume: read/only ( ro ) or read/write ( rw ).

Default: ro

SourcePath string
The path to the physical volume in the file system.
AddGroupOwner bool

Whether or not to add the AWS IoT Greengrass user group as an owner of the volume.

Default: false

DestinationPath string
The path to the logical volume in the file system.
Permission ComponentVersionLambdaFilesystemPermission

The permission to access the volume: read/only ( ro ) or read/write ( rw ).

Default: ro

SourcePath string
The path to the physical volume in the file system.
addGroupOwner Boolean

Whether or not to add the AWS IoT Greengrass user group as an owner of the volume.

Default: false

destinationPath String
The path to the logical volume in the file system.
permission ComponentVersionLambdaFilesystemPermission

The permission to access the volume: read/only ( ro ) or read/write ( rw ).

Default: ro

sourcePath String
The path to the physical volume in the file system.
addGroupOwner boolean

Whether or not to add the AWS IoT Greengrass user group as an owner of the volume.

Default: false

destinationPath string
The path to the logical volume in the file system.
permission ComponentVersionLambdaFilesystemPermission

The permission to access the volume: read/only ( ro ) or read/write ( rw ).

Default: ro

sourcePath string
The path to the physical volume in the file system.
add_group_owner bool

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 ComponentVersionLambdaFilesystemPermission

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.
addGroupOwner Boolean

Whether or not to add the AWS IoT Greengrass user group as an owner of the volume.

Default: false

destinationPath 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

sourcePath 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.

AWS Cloud Control v1.26.0 published on Wednesday, Mar 12, 2025 by Pulumi