Class CfnComponentVersionProps
Properties for defining a CfnComponentVersion
.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.GreengrassV2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnComponentVersionProps : Object, ICfnComponentVersionProps
Syntax (vb)
Public Class CfnComponentVersionProps
Inherits Object
Implements ICfnComponentVersionProps
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.GreengrassV2;
var cfnComponentVersionProps = new CfnComponentVersionProps {
InlineRecipe = "inlineRecipe",
LambdaFunction = new LambdaFunctionRecipeSourceProperty {
ComponentDependencies = new Dictionary<string, object> {
{ "componentDependenciesKey", new ComponentDependencyRequirementProperty {
DependencyType = "dependencyType",
VersionRequirement = "versionRequirement"
} }
},
ComponentLambdaParameters = new LambdaExecutionParametersProperty {
EnvironmentVariables = new Dictionary<string, string> {
{ "environmentVariablesKey", "environmentVariables" }
},
EventSources = new [] { new LambdaEventSourceProperty {
Topic = "topic",
Type = "type"
} },
ExecArgs = new [] { "execArgs" },
InputPayloadEncodingType = "inputPayloadEncodingType",
LinuxProcessParams = new LambdaLinuxProcessParamsProperty {
ContainerParams = new LambdaContainerParamsProperty {
Devices = new [] { new LambdaDeviceMountProperty {
AddGroupOwner = false,
Path = "path",
Permission = "permission"
} },
MemorySizeInKb = 123,
MountRoSysfs = false,
Volumes = new [] { new LambdaVolumeMountProperty {
AddGroupOwner = false,
DestinationPath = "destinationPath",
Permission = "permission",
SourcePath = "sourcePath"
} }
},
IsolationMode = "isolationMode"
},
MaxIdleTimeInSeconds = 123,
MaxInstancesCount = 123,
MaxQueueSize = 123,
Pinned = false,
StatusTimeoutInSeconds = 123,
TimeoutInSeconds = 123
},
ComponentName = "componentName",
ComponentPlatforms = new [] { new ComponentPlatformProperty {
Attributes = new Dictionary<string, string> {
{ "attributesKey", "attributes" }
},
Name = "name"
} },
ComponentVersion = "componentVersion",
LambdaArn = "lambdaArn"
},
Tags = new Dictionary<string, string> {
{ "tagsKey", "tags" }
}
};
Synopsis
Constructors
CfnComponentVersionProps() |
Properties
InlineRecipe | The recipe to use to create the component. |
LambdaFunction | The parameters to create a component from a Lambda function. |
Tags | Application-specific metadata to attach to the component version. |
Constructors
CfnComponentVersionProps()
public CfnComponentVersionProps()
Properties
InlineRecipe
The recipe to use to create the component.
public string InlineRecipe { get; set; }
Property Value
System.String
Remarks
The recipe defines the component's metadata, parameters, dependencies, lifecycle, artifacts, and platform compatibility.
You must specify either InlineRecipe
or LambdaFunction
.
LambdaFunction
The parameters to create a component from a Lambda function.
public object LambdaFunction { get; set; }
Property Value
System.Object
Remarks
You must specify either InlineRecipe
or LambdaFunction
.
Tags
Application-specific metadata to attach to the component version.
public IDictionary<string, string> Tags { get; set; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.String>
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 Tag your AWS IoT Greengrass Version 2 resources in the AWS IoT Greengrass V2 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"
}