Class CfnFunctionDefinitionVersion
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.greengrass.CfnFunctionDefinitionVersion
- All Implemented Interfaces:
IInspectable,IFunctionDefinitionVersionRef,IEnvironmentAware,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-12-01T16:02:21.917Z")
@Stability(Stable)
public class CfnFunctionDefinitionVersion
extends CfnResource
implements IInspectable, IFunctionDefinitionVersionRef
The
AWS::Greengrass::FunctionDefinitionVersion resource represents a function definition version for AWS IoT Greengrass .
A function definition version contains contain a list of functions.
To create a function definition version, you must specify the ID of the function definition that you want to associate with the version. For information about creating a function definition, see
AWS::Greengrass::FunctionDefinition.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.
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;
CfnFunctionDefinitionVersion cfnFunctionDefinitionVersion = CfnFunctionDefinitionVersion.Builder.create(this, "MyCfnFunctionDefinitionVersion")
.functionDefinitionId("functionDefinitionId")
.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 TypeClassDescriptionstatic final classA fluent builder forCfnFunctionDefinitionVersion.static interfaceThe default configuration that applies to all Lambda functions in the function definition version.static interfaceThe environment configuration for a Lambda function on the AWS IoT Greengrass core.static interfaceConfiguration settings for the Lambda execution environment on the AWS IoT Greengrass core.static interfaceThe group-specific configuration settings for a Lambda function.static interfaceA function is a Lambda function that's referenced from an AWS IoT Greengrass group.static interfaceA list of the resources in the group that the function can access, with the corresponding read-only or read-write permissions.static interfaceThe user and group permissions used to run the Lambda function.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.greengrass.IFunctionDefinitionVersionRef
IFunctionDefinitionVersionRef.Jsii$Default, IFunctionDefinitionVersionRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnFunctionDefinitionVersion(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnFunctionDefinitionVersion(software.amazon.jsii.JsiiObjectRef objRef) CfnFunctionDefinitionVersion(software.constructs.Construct scope, String id, CfnFunctionDefinitionVersionProps props) Create a newAWS::Greengrass::FunctionDefinitionVersion. -
Method Summary
Modifier and TypeMethodDescriptionThe default configuration that applies to all Lambda functions in the group.The ID of the function definition associated with this version.A reference to a FunctionDefinitionVersion resource.The functions in this version.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnFunctionDefinitionVersion.renderProperties(Map<String, Object> props) voidsetDefaultConfig(IResolvable value) The default configuration that applies to all Lambda functions in the group.voidThe default configuration that applies to all Lambda functions in the group.voidsetFunctionDefinitionId(String value) The ID of the function definition associated with this version.voidsetFunctions(List<Object> value) The functions in this version.voidsetFunctions(IResolvable value) The functions in this version.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnFunctionDefinitionVersion
protected CfnFunctionDefinitionVersion(software.amazon.jsii.JsiiObjectRef objRef) -
CfnFunctionDefinitionVersion
protected CfnFunctionDefinitionVersion(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnFunctionDefinitionVersion
@Stability(Stable) public CfnFunctionDefinitionVersion(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnFunctionDefinitionVersionProps props) Create a newAWS::Greengrass::FunctionDefinitionVersion.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
isCfnFunctionDefinitionVersion
Checks whether the given object is a CfnFunctionDefinitionVersion.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrId
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getFunctionDefinitionVersionRef
@Stability(Stable) @NotNull public FunctionDefinitionVersionReference getFunctionDefinitionVersionRef()A reference to a FunctionDefinitionVersion resource.- Specified by:
getFunctionDefinitionVersionRefin interfaceIFunctionDefinitionVersionRef
-
getFunctionDefinitionId
The ID of the function definition associated with this version. -
setFunctionDefinitionId
The ID of the function definition associated with this version. -
getFunctions
The functions in this version.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnFunctionDefinitionVersion.FunctionProperty> -
setFunctions
The functions in this version. -
setFunctions
The functions in this version. -
getDefaultConfig
The default configuration that applies to all Lambda functions in the group.Returns union: either
IResolvableorCfnFunctionDefinitionVersion.DefaultConfigProperty -
setDefaultConfig
The default configuration that applies to all Lambda functions in the group. -
setDefaultConfig
@Stability(Stable) public void setDefaultConfig(@Nullable CfnFunctionDefinitionVersion.DefaultConfigProperty value) The default configuration that applies to all Lambda functions in the group.
-