Class CfnImageMixinProps.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.imagebuilder.mixins.CfnImageMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnImageMixinProps>
- Enclosing interface:
CfnImageMixinProps
@Stability(Stable)
public static final class CfnImageMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnImageMixinProps>
A builder for
CfnImageMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.containerRecipeArn(String containerRecipeArn) Sets the value ofCfnImageMixinProps.getContainerRecipeArn()deletionSettings(IResolvable deletionSettings) Sets the value ofCfnImageMixinProps.getDeletionSettings()deletionSettings(CfnImagePropsMixin.DeletionSettingsProperty deletionSettings) Sets the value ofCfnImageMixinProps.getDeletionSettings()distributionConfigurationArn(String distributionConfigurationArn) Sets the value ofCfnImageMixinProps.getDistributionConfigurationArn()enhancedImageMetadataEnabled(Boolean enhancedImageMetadataEnabled) Sets the value ofCfnImageMixinProps.getEnhancedImageMetadataEnabled()enhancedImageMetadataEnabled(IResolvable enhancedImageMetadataEnabled) Sets the value ofCfnImageMixinProps.getEnhancedImageMetadataEnabled()executionRole(String executionRole) Sets the value ofCfnImageMixinProps.getExecutionRole()imagePipelineExecutionSettings(IResolvable imagePipelineExecutionSettings) Sets the value ofCfnImageMixinProps.getImagePipelineExecutionSettings()imagePipelineExecutionSettings(CfnImagePropsMixin.ImagePipelineExecutionSettingsProperty imagePipelineExecutionSettings) Sets the value ofCfnImageMixinProps.getImagePipelineExecutionSettings()imageRecipeArn(String imageRecipeArn) Sets the value ofCfnImageMixinProps.getImageRecipeArn()imageScanningConfiguration(IResolvable imageScanningConfiguration) Sets the value ofCfnImageMixinProps.getImageScanningConfiguration()imageScanningConfiguration(CfnImagePropsMixin.ImageScanningConfigurationProperty imageScanningConfiguration) Sets the value ofCfnImageMixinProps.getImageScanningConfiguration()imageTestsConfiguration(IResolvable imageTestsConfiguration) Sets the value ofCfnImageMixinProps.getImageTestsConfiguration()imageTestsConfiguration(CfnImagePropsMixin.ImageTestsConfigurationProperty imageTestsConfiguration) Sets the value ofCfnImageMixinProps.getImageTestsConfiguration()infrastructureConfigurationArn(String infrastructureConfigurationArn) Sets the value ofCfnImageMixinProps.getInfrastructureConfigurationArn()loggingConfiguration(IResolvable loggingConfiguration) Sets the value ofCfnImageMixinProps.getLoggingConfiguration()loggingConfiguration(CfnImagePropsMixin.ImageLoggingConfigurationProperty loggingConfiguration) Sets the value ofCfnImageMixinProps.getLoggingConfiguration()Sets the value ofCfnImageMixinProps.getTags()Sets the value ofCfnImageMixinProps.getWorkflows()workflows(IResolvable workflows) Sets the value ofCfnImageMixinProps.getWorkflows()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
containerRecipeArn
Sets the value ofCfnImageMixinProps.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 ofCfnImageMixinProps.getDeletionSettings()- Parameters:
deletionSettings- Enables deletion of underlying resources of an image when it is replaced or deleted, including its Amazon Machine Images (AMIs), snapshots, or containers.- Returns:
this
-
deletionSettings
@Stability(Stable) public CfnImageMixinProps.Builder deletionSettings(CfnImagePropsMixin.DeletionSettingsProperty deletionSettings) Sets the value ofCfnImageMixinProps.getDeletionSettings()- Parameters:
deletionSettings- Enables deletion of underlying resources of an image when it is replaced or deleted, including its Amazon Machine Images (AMIs), snapshots, or containers.- Returns:
this
-
distributionConfigurationArn
@Stability(Stable) public CfnImageMixinProps.Builder distributionConfigurationArn(String distributionConfigurationArn) Sets the value ofCfnImageMixinProps.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 CfnImageMixinProps.Builder enhancedImageMetadataEnabled(Boolean enhancedImageMetadataEnabled) Sets the value ofCfnImageMixinProps.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 CfnImageMixinProps.Builder enhancedImageMetadataEnabled(IResolvable enhancedImageMetadataEnabled) Sets the value ofCfnImageMixinProps.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 ofCfnImageMixinProps.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 CfnImageMixinProps.Builder imagePipelineExecutionSettings(IResolvable imagePipelineExecutionSettings) Sets the value ofCfnImageMixinProps.getImagePipelineExecutionSettings()- Parameters:
imagePipelineExecutionSettings- The image pipeline execution settings of the image.- Returns:
this
-
imagePipelineExecutionSettings
@Stability(Stable) public CfnImageMixinProps.Builder imagePipelineExecutionSettings(CfnImagePropsMixin.ImagePipelineExecutionSettingsProperty imagePipelineExecutionSettings) Sets the value ofCfnImageMixinProps.getImagePipelineExecutionSettings()- Parameters:
imagePipelineExecutionSettings- The image pipeline execution settings of the image.- Returns:
this
-
imageRecipeArn
Sets the value ofCfnImageMixinProps.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 CfnImageMixinProps.Builder imageScanningConfiguration(IResolvable imageScanningConfiguration) Sets the value ofCfnImageMixinProps.getImageScanningConfiguration()- Parameters:
imageScanningConfiguration- Contains settings for vulnerability scans.- Returns:
this
-
imageScanningConfiguration
@Stability(Stable) public CfnImageMixinProps.Builder imageScanningConfiguration(CfnImagePropsMixin.ImageScanningConfigurationProperty imageScanningConfiguration) Sets the value ofCfnImageMixinProps.getImageScanningConfiguration()- Parameters:
imageScanningConfiguration- Contains settings for vulnerability scans.- Returns:
this
-
imageTestsConfiguration
@Stability(Stable) public CfnImageMixinProps.Builder imageTestsConfiguration(IResolvable imageTestsConfiguration) Sets the value ofCfnImageMixinProps.getImageTestsConfiguration()- Parameters:
imageTestsConfiguration- The image tests configuration of the image.- Returns:
this
-
imageTestsConfiguration
@Stability(Stable) public CfnImageMixinProps.Builder imageTestsConfiguration(CfnImagePropsMixin.ImageTestsConfigurationProperty imageTestsConfiguration) Sets the value ofCfnImageMixinProps.getImageTestsConfiguration()- Parameters:
imageTestsConfiguration- The image tests configuration of the image.- Returns:
this
-
infrastructureConfigurationArn
@Stability(Stable) public CfnImageMixinProps.Builder infrastructureConfigurationArn(String infrastructureConfigurationArn) Sets the value ofCfnImageMixinProps.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 CfnImageMixinProps.Builder loggingConfiguration(IResolvable loggingConfiguration) Sets the value ofCfnImageMixinProps.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 CfnImageMixinProps.Builder loggingConfiguration(CfnImagePropsMixin.ImageLoggingConfigurationProperty loggingConfiguration) Sets the value ofCfnImageMixinProps.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 ofCfnImageMixinProps.getTags()- Parameters:
tags- The tags of the image.- Returns:
this
-
workflows
Sets the value ofCfnImageMixinProps.getWorkflows()- Parameters:
workflows- Contains an array of workflow configuration objects.- Returns:
this
-
workflows
Sets the value ofCfnImageMixinProps.getWorkflows()- Parameters:
workflows- Contains an array of workflow configuration objects.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnImageMixinProps>- Returns:
- a new instance of
CfnImageMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-