interface FunctionProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnPropertyMixins.AWS.Greengrass.CfnFunctionDefinitionPropsMixin.FunctionProperty |
Go | github.com/aws/aws-cdk-go/awscdkcfnpropertymixins/v2/awsgreengrass#CfnFunctionDefinitionPropsMixin_FunctionProperty |
Java | software.amazon.awscdk.cfnpropertymixins.services.greengrass.CfnFunctionDefinitionPropsMixin.FunctionProperty |
Python | aws_cdk.cfn_property_mixins.aws_greengrass.CfnFunctionDefinitionPropsMixin.FunctionProperty |
TypeScript | @aws-cdk/cfn-property-mixins » aws_greengrass » CfnFunctionDefinitionPropsMixin » FunctionProperty |
A function is a Lambda function that's referenced from an AWS IoT Greengrass group.
The function is deployed to a Greengrass core where it runs locally. For more information, see Run Lambda Functions on the AWS IoT Greengrass Core in the Developer Guide .
In an CloudFormation template, the Functions property of the FunctionDefinitionVersion property type contains a list of Function property types.
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/cfn-property-mixins';
declare const variables: any;
const functionProperty: greengrass.CfnFunctionDefinitionPropsMixin.FunctionProperty = {
functionArn: 'functionArn',
functionConfiguration: {
encodingType: 'encodingType',
environment: {
accessSysfs: false,
execution: {
isolationMode: 'isolationMode',
runAs: {
gid: 123,
uid: 123,
},
},
resourceAccessPolicies: [{
permission: 'permission',
resourceId: 'resourceId',
}],
variables: variables,
},
execArgs: 'execArgs',
executable: 'executable',
memorySize: 123,
pinned: false,
timeout: 123,
},
id: 'id',
};
Properties
| Name | Type | Description |
|---|---|---|
| function | string | The Amazon Resource Name (ARN) of the alias (recommended) or version of the referenced Lambda function. |
| function | IResolvable | Function | The group-specific settings of the Lambda function. |
| id? | string | A descriptive or arbitrary ID for the function. |
functionArn?
Type:
string
(optional)
The Amazon Resource Name (ARN) of the alias (recommended) or version of the referenced Lambda function.
functionConfiguration?
Type:
IResolvable | Function
(optional)
The group-specific settings of the Lambda function.
These settings configure the function's behavior in the Greengrass group.
id?
Type:
string
(optional)
A descriptive or arbitrary ID for the function.
This value must be unique within the function definition version. Maximum length is 128 characters with pattern [a-zA-Z0-9:_-]+ .

.NET
Go
Java
Python
TypeScript