Class CfnFunctionDefinitionVersion
- All Implemented Interfaces:
IConstruct
,IDependable
,IInspectable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
AWS::Greengrass::FunctionDefinitionVersion
.
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();
-
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.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.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
ModifierConstructorDescriptionCfnFunctionDefinitionVersion
(Construct scope, String id, CfnFunctionDefinitionVersionProps props) Create a newAWS::Greengrass::FunctionDefinitionVersion
.protected
CfnFunctionDefinitionVersion
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnFunctionDefinitionVersion
(software.amazon.jsii.JsiiObjectRef objRef) -
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.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.core.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
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 Construct scope, @NotNull String id, @NotNull CfnFunctionDefinitionVersionProps props) Create a newAWS::Greengrass::FunctionDefinitionVersion
.- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
props
-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getFunctionDefinitionId
The ID of the function definition associated with this version.This value is a GUID.
-
setFunctionDefinitionId
The ID of the function definition associated with this version.This value is a GUID.
-
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.Individual Lambda functions can override these settings.
-
setDefaultConfig
The default configuration that applies to all Lambda functions in the group.Individual Lambda functions can override these settings.
-
setDefaultConfig
@Stability(Stable) public void setDefaultConfig(@Nullable CfnFunctionDefinitionVersion.DefaultConfigProperty value) The default configuration that applies to all Lambda functions in the group.Individual Lambda functions can override these settings.
-