Interface CfnImageRecipeProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnImageRecipeProps.Jsii$Proxy
CfnImageRecipe.
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.*;
CfnImageRecipeProps cfnImageRecipeProps = CfnImageRecipeProps.builder()
.components(List.of(ComponentConfigurationProperty.builder()
.componentArn("componentArn")
.parameters(List.of(ComponentParameterProperty.builder()
.name("name")
.value(List.of("value"))
.build()))
.build()))
.name("name")
.parentImage("parentImage")
.version("version")
// the properties below are optional
.additionalInstanceConfiguration(AdditionalInstanceConfigurationProperty.builder()
.systemsManagerAgent(SystemsManagerAgentProperty.builder()
.uninstallAfterBuild(false)
.build())
.userDataOverride("userDataOverride")
.build())
.amiTags(Map.of(
"amiTagsKey", "amiTags"))
.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()))
.description("description")
.tags(Map.of(
"tagsKey", "tags"))
.workingDirectory("workingDirectory")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnImageRecipePropsstatic final classAn implementation forCfnImageRecipeProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnImageRecipeProps.Builderbuilder()default ObjectBefore you create a new AMI, Image Builder launches temporary Amazon EC2 instances to build and test your image configuration.default ObjectTags that are applied to the AMI that Image Builder creates during the Build phase prior to image distribution.default ObjectThe block device mappings to apply when creating images from this recipe.The components that are included in the image recipe.default StringThe description of the image recipe.getName()The name of the image recipe.The base image for customizations specified in the image recipe.getTags()The tags of the image recipe.The version of the image recipe.default StringThe working directory to be used during build and test workflows.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getComponents
The components that are included in the image recipe.Recipes require a minimum of one build component, and can have a maximum of 20 build and test components in any combination.
Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnImageRecipe.ComponentConfigurationProperty>- See Also:
-
getName
The name of the image recipe.- See Also:
-
getParentImage
The base image for customizations specified in the image recipe.You can specify the parent image using one of the following options:
- AMI ID
- Image Builder image Amazon Resource Name (ARN)
- AWS Systems Manager (SSM) Parameter Store Parameter, prefixed by
ssm:, followed by the parameter name or ARN. - AWS Marketplace product ID
- See Also:
-
getVersion
The version of the image recipe.- See Also:
-
getAdditionalInstanceConfiguration
Before you create a new AMI, Image Builder launches temporary Amazon EC2 instances to build and test your image configuration.Instance configuration adds a layer of control over those instances. You can define settings and add scripts to run when an instance is launched from your AMI.
Returns union: either
IResolvableorCfnImageRecipe.AdditionalInstanceConfigurationProperty- See Also:
-
getAmiTags
Tags that are applied to the AMI that Image Builder creates during the Build phase prior to image distribution.Returns union: either Mapinvalid input: '<'String,
String> orIResolvable- See Also:
-
getBlockDeviceMappings
The block device mappings to apply when creating images from this recipe.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnImageRecipe.InstanceBlockDeviceMappingProperty>- See Also:
-
getDescription
The description of the image recipe.- See Also:
-
getTags
The tags of the image recipe.- See Also:
-
getWorkingDirectory
The working directory to be used during build and test workflows.- See Also:
-
builder
- Returns:
- a
CfnImageRecipeProps.BuilderofCfnImageRecipeProps
-