public static final class CfnContainerRecipeProps.Builder
extends java.lang.Object
CfnContainerRecipeProps
Constructor and Description |
---|
Builder() |
public CfnContainerRecipeProps.Builder components(IResolvable components)
CfnContainerRecipeProps.getComponents()
components
- Build and test components that are included in the container recipe. This parameter is required.
Recipes require a minimum of one build component, and can have a maximum of 20 build and test components in any combination.this
public CfnContainerRecipeProps.Builder components(java.util.List<? extends java.lang.Object> components)
CfnContainerRecipeProps.getComponents()
components
- Build and test components that are included in the container recipe. This parameter is required.
Recipes require a minimum of one build component, and can have a maximum of 20 build and test components in any combination.this
public CfnContainerRecipeProps.Builder containerType(java.lang.String containerType)
CfnContainerRecipeProps.getContainerType()
containerType
- Specifies the type of container, such as Docker. This parameter is required.this
public CfnContainerRecipeProps.Builder name(java.lang.String name)
CfnContainerRecipeProps.getName()
name
- The name of the container recipe. This parameter is required.this
public CfnContainerRecipeProps.Builder parentImage(java.lang.String parentImage)
CfnContainerRecipeProps.getParentImage()
parentImage
- The base image for the container recipe. This parameter is required.this
public CfnContainerRecipeProps.Builder targetRepository(IResolvable targetRepository)
CfnContainerRecipeProps.getTargetRepository()
targetRepository
- The destination repository for the container image. This parameter is required.this
public CfnContainerRecipeProps.Builder targetRepository(CfnContainerRecipe.TargetContainerRepositoryProperty targetRepository)
CfnContainerRecipeProps.getTargetRepository()
targetRepository
- The destination repository for the container image. This parameter is required.this
public CfnContainerRecipeProps.Builder version(java.lang.String version)
CfnContainerRecipeProps.getVersion()
version
- The semantic version of the container recipe. This parameter is required.
The semantic version has four nodes:
. . / . You can assign values for the first three, and can filter on all of them. Assignment: For the first three nodes you can assign any positive integer value, including zero, with an upper limit of 2^30-1, or 1073741823 for each node. Image Builder automatically assigns the build number to the fourth node.
Patterns: You can use any numeric pattern that adheres to the assignment requirements for the nodes that you can assign. For example, you might choose a software version pattern, such as 1.0.0, or a date, such as 2021.01.01.
Filtering: With semantic versioning, you have the flexibility to use wildcards (x) to specify the most recent versions or nodes when selecting the base image or components for your recipe. When you use a wildcard in any node, all nodes to the right of the first wildcard must also be wildcards.
this
public CfnContainerRecipeProps.Builder description(java.lang.String description)
CfnContainerRecipeProps.getDescription()
description
- The description of the container recipe.this
public CfnContainerRecipeProps.Builder dockerfileTemplateData(java.lang.String dockerfileTemplateData)
CfnContainerRecipeProps.getDockerfileTemplateData()
dockerfileTemplateData
- Dockerfiles are text documents that are used to build Docker containers, and ensure that they contain all of the elements required by the application running inside.
The template data consists of contextual variables where Image Builder places build information or scripts, based on your container image recipe.this
public CfnContainerRecipeProps.Builder dockerfileTemplateUri(java.lang.String dockerfileTemplateUri)
CfnContainerRecipeProps.getDockerfileTemplateUri()
dockerfileTemplateUri
- The S3 URI for the Dockerfile that will be used to build your container image.this
public CfnContainerRecipeProps.Builder imageOsVersionOverride(java.lang.String imageOsVersionOverride)
CfnContainerRecipeProps.getImageOsVersionOverride()
imageOsVersionOverride
- Specifies the operating system version for the base image.this
public CfnContainerRecipeProps.Builder instanceConfiguration(IResolvable instanceConfiguration)
CfnContainerRecipeProps.getInstanceConfiguration()
instanceConfiguration
- A group of options that can be used to configure an instance for building and testing container images.this
public CfnContainerRecipeProps.Builder instanceConfiguration(CfnContainerRecipe.InstanceConfigurationProperty instanceConfiguration)
CfnContainerRecipeProps.getInstanceConfiguration()
instanceConfiguration
- A group of options that can be used to configure an instance for building and testing container images.this
public CfnContainerRecipeProps.Builder kmsKeyId(java.lang.String kmsKeyId)
CfnContainerRecipeProps.getKmsKeyId()
kmsKeyId
- Identifies which KMS key is used to encrypt the container image for distribution to the target Region.this
public CfnContainerRecipeProps.Builder platformOverride(java.lang.String platformOverride)
CfnContainerRecipeProps.getPlatformOverride()
platformOverride
- Specifies the operating system platform when you use a custom base image.this
public CfnContainerRecipeProps.Builder tags(java.util.Map<java.lang.String,java.lang.String> tags)
CfnContainerRecipeProps.getTags()
tags
- Tags that are attached to the container recipe.this
public CfnContainerRecipeProps.Builder workingDirectory(java.lang.String workingDirectory)
CfnContainerRecipeProps.getWorkingDirectory()
workingDirectory
- The working directory for use during build and test workflows.this
public CfnContainerRecipeProps build()
CfnContainerRecipeProps
java.lang.NullPointerException
- if any required attribute was not provided