interface FunctionDefinitionVersionProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Greengrass.CfnFunctionDefinition.FunctionDefinitionVersionProperty |
![]() | software.amazon.awscdk.services.greengrass.CfnFunctionDefinition.FunctionDefinitionVersionProperty |
![]() | aws_cdk.aws_greengrass.CfnFunctionDefinition.FunctionDefinitionVersionProperty |
![]() | @aws-cdk/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 * as greengrass from '@aws-cdk/aws-greengrass';
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
Name | Type | Description |
---|---|---|
functions | IResolvable | IResolvable | Function [] | The functions in this version. |
default | IResolvable | Default | The default configuration that applies to all Lambda functions in the group. |
functions
Type:
IResolvable
|
IResolvable
|
Function
[]
The functions in this version.
defaultConfig?
Type:
IResolvable
|
Default
(optional)
The default configuration that applies to all Lambda functions in the group.
Individual Lambda functions can override these settings.