Class CfnContainerRecipe
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.imagebuilder.CfnContainerRecipe
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,IContainerRecipeRef,ITaggable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.121.0 (build d7af9b9)",
date="2025-12-18T18:20:11.557Z")
@Stability(Stable)
public class CfnContainerRecipe
extends CfnResource
implements IInspectable, IContainerRecipeRef, ITaggable
Creates a new container recipe.
Container recipes define how images are configured, tested, and assessed.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.imagebuilder.*;
CfnContainerRecipe cfnContainerRecipe = CfnContainerRecipe.Builder.create(this, "MyCfnContainerRecipe")
.containerType("containerType")
.name("name")
.parentImage("parentImage")
.targetRepository(TargetContainerRepositoryProperty.builder()
.repositoryName("repositoryName")
.service("service")
.build())
.version("version")
// the properties below are optional
.components(List.of(ComponentConfigurationProperty.builder()
.componentArn("componentArn")
.parameters(List.of(ComponentParameterProperty.builder()
.name("name")
.value(List.of("value"))
.build()))
.build()))
.description("description")
.dockerfileTemplateData("dockerfileTemplateData")
.dockerfileTemplateUri("dockerfileTemplateUri")
.imageOsVersionOverride("imageOsVersionOverride")
.instanceConfiguration(InstanceConfigurationProperty.builder()
.blockDeviceMappings(List.of(InstanceBlockDeviceMappingProperty.builder()
.deviceName("deviceName")
.ebs(EbsInstanceBlockDeviceSpecificationProperty.builder()
.deleteOnTermination(false)
.encrypted(false)
.iops(123)
.kmsKeyId("kmsKeyId")
.snapshotId("snapshotId")
.throughput(123)
.volumeSize(123)
.volumeType("volumeType")
.build())
.noDevice("noDevice")
.virtualName("virtualName")
.build()))
.image("image")
.build())
.kmsKeyId("kmsKeyId")
.platformOverride("platformOverride")
.tags(Map.of(
"tagsKey", "tags"))
.workingDirectory("workingDirectory")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnContainerRecipe.static interfaceConfiguration details of the component.static interfaceContains a key/value pair that sets the named component parameter.static interfaceAmazon EBS-specific block device mapping specifications.static interfaceDefines block device mappings for the instance used to configure your image.static interfaceDefines a custom base AMI and block device mapping configurations of an instance used for building and testing container images.static interfaceThe resource ARNs with different wildcard variations of semantic versioning.static interfaceThe container repository where the output container image is stored.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.interfaces.imagebuilder.IContainerRecipeRef
IContainerRecipeRef.Jsii$Default, IContainerRecipeRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnContainerRecipe(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnContainerRecipe(software.amazon.jsii.JsiiObjectRef objRef) CfnContainerRecipe(software.constructs.Construct scope, String id, CfnContainerRecipeProps props) Create a newAWS::ImageBuilder::ContainerRecipe. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForContainerRecipe(IContainerRecipeRef resource) Returns the Amazon Resource Name (ARN) of the container recipe.The latest version references of the container recipe.The latest version Amazon Resource Name (ARN) of the Image Builder resource.The latest version Amazon Resource Name (ARN) with the samemajorversion of the Image Builder resource.The latest version Amazon Resource Name (ARN) with the sameminorversion of the Image Builder resource.The latest version Amazon Resource Name (ARN) with the samepatchversion of the Image Builder resource.Returns the name of the container recipe.Build and test components that are included in the container recipe.A reference to a ContainerRecipe resource.Specifies the type of container, such as Docker.The description of the container recipe.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 S3 URI for the Dockerfile that will be used to build your container image.Specifies the operating system version for the base image.A group of options that can be used to configure an instance for building and testing container images.The Amazon Resource Name (ARN) that uniquely identifies which KMS key is used to encrypt the container image for distribution to the target Region.getName()The name of the container recipe.The base image for customizations specified in the container recipe.Specifies the operating system platform when you use a custom base image.getTags()Tag Manager which manages the tags for this resource.Tags that are attached to the container recipe.The destination repository for the container image.The semantic version of the container recipe.The working directory for use during build and test workflows.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnContainerRecipe.renderProperties(Map<String, Object> props) voidsetComponents(List<Object> value) Build and test components that are included in the container recipe.voidsetComponents(IResolvable value) Build and test components that are included in the container recipe.voidsetContainerType(String value) Specifies the type of container, such as Docker.voidsetDescription(String value) The description of the container recipe.voidsetDockerfileTemplateData(String value) 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.voidsetDockerfileTemplateUri(String value) The S3 URI for the Dockerfile that will be used to build your container image.voidsetImageOsVersionOverride(String value) Specifies the operating system version for the base image.voidA group of options that can be used to configure an instance for building and testing container images.voidA group of options that can be used to configure an instance for building and testing container images.voidsetKmsKeyId(String value) The Amazon Resource Name (ARN) that uniquely identifies which KMS key is used to encrypt the container image for distribution to the target Region.voidThe name of the container recipe.voidsetParentImage(String value) The base image for customizations specified in the container recipe.voidsetPlatformOverride(String value) Specifies the operating system platform when you use a custom base image.voidsetTagsRaw(Map<String, String> value) Tags that are attached to the container recipe.voidsetTargetRepository(IResolvable value) The destination repository for the container image.voidThe destination repository for the container image.voidsetVersion(String value) The semantic version of the container recipe.voidsetWorkingDirectory(String value) The working directory for use during build and test workflows.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods 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.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnContainerRecipe
protected CfnContainerRecipe(software.amazon.jsii.JsiiObjectRef objRef) -
CfnContainerRecipe
protected CfnContainerRecipe(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnContainerRecipe
@Stability(Stable) public CfnContainerRecipe(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnContainerRecipeProps props) Create a newAWS::ImageBuilder::ContainerRecipe.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
arnForContainerRecipe
@Stability(Stable) @NotNull public static String arnForContainerRecipe(@NotNull IContainerRecipeRef resource) - Parameters:
resource- This parameter is required.
-
isCfnContainerRecipe
Checks whether the given object is a CfnContainerRecipe.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrArn
Returns the Amazon Resource Name (ARN) of the container recipe.For example,
arn:aws:imagebuilder:us-east-1:123456789012:container-recipe/mybasicrecipe/2020.12.17. -
getAttrLatestVersion
The latest version references of the container recipe. -
getAttrLatestVersionArn
The latest version Amazon Resource Name (ARN) of the Image Builder resource. -
getAttrLatestVersionMajor
The latest version Amazon Resource Name (ARN) with the samemajorversion of the Image Builder resource. -
getAttrLatestVersionMinor
The latest version Amazon Resource Name (ARN) with the sameminorversion of the Image Builder resource. -
getAttrLatestVersionPatch
The latest version Amazon Resource Name (ARN) with the samepatchversion of the Image Builder resource. -
getAttrName
Returns the name of the container recipe. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getContainerRecipeRef
A reference to a ContainerRecipe resource.- Specified by:
getContainerRecipeRefin interfaceIContainerRecipeRef
-
getTags
Tag Manager which manages the tags for this resource. -
getContainerType
Specifies the type of container, such as Docker. -
setContainerType
Specifies the type of container, such as Docker. -
getName
The name of the container recipe. -
setName
The name of the container recipe. -
getParentImage
The base image for customizations specified in the container recipe. -
setParentImage
The base image for customizations specified in the container recipe. -
getTargetRepository
The destination repository for the container image.Returns union: either
IResolvableorCfnContainerRecipe.TargetContainerRepositoryProperty -
setTargetRepository
The destination repository for the container image. -
setTargetRepository
@Stability(Stable) public void setTargetRepository(@NotNull CfnContainerRecipe.TargetContainerRepositoryProperty value) The destination repository for the container image. -
getVersion
The semantic version of the container recipe.This version follows the semantic version syntax.
-
setVersion
The semantic version of the container recipe.This version follows the semantic version syntax.
-
getComponents
Build and test components that are included in the container recipe.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnContainerRecipe.ComponentConfigurationProperty> -
setComponents
Build and test components that are included in the container recipe. -
setComponents
Build and test components that are included in the container recipe. -
getDescription
The description of the container recipe. -
setDescription
The description of the container recipe. -
getDockerfileTemplateData
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. -
setDockerfileTemplateData
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. -
getDockerfileTemplateUri
The S3 URI for the Dockerfile that will be used to build your container image. -
setDockerfileTemplateUri
The S3 URI for the Dockerfile that will be used to build your container image. -
getImageOsVersionOverride
Specifies the operating system version for the base image. -
setImageOsVersionOverride
Specifies the operating system version for the base image. -
getInstanceConfiguration
A group of options that can be used to configure an instance for building and testing container images.Returns union: either
IResolvableorCfnContainerRecipe.InstanceConfigurationProperty -
setInstanceConfiguration
A group of options that can be used to configure an instance for building and testing container images. -
setInstanceConfiguration
@Stability(Stable) public void setInstanceConfiguration(@Nullable CfnContainerRecipe.InstanceConfigurationProperty value) A group of options that can be used to configure an instance for building and testing container images. -
getKmsKeyId
The Amazon Resource Name (ARN) that uniquely identifies which KMS key is used to encrypt the container image for distribution to the target Region. -
setKmsKeyId
The Amazon Resource Name (ARN) that uniquely identifies which KMS key is used to encrypt the container image for distribution to the target Region. -
getPlatformOverride
Specifies the operating system platform when you use a custom base image. -
setPlatformOverride
Specifies the operating system platform when you use a custom base image. -
getTagsRaw
Tags that are attached to the container recipe. -
setTagsRaw
Tags that are attached to the container recipe. -
getWorkingDirectory
The working directory for use during build and test workflows. -
setWorkingDirectory
The working directory for use during build and test workflows.
-