interface CfnFunctionDefinitionVersionProps
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Greengrass.CfnFunctionDefinitionVersionProps |
Java | software.amazon.awscdk.services.greengrass.CfnFunctionDefinitionVersionProps |
Python | aws_cdk.aws_greengrass.CfnFunctionDefinitionVersionProps |
TypeScript | @aws-cdk/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 * as greengrass from '@aws-cdk/aws-greengrass';
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
Name | Type | Description |
---|---|---|
function | string | The ID of the function definition associated with this version. |
functions | IResolvable | IResolvable | Function [] | The functions in this version. |
default | IResolvable | Default | The 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
|
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.