Class CfnFunctionDefinitionProps
Properties for defining a CfnFunctionDefinition
.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.Greengrass
Assembly: Amazon.CDK.AWS.Greengrass.dll
Syntax (csharp)
public class CfnFunctionDefinitionProps : Object, ICfnFunctionDefinitionProps
Syntax (vb)
Public Class CfnFunctionDefinitionProps
Inherits Object
Implements ICfnFunctionDefinitionProps
Remarks
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 tags;
var variables;
var cfnFunctionDefinitionProps = new CfnFunctionDefinitionProps {
Name = "name",
// the properties below are optional
InitialVersion = new FunctionDefinitionVersionProperty {
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
}
}
}
},
Tags = tags
};
Synopsis
Constructors
CfnFunctionDefinitionProps() |
Properties
InitialVersion | The function definition version to include when the function definition is created. |
Name | The name of the function definition. |
Tags | Application-specific metadata to attach to the function definition. |
Constructors
CfnFunctionDefinitionProps()
public CfnFunctionDefinitionProps()
Properties
InitialVersion
The function definition version to include when the function definition is created.
public object InitialVersion { get; set; }
Property Value
System.Object
Remarks
A function definition version contains a list of function
property types.
To associate a function definition version after the function definition is created, create an AWS::Greengrass::FunctionDefinitionVersion
resource and specify the ID of this function definition.
Name
The name of the function definition.
public string Name { get; set; }
Property Value
System.String
Remarks
Tags
Application-specific metadata to attach to the function definition.
public object Tags { get; set; }
Property Value
System.Object
Remarks
You can use tags in IAM policies to control access to AWS IoT Greengrass resources. You can also use tags to categorize your resources. For more information, see Tagging Your AWS IoT Greengrass Resources in the Developer Guide .
This Json
property type is processed as a map of key-value pairs. It uses the following format, which is different from most Tags
implementations in AWS CloudFormation templates.
"Tags": { "KeyName0": "value", "KeyName1": "value", "KeyName2": "value"
}