Class CfnContainerRecipeProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnContainerRecipeProps>
- Enclosing interface:
CfnContainerRecipeProps
CfnContainerRecipeProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.components
(List<? extends Object> components) Sets the value ofCfnContainerRecipeProps.getComponents()
components
(IResolvable components) Sets the value ofCfnContainerRecipeProps.getComponents()
containerType
(String containerType) Sets the value ofCfnContainerRecipeProps.getContainerType()
description
(String description) Sets the value ofCfnContainerRecipeProps.getDescription()
dockerfileTemplateData
(String dockerfileTemplateData) Sets the value ofCfnContainerRecipeProps.getDockerfileTemplateData()
dockerfileTemplateUri
(String dockerfileTemplateUri) Sets the value ofCfnContainerRecipeProps.getDockerfileTemplateUri()
imageOsVersionOverride
(String imageOsVersionOverride) Sets the value ofCfnContainerRecipeProps.getImageOsVersionOverride()
instanceConfiguration
(IResolvable instanceConfiguration) Sets the value ofCfnContainerRecipeProps.getInstanceConfiguration()
instanceConfiguration
(CfnContainerRecipe.InstanceConfigurationProperty instanceConfiguration) Sets the value ofCfnContainerRecipeProps.getInstanceConfiguration()
Sets the value ofCfnContainerRecipeProps.getKmsKeyId()
Sets the value ofCfnContainerRecipeProps.getName()
parentImage
(String parentImage) Sets the value ofCfnContainerRecipeProps.getParentImage()
platformOverride
(String platformOverride) Sets the value ofCfnContainerRecipeProps.getPlatformOverride()
Sets the value ofCfnContainerRecipeProps.getTags()
targetRepository
(IResolvable targetRepository) Sets the value ofCfnContainerRecipeProps.getTargetRepository()
targetRepository
(CfnContainerRecipe.TargetContainerRepositoryProperty targetRepository) Sets the value ofCfnContainerRecipeProps.getTargetRepository()
Sets the value ofCfnContainerRecipeProps.getVersion()
workingDirectory
(String workingDirectory) Sets the value ofCfnContainerRecipeProps.getWorkingDirectory()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
components
Sets the value ofCfnContainerRecipeProps.getComponents()
- Parameters:
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.- Returns:
this
-
components
@Stability(Stable) public CfnContainerRecipeProps.Builder components(List<? extends Object> components) Sets the value ofCfnContainerRecipeProps.getComponents()
- Parameters:
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.- Returns:
this
-
containerType
Sets the value ofCfnContainerRecipeProps.getContainerType()
- Parameters:
containerType
- Specifies the type of container, such as Docker. This parameter is required.- Returns:
this
-
name
Sets the value ofCfnContainerRecipeProps.getName()
- Parameters:
name
- The name of the container recipe. This parameter is required.- Returns:
this
-
parentImage
Sets the value ofCfnContainerRecipeProps.getParentImage()
- Parameters:
parentImage
- The base image for the container recipe. This parameter is required.- Returns:
this
-
targetRepository
@Stability(Stable) public CfnContainerRecipeProps.Builder targetRepository(IResolvable targetRepository) Sets the value ofCfnContainerRecipeProps.getTargetRepository()
- Parameters:
targetRepository
- The destination repository for the container image. This parameter is required.- Returns:
this
-
targetRepository
@Stability(Stable) public CfnContainerRecipeProps.Builder targetRepository(CfnContainerRecipe.TargetContainerRepositoryProperty targetRepository) Sets the value ofCfnContainerRecipeProps.getTargetRepository()
- Parameters:
targetRepository
- The destination repository for the container image. This parameter is required.- Returns:
this
-
version
Sets the value ofCfnContainerRecipeProps.getVersion()
- Parameters:
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.
- Returns:
this
-
description
Sets the value ofCfnContainerRecipeProps.getDescription()
- Parameters:
description
- The description of the container recipe.- Returns:
this
-
dockerfileTemplateData
@Stability(Stable) public CfnContainerRecipeProps.Builder dockerfileTemplateData(String dockerfileTemplateData) Sets the value ofCfnContainerRecipeProps.getDockerfileTemplateData()
- Parameters:
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.- Returns:
this
-
dockerfileTemplateUri
@Stability(Stable) public CfnContainerRecipeProps.Builder dockerfileTemplateUri(String dockerfileTemplateUri) Sets the value ofCfnContainerRecipeProps.getDockerfileTemplateUri()
- Parameters:
dockerfileTemplateUri
- The S3 URI for the Dockerfile that will be used to build your container image.- Returns:
this
-
imageOsVersionOverride
@Stability(Stable) public CfnContainerRecipeProps.Builder imageOsVersionOverride(String imageOsVersionOverride) Sets the value ofCfnContainerRecipeProps.getImageOsVersionOverride()
- Parameters:
imageOsVersionOverride
- Specifies the operating system version for the base image.- Returns:
this
-
instanceConfiguration
@Stability(Stable) public CfnContainerRecipeProps.Builder instanceConfiguration(IResolvable instanceConfiguration) Sets the value ofCfnContainerRecipeProps.getInstanceConfiguration()
- Parameters:
instanceConfiguration
- A group of options that can be used to configure an instance for building and testing container images.- Returns:
this
-
instanceConfiguration
@Stability(Stable) public CfnContainerRecipeProps.Builder instanceConfiguration(CfnContainerRecipe.InstanceConfigurationProperty instanceConfiguration) Sets the value ofCfnContainerRecipeProps.getInstanceConfiguration()
- Parameters:
instanceConfiguration
- A group of options that can be used to configure an instance for building and testing container images.- Returns:
this
-
kmsKeyId
Sets the value ofCfnContainerRecipeProps.getKmsKeyId()
- Parameters:
kmsKeyId
- Identifies which KMS key is used to encrypt the container image for distribution to the target Region.- Returns:
this
-
platformOverride
Sets the value ofCfnContainerRecipeProps.getPlatformOverride()
- Parameters:
platformOverride
- Specifies the operating system platform when you use a custom base image.- Returns:
this
-
tags
Sets the value ofCfnContainerRecipeProps.getTags()
- Parameters:
tags
- Tags that are attached to the container recipe.- Returns:
this
-
workingDirectory
Sets the value ofCfnContainerRecipeProps.getWorkingDirectory()
- Parameters:
workingDirectory
- The working directory for use during build and test workflows.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnContainerRecipeProps>
- Returns:
- a new instance of
CfnContainerRecipeProps
- Throws:
NullPointerException
- if any required attribute was not provided
-