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 Details

    • create

      @Stability(Stable) public static CfnComponentVersion.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnComponentVersion.Builder.
    • inlineRecipe

      @Stability(Stable) public CfnComponentVersion.Builder inlineRecipe(String 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 or LambdaFunction .

      Parameters:
      inlineRecipe - The recipe to use to create the component. This parameter is required.
      Returns:
      this
    • 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 or LambdaFunction .

      Parameters:
      lambdaFunction - The parameters to create a component from a Lambda function. This parameter is required.
      Returns:
      this
    • lambdaFunction

      @Stability(Stable) public CfnComponentVersion.Builder lambdaFunction(IResolvable lambdaFunction)
      The parameters to create a component from a Lambda function.

      You must specify either InlineRecipe or LambdaFunction .

      Parameters:
      lambdaFunction - The parameters to create a component from a Lambda function. This parameter is required.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnComponentVersion.Builder tags(Map<String,String> 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 most Tags 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
    • build

      @Stability(Stable) public CfnComponentVersion build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnComponentVersion>
      Returns:
      a newly built instance of CfnComponentVersion.