Class CfnImagePipelineMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.imagebuilder.CfnImagePipelineMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnImagePipelineMixinProps>
- Enclosing interface:
CfnImagePipelineMixinProps
@Stability(Stable)
public static final class CfnImagePipelineMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnImagePipelineMixinProps>
A builder for
CfnImagePipelineMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.containerRecipeArn(String containerRecipeArn) Sets the value ofCfnImagePipelineMixinProps.getContainerRecipeArn()containerRecipeArn(IContainerRecipeRef containerRecipeArn) Sets the value ofCfnImagePipelineMixinProps.getContainerRecipeArn()description(String description) Sets the value ofCfnImagePipelineMixinProps.getDescription()distributionConfigurationArn(String distributionConfigurationArn) Sets the value ofCfnImagePipelineMixinProps.getDistributionConfigurationArn()distributionConfigurationArn(IDistributionConfigurationRef distributionConfigurationArn) Sets the value ofCfnImagePipelineMixinProps.getDistributionConfigurationArn()enhancedImageMetadataEnabled(Boolean enhancedImageMetadataEnabled) Sets the value ofCfnImagePipelineMixinProps.getEnhancedImageMetadataEnabled()enhancedImageMetadataEnabled(IResolvable enhancedImageMetadataEnabled) Sets the value ofCfnImagePipelineMixinProps.getEnhancedImageMetadataEnabled()executionRole(String executionRole) Sets the value ofCfnImagePipelineMixinProps.getExecutionRole()imageRecipeArn(String imageRecipeArn) Sets the value ofCfnImagePipelineMixinProps.getImageRecipeArn()imageRecipeArn(IImageRecipeRef imageRecipeArn) Sets the value ofCfnImagePipelineMixinProps.getImageRecipeArn()imageScanningConfiguration(CfnImagePipelinePropsMixin.ImageScanningConfigurationProperty imageScanningConfiguration) Sets the value ofCfnImagePipelineMixinProps.getImageScanningConfiguration()imageScanningConfiguration(IResolvable imageScanningConfiguration) Sets the value ofCfnImagePipelineMixinProps.getImageScanningConfiguration()imageTestsConfiguration(CfnImagePipelinePropsMixin.ImageTestsConfigurationProperty imageTestsConfiguration) Sets the value ofCfnImagePipelineMixinProps.getImageTestsConfiguration()imageTestsConfiguration(IResolvable imageTestsConfiguration) Sets the value ofCfnImagePipelineMixinProps.getImageTestsConfiguration()infrastructureConfigurationArn(String infrastructureConfigurationArn) Sets the value ofCfnImagePipelineMixinProps.getInfrastructureConfigurationArn()infrastructureConfigurationArn(IInfrastructureConfigurationRef infrastructureConfigurationArn) Sets the value ofCfnImagePipelineMixinProps.getInfrastructureConfigurationArn()loggingConfiguration(CfnImagePipelinePropsMixin.PipelineLoggingConfigurationProperty loggingConfiguration) Sets the value ofCfnImagePipelineMixinProps.getLoggingConfiguration()loggingConfiguration(IResolvable loggingConfiguration) Sets the value ofCfnImagePipelineMixinProps.getLoggingConfiguration()Sets the value ofCfnImagePipelineMixinProps.getName()Sets the value ofCfnImagePipelineMixinProps.getSchedule()schedule(IResolvable schedule) Sets the value ofCfnImagePipelineMixinProps.getSchedule()Sets the value ofCfnImagePipelineMixinProps.getStatus()Sets the value ofCfnImagePipelineMixinProps.getTags()Sets the value ofCfnImagePipelineMixinProps.getWorkflows()workflows(IResolvable workflows) Sets the value ofCfnImagePipelineMixinProps.getWorkflows()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
containerRecipeArn
@Stability(Stable) public CfnImagePipelineMixinProps.Builder containerRecipeArn(String containerRecipeArn) Sets the value ofCfnImagePipelineMixinProps.getContainerRecipeArn()- Parameters:
containerRecipeArn- The Amazon Resource Name (ARN) of the container recipe that is used for this pipeline.- Returns:
this
-
containerRecipeArn
@Stability(Stable) public CfnImagePipelineMixinProps.Builder containerRecipeArn(IContainerRecipeRef containerRecipeArn) Sets the value ofCfnImagePipelineMixinProps.getContainerRecipeArn()- Parameters:
containerRecipeArn- The Amazon Resource Name (ARN) of the container recipe that is used for this pipeline.- Returns:
this
-
description
Sets the value ofCfnImagePipelineMixinProps.getDescription()- Parameters:
description- The description of this image pipeline.- Returns:
this
-
distributionConfigurationArn
@Stability(Stable) public CfnImagePipelineMixinProps.Builder distributionConfigurationArn(String distributionConfigurationArn) Sets the value ofCfnImagePipelineMixinProps.getDistributionConfigurationArn()- Parameters:
distributionConfigurationArn- The Amazon Resource Name (ARN) of the distribution configuration associated with this image pipeline.- Returns:
this
-
distributionConfigurationArn
@Stability(Stable) public CfnImagePipelineMixinProps.Builder distributionConfigurationArn(IDistributionConfigurationRef distributionConfigurationArn) Sets the value ofCfnImagePipelineMixinProps.getDistributionConfigurationArn()- Parameters:
distributionConfigurationArn- The Amazon Resource Name (ARN) of the distribution configuration associated with this image pipeline.- Returns:
this
-
enhancedImageMetadataEnabled
@Stability(Stable) public CfnImagePipelineMixinProps.Builder enhancedImageMetadataEnabled(Boolean enhancedImageMetadataEnabled) Sets the value ofCfnImagePipelineMixinProps.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 CfnImagePipelineMixinProps.Builder enhancedImageMetadataEnabled(IResolvable enhancedImageMetadataEnabled) Sets the value ofCfnImagePipelineMixinProps.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 ofCfnImagePipelineMixinProps.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 ofCfnImagePipelineMixinProps.getImageRecipeArn()- Parameters:
imageRecipeArn- The Amazon Resource Name (ARN) of the image recipe associated with this image pipeline.- Returns:
this
-
imageRecipeArn
@Stability(Stable) public CfnImagePipelineMixinProps.Builder imageRecipeArn(IImageRecipeRef imageRecipeArn) Sets the value ofCfnImagePipelineMixinProps.getImageRecipeArn()- Parameters:
imageRecipeArn- The Amazon Resource Name (ARN) of the image recipe associated with this image pipeline.- Returns:
this
-
imageScanningConfiguration
@Stability(Stable) public CfnImagePipelineMixinProps.Builder imageScanningConfiguration(IResolvable imageScanningConfiguration) Sets the value ofCfnImagePipelineMixinProps.getImageScanningConfiguration()- Parameters:
imageScanningConfiguration- Contains settings for vulnerability scans.- Returns:
this
-
imageScanningConfiguration
@Stability(Stable) public CfnImagePipelineMixinProps.Builder imageScanningConfiguration(CfnImagePipelinePropsMixin.ImageScanningConfigurationProperty imageScanningConfiguration) Sets the value ofCfnImagePipelineMixinProps.getImageScanningConfiguration()- Parameters:
imageScanningConfiguration- Contains settings for vulnerability scans.- Returns:
this
-
imageTestsConfiguration
@Stability(Stable) public CfnImagePipelineMixinProps.Builder imageTestsConfiguration(IResolvable imageTestsConfiguration) Sets the value ofCfnImagePipelineMixinProps.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 CfnImagePipelineMixinProps.Builder imageTestsConfiguration(CfnImagePipelinePropsMixin.ImageTestsConfigurationProperty imageTestsConfiguration) Sets the value ofCfnImagePipelineMixinProps.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
-
infrastructureConfigurationArn
@Stability(Stable) public CfnImagePipelineMixinProps.Builder infrastructureConfigurationArn(String infrastructureConfigurationArn) Sets the value ofCfnImagePipelineMixinProps.getInfrastructureConfigurationArn()- Parameters:
infrastructureConfigurationArn- The Amazon Resource Name (ARN) of the infrastructure configuration associated with this image pipeline.- Returns:
this
-
infrastructureConfigurationArn
@Stability(Stable) public CfnImagePipelineMixinProps.Builder infrastructureConfigurationArn(IInfrastructureConfigurationRef infrastructureConfigurationArn) Sets the value ofCfnImagePipelineMixinProps.getInfrastructureConfigurationArn()- Parameters:
infrastructureConfigurationArn- The Amazon Resource Name (ARN) of the infrastructure configuration associated with this image pipeline.- Returns:
this
-
loggingConfiguration
@Stability(Stable) public CfnImagePipelineMixinProps.Builder loggingConfiguration(IResolvable loggingConfiguration) Sets the value ofCfnImagePipelineMixinProps.getLoggingConfiguration()- Parameters:
loggingConfiguration- Defines logging configuration for the output image.- Returns:
this
-
loggingConfiguration
@Stability(Stable) public CfnImagePipelineMixinProps.Builder loggingConfiguration(CfnImagePipelinePropsMixin.PipelineLoggingConfigurationProperty loggingConfiguration) Sets the value ofCfnImagePipelineMixinProps.getLoggingConfiguration()- Parameters:
loggingConfiguration- Defines logging configuration for the output image.- Returns:
this
-
name
Sets the value ofCfnImagePipelineMixinProps.getName()- Parameters:
name- The name of the image pipeline.- Returns:
this
-
schedule
Sets the value ofCfnImagePipelineMixinProps.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 CfnImagePipelineMixinProps.Builder schedule(CfnImagePipelinePropsMixin.ScheduleProperty schedule) Sets the value ofCfnImagePipelineMixinProps.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 ofCfnImagePipelineMixinProps.getStatus()- Parameters:
status- The status of the image pipeline.- Returns:
this
-
tags
Sets the value ofCfnImagePipelineMixinProps.getTags()- Parameters:
tags- The tags of this image pipeline.- Returns:
this
-
workflows
Sets the value ofCfnImagePipelineMixinProps.getWorkflows()- Parameters:
workflows- Contains the workflows that run for the image pipeline.- Returns:
this
-
workflows
@Stability(Stable) public CfnImagePipelineMixinProps.Builder workflows(List<? extends Object> workflows) Sets the value ofCfnImagePipelineMixinProps.getWorkflows()- Parameters:
workflows- Contains the workflows that run for the image pipeline.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnImagePipelineMixinProps>- Returns:
- a new instance of
CfnImagePipelineMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-