Interface CfnFunctionDefinitionVersion.FunctionProperty

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

@Stability(Stable) public static interface CfnFunctionDefinitionVersion.FunctionProperty extends software.amazon.jsii.JsiiSerializable
A function is a Lambda function that's referenced from an AWS IoT Greengrass group.

The function is deployed to a Greengrass core where it runs locally. For more information, see Run Lambda Functions on the AWS IoT Greengrass Core in the Developer Guide .

In an AWS CloudFormation template, the Functions property of the AWS::Greengrass::FunctionDefinitionVersion resource contains a list of Function property types.

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.greengrass.*;
 Object variables;
 FunctionProperty functionProperty = FunctionProperty.builder()
         .functionArn("functionArn")
         .functionConfiguration(FunctionConfigurationProperty.builder()
                 .encodingType("encodingType")
                 .environment(EnvironmentProperty.builder()
                         .accessSysfs(false)
                         .execution(ExecutionProperty.builder()
                                 .isolationMode("isolationMode")
                                 .runAs(RunAsProperty.builder()
                                         .gid(123)
                                         .uid(123)
                                         .build())
                                 .build())
                         .resourceAccessPolicies(List.of(ResourceAccessPolicyProperty.builder()
                                 .resourceId("resourceId")
                                 // the properties below are optional
                                 .permission("permission")
                                 .build()))
                         .variables(variables)
                         .build())
                 .execArgs("execArgs")
                 .executable("executable")
                 .memorySize(123)
                 .pinned(false)
                 .timeout(123)
                 .build())
         .id("id")
         .build();