Interface ContainerRecipeProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ContainerRecipeProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-05T22:26:50.022Z")
@Stability(Experimental)
public interface ContainerRecipeProps
extends software.amazon.jsii.JsiiSerializable
(experimental) Properties for creating a Container Recipe resource.
Example:
ContainerRecipe containerRecipe = ContainerRecipe.Builder.create(this, "MyContainerRecipe")
.baseImage(BaseContainerImage.fromDockerHub("amazonlinux", "latest"))
.targetRepository(Repository.fromEcr(Repository.fromRepositoryName(this, "Repository", "my-container-repo")))
.build();
ImagePipeline containerPipeline = ImagePipeline.Builder.create(this, "MyContainerPipeline")
.recipe(exampleContainerRecipe)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forContainerRecipePropsstatic final classAn implementation forContainerRecipeProps -
Method Summary
Modifier and TypeMethodDescriptionstatic ContainerRecipeProps.Builderbuilder()(experimental) The base image for customizations specified in the container recipe.default List<ComponentConfiguration> (experimental) The list of component configurations to apply in the image build.default String(experimental) The name of the container recipe.default String(experimental) The version of the container recipe.default String(experimental) The description of the container recipe.default DockerfileData(experimental) The dockerfile template used to build the container image.default List<BlockDevice> (experimental) The block devices to attach to the instance used for building, testing, and distributing the container image.default ContainerInstanceImage(experimental) The image to use to launch the instance used for building, testing, and distributing the container image.default IKey(experimental) The KMS key used to encrypt the dockerfile template.default OSVersion(experimental) The operating system (OS) version of the base image.getTags()(experimental) The tags to apply to the container recipe.(experimental) The container repository where the output container image is stored.default String(experimental) The working directory for use during build and test workflows.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getBaseImage
(experimental) The base image for customizations specified in the container recipe. -
getTargetRepository
(experimental) The container repository where the output container image is stored. -
getComponents
(experimental) The list of component configurations to apply in the image build.Default: None
-
getContainerRecipeName
(experimental) The name of the container recipe.Default: a name is generated
-
getContainerRecipeVersion
(experimental) The version of the container recipe.Default: 1.0.x
-
getDescription
(experimental) The description of the container recipe.Default: None
-
getDockerfile
(experimental) The dockerfile template used to build the container image.Default: - a standard dockerfile template will be generated to pull the base image, perform environment setup, and run all components in the recipe
-
getInstanceBlockDevices
(experimental) The block devices to attach to the instance used for building, testing, and distributing the container image.Default: the block devices of the instance image will be used
-
getInstanceImage
(experimental) The image to use to launch the instance used for building, testing, and distributing the container image.Default: Image Builder will use the appropriate ECS-optimized AMI
-
getKmsKey
(experimental) The KMS key used to encrypt the dockerfile template.Default: None
-
getOsVersion
(experimental) The operating system (OS) version of the base image.Default: - Image Builder will determine the OS version of the base image, if sourced from a third-party container registry. Otherwise, the OS version of the base image is required.
-
getTags
(experimental) The tags to apply to the container recipe.Default: None
-
getWorkingDirectory
(experimental) The working directory for use during build and test workflows.Default: - the Image Builder default working directory is used. For Linux and macOS builds, this would be /tmp. For Windows builds, this would be C:/
-
builder
- Returns:
- a
ContainerRecipeProps.BuilderofContainerRecipeProps
-