AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::Greengrass::FunctionDefinitionVersion

CfnFunctionDefinitionVersion

The `AWS::Greengrass::FunctionDefinitionVersion` resource represents a function definition version for AWS IoT Greengrass . A function definition version contains contain a list of functions. > To create a function definition version, you must specify the ID of the function definition that you want to associate with the version. For information about creating a function definition, see [`AWS::Greengrass::FunctionDefinition`](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-greengrass-functiondefinition.html) . > > After you create a function definition version that contains the functions you want to deploy, you must add it to your group version. For more information, see [`AWS::Greengrass::Group`](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-greengrass-group.html) .

Import

import { CfnFunctionDefinitionVersion } from 'aws-cdk-lib/aws-greengrass';

Or use the module namespace:

import * as greengrass from 'aws-cdk-lib/aws-greengrass';
// greengrass.CfnFunctionDefinitionVersion

Properties

Configuration passed to the constructor as CfnFunctionDefinitionVersionProps.

functionDefinitionIdRequired
string

The ID of the function definition associated with this version. This value is a GUID.

functionsRequired
IResolvable | IResolvable | FunctionProperty[]

The functions in this version.

defaultConfigOptional
IResolvable | DefaultConfigProperty

The default configuration that applies to all Lambda functions in the group. Individual Lambda functions can override these settings.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter