Class CfnComponentVersionPropsMixin.LambdaFunctionRecipeSourceProperty
Contains information about an AWS Lambda function to import to create a component.
Inherited Members
Namespace: Amazon.CDK.Mixins.Preview.AWS.GreengrassV2.Mixins
Assembly: Amazon.CDK.Mixins.Preview.dll
Syntax (csharp)
public class CfnComponentVersionPropsMixin.LambdaFunctionRecipeSourceProperty : CfnComponentVersionPropsMixin.ILambdaFunctionRecipeSourceProperty
Syntax (vb)
Public Class CfnComponentVersionPropsMixin.LambdaFunctionRecipeSourceProperty Implements CfnComponentVersionPropsMixin.ILambdaFunctionRecipeSourceProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.Mixins.Preview.AWS.GreengrassV2.Mixins;
var lambdaFunctionRecipeSourceProperty = new LambdaFunctionRecipeSourceProperty {
ComponentDependencies = new Dictionary<string, object> {
{ "componentDependenciesKey", new ComponentDependencyRequirementProperty {
DependencyType = "dependencyType",
VersionRequirement = "versionRequirement"
} }
},
ComponentLambdaParameters = new LambdaExecutionParametersProperty {
EnvironmentVariables = new Dictionary<string, string> {
{ "environmentVariablesKey", "environmentVariables" }
},
EventSources = new [] { new LambdaEventSourceProperty {
Topic = "topic",
Type = "type"
} },
ExecArgs = new [] { "execArgs" },
InputPayloadEncodingType = "inputPayloadEncodingType",
LinuxProcessParams = new LambdaLinuxProcessParamsProperty {
ContainerParams = new LambdaContainerParamsProperty {
Devices = new [] { new LambdaDeviceMountProperty {
AddGroupOwner = false,
Path = "path",
Permission = "permission"
} },
MemorySizeInKb = 123,
MountRoSysfs = false,
Volumes = new [] { new LambdaVolumeMountProperty {
AddGroupOwner = false,
DestinationPath = "destinationPath",
Permission = "permission",
SourcePath = "sourcePath"
} }
},
IsolationMode = "isolationMode"
},
MaxIdleTimeInSeconds = 123,
MaxInstancesCount = 123,
MaxQueueSize = 123,
Pinned = false,
StatusTimeoutInSeconds = 123,
TimeoutInSeconds = 123
},
ComponentName = "componentName",
ComponentPlatforms = new [] { new ComponentPlatformProperty {
Attributes = new Dictionary<string, string> {
{ "attributesKey", "attributes" }
},
Name = "name"
} },
ComponentVersion = "componentVersion",
LambdaArn = "lambdaArn"
};
Synopsis
Constructors
| LambdaFunctionRecipeSourceProperty() | Contains information about an AWS Lambda function to import to create a component. |
Properties
| ComponentDependencies | The component versions on which this Lambda function component depends. |
| ComponentLambdaParameters | The system and runtime parameters for the Lambda function as it runs on the AWS IoT Greengrass core device. |
| ComponentName | The name of the component. |
| ComponentPlatforms | The platforms that the component version supports. |
| ComponentVersion | The version of the component. |
| LambdaArn | The ARN of the Lambda function. |
Constructors
LambdaFunctionRecipeSourceProperty()
Contains information about an AWS Lambda function to import to create a component.
public LambdaFunctionRecipeSourceProperty()
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.Mixins.Preview.AWS.GreengrassV2.Mixins;
var lambdaFunctionRecipeSourceProperty = new LambdaFunctionRecipeSourceProperty {
ComponentDependencies = new Dictionary<string, object> {
{ "componentDependenciesKey", new ComponentDependencyRequirementProperty {
DependencyType = "dependencyType",
VersionRequirement = "versionRequirement"
} }
},
ComponentLambdaParameters = new LambdaExecutionParametersProperty {
EnvironmentVariables = new Dictionary<string, string> {
{ "environmentVariablesKey", "environmentVariables" }
},
EventSources = new [] { new LambdaEventSourceProperty {
Topic = "topic",
Type = "type"
} },
ExecArgs = new [] { "execArgs" },
InputPayloadEncodingType = "inputPayloadEncodingType",
LinuxProcessParams = new LambdaLinuxProcessParamsProperty {
ContainerParams = new LambdaContainerParamsProperty {
Devices = new [] { new LambdaDeviceMountProperty {
AddGroupOwner = false,
Path = "path",
Permission = "permission"
} },
MemorySizeInKb = 123,
MountRoSysfs = false,
Volumes = new [] { new LambdaVolumeMountProperty {
AddGroupOwner = false,
DestinationPath = "destinationPath",
Permission = "permission",
SourcePath = "sourcePath"
} }
},
IsolationMode = "isolationMode"
},
MaxIdleTimeInSeconds = 123,
MaxInstancesCount = 123,
MaxQueueSize = 123,
Pinned = false,
StatusTimeoutInSeconds = 123,
TimeoutInSeconds = 123
},
ComponentName = "componentName",
ComponentPlatforms = new [] { new ComponentPlatformProperty {
Attributes = new Dictionary<string, string> {
{ "attributesKey", "attributes" }
},
Name = "name"
} },
ComponentVersion = "componentVersion",
LambdaArn = "lambdaArn"
};
Properties
ComponentDependencies
The component versions on which this Lambda function component depends.
public object? ComponentDependencies { get; set; }
Property Value
Remarks
Type union: either IResolvable or Dictionary<string, either IResolvable or CfnComponentVersionPropsMixin.IComponentDependencyRequirementProperty>
ComponentLambdaParameters
The system and runtime parameters for the Lambda function as it runs on the AWS IoT Greengrass core device.
public object? ComponentLambdaParameters { get; set; }
Property Value
Remarks
Type union: either IResolvable or CfnComponentVersionPropsMixin.ILambdaExecutionParametersProperty
ComponentName
The name of the component.
public string? ComponentName { get; set; }
Property Value
Remarks
ComponentPlatforms
The platforms that the component version supports.
public object? ComponentPlatforms { get; set; }
Property Value
Remarks
Type union: either IResolvable or (either IResolvable or CfnComponentVersionPropsMixin.IComponentPlatformProperty)[]
ComponentVersion
The version of the component.
public string? ComponentVersion { get; set; }
Property Value
Remarks
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
The ARN of the Lambda function.
public string? LambdaArn { get; set; }
Property Value
Remarks
The ARN must include the version of the function to import. You can't use version aliases like $LATEST .