Interface CfnComponentVersion.ILambdaFunctionRecipeSourceProperty
Contains information about an AWS Lambda function to import to create a component.
Namespace: Amazon.CDK.AWS.GreengrassV2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ILambdaFunctionRecipeSourceProperty
Syntax (vb)
Public Interface 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.AWS.GreengrassV2;
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
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. |
Properties
ComponentDependencies
The component versions on which this Lambda function component depends.
virtual object ComponentDependencies { get; }
Property Value
System.Object
Remarks
ComponentLambdaParameters
The system and runtime parameters for the Lambda function as it runs on the AWS IoT Greengrass core device.
virtual object ComponentLambdaParameters { get; }
Property Value
System.Object
Remarks
ComponentName
The name of the component.
virtual string ComponentName { get; }
Property Value
System.String
Remarks
ComponentPlatforms
The platforms that the component version supports.
virtual object ComponentPlatforms { get; }
Property Value
System.Object
Remarks
ComponentVersion
The version of the component.
virtual string ComponentVersion { get; }
Property Value
System.String
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.
virtual string LambdaArn { get; }
Property Value
System.String
Remarks
The ARN must include the version of the function to import. You can't use version aliases like $LATEST
.