Class CfnImageProps.Builder
java.lang.Object
software.amazon.awscdk.services.imagebuilder.CfnImageProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnImageProps>
- Enclosing interface:
- CfnImageProps
@Stability(Stable)
public static final class CfnImageProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnImageProps>
A builder for
CfnImageProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.containerRecipeArn(String containerRecipeArn) Sets the value ofCfnImageProps.getContainerRecipeArn()distributionConfigurationArn(String distributionConfigurationArn) Sets the value ofCfnImageProps.getDistributionConfigurationArn()enhancedImageMetadataEnabled(Boolean enhancedImageMetadataEnabled) Sets the value ofCfnImageProps.getEnhancedImageMetadataEnabled()enhancedImageMetadataEnabled(IResolvable enhancedImageMetadataEnabled) Sets the value ofCfnImageProps.getEnhancedImageMetadataEnabled()imageRecipeArn(String imageRecipeArn) Sets the value ofCfnImageProps.getImageRecipeArn()imageScanningConfiguration(IResolvable imageScanningConfiguration) Sets the value ofCfnImageProps.getImageScanningConfiguration()imageScanningConfiguration(CfnImage.ImageScanningConfigurationProperty imageScanningConfiguration) Sets the value ofCfnImageProps.getImageScanningConfiguration()imageTestsConfiguration(IResolvable imageTestsConfiguration) Sets the value ofCfnImageProps.getImageTestsConfiguration()imageTestsConfiguration(CfnImage.ImageTestsConfigurationProperty imageTestsConfiguration) Sets the value ofCfnImageProps.getImageTestsConfiguration()infrastructureConfigurationArn(String infrastructureConfigurationArn) Sets the value ofCfnImageProps.getInfrastructureConfigurationArn()Sets the value ofCfnImageProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
infrastructureConfigurationArn
@Stability(Stable) public CfnImageProps.Builder infrastructureConfigurationArn(String infrastructureConfigurationArn) Sets the value ofCfnImageProps.getInfrastructureConfigurationArn()- Parameters:
infrastructureConfigurationArn- The Amazon Resource Name (ARN) of the infrastructure configuration associated with this image pipeline. This parameter is required.- Returns:
this
-
containerRecipeArn
Sets the value ofCfnImageProps.getContainerRecipeArn()- Parameters:
containerRecipeArn- The Amazon Resource Name (ARN) of the container recipe that is used for this pipeline.- Returns:
this
-
distributionConfigurationArn
@Stability(Stable) public CfnImageProps.Builder distributionConfigurationArn(String distributionConfigurationArn) Sets the value ofCfnImageProps.getDistributionConfigurationArn()- Parameters:
distributionConfigurationArn- The Amazon Resource Name (ARN) of the distribution configuration.- Returns:
this
-
enhancedImageMetadataEnabled
@Stability(Stable) public CfnImageProps.Builder enhancedImageMetadataEnabled(Boolean enhancedImageMetadataEnabled) Sets the value ofCfnImageProps.getEnhancedImageMetadataEnabled()- Parameters:
enhancedImageMetadataEnabled- Indicates whether Image Builder collects additional information about the image, such as the operating system (OS) version and package list.- Returns:
this
-
enhancedImageMetadataEnabled
@Stability(Stable) public CfnImageProps.Builder enhancedImageMetadataEnabled(IResolvable enhancedImageMetadataEnabled) Sets the value ofCfnImageProps.getEnhancedImageMetadataEnabled()- Parameters:
enhancedImageMetadataEnabled- Indicates whether Image Builder collects additional information about the image, such as the operating system (OS) version and package list.- Returns:
this
-
imageRecipeArn
Sets the value ofCfnImageProps.getImageRecipeArn()- Parameters:
imageRecipeArn- The Amazon Resource Name (ARN) of the image recipe.- Returns:
this
-
imageScanningConfiguration
@Stability(Stable) public CfnImageProps.Builder imageScanningConfiguration(IResolvable imageScanningConfiguration) Sets the value ofCfnImageProps.getImageScanningConfiguration()- Parameters:
imageScanningConfiguration-AWS::ImageBuilder::Image.ImageScanningConfiguration.- Returns:
this
-
imageScanningConfiguration
@Stability(Stable) public CfnImageProps.Builder imageScanningConfiguration(CfnImage.ImageScanningConfigurationProperty imageScanningConfiguration) Sets the value ofCfnImageProps.getImageScanningConfiguration()- Parameters:
imageScanningConfiguration-AWS::ImageBuilder::Image.ImageScanningConfiguration.- Returns:
this
-
imageTestsConfiguration
@Stability(Stable) public CfnImageProps.Builder imageTestsConfiguration(IResolvable imageTestsConfiguration) Sets the value ofCfnImageProps.getImageTestsConfiguration()- Parameters:
imageTestsConfiguration- The configuration settings for your image test components, which includes a toggle that allows you to turn off tests, and a timeout setting.- Returns:
this
-
imageTestsConfiguration
@Stability(Stable) public CfnImageProps.Builder imageTestsConfiguration(CfnImage.ImageTestsConfigurationProperty imageTestsConfiguration) Sets the value ofCfnImageProps.getImageTestsConfiguration()- Parameters:
imageTestsConfiguration- The configuration settings for your image test components, which includes a toggle that allows you to turn off tests, and a timeout setting.- Returns:
this
-
tags
Sets the value ofCfnImageProps.getTags()- Parameters:
tags- The tags of the image.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnImageProps>- Returns:
- a new instance of
CfnImageProps - Throws:
NullPointerException- if any required attribute was not provided
-