Class CfnImagePipelineProps.Builder
java.lang.Object
software.amazon.awscdk.services.imagebuilder.CfnImagePipelineProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnImagePipelineProps>
- Enclosing interface:
CfnImagePipelineProps
@Stability(Stable)
public static final class CfnImagePipelineProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnImagePipelineProps>
A builder for
CfnImagePipelineProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.containerRecipeArn
(String containerRecipeArn) Sets the value ofCfnImagePipelineProps.getContainerRecipeArn()
description
(String description) Sets the value ofCfnImagePipelineProps.getDescription()
distributionConfigurationArn
(String distributionConfigurationArn) Sets the value ofCfnImagePipelineProps.getDistributionConfigurationArn()
enhancedImageMetadataEnabled
(Boolean enhancedImageMetadataEnabled) Sets the value ofCfnImagePipelineProps.getEnhancedImageMetadataEnabled()
enhancedImageMetadataEnabled
(IResolvable enhancedImageMetadataEnabled) Sets the value ofCfnImagePipelineProps.getEnhancedImageMetadataEnabled()
executionRole
(String executionRole) Sets the value ofCfnImagePipelineProps.getExecutionRole()
imageRecipeArn
(String imageRecipeArn) Sets the value ofCfnImagePipelineProps.getImageRecipeArn()
imageScanningConfiguration
(IResolvable imageScanningConfiguration) Sets the value ofCfnImagePipelineProps.getImageScanningConfiguration()
imageScanningConfiguration
(CfnImagePipeline.ImageScanningConfigurationProperty imageScanningConfiguration) Sets the value ofCfnImagePipelineProps.getImageScanningConfiguration()
imageTestsConfiguration
(IResolvable imageTestsConfiguration) Sets the value ofCfnImagePipelineProps.getImageTestsConfiguration()
imageTestsConfiguration
(CfnImagePipeline.ImageTestsConfigurationProperty imageTestsConfiguration) Sets the value ofCfnImagePipelineProps.getImageTestsConfiguration()
infrastructureConfigurationArn
(String infrastructureConfigurationArn) Sets the value ofCfnImagePipelineProps.getInfrastructureConfigurationArn()
Sets the value ofCfnImagePipelineProps.getName()
schedule
(IResolvable schedule) Sets the value ofCfnImagePipelineProps.getSchedule()
schedule
(CfnImagePipeline.ScheduleProperty schedule) Sets the value ofCfnImagePipelineProps.getSchedule()
Sets the value ofCfnImagePipelineProps.getStatus()
Sets the value ofCfnImagePipelineProps.getTags()
Sets the value ofCfnImagePipelineProps.getWorkflows()
workflows
(IResolvable workflows) Sets the value ofCfnImagePipelineProps.getWorkflows()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
infrastructureConfigurationArn
@Stability(Stable) public CfnImagePipelineProps.Builder infrastructureConfigurationArn(String infrastructureConfigurationArn) Sets the value ofCfnImagePipelineProps.getInfrastructureConfigurationArn()
- Parameters:
infrastructureConfigurationArn
- The Amazon Resource Name (ARN) of the infrastructure configuration associated with this image pipeline. This parameter is required.- Returns:
this
-
name
Sets the value ofCfnImagePipelineProps.getName()
- Parameters:
name
- The name of the image pipeline. This parameter is required.- Returns:
this
-
containerRecipeArn
@Stability(Stable) public CfnImagePipelineProps.Builder containerRecipeArn(String containerRecipeArn) Sets the value ofCfnImagePipelineProps.getContainerRecipeArn()
- Parameters:
containerRecipeArn
- The Amazon Resource Name (ARN) of the container recipe that is used for this pipeline.- Returns:
this
-
description
Sets the value ofCfnImagePipelineProps.getDescription()
- Parameters:
description
- The description of this image pipeline.- Returns:
this
-
distributionConfigurationArn
@Stability(Stable) public CfnImagePipelineProps.Builder distributionConfigurationArn(String distributionConfigurationArn) Sets the value ofCfnImagePipelineProps.getDistributionConfigurationArn()
- Parameters:
distributionConfigurationArn
- The Amazon Resource Name (ARN) of the distribution configuration associated with this image pipeline.- Returns:
this
-
enhancedImageMetadataEnabled
@Stability(Stable) public CfnImagePipelineProps.Builder enhancedImageMetadataEnabled(Boolean enhancedImageMetadataEnabled) Sets the value ofCfnImagePipelineProps.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 CfnImagePipelineProps.Builder enhancedImageMetadataEnabled(IResolvable enhancedImageMetadataEnabled) Sets the value ofCfnImagePipelineProps.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 ofCfnImagePipelineProps.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
-
imageRecipeArn
Sets the value ofCfnImagePipelineProps.getImageRecipeArn()
- Parameters:
imageRecipeArn
- The Amazon Resource Name (ARN) of the image recipe associated with this image pipeline.- Returns:
this
-
imageScanningConfiguration
@Stability(Stable) public CfnImagePipelineProps.Builder imageScanningConfiguration(IResolvable imageScanningConfiguration) Sets the value ofCfnImagePipelineProps.getImageScanningConfiguration()
- Parameters:
imageScanningConfiguration
- Contains settings for vulnerability scans.- Returns:
this
-
imageScanningConfiguration
@Stability(Stable) public CfnImagePipelineProps.Builder imageScanningConfiguration(CfnImagePipeline.ImageScanningConfigurationProperty imageScanningConfiguration) Sets the value ofCfnImagePipelineProps.getImageScanningConfiguration()
- Parameters:
imageScanningConfiguration
- Contains settings for vulnerability scans.- Returns:
this
-
imageTestsConfiguration
@Stability(Stable) public CfnImagePipelineProps.Builder imageTestsConfiguration(IResolvable imageTestsConfiguration) Sets the value ofCfnImagePipelineProps.getImageTestsConfiguration()
- Parameters:
imageTestsConfiguration
- The configuration of the image tests that run after image creation to ensure the quality of the image that was created.- Returns:
this
-
imageTestsConfiguration
@Stability(Stable) public CfnImagePipelineProps.Builder imageTestsConfiguration(CfnImagePipeline.ImageTestsConfigurationProperty imageTestsConfiguration) Sets the value ofCfnImagePipelineProps.getImageTestsConfiguration()
- Parameters:
imageTestsConfiguration
- The configuration of the image tests that run after image creation to ensure the quality of the image that was created.- Returns:
this
-
schedule
Sets the value ofCfnImagePipelineProps.getSchedule()
- Parameters:
schedule
- The schedule of the image pipeline. A schedule configures how often and when a pipeline automatically creates a new image.- Returns:
this
-
schedule
@Stability(Stable) public CfnImagePipelineProps.Builder schedule(CfnImagePipeline.ScheduleProperty schedule) Sets the value ofCfnImagePipelineProps.getSchedule()
- Parameters:
schedule
- The schedule of the image pipeline. A schedule configures how often and when a pipeline automatically creates a new image.- Returns:
this
-
status
Sets the value ofCfnImagePipelineProps.getStatus()
- Parameters:
status
- The status of the image pipeline.- Returns:
this
-
tags
Sets the value ofCfnImagePipelineProps.getTags()
- Parameters:
tags
- The tags of this image pipeline.- Returns:
this
-
workflows
Sets the value ofCfnImagePipelineProps.getWorkflows()
- Parameters:
workflows
- Contains the workflows that run for the image pipeline.- Returns:
this
-
workflows
Sets the value ofCfnImagePipelineProps.getWorkflows()
- Parameters:
workflows
- Contains the workflows that run for the image pipeline.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnImagePipelineProps>
- Returns:
- a new instance of
CfnImagePipelineProps
- Throws:
NullPointerException
- if any required attribute was not provided
-