Interface CfnComponentVersion.LambdaFunctionRecipeSourceProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnComponentVersion.LambdaFunctionRecipeSourceProperty.Jsii$Proxy
Enclosing class:
CfnComponentVersion

@Stability(Stable) public static interface CfnComponentVersion.LambdaFunctionRecipeSourceProperty extends software.amazon.jsii.JsiiSerializable
Contains information about an AWS Lambda function to import to create a component.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.greengrassv2.*;
 LambdaFunctionRecipeSourceProperty lambdaFunctionRecipeSourceProperty = LambdaFunctionRecipeSourceProperty.builder()
         .componentDependencies(Map.of(
                 "componentDependenciesKey", ComponentDependencyRequirementProperty.builder()
                         .dependencyType("dependencyType")
                         .versionRequirement("versionRequirement")
                         .build()))
         .componentLambdaParameters(LambdaExecutionParametersProperty.builder()
                 .environmentVariables(Map.of(
                         "environmentVariablesKey", "environmentVariables"))
                 .eventSources(List.of(LambdaEventSourceProperty.builder()
                         .topic("topic")
                         .type("type")
                         .build()))
                 .execArgs(List.of("execArgs"))
                 .inputPayloadEncodingType("inputPayloadEncodingType")
                 .linuxProcessParams(LambdaLinuxProcessParamsProperty.builder()
                         .containerParams(LambdaContainerParamsProperty.builder()
                                 .devices(List.of(LambdaDeviceMountProperty.builder()
                                         .addGroupOwner(false)
                                         .path("path")
                                         .permission("permission")
                                         .build()))
                                 .memorySizeInKb(123)
                                 .mountRoSysfs(false)
                                 .volumes(List.of(LambdaVolumeMountProperty.builder()
                                         .addGroupOwner(false)
                                         .destinationPath("destinationPath")
                                         .permission("permission")
                                         .sourcePath("sourcePath")
                                         .build()))
                                 .build())
                         .isolationMode("isolationMode")
                         .build())
                 .maxIdleTimeInSeconds(123)
                 .maxInstancesCount(123)
                 .maxQueueSize(123)
                 .pinned(false)
                 .statusTimeoutInSeconds(123)
                 .timeoutInSeconds(123)
                 .build())
         .componentName("componentName")
         .componentPlatforms(List.of(ComponentPlatformProperty.builder()
                 .attributes(Map.of(
                         "attributesKey", "attributes"))
                 .name("name")
                 .build()))
         .componentVersion("componentVersion")
         .lambdaArn("lambdaArn")
         .build();
 
  • Method Details

    • getComponentDependencies

      @Stability(Stable) @Nullable default Object getComponentDependencies()
      The component versions on which this Lambda function component depends.
    • getComponentLambdaParameters

      @Stability(Stable) @Nullable default Object getComponentLambdaParameters()
      The system and runtime parameters for the Lambda function as it runs on the AWS IoT Greengrass core device.
    • getComponentName

      @Stability(Stable) @Nullable default String getComponentName()
      The name of the component.

      Defaults to the name of the Lambda function.

    • getComponentPlatforms

      @Stability(Stable) @Nullable default Object getComponentPlatforms()
      The platforms that the component version supports.
    • getComponentVersion

      @Stability(Stable) @Nullable default String getComponentVersion()
      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 .

    • getLambdaArn

      @Stability(Stable) @Nullable default String getLambdaArn()
      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 .

    • builder

      Returns:
      a CfnComponentVersion.LambdaFunctionRecipeSourceProperty.Builder of CfnComponentVersion.LambdaFunctionRecipeSourceProperty