Interface CfnImageProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnImageProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.110.0 (build 336b265)",
date="2025-04-22T23:08:14.532Z")
@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")
.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.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.
- 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.- See Also:
-
getImageTestsConfiguration
The image tests configuration of the image.- 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:
-
getTags
The tags of the image.- See Also:
-
getWorkflows
Contains an array of workflow configuration objects.- See Also:
-
builder
- Returns:
- a
CfnImageProps.BuilderofCfnImageProps
-