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.Builder
distributionConfigurationArn
(String 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.imageRecipeArn
(String 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.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
.
-
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:
-
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:
-
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:
-
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:
-
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:
-
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
-