Class ContainerRecipe
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.imagebuilder.alpha.ContainerRecipeBase
software.amazon.awscdk.services.imagebuilder.alpha.ContainerRecipe
- All Implemented Interfaces:
IEnvironmentAware,IResource,IContainerRecipe,IRecipeBase,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-05T22:26:50.020Z")
@Stability(Experimental)
public class ContainerRecipe
extends ContainerRecipeBase
(experimental) Represents an EC2 Image Builder Container Recipe.
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();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class(experimental) A fluent builder forContainerRecipe.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.imagebuilder.alpha.IContainerRecipe
IContainerRecipe.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String(experimental) Uniquely identifies this class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedContainerRecipe(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedContainerRecipe(software.amazon.jsii.JsiiObjectRef objRef) ContainerRecipe(software.constructs.Construct scope, String id, ContainerRecipeProps props) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddInstanceBlockDevice(BlockDevice... instanceBlockDevices) (experimental) Adds block devices to attach to the instance used for building, testing, and distributing the container image.static IContainerRecipefromContainerRecipeArn(software.constructs.Construct scope, String id, String containerRecipeArn) (experimental) Import an existing container recipe given its ARN.static IContainerRecipefromContainerRecipeAttributes(software.constructs.Construct scope, String id, ContainerRecipeAttributes attrs) (experimental) Import an existing container recipe by providing its attributes.static IContainerRecipefromContainerRecipeName(software.constructs.Construct scope, String id, String containerRecipeName) (experimental) Import the latest version of an existing container recipe given its name.(experimental) The ARN of the container recipe.(experimental) The name of the container recipe.(experimental) The version of the container recipe.static Boolean(experimental) Return whether the given object is a ContainerRecipe.Methods inherited from class software.amazon.awscdk.services.imagebuilder.alpha.ContainerRecipeBase
grant, grantReadMethods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourceMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
PROPERTY_INJECTION_ID
(experimental) Uniquely identifies this class.
-
-
Constructor Details
-
ContainerRecipe
protected ContainerRecipe(software.amazon.jsii.JsiiObjectRef objRef) -
ContainerRecipe
protected ContainerRecipe(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
ContainerRecipe
@Stability(Experimental) public ContainerRecipe(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull ContainerRecipeProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props- This parameter is required.
-
-
Method Details
-
fromContainerRecipeArn
@Stability(Experimental) @NotNull public static IContainerRecipe fromContainerRecipeArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String containerRecipeArn) (experimental) Import an existing container recipe given its ARN.- Parameters:
scope- This parameter is required.id- This parameter is required.containerRecipeArn- This parameter is required.
-
fromContainerRecipeAttributes
@Stability(Experimental) @NotNull public static IContainerRecipe fromContainerRecipeAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull ContainerRecipeAttributes attrs) (experimental) Import an existing container recipe by providing its attributes.If the container recipe name is provided as an attribute, it must be normalized by converting all alphabetical characters to lowercase, and replacing all spaces and underscores with hyphens.
- Parameters:
scope- This parameter is required.id- This parameter is required.attrs- This parameter is required.
-
fromContainerRecipeName
@Stability(Experimental) @NotNull public static IContainerRecipe fromContainerRecipeName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String containerRecipeName) (experimental) Import the latest version of an existing container recipe given its name.The provided name must be normalized by converting all alphabetical characters to lowercase, and replacing all spaces and underscores with hyphens.
- Parameters:
scope- This parameter is required.id- This parameter is required.containerRecipeName- This parameter is required.
-
isContainerRecipe
(experimental) Return whether the given object is a ContainerRecipe.- Parameters:
x- This parameter is required.
-
addInstanceBlockDevice
@Stability(Experimental) public void addInstanceBlockDevice(@NotNull BlockDevice... instanceBlockDevices) (experimental) Adds block devices to attach to the instance used for building, testing, and distributing the container image.- Parameters:
instanceBlockDevices-- The list of block devices to attach.
-
getContainerRecipeArn
(experimental) The ARN of the container recipe.- Specified by:
getContainerRecipeArnin interfaceIContainerRecipe- Specified by:
getContainerRecipeArnin classContainerRecipeBase
-
getContainerRecipeName
(experimental) The name of the container recipe.- Specified by:
getContainerRecipeNamein interfaceIContainerRecipe- Specified by:
getContainerRecipeNamein classContainerRecipeBase
-
getContainerRecipeVersion
(experimental) The version of the container recipe.- Specified by:
getContainerRecipeVersionin interfaceIContainerRecipe- Specified by:
getContainerRecipeVersionin classContainerRecipeBase
-