@Generated(value="jsii-pacmak/1.60.0 (build ebcefe6)", date="2022-06-22T23:27:50.514Z") 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();
Modifier and Type | Class and Description |
---|---|
static class |
CfnFunctionDefinitionVersion.Builder
A fluent builder for
CfnFunctionDefinitionVersion . |
static interface |
CfnFunctionDefinitionVersion.DefaultConfigProperty
The default configuration that applies to all Lambda functions in the function definition version.
|
static interface |
CfnFunctionDefinitionVersion.EnvironmentProperty
The environment configuration for a Lambda function on the AWS IoT Greengrass core.
|
static interface |
CfnFunctionDefinitionVersion.ExecutionProperty
Configuration settings for the Lambda execution environment on the AWS IoT Greengrass core.
|
static interface |
CfnFunctionDefinitionVersion.FunctionConfigurationProperty
The group-specific configuration settings for a Lambda function.
|
static interface |
CfnFunctionDefinitionVersion.FunctionProperty
A function is a Lambda function that's referenced from an AWS IoT Greengrass group.
|
static interface |
CfnFunctionDefinitionVersion.ResourceAccessPolicyProperty
A list of the [resources](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-resourcedefinitionversion-resourceinstance.html) in the group that the function can access, with the corresponding read-only or read-write permissions.
|
static interface |
CfnFunctionDefinitionVersion.RunAsProperty
The user and group permissions used to run the Lambda function.
|
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnFunctionDefinitionVersion(Construct scope,
java.lang.String id,
CfnFunctionDefinitionVersionProps props)
Create a new `AWS::Greengrass::FunctionDefinitionVersion`.
|
protected |
CfnFunctionDefinitionVersion(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnFunctionDefinitionVersion(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.Object |
getDefaultConfig()
The default configuration that applies to all Lambda functions in the group.
|
java.lang.String |
getFunctionDefinitionId()
The ID of the function definition associated with this version.
|
java.lang.Object |
getFunctions()
The functions in this version.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
renderProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
void |
setDefaultConfig(CfnFunctionDefinitionVersion.DefaultConfigProperty value)
The default configuration that applies to all Lambda functions in the group.
|
void |
setDefaultConfig(IResolvable value)
The default configuration that applies to all Lambda functions in the group.
|
void |
setFunctionDefinitionId(java.lang.String value)
The ID of the function definition associated with this version.
|
void |
setFunctions(IResolvable value)
The functions in this version.
|
void |
setFunctions(java.util.List<java.lang.Object> value)
The functions in this version.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
public static final java.lang.String CFN_RESOURCE_TYPE_NAME
protected CfnFunctionDefinitionVersion(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnFunctionDefinitionVersion(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnFunctionDefinitionVersion(Construct scope, java.lang.String id, CfnFunctionDefinitionVersionProps props)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.props
- - resource properties. This parameter is required.public void inspect(TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> renderProperties(java.util.Map<java.lang.String,java.lang.Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public java.lang.String getFunctionDefinitionId()
This value is a GUID.
public void setFunctionDefinitionId(java.lang.String value)
This value is a GUID.
public java.lang.Object getFunctions()
public void setFunctions(IResolvable value)
public void setFunctions(java.util.List<java.lang.Object> value)
public java.lang.Object getDefaultConfig()
Individual Lambda functions can override these settings.
public void setDefaultConfig(IResolvable value)
Individual Lambda functions can override these settings.
public void setDefaultConfig(CfnFunctionDefinitionVersion.DefaultConfigProperty value)
Individual Lambda functions can override these settings.