public static final class CfnImageRecipeProps.Builder
extends java.lang.Object
CfnImageRecipeProps
Constructor and Description |
---|
Builder() |
public CfnImageRecipeProps.Builder components(IResolvable components)
CfnImageRecipeProps.getComponents()
components
- The components of the image recipe. This parameter is required.
Components are orchestration documents that define a sequence of steps for downloading, installing, configuring, and testing software packages. They also define validation and security hardening steps. A component is defined using a YAML document format.this
public CfnImageRecipeProps.Builder components(java.util.List<? extends java.lang.Object> components)
CfnImageRecipeProps.getComponents()
components
- The components of the image recipe. This parameter is required.
Components are orchestration documents that define a sequence of steps for downloading, installing, configuring, and testing software packages. They also define validation and security hardening steps. A component is defined using a YAML document format.this
public CfnImageRecipeProps.Builder name(java.lang.String name)
CfnImageRecipeProps.getName()
name
- The name of the image recipe. This parameter is required.this
public CfnImageRecipeProps.Builder parentImage(java.lang.String parentImage)
CfnImageRecipeProps.getParentImage()
parentImage
- The parent image of the image recipe. This parameter is required.
The string must be either an Image ARN or an AMI ID.this
public CfnImageRecipeProps.Builder version(java.lang.String version)
CfnImageRecipeProps.getVersion()
version
- The semantic version of the image recipe. This parameter is required.this
public CfnImageRecipeProps.Builder additionalInstanceConfiguration(IResolvable additionalInstanceConfiguration)
CfnImageRecipeProps.getAdditionalInstanceConfiguration()
additionalInstanceConfiguration
- Before you create a new AMI, Image Builder launches temporary Amazon EC2 instances to build and test your image configuration.
Instance configuration adds a layer of control over those instances. You can define settings and add scripts to run when an instance is launched from your AMI.this
public CfnImageRecipeProps.Builder additionalInstanceConfiguration(CfnImageRecipe.AdditionalInstanceConfigurationProperty additionalInstanceConfiguration)
CfnImageRecipeProps.getAdditionalInstanceConfiguration()
additionalInstanceConfiguration
- Before you create a new AMI, Image Builder launches temporary Amazon EC2 instances to build and test your image configuration.
Instance configuration adds a layer of control over those instances. You can define settings and add scripts to run when an instance is launched from your AMI.this
public CfnImageRecipeProps.Builder blockDeviceMappings(IResolvable blockDeviceMappings)
CfnImageRecipeProps.getBlockDeviceMappings()
blockDeviceMappings
- The block device mappings to apply when creating images from this recipe.this
public CfnImageRecipeProps.Builder blockDeviceMappings(java.util.List<? extends java.lang.Object> blockDeviceMappings)
CfnImageRecipeProps.getBlockDeviceMappings()
blockDeviceMappings
- The block device mappings to apply when creating images from this recipe.this
public CfnImageRecipeProps.Builder description(java.lang.String description)
CfnImageRecipeProps.getDescription()
description
- The description of the image recipe.this
public CfnImageRecipeProps.Builder tags(java.util.Map<java.lang.String,java.lang.String> tags)
CfnImageRecipeProps.getTags()
tags
- The tags of the image recipe.this
public CfnImageRecipeProps.Builder workingDirectory(java.lang.String workingDirectory)
CfnImageRecipeProps.getWorkingDirectory()
workingDirectory
- The working directory to be used during build and test workflows.this
public CfnImageRecipeProps build()
CfnImageRecipeProps
java.lang.NullPointerException
- if any required attribute was not provided