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()deletionSettings(IResolvable deletionSettings) Sets the value ofCfnImageProps.getDeletionSettings()deletionSettings(CfnImage.DeletionSettingsProperty deletionSettings) Sets the value ofCfnImageProps.getDeletionSettings()distributionConfigurationArn(String distributionConfigurationArn) Sets the value ofCfnImageProps.getDistributionConfigurationArn()distributionConfigurationArn(IDistributionConfigurationRef distributionConfigurationArn) Sets the value ofCfnImageProps.getDistributionConfigurationArn()enhancedImageMetadataEnabled(Boolean enhancedImageMetadataEnabled) Sets the value ofCfnImageProps.getEnhancedImageMetadataEnabled()enhancedImageMetadataEnabled(IResolvable enhancedImageMetadataEnabled) Sets the value ofCfnImageProps.getEnhancedImageMetadataEnabled()executionRole(String executionRole) Sets the value ofCfnImageProps.getExecutionRole()imagePipelineExecutionSettings(IResolvable imagePipelineExecutionSettings) Sets the value ofCfnImageProps.getImagePipelineExecutionSettings()imagePipelineExecutionSettings(CfnImage.ImagePipelineExecutionSettingsProperty imagePipelineExecutionSettings) Sets the value ofCfnImageProps.getImagePipelineExecutionSettings()imageRecipeArn(String imageRecipeArn) Sets the value ofCfnImageProps.getImageRecipeArn()imageRecipeArn(IImageRecipeRef 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()infrastructureConfigurationArn(IInfrastructureConfigurationRef infrastructureConfigurationArn) Sets the value ofCfnImageProps.getInfrastructureConfigurationArn()loggingConfiguration(IResolvable loggingConfiguration) Sets the value ofCfnImageProps.getLoggingConfiguration()loggingConfiguration(CfnImage.ImageLoggingConfigurationProperty loggingConfiguration) Sets the value ofCfnImageProps.getLoggingConfiguration()Sets the value ofCfnImageProps.getTags()Sets the value ofCfnImageProps.getWorkflows()workflows(IResolvable workflows) Sets the value ofCfnImageProps.getWorkflows()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
containerRecipeArn
Sets the value ofCfnImageProps.getContainerRecipeArn()- Parameters:
containerRecipeArn- The Amazon Resource Name (ARN) of the container recipe that defines how images are configured and tested.- Returns:
this
-
deletionSettings
Sets the value ofCfnImageProps.getDeletionSettings()- Parameters:
deletionSettings- The deletion settings of the image, indicating whether to delete the underlying resources in addition to the image.- Returns:
this
-
deletionSettings
@Stability(Stable) public CfnImageProps.Builder deletionSettings(CfnImage.DeletionSettingsProperty deletionSettings) Sets the value ofCfnImageProps.getDeletionSettings()- Parameters:
deletionSettings- The deletion settings of the image, indicating whether to delete the underlying resources in addition to the image.- 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 that defines and configures the outputs of your pipeline.- Returns:
this
-
distributionConfigurationArn
@Stability(Stable) public CfnImageProps.Builder distributionConfigurationArn(IDistributionConfigurationRef distributionConfigurationArn) Sets the value ofCfnImageProps.getDistributionConfigurationArn()- Parameters:
distributionConfigurationArn- The Amazon Resource Name (ARN) of the distribution configuration that defines and configures the outputs of your pipeline.- Returns:
this
-
enhancedImageMetadataEnabled
@Stability(Stable) public CfnImageProps.Builder enhancedImageMetadataEnabled(Boolean enhancedImageMetadataEnabled) Sets the value ofCfnImageProps.getEnhancedImageMetadataEnabled()- Parameters:
enhancedImageMetadataEnabled- 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:
this
-
enhancedImageMetadataEnabled
@Stability(Stable) public CfnImageProps.Builder enhancedImageMetadataEnabled(IResolvable enhancedImageMetadataEnabled) Sets the value ofCfnImageProps.getEnhancedImageMetadataEnabled()- Parameters:
enhancedImageMetadataEnabled- 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:
this
-
executionRole
Sets the value ofCfnImageProps.getExecutionRole()- Parameters:
executionRole- The name or Amazon Resource Name (ARN) for the IAM role you create that grants Image Builder access to perform workflow actions.- Returns:
this
-
imagePipelineExecutionSettings
@Stability(Stable) public CfnImageProps.Builder imagePipelineExecutionSettings(IResolvable imagePipelineExecutionSettings) Sets the value ofCfnImageProps.getImagePipelineExecutionSettings()- Parameters:
imagePipelineExecutionSettings- The settings for starting an image pipeline execution.- Returns:
this
-
imagePipelineExecutionSettings
@Stability(Stable) public CfnImageProps.Builder imagePipelineExecutionSettings(CfnImage.ImagePipelineExecutionSettingsProperty imagePipelineExecutionSettings) Sets the value ofCfnImageProps.getImagePipelineExecutionSettings()- Parameters:
imagePipelineExecutionSettings- The settings for starting an image pipeline execution.- Returns:
this
-
imageRecipeArn
Sets the value ofCfnImageProps.getImageRecipeArn()- Parameters:
imageRecipeArn- The Amazon Resource Name (ARN) of the image recipe that defines how images are configured, tested, and assessed.- Returns:
this
-
imageRecipeArn
Sets the value ofCfnImageProps.getImageRecipeArn()- Parameters:
imageRecipeArn- The Amazon Resource Name (ARN) of the image recipe that defines how images are configured, tested, and assessed.- Returns:
this
-
imageScanningConfiguration
@Stability(Stable) public CfnImageProps.Builder imageScanningConfiguration(IResolvable imageScanningConfiguration) Sets the value ofCfnImageProps.getImageScanningConfiguration()- Parameters:
imageScanningConfiguration- Contains settings for vulnerability scans.- Returns:
this
-
imageScanningConfiguration
@Stability(Stable) public CfnImageProps.Builder imageScanningConfiguration(CfnImage.ImageScanningConfigurationProperty imageScanningConfiguration) Sets the value ofCfnImageProps.getImageScanningConfiguration()- Parameters:
imageScanningConfiguration- Contains settings for vulnerability scans.- Returns:
this
-
imageTestsConfiguration
@Stability(Stable) public CfnImageProps.Builder imageTestsConfiguration(IResolvable imageTestsConfiguration) Sets the value ofCfnImageProps.getImageTestsConfiguration()- Parameters:
imageTestsConfiguration- The image tests configuration of the image.- Returns:
this
-
imageTestsConfiguration
@Stability(Stable) public CfnImageProps.Builder imageTestsConfiguration(CfnImage.ImageTestsConfigurationProperty imageTestsConfiguration) Sets the value ofCfnImageProps.getImageTestsConfiguration()- Parameters:
imageTestsConfiguration- The image tests configuration of the image.- Returns:
this
-
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 that defines the environment in which your image will be built and tested.- Returns:
this
-
infrastructureConfigurationArn
@Stability(Stable) public CfnImageProps.Builder infrastructureConfigurationArn(IInfrastructureConfigurationRef infrastructureConfigurationArn) Sets the value ofCfnImageProps.getInfrastructureConfigurationArn()- Parameters:
infrastructureConfigurationArn- The Amazon Resource Name (ARN) of the infrastructure configuration that defines the environment in which your image will be built and tested.- Returns:
this
-
loggingConfiguration
@Stability(Stable) public CfnImageProps.Builder loggingConfiguration(IResolvable loggingConfiguration) Sets the value ofCfnImageProps.getLoggingConfiguration()- Parameters:
loggingConfiguration- The logging configuration that's defined for the image. Image Builder uses the defined settings to direct execution log output during image creation.- Returns:
this
-
loggingConfiguration
@Stability(Stable) public CfnImageProps.Builder loggingConfiguration(CfnImage.ImageLoggingConfigurationProperty loggingConfiguration) Sets the value ofCfnImageProps.getLoggingConfiguration()- Parameters:
loggingConfiguration- The logging configuration that's defined for the image. Image Builder uses the defined settings to direct execution log output during image creation.- Returns:
this
-
tags
Sets the value ofCfnImageProps.getTags()- Parameters:
tags- The tags of the image.- Returns:
this
-
workflows
Sets the value ofCfnImageProps.getWorkflows()- Parameters:
workflows- Contains an array of workflow configuration objects.- Returns:
this
-
workflows
Sets the value ofCfnImageProps.getWorkflows()- Parameters:
workflows- Contains an array of workflow configuration objects.- 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
-