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
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-11T15:55:59.773Z")
@Stability(Stable)
public class CfnFunctionDefinitionVersion
extends CfnResource
implements IInspectable
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
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnFunctionDefinitionVersion
.static interface
The default configuration that applies to all Lambda functions in the function definition version.static interface
The environment configuration for a Lambda function on the AWS IoT Greengrass core.static interface
Configuration settings for the Lambda execution environment on the AWS IoT Greengrass core.static interface
The group-specific configuration settings for a Lambda function.static interface
A function is a Lambda function that's referenced from an AWS IoT Greengrass group.static interface
A list of the resources in the group that the function can access, with the corresponding read-only or read-write permissions.static interface
The user and group permissions used to run the Lambda function.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnFunctionDefinitionVersion
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnFunctionDefinitionVersion
(software.amazon.jsii.JsiiObjectRef objRef) CfnFunctionDefinitionVersion
(software.constructs.Construct scope, String id, CfnFunctionDefinitionVersionProps props) -
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.The functions in this version.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setDefaultConfig
(IResolvable value) The default configuration that applies to all Lambda functions in the group.void
The default configuration that applies to all Lambda functions in the group.void
setFunctionDefinitionId
(String value) The ID of the function definition associated with this version.void
setFunctions
(List<Object> value) The functions in this version.void
setFunctions
(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, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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) - 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
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in 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:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrId
-
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
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. -
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. -
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.
-