aws-cdk-lib.aws_greengrass.CfnFunctionDefinitionVersionProps

interface CfnFunctionDefinitionVersionProps

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

Properties for defining a CfnFunctionDefinitionVersion.

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 cfnFunctionDefinitionVersionProps: greengrass.CfnFunctionDefinitionVersionProps = {
  functionDefinitionId: 'functionDefinitionId',
  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
functionDefinitionIdstringThe ID of the function definition associated with this version.
functionsIResolvable | IResolvable | FunctionProperty[]The functions in this version.
defaultConfig?IResolvable | DefaultConfigPropertyThe default configuration that applies to all Lambda functions in the group.

functionDefinitionId

Type: string

The ID of the function definition associated with this version.

This value is a GUID.


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.