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
-
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()
executionRole
(String executionRole) Sets the value ofCfnImageProps.getExecutionRole()
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()
Sets the value ofCfnImageProps.getWorkflows()
workflows
(IResolvable workflows) Sets the value ofCfnImageProps.getWorkflows()
-
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 that defines the environment in which your image will be built and tested. This parameter is required.- Returns:
this
-
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
-
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
-
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
-
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
-
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:
build
in interfacesoftware.amazon.jsii.Builder<CfnImageProps>
- Returns:
- a new instance of
CfnImageProps
- Throws:
NullPointerException
- if any required attribute was not provided
-