Interface CfnFunctionDefinition.IFunctionConfigurationProperty
The group-specific configuration settings for a Lambda function.
Namespace: Amazon.CDK.AWS.Greengrass
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IFunctionConfigurationProperty
Syntax (vb)
Public Interface IFunctionConfigurationProperty
Remarks
These settings configure the function's behavior in the Greengrass group. For more information, see Controlling Execution of Greengrass Lambda Functions by Using Group-Specific Configuration in the Developer Guide .
In an AWS CloudFormation template, FunctionConfiguration
is a property of the Function
property type.
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 functionConfigurationProperty = 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
};
Synopsis
Properties
Encoding |
The expected encoding type of the input payload for the function. |
Environment | The environment configuration of the function. |
Exec |
The execution arguments. |
Executable | The name of the function executable. |
Memory |
The memory size (in KB) required by the function. |
Pinned | Indicates whether the function is pinned (or long-lived ). |
Timeout | The allowed execution time (in seconds) after which the function should terminate. |
Properties
EncodingType
The expected encoding type of the input payload for the function.
virtual string EncodingType { get; }
Property Value
System.
Remarks
Environment
The environment configuration of the function.
virtual object Environment { get; }
Property Value
System.
Remarks
ExecArgs
The execution arguments.
virtual string ExecArgs { get; }
Property Value
System.
Remarks
Executable
The name of the function executable.
virtual string Executable { get; }
Property Value
System.
Remarks
MemorySize
The memory size (in KB) required by the function.
virtual Nullable<double> MemorySize { get; }
Property Value
System.
Remarks
This property applies only to Lambda functions that run in a Greengrass container.
Pinned
Indicates whether the function is pinned (or long-lived ).
virtual object Pinned { get; }
Property Value
System.
Remarks
Pinned functions start when the core starts and process all requests in the same container. The default value is false.
Timeout
The allowed execution time (in seconds) after which the function should terminate.
virtual Nullable<double> Timeout { get; }
Property Value
System.
Remarks
For pinned functions, this timeout applies for each request.