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();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnComponentVersion.LambdaFunctionRecipeSourceProperty
static final class
An implementation forCfnComponentVersion.LambdaFunctionRecipeSourceProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default Object
The component versions on which this Lambda function component depends.default Object
The system and runtime parameters for the Lambda function as it runs on the AWS IoT Greengrass core device.default String
The name of the component.default Object
The platforms that the component version supports.default String
The version of the component.default String
The ARN of the Lambda function.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getComponentDependencies
The component versions on which this Lambda function component depends. -
getComponentLambdaParameters
The system and runtime parameters for the Lambda function as it runs on the AWS IoT Greengrass core device. -
getComponentName
The name of the component.Defaults to the name of the Lambda function.
-
getComponentPlatforms
The platforms that the component version supports. -
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 becomes3.0.0
. -
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
-