Class CfnFunctionDefinitionVersion
The AWS::Greengrass::FunctionDefinitionVersion
resource represents a function definition version for AWS IoT Greengrass .
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.Greengrass
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnFunctionDefinitionVersion : CfnResource, IInspectable
Syntax (vb)
Public Class CfnFunctionDefinitionVersion
Inherits CfnResource
Implements IInspectable
Remarks
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
.
CloudformationResource: AWS::Greengrass::FunctionDefinitionVersion
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Greengrass;
var variables;
var cfnFunctionDefinitionVersion = new CfnFunctionDefinitionVersion(this, "MyCfnFunctionDefinitionVersion", new CfnFunctionDefinitionVersionProps {
FunctionDefinitionId = "functionDefinitionId",
Functions = new [] { new FunctionProperty {
FunctionArn = "functionArn",
FunctionConfiguration = new FunctionConfigurationProperty {
EncodingType = "encodingType",
Environment = new EnvironmentProperty {
AccessSysfs = false,
Execution = new ExecutionProperty {
IsolationMode = "isolationMode",
RunAs = new RunAsProperty {
Gid = 123,
Uid = 123
}
},
ResourceAccessPolicies = new [] { new ResourceAccessPolicyProperty {
ResourceId = "resourceId",
// the properties below are optional
Permission = "permission"
} },
Variables = variables
},
ExecArgs = "execArgs",
Executable = "executable",
MemorySize = 123,
Pinned = false,
Timeout = 123
},
Id = "id"
} },
// the properties below are optional
DefaultConfig = new DefaultConfigProperty {
Execution = new ExecutionProperty {
IsolationMode = "isolationMode",
RunAs = new RunAsProperty {
Gid = 123,
Uid = 123
}
}
}
});
Synopsis
Constructors
CfnFunctionDefinitionVersion(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnFunctionDefinitionVersion(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CfnFunctionDefinitionVersion(Construct, String, ICfnFunctionDefinitionVersionProps) |
Properties
AttrId | |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
DefaultConfig | The default configuration that applies to all Lambda functions in the group. |
FunctionDefinitionId | The ID of the function definition associated with this version. |
Functions | The functions in this version. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnFunctionDefinitionVersion(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnFunctionDefinitionVersion(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnFunctionDefinitionVersion(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnFunctionDefinitionVersion(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
CfnFunctionDefinitionVersion(Construct, String, ICfnFunctionDefinitionVersionProps)
public CfnFunctionDefinitionVersion(Construct scope, string id, ICfnFunctionDefinitionVersionProps props)
Parameters
- scope Constructs.Construct
Scope in which this resource is defined.
- id System.String
Construct identifier for this resource (unique in its scope).
- props ICfnFunctionDefinitionVersionProps
Resource properties.
Properties
AttrId
public virtual string AttrId { get; }
Property Value
System.String
Remarks
CloudformationAttribute: Id
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
DefaultConfig
The default configuration that applies to all Lambda functions in the group.
public virtual object DefaultConfig { get; set; }
Property Value
System.Object
FunctionDefinitionId
The ID of the function definition associated with this version.
public virtual string FunctionDefinitionId { get; set; }
Property Value
System.String
Functions
The functions in this version.
public virtual object Functions { get; set; }
Property Value
System.Object
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>