Interface CfnFunctionDefinition.IFunctionDefinitionVersionProperty
A function definition version contains a list of functions.
Namespace: Amazon.CDK.AWS.Greengrass
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IFunctionDefinitionVersionProperty
Syntax (vb)
Public Interface IFunctionDefinitionVersionProperty
Remarks
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.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Greengrass;
var variables;
var functionDefinitionVersionProperty = new FunctionDefinitionVersionProperty {
Functions = new [] { new FunctionProperty {
FunctionArn = "functionArn",
FunctionConfiguration = new FunctionConfigurationProperty {
EncodingType = "encodingType",
Environment = new EnvironmentProperty {
AccessSysfs = false,
Execution = new ExecutionProperty {
IsolationMode = "isolationMode",
RunAs = new RunAsProperty {
Gid = 123,
Uid = 123
}
},
ResourceAccessPolicies = new [] { new ResourceAccessPolicyProperty {
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 = new DefaultConfigProperty {
Execution = new ExecutionProperty {
IsolationMode = "isolationMode",
RunAs = new RunAsProperty {
Gid = 123,
Uid = 123
}
}
}
};
Synopsis
Properties
Default |
The default configuration that applies to all Lambda functions in the group. |
Functions | The functions in this version. |
Properties
DefaultConfig
The default configuration that applies to all Lambda functions in the group.
virtual object DefaultConfig { get; }
Property Value
System.
Remarks
Individual Lambda functions can override these settings.
Functions
The functions in this version.
object Functions { get; }
Property Value
System.