Class CfnComponentVersion.Builder
java.lang.Object
software.amazon.awscdk.services.greengrassv2.CfnComponentVersion.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnComponentVersion>
- Enclosing class:
CfnComponentVersion
@Stability(Stable)
public static final class CfnComponentVersion.Builder
extends Object
implements software.amazon.jsii.Builder<CfnComponentVersion>
A fluent builder for
CfnComponentVersion
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static CfnComponentVersion.Builder
inlineRecipe
(String inlineRecipe) The recipe to use to create the component.lambdaFunction
(IResolvable lambdaFunction) The parameters to create a component from a Lambda function.lambdaFunction
(CfnComponentVersion.LambdaFunctionRecipeSourceProperty lambdaFunction) The parameters to create a component from a Lambda function.Application-specific metadata to attach to the component version.
-
Method Details
-
create
@Stability(Stable) public static CfnComponentVersion.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnComponentVersion.Builder
.
-
inlineRecipe
The recipe to use to create the component.The recipe defines the component's metadata, parameters, dependencies, lifecycle, artifacts, and platform compatibility.
You must specify either
InlineRecipe
orLambdaFunction
.- Parameters:
inlineRecipe
- The recipe to use to create the component. This parameter is required.- Returns:
this
- See Also:
-
lambdaFunction
The parameters to create a component from a Lambda function.You must specify either
InlineRecipe
orLambdaFunction
.- Parameters:
lambdaFunction
- The parameters to create a component from a Lambda function. This parameter is required.- Returns:
this
- See Also:
-
lambdaFunction
@Stability(Stable) public CfnComponentVersion.Builder lambdaFunction(CfnComponentVersion.LambdaFunctionRecipeSourceProperty lambdaFunction) The parameters to create a component from a Lambda function.You must specify either
InlineRecipe
orLambdaFunction
.- Parameters:
lambdaFunction
- The parameters to create a component from a Lambda function. This parameter is required.- Returns:
this
- See Also:
-
tags
Application-specific metadata to attach to the component version.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 mostTags
implementations in AWS CloudFormation templates."Tags": { "KeyName0": "value", "KeyName1": "value", "KeyName2": "value" }
- Parameters:
tags
- Application-specific metadata to attach to the component version. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnComponentVersion>
- Returns:
- a newly built instance of
CfnComponentVersion
.
-