Interface CfnFunctionDefinition.FunctionConfigurationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnFunctionDefinition.FunctionConfigurationProperty.Jsii$Proxy
- Enclosing class:
CfnFunctionDefinition
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.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.greengrass.*;
Object variables;
FunctionConfigurationProperty functionConfigurationProperty = FunctionConfigurationProperty.builder()
.encodingType("encodingType")
.environment(EnvironmentProperty.builder()
.accessSysfs(false)
.execution(ExecutionProperty.builder()
.isolationMode("isolationMode")
.runAs(RunAsProperty.builder()
.gid(123)
.uid(123)
.build())
.build())
.resourceAccessPolicies(List.of(ResourceAccessPolicyProperty.builder()
.resourceId("resourceId")
// the properties below are optional
.permission("permission")
.build()))
.variables(variables)
.build())
.execArgs("execArgs")
.executable("executable")
.memorySize(123)
.pinned(false)
.timeout(123)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnFunctionDefinition.FunctionConfigurationPropertystatic final classAn implementation forCfnFunctionDefinition.FunctionConfigurationProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringThe expected encoding type of the input payload for the function.default ObjectThe environment configuration of the function.default StringThe execution arguments.default StringThe name of the function executable.default NumberThe memory size (in KB) required by the function.default ObjectIndicates whether the function is pinned (or long-lived ).default NumberThe allowed execution time (in seconds) after which the function should terminate.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getEncodingType
The expected encoding type of the input payload for the function.Valid values are
json(default) andbinary.- See Also:
-
getEnvironment
The environment configuration of the function.Returns union: either
IResolvableorCfnFunctionDefinition.EnvironmentProperty- See Also:
-
getExecArgs
The execution arguments.- See Also:
-
getExecutable
The name of the function executable.- See Also:
-
getMemorySize
The memory size (in KB) required by the function.This property applies only to Lambda functions that run in a Greengrass container.
- See Also:
-
getPinned
Indicates whether the function is pinned (or long-lived ).Pinned functions start when the core starts and process all requests in the same container. The default value is false.
Returns union: either
BooleanorIResolvable- See Also:
-
getTimeout
The allowed execution time (in seconds) after which the function should terminate.For pinned functions, this timeout applies for each request.
- See Also:
-
builder
-