@Stability(value=Stable)
public static interface CfnFunctionDefinitionVersion.FunctionConfigurationProperty
extends software.amazon.jsii.JsiiSerializable
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnFunctionDefinitionVersion.FunctionConfigurationProperty.Builder
|
static class |
CfnFunctionDefinitionVersion.FunctionConfigurationProperty.Jsii$Proxy
An implementation for
CfnFunctionDefinitionVersion.FunctionConfigurationProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnFunctionDefinitionVersion.FunctionConfigurationProperty.Builder |
builder() |
default String |
getEncodingType()
The expected encoding type of the input payload for the function.
|
default Object |
getEnvironment()
The environment configuration of the function.
|
default String |
getExecArgs()
The execution arguments.
|
default String |
getExecutable()
The name of the function executable.
|
default Number |
getMemorySize()
The memory size (in KB) required by the function.
|
default Object |
getPinned()
Indicates whether the function is pinned (or *long-lived* ).
|
default Number |
getTimeout()
The allowed execution time (in seconds) after which the function should terminate.
|
@Stability(value=Stable) @Nullable default String getEncodingType()
Valid values are json (default) and binary .
@Stability(value=Stable) @Nullable default Object getEnvironment()
@Stability(value=Stable) @Nullable default String getExecArgs()
@Stability(value=Stable) @Nullable default String getExecutable()
@Stability(value=Stable) @Nullable default Number getMemorySize()
This property applies only to Lambda functions that run in a Greengrass container.
@Stability(value=Stable) @Nullable default Object getPinned()
Pinned functions start when the core starts and process all requests in the same container. The default value is false.
@Stability(value=Stable) @Nullable default Number getTimeout()
For pinned functions, this timeout applies for each request.
@Stability(value=Stable) static CfnFunctionDefinitionVersion.FunctionConfigurationProperty.Builder builder()
Copyright © 2022. All rights reserved.