public static final class CfnImageRecipe.Builder
extends java.lang.Object
CfnImageRecipe
.Modifier and Type | Method and Description |
---|---|
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.
|
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.
|
CfnImageRecipe.Builder |
blockDeviceMappings(IResolvable blockDeviceMappings)
The block device mappings to apply when creating images from this recipe.
|
CfnImageRecipe.Builder |
blockDeviceMappings(java.util.List<? extends java.lang.Object> blockDeviceMappings)
The block device mappings to apply when creating images from this recipe.
|
CfnImageRecipe |
build() |
CfnImageRecipe.Builder |
components(IResolvable components)
The components of the image recipe.
|
CfnImageRecipe.Builder |
components(java.util.List<? extends java.lang.Object> components)
The components of the image recipe.
|
static CfnImageRecipe.Builder |
create(Construct scope,
java.lang.String id) |
CfnImageRecipe.Builder |
description(java.lang.String description)
The description of the image recipe.
|
CfnImageRecipe.Builder |
name(java.lang.String name)
The name of the image recipe.
|
CfnImageRecipe.Builder |
parentImage(java.lang.String parentImage)
The parent image of the image recipe.
|
CfnImageRecipe.Builder |
tags(java.util.Map<java.lang.String,java.lang.String> tags)
The tags of the image recipe.
|
CfnImageRecipe.Builder |
version(java.lang.String version)
The semantic version of the image recipe.
|
CfnImageRecipe.Builder |
workingDirectory(java.lang.String workingDirectory)
The working directory to be used during build and test workflows.
|
public static CfnImageRecipe.Builder create(Construct scope, java.lang.String id)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.CfnImageRecipe.AdditionalInstanceConfigurationProperty.Builder
.public CfnImageRecipe.Builder components(IResolvable components)
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.
components
- The components of the image recipe. This parameter is required.this
public CfnImageRecipe.Builder components(java.util.List<? extends java.lang.Object> components)
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.
components
- The components of the image recipe. This parameter is required.this
public CfnImageRecipe.Builder name(java.lang.String name)
name
- The name of the image recipe. This parameter is required.this
public CfnImageRecipe.Builder parentImage(java.lang.String parentImage)
The string must be either an Image ARN or an AMI ID.
parentImage
- The parent image of the image recipe. This parameter is required.this
public CfnImageRecipe.Builder version(java.lang.String version)
version
- The semantic version of the image recipe. This parameter is required.this
public CfnImageRecipe.Builder additionalInstanceConfiguration(IResolvable additionalInstanceConfiguration)
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.
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.this
public CfnImageRecipe.Builder additionalInstanceConfiguration(CfnImageRecipe.AdditionalInstanceConfigurationProperty additionalInstanceConfiguration)
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.
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.this
public CfnImageRecipe.Builder blockDeviceMappings(IResolvable blockDeviceMappings)
blockDeviceMappings
- The block device mappings to apply when creating images from this recipe. This parameter is required.this
public CfnImageRecipe.Builder blockDeviceMappings(java.util.List<? extends java.lang.Object> blockDeviceMappings)
blockDeviceMappings
- The block device mappings to apply when creating images from this recipe. This parameter is required.this
public CfnImageRecipe.Builder description(java.lang.String description)
description
- The description of the image recipe. This parameter is required.this
public CfnImageRecipe.Builder tags(java.util.Map<java.lang.String,java.lang.String> tags)
tags
- The tags of the image recipe. This parameter is required.this
public CfnImageRecipe.Builder workingDirectory(java.lang.String workingDirectory)
workingDirectory
- The working directory to be used during build and test workflows. This parameter is required.this
public CfnImageRecipe build()