Class CfnImage.Builder
java.lang.Object
software.amazon.awscdk.services.imagebuilder.CfnImage.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnImage>
- Enclosing class:
CfnImage
@Stability(Stable)
public static final class CfnImage.Builder
extends Object
implements software.amazon.jsii.Builder<CfnImage>
A fluent builder for
CfnImage.-
Method Summary
Modifier and TypeMethodDescriptionbuild()containerRecipeArn(String containerRecipeArn) The Amazon Resource Name (ARN) of the container recipe that defines how images are configured and tested.static CfnImage.BuilderdeletionSettings(IResolvable deletionSettings) The deletion settings of the image, indicating whether to delete the underlying resources in addition to the image.deletionSettings(CfnImage.DeletionSettingsProperty deletionSettings) The deletion settings of the image, indicating whether to delete the underlying resources in addition to the image.distributionConfigurationArn(String distributionConfigurationArn) The Amazon Resource Name (ARN) of the distribution configuration that defines and configures the outputs of your pipeline.distributionConfigurationArn(IDistributionConfigurationRef distributionConfigurationArn) The Amazon Resource Name (ARN) of the distribution configuration that defines and configures the outputs of your pipeline.enhancedImageMetadataEnabled(Boolean enhancedImageMetadataEnabled) Collects additional information about the image being created, including the operating system (OS) version and package list.enhancedImageMetadataEnabled(IResolvable enhancedImageMetadataEnabled) Collects additional information about the image being created, including the operating system (OS) version and package list.executionRole(String executionRole) The name or Amazon Resource Name (ARN) for the IAM role you create that grants Image Builder access to perform workflow actions.imagePipelineExecutionSettings(IResolvable imagePipelineExecutionSettings) The settings for starting an image pipeline execution.imagePipelineExecutionSettings(CfnImage.ImagePipelineExecutionSettingsProperty imagePipelineExecutionSettings) The settings for starting an image pipeline execution.imageRecipeArn(String imageRecipeArn) The Amazon Resource Name (ARN) of the image recipe that defines how images are configured, tested, and assessed.imageRecipeArn(IImageRecipeRef imageRecipeArn) The Amazon Resource Name (ARN) of the image recipe that defines how images are configured, tested, and assessed.imageScanningConfiguration(IResolvable imageScanningConfiguration) Contains settings for vulnerability scans.imageScanningConfiguration(CfnImage.ImageScanningConfigurationProperty imageScanningConfiguration) Contains settings for vulnerability scans.imageTestsConfiguration(IResolvable imageTestsConfiguration) The image tests configuration of the image.imageTestsConfiguration(CfnImage.ImageTestsConfigurationProperty imageTestsConfiguration) The image tests configuration of the image.infrastructureConfigurationArn(String infrastructureConfigurationArn) The Amazon Resource Name (ARN) of the infrastructure configuration that defines the environment in which your image will be built and tested.infrastructureConfigurationArn(IInfrastructureConfigurationRef infrastructureConfigurationArn) The Amazon Resource Name (ARN) of the infrastructure configuration that defines the environment in which your image will be built and tested.loggingConfiguration(IResolvable loggingConfiguration) The logging configuration that's defined for the image.loggingConfiguration(CfnImage.ImageLoggingConfigurationProperty loggingConfiguration) The logging configuration that's defined for the image.The tags of the image.Contains an array of workflow configuration objects.workflows(IResolvable workflows) Contains an array of workflow configuration objects.
-
Method Details
-
create
@Stability(Stable) public static CfnImage.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnImage.Builder.
-
containerRecipeArn
The Amazon Resource Name (ARN) of the container recipe that defines how images are configured and tested.- Parameters:
containerRecipeArn- The Amazon Resource Name (ARN) of the container recipe that defines how images are configured and tested. This parameter is required.- Returns:
this- See Also:
-
deletionSettings
The deletion settings of the image, indicating whether to delete the underlying resources in addition to the image.- Parameters:
deletionSettings- The deletion settings of the image, indicating whether to delete the underlying resources in addition to the image. This parameter is required.- Returns:
this- See Also:
-
deletionSettings
@Stability(Stable) public CfnImage.Builder deletionSettings(CfnImage.DeletionSettingsProperty deletionSettings) The deletion settings of the image, indicating whether to delete the underlying resources in addition to the image.- Parameters:
deletionSettings- The deletion settings of the image, indicating whether to delete the underlying resources in addition to the image. This parameter is required.- Returns:
this- See Also:
-
distributionConfigurationArn
@Stability(Stable) public CfnImage.Builder distributionConfigurationArn(String distributionConfigurationArn) The Amazon Resource Name (ARN) of the distribution configuration that defines and configures the outputs of your pipeline.- Parameters:
distributionConfigurationArn- The Amazon Resource Name (ARN) of the distribution configuration that defines and configures the outputs of your pipeline. This parameter is required.- Returns:
this- See Also:
-
distributionConfigurationArn
@Stability(Stable) public CfnImage.Builder distributionConfigurationArn(IDistributionConfigurationRef distributionConfigurationArn) The Amazon Resource Name (ARN) of the distribution configuration that defines and configures the outputs of your pipeline.- Parameters:
distributionConfigurationArn- The Amazon Resource Name (ARN) of the distribution configuration that defines and configures the outputs of your pipeline. This parameter is required.- Returns:
this- See Also:
-
enhancedImageMetadataEnabled
@Stability(Stable) public CfnImage.Builder enhancedImageMetadataEnabled(Boolean 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.
- Parameters:
enhancedImageMetadataEnabled- Collects additional information about the image being created, including the operating system (OS) version and package list. This parameter is required.- Returns:
this- See Also:
-
enhancedImageMetadataEnabled
@Stability(Stable) public CfnImage.Builder enhancedImageMetadataEnabled(IResolvable 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.
- Parameters:
enhancedImageMetadataEnabled- Collects additional information about the image being created, including the operating system (OS) version and package list. This parameter is required.- Returns:
this- See Also:
-
executionRole
The name or Amazon Resource Name (ARN) for the IAM role you create that grants Image Builder access to perform workflow actions.- Parameters:
executionRole- The name or Amazon Resource Name (ARN) for the IAM role you create that grants Image Builder access to perform workflow actions. This parameter is required.- Returns:
this- See Also:
-
imagePipelineExecutionSettings
@Stability(Stable) public CfnImage.Builder imagePipelineExecutionSettings(IResolvable imagePipelineExecutionSettings) The settings for starting an image pipeline execution.- Parameters:
imagePipelineExecutionSettings- The settings for starting an image pipeline execution. This parameter is required.- Returns:
this- See Also:
-
imagePipelineExecutionSettings
@Stability(Stable) public CfnImage.Builder imagePipelineExecutionSettings(CfnImage.ImagePipelineExecutionSettingsProperty imagePipelineExecutionSettings) The settings for starting an image pipeline execution.- Parameters:
imagePipelineExecutionSettings- The settings for starting an image pipeline execution. This parameter is required.- Returns:
this- See Also:
-
imageRecipeArn
The Amazon Resource Name (ARN) of the image recipe that defines how images are configured, tested, and assessed.- Parameters:
imageRecipeArn- The Amazon Resource Name (ARN) of the image recipe that defines how images are configured, tested, and assessed. This parameter is required.- Returns:
this- See Also:
-
imageRecipeArn
The Amazon Resource Name (ARN) of the image recipe that defines how images are configured, tested, and assessed.- Parameters:
imageRecipeArn- The Amazon Resource Name (ARN) of the image recipe that defines how images are configured, tested, and assessed. This parameter is required.- Returns:
this- See Also:
-
imageScanningConfiguration
@Stability(Stable) public CfnImage.Builder imageScanningConfiguration(IResolvable imageScanningConfiguration) Contains settings for vulnerability scans.- Parameters:
imageScanningConfiguration- Contains settings for vulnerability scans. This parameter is required.- Returns:
this- See Also:
-
imageScanningConfiguration
@Stability(Stable) public CfnImage.Builder imageScanningConfiguration(CfnImage.ImageScanningConfigurationProperty imageScanningConfiguration) Contains settings for vulnerability scans.- Parameters:
imageScanningConfiguration- Contains settings for vulnerability scans. This parameter is required.- Returns:
this- See Also:
-
imageTestsConfiguration
@Stability(Stable) public CfnImage.Builder imageTestsConfiguration(IResolvable imageTestsConfiguration) The image tests configuration of the image.- Parameters:
imageTestsConfiguration- The image tests configuration of the image. This parameter is required.- Returns:
this- See Also:
-
imageTestsConfiguration
@Stability(Stable) public CfnImage.Builder imageTestsConfiguration(CfnImage.ImageTestsConfigurationProperty imageTestsConfiguration) The image tests configuration of the image.- Parameters:
imageTestsConfiguration- The image tests configuration of the image. This parameter is required.- Returns:
this- See Also:
-
infrastructureConfigurationArn
@Stability(Stable) public CfnImage.Builder infrastructureConfigurationArn(String infrastructureConfigurationArn) The Amazon Resource Name (ARN) of the infrastructure configuration that defines the environment in which your image will be built and tested.- 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- See Also:
-
infrastructureConfigurationArn
@Stability(Stable) public CfnImage.Builder infrastructureConfigurationArn(IInfrastructureConfigurationRef infrastructureConfigurationArn) The Amazon Resource Name (ARN) of the infrastructure configuration that defines the environment in which your image will be built and tested.- 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- See Also:
-
loggingConfiguration
The logging configuration that's defined for the image.Image Builder uses the defined settings to direct execution log output during image creation.
- Parameters:
loggingConfiguration- The logging configuration that's defined for the image. This parameter is required.- Returns:
this- See Also:
-
loggingConfiguration
@Stability(Stable) public CfnImage.Builder loggingConfiguration(CfnImage.ImageLoggingConfigurationProperty loggingConfiguration) The logging configuration that's defined for the image.Image Builder uses the defined settings to direct execution log output during image creation.
- Parameters:
loggingConfiguration- The logging configuration that's defined for the image. This parameter is required.- Returns:
this- See Also:
-
tags
The tags of the image.- Parameters:
tags- The tags of the image. This parameter is required.- Returns:
this- See Also:
-
workflows
Contains an array of workflow configuration objects.- Parameters:
workflows- Contains an array of workflow configuration objects. This parameter is required.- Returns:
this- See Also:
-
workflows
Contains an array of workflow configuration objects.- Parameters:
workflows- Contains an array of workflow configuration objects. This parameter is required.- Returns:
this- See Also:
-
build
-