Interface CfnImageProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnImageProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:39.942Z")
@Stability(Stable)
public interface CfnImageProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnImage.
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.*;
CfnImageProps cfnImageProps = CfnImageProps.builder()
.containerRecipeArn("containerRecipeArn")
.distributionConfigurationArn("distributionConfigurationArn")
.enhancedImageMetadataEnabled(false)
.executionRole("executionRole")
.imageRecipeArn("imageRecipeArn")
.imageScanningConfiguration(ImageScanningConfigurationProperty.builder()
.ecrConfiguration(EcrConfigurationProperty.builder()
.containerTags(List.of("containerTags"))
.repositoryName("repositoryName")
.build())
.imageScanningEnabled(false)
.build())
.imageTestsConfiguration(ImageTestsConfigurationProperty.builder()
.imageTestsEnabled(false)
.timeoutMinutes(123)
.build())
.infrastructureConfigurationArn("infrastructureConfigurationArn")
.loggingConfiguration(ImageLoggingConfigurationProperty.builder()
.logGroupName("logGroupName")
.build())
.tags(Map.of(
"tagsKey", "tags"))
.workflows(List.of(WorkflowConfigurationProperty.builder()
.onFailure("onFailure")
.parallelGroup("parallelGroup")
.parameters(List.of(WorkflowParameterProperty.builder()
.name("name")
.value(List.of("value"))
.build()))
.workflowArn("workflowArn")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnImagePropsstatic final classAn implementation forCfnImageProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnImageProps.Builderbuilder()default StringThe Amazon Resource Name (ARN) of the container recipe that defines how images are configured and tested.default StringThe Amazon Resource Name (ARN) of the distribution configuration that defines and configures the outputs of your pipeline.default ObjectCollects additional information about the image being created, including the operating system (OS) version and package list.default StringThe name or Amazon Resource Name (ARN) for the IAM role you create that grants Image Builder access to perform workflow actions.default StringThe Amazon Resource Name (ARN) of the image recipe that defines how images are configured, tested, and assessed.default ObjectContains settings for vulnerability scans.default ObjectThe image tests configuration of the image.default StringThe Amazon Resource Name (ARN) of the infrastructure configuration that defines the environment in which your image will be built and tested.default ObjectThe logging configuration that's defined for the image.getTags()The tags of the image.default ObjectContains an array of workflow configuration objects.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getContainerRecipeArn
The Amazon Resource Name (ARN) of the container recipe that defines how images are configured and tested.- See Also:
-
getDistributionConfigurationArn
The Amazon Resource Name (ARN) of the distribution configuration that defines and configures the outputs of your pipeline.- See Also:
-
getEnhancedImageMetadataEnabled
Collects additional information about the image being created, including the operating system (OS) version and package list.This information is used to enhance the overall experience of using EC2 Image Builder. Enabled by default.
Returns union: either
BooleanorIResolvable- See Also:
-
getExecutionRole
The name or Amazon Resource Name (ARN) for the IAM role you create that grants Image Builder access to perform workflow actions.- See Also:
-
getImageRecipeArn
The Amazon Resource Name (ARN) of the image recipe that defines how images are configured, tested, and assessed.- See Also:
-
getImageScanningConfiguration
Contains settings for vulnerability scans.Returns union: either
IResolvableorCfnImage.ImageScanningConfigurationProperty- See Also:
-
getImageTestsConfiguration
The image tests configuration of the image.Returns union: either
IResolvableorCfnImage.ImageTestsConfigurationProperty- See Also:
-
getInfrastructureConfigurationArn
The Amazon Resource Name (ARN) of the infrastructure configuration that defines the environment in which your image will be built and tested.- See Also:
-
getLoggingConfiguration
The logging configuration that's defined for the image.Image Builder uses the defined settings to direct execution log output during image creation.
Returns union: either
IResolvableorCfnImage.ImageLoggingConfigurationProperty- See Also:
-
getTags
The tags of the image.- See Also:
-
getWorkflows
Contains an array of workflow configuration objects.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnImage.WorkflowConfigurationProperty>- See Also:
-
builder
- Returns:
- a
CfnImageProps.BuilderofCfnImageProps
-