Interface CfnImageProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnImageProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.93.0 (build 1706ca5)",
date="2024-01-03T18:29:27.531Z")
@Stability(Stable)
public interface CfnImageProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnImage.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.imagebuilder.*;
CfnImageProps cfnImageProps = CfnImageProps.builder()
.infrastructureConfigurationArn("infrastructureConfigurationArn")
// the properties below are optional
.containerRecipeArn("containerRecipeArn")
.distributionConfigurationArn("distributionConfigurationArn")
.enhancedImageMetadataEnabled(false)
.executionRole("executionRole")
.imageRecipeArn("imageRecipeArn")
.imageScanningConfiguration(ImageScanningConfigurationProperty.builder()
.ecrConfiguration(EcrConfigurationProperty.builder()
.containerTags(List.of("containerTags"))
.repositoryName("repositoryName")
.build())
.imageScanningEnabled(false)
.build())
.imageTestsConfiguration(ImageTestsConfigurationProperty.builder()
.imageTestsEnabled(false)
.timeoutMinutes(123)
.build())
.tags(Map.of(
"tagsKey", "tags"))
.workflows(List.of(WorkflowConfigurationProperty.builder()
.onFailure("onFailure")
.parallelGroup("parallelGroup")
.parameters(List.of(WorkflowParameterProperty.builder()
.name("name")
.value(List.of("value"))
.build()))
.workflowArn("workflowArn")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnImagePropsstatic final classAn implementation forCfnImageProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnImageProps.Builderbuilder()default StringThe Amazon Resource Name (ARN) of the container recipe that is used for this pipeline.default StringThe Amazon Resource Name (ARN) of the distribution configuration.default ObjectIndicates whether Image Builder collects additional information about the image, such as the operating system (OS) version and package list.default StringThe name or Amazon Resource Name (ARN) for the IAM role you create that grants Image Builder access to perform workflow actions.default StringThe Amazon Resource Name (ARN) of the image recipe.default ObjectContains settings for vulnerability scans.default ObjectThe configuration settings for your image test components, which includes a toggle that allows you to turn off tests, and a timeout setting.The Amazon Resource Name (ARN) of the infrastructure configuration associated with this image pipeline.getTags()The tags of the image.default ObjectContains the build and test workflows that are associated with the image.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getInfrastructureConfigurationArn
The Amazon Resource Name (ARN) of the infrastructure configuration associated with this image pipeline.- See Also:
-
getContainerRecipeArn
The Amazon Resource Name (ARN) of the container recipe that is used for this pipeline.- See Also:
-
getDistributionConfigurationArn
The Amazon Resource Name (ARN) of the distribution configuration.- See Also:
-
getEnhancedImageMetadataEnabled
Indicates whether Image Builder collects additional information about the image, such as the operating system (OS) version and package list.- See Also:
-
getExecutionRole
The name or Amazon Resource Name (ARN) for the IAM role you create that grants Image Builder access to perform workflow actions.- See Also:
-
getImageRecipeArn
The Amazon Resource Name (ARN) of the image recipe.- See Also:
-
getImageScanningConfiguration
Contains settings for vulnerability scans.- See Also:
-
getImageTestsConfiguration
The configuration settings for your image test components, which includes a toggle that allows you to turn off tests, and a timeout setting.- See Also:
-
getTags
The tags of the image.- See Also:
-
getWorkflows
Contains the build and test workflows that are associated with the image.- See Also:
-
builder
- Returns:
- a
CfnImageProps.BuilderofCfnImageProps
-