aws-cdk-lib.aws_greengrass.CfnFunctionDefinition.FunctionDefinitionVersionProperty

interface FunctionDefinitionVersionProperty

LanguageType name
.NETAmazon.CDK.AWS.Greengrass.CfnFunctionDefinition.FunctionDefinitionVersionProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsgreengrass#CfnFunctionDefinition_FunctionDefinitionVersionProperty
Javasoftware.amazon.awscdk.services.greengrass.CfnFunctionDefinition.FunctionDefinitionVersionProperty
Pythonaws_cdk.aws_greengrass.CfnFunctionDefinition.FunctionDefinitionVersionProperty
TypeScript aws-cdk-lib » aws_greengrass » CfnFunctionDefinition » FunctionDefinitionVersionProperty

A function definition version contains a list of functions.

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 .

In an AWS CloudFormation template, FunctionDefinitionVersion is the property type of the InitialVersion property in the AWS::Greengrass::FunctionDefinition resource.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_greengrass as greengrass } from 'aws-cdk-lib';

declare const variables: any;
const functionDefinitionVersionProperty: greengrass.CfnFunctionDefinition.FunctionDefinitionVersionProperty = {
  functions: [{
    functionArn: 'functionArn',
    functionConfiguration: {
      encodingType: 'encodingType',
      environment: {
        accessSysfs: false,
        execution: {
          isolationMode: 'isolationMode',
          runAs: {
            gid: 123,
            uid: 123,
          },
        },
        resourceAccessPolicies: [{
          resourceId: 'resourceId',

          // the properties below are optional
          permission: 'permission',
        }],
        variables: variables,
      },
      execArgs: 'execArgs',
      executable: 'executable',
      memorySize: 123,
      pinned: false,
      timeout: 123,
    },
    id: 'id',
  }],

  // the properties below are optional
  defaultConfig: {
    execution: {
      isolationMode: 'isolationMode',
      runAs: {
        gid: 123,
        uid: 123,
      },
    },
  },
};

Properties

NameTypeDescription
functionsIResolvable | IResolvable | FunctionProperty[]The functions in this version.
defaultConfig?IResolvable | DefaultConfigPropertyThe default configuration that applies to all Lambda functions in the group.

functions

Type: IResolvable | IResolvable | FunctionProperty[]

The functions in this version.


defaultConfig?

Type: IResolvable | DefaultConfigProperty (optional)

The default configuration that applies to all Lambda functions in the group.

Individual Lambda functions can override these settings.