Interface CfnFunctionDefinition.FunctionProperty

All Superinterfaces:
All Known Implementing Classes:
Enclosing class:

@Stability(Stable) public static interface CfnFunctionDefinition.FunctionProperty extends
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 FunctionDefinitionVersion property type contains a list of Function property types.


 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 Object variables;
 FunctionProperty functionProperty = FunctionProperty.builder()
                                 // the properties below are optional
  • Method Details

    • getFunctionArn

      @Stability(Stable) @NotNull String getFunctionArn()
      The Amazon Resource Name (ARN) of the alias (recommended) or version of the referenced Lambda function.
    • getFunctionConfiguration

      @Stability(Stable) @NotNull Object getFunctionConfiguration()
      The group-specific settings of the Lambda function.

      These settings configure the function's behavior in the Greengrass group.

    • getId

      @Stability(Stable) @NotNull String getId()
      A descriptive or arbitrary ID for the function.

      This value must be unique within the function definition version. Maximum length is 128 characters with pattern [a-zA-Z0-9:_-]+ .

    • builder

      @Stability(Stable) static CfnFunctionDefinition.FunctionProperty.Builder builder()
      a CfnFunctionDefinition.FunctionProperty.Builder of CfnFunctionDefinition.FunctionProperty