Class CfnImageRecipe.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnImageRecipe>
- Enclosing class:
CfnImageRecipe
CfnImageRecipe
.-
Method Summary
Modifier and TypeMethodDescriptionadditionalInstanceConfiguration
(IResolvable additionalInstanceConfiguration) Before you create a new AMI, Image Builder launches temporary Amazon EC2 instances to build and test your image configuration.additionalInstanceConfiguration
(CfnImageRecipe.AdditionalInstanceConfigurationProperty additionalInstanceConfiguration) Before you create a new AMI, Image Builder launches temporary Amazon EC2 instances to build and test your image configuration.blockDeviceMappings
(List<? extends Object> blockDeviceMappings) The block device mappings to apply when creating images from this recipe.blockDeviceMappings
(IResolvable blockDeviceMappings) The block device mappings to apply when creating images from this recipe.build()
components
(List<? extends Object> components) The components of the image recipe.components
(IResolvable components) The components of the image recipe.static CfnImageRecipe.Builder
description
(String description) The description of the image recipe.The name of the image recipe.parentImage
(String parentImage) The parent image of the image recipe.The tags of the image recipe.The semantic version of the image recipe.workingDirectory
(String workingDirectory) The working directory to be used during build and test workflows.
-
Method Details
-
create
@Stability(Stable) public static CfnImageRecipe.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
CfnImageRecipe.Builder
.
-
components
The components of the image recipe.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.
- Parameters:
components
- The components of the image recipe. This parameter is required.- Returns:
this
- See Also:
-
components
The components of the image recipe.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.
- Parameters:
components
- The components of the image recipe. This parameter is required.- Returns:
this
- See Also:
-
name
The name of the image recipe.- Parameters:
name
- The name of the image recipe. This parameter is required.- Returns:
this
- See Also:
-
parentImage
The parent image of the image recipe.The string must be either an Image ARN or an AMI ID.
- Parameters:
parentImage
- The parent image of the image recipe. This parameter is required.- Returns:
this
- See Also:
-
version
The semantic version of the image recipe.- Parameters:
version
- The semantic version of the image recipe. This parameter is required.- Returns:
this
- See Also:
-
additionalInstanceConfiguration
@Stability(Stable) public CfnImageRecipe.Builder additionalInstanceConfiguration(IResolvable 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.
- Parameters:
additionalInstanceConfiguration
- Before you create a new AMI, Image Builder launches temporary Amazon EC2 instances to build and test your image configuration. This parameter is required.- Returns:
this
- See Also:
-
additionalInstanceConfiguration
@Stability(Stable) public CfnImageRecipe.Builder additionalInstanceConfiguration(CfnImageRecipe.AdditionalInstanceConfigurationProperty 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.
- Parameters:
additionalInstanceConfiguration
- Before you create a new AMI, Image Builder launches temporary Amazon EC2 instances to build and test your image configuration. This parameter is required.- Returns:
this
- See Also:
-
blockDeviceMappings
@Stability(Stable) public CfnImageRecipe.Builder blockDeviceMappings(IResolvable blockDeviceMappings) The block device mappings to apply when creating images from this recipe.- Parameters:
blockDeviceMappings
- The block device mappings to apply when creating images from this recipe. This parameter is required.- Returns:
this
- See Also:
-
blockDeviceMappings
@Stability(Stable) public CfnImageRecipe.Builder blockDeviceMappings(List<? extends Object> blockDeviceMappings) The block device mappings to apply when creating images from this recipe.- Parameters:
blockDeviceMappings
- The block device mappings to apply when creating images from this recipe. This parameter is required.- Returns:
this
- See Also:
-
description
The description of the image recipe.- Parameters:
description
- The description of the image recipe. This parameter is required.- Returns:
this
- See Also:
-
tags
The tags of the image recipe.- Parameters:
tags
- The tags of the image recipe. This parameter is required.- Returns:
this
- See Also:
-
workingDirectory
The working directory to be used during build and test workflows.- Parameters:
workingDirectory
- The working directory to be used during build and test workflows. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnImageRecipe>
- Returns:
- a newly built instance of
CfnImageRecipe
.
-