Class CfnComponentVersionMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.greengrassv2.CfnComponentVersionMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnComponentVersionMixinProps>
- Enclosing interface:
CfnComponentVersionMixinProps
@Stability(Stable)
public static final class CfnComponentVersionMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnComponentVersionMixinProps>
A builder for
CfnComponentVersionMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.inlineRecipe(String inlineRecipe) Sets the value ofCfnComponentVersionMixinProps.getInlineRecipe()Sets the value ofCfnComponentVersionMixinProps.getLambdaFunction()lambdaFunction(IResolvable lambdaFunction) Sets the value ofCfnComponentVersionMixinProps.getLambdaFunction()Sets the value ofCfnComponentVersionMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
inlineRecipe
Sets the value ofCfnComponentVersionMixinProps.getInlineRecipe()- Parameters:
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
InlineRecipeorLambdaFunction.- Returns:
this
-
lambdaFunction
@Stability(Stable) public CfnComponentVersionMixinProps.Builder lambdaFunction(IResolvable lambdaFunction) Sets the value ofCfnComponentVersionMixinProps.getLambdaFunction()- Parameters:
lambdaFunction- The parameters to create a component from a Lambda function. You must specify eitherInlineRecipeorLambdaFunction.- Returns:
this
-
lambdaFunction
@Stability(Stable) public CfnComponentVersionMixinProps.Builder lambdaFunction(CfnComponentVersionPropsMixin.LambdaFunctionRecipeSourceProperty lambdaFunction) Sets the value ofCfnComponentVersionMixinProps.getLambdaFunction()- Parameters:
lambdaFunction- The parameters to create a component from a Lambda function. You must specify eitherInlineRecipeorLambdaFunction.- Returns:
this
-
tags
Sets the value ofCfnComponentVersionMixinProps.getTags()- Parameters:
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
Jsonproperty type is processed as a map of key-value pairs. It uses the following format, which is different from mostTagsimplementations in CloudFormation templates."Tags": { "KeyName0": "value", "KeyName1": "value", "KeyName2": "value" }- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnComponentVersionMixinProps>- Returns:
- a new instance of
CfnComponentVersionMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-