Interface CfnFunctionDefinition.FunctionDefinitionVersionProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnFunctionDefinition.FunctionDefinitionVersionProperty.Jsii$Proxy
- Enclosing class:
CfnFunctionDefinition
@Stability(Stable)
public static interface CfnFunctionDefinition.FunctionDefinitionVersionProperty
extends software.amazon.jsii.JsiiSerializable
A function definition version contains a list of functions.
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.
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;
FunctionDefinitionVersionProperty functionDefinitionVersionProperty = FunctionDefinitionVersionProperty.builder()
.functions(List.of(FunctionProperty.builder()
.functionArn("functionArn")
.functionConfiguration(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())
.id("id")
.build()))
// the properties below are optional
.defaultConfig(DefaultConfigProperty.builder()
.execution(ExecutionProperty.builder()
.isolationMode("isolationMode")
.runAs(RunAsProperty.builder()
.gid(123)
.uid(123)
.build())
.build())
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnFunctionDefinition.FunctionDefinitionVersionPropertystatic final classAn implementation forCfnFunctionDefinition.FunctionDefinitionVersionProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getFunctions
The functions in this version.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnFunctionDefinition.FunctionProperty>- See Also:
-
getDefaultConfig
The default configuration that applies to all Lambda functions in the group.Individual Lambda functions can override these settings.
Returns union: either
IResolvableorCfnFunctionDefinition.DefaultConfigProperty- See Also:
-
builder
-