Interface CfnImageProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnImageProps.Jsii$Proxy
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()
.containerRecipeArn("containerRecipeArn")
.deletionSettings(DeletionSettingsProperty.builder()
.executionRole("executionRole")
.build())
.distributionConfigurationArn("distributionConfigurationArn")
.enhancedImageMetadataEnabled(false)
.executionRole("executionRole")
.imagePipelineExecutionSettings(ImagePipelineExecutionSettingsProperty.builder()
.deploymentId("deploymentId")
.onUpdate(false)
.build())
.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())
.infrastructureConfigurationArn("infrastructureConfigurationArn")
.loggingConfiguration(ImageLoggingConfigurationProperty.builder()
.logGroupName("logGroupName")
.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 defines how images are configured and tested.default ObjectEnables deletion of underlying resources of an image when it is replaced or deleted, including its Amazon Machine Images (AMIs), snapshots, or containers.default ObjectThe Amazon Resource Name (ARN) of the distribution configuration that defines and configures the outputs of your pipeline.default ObjectCollects additional information about the image being created, including 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 ObjectThe image pipeline execution settings of the image.default ObjectThe Amazon Resource Name (ARN) of the image recipe that defines how images are configured, tested, and assessed.default ObjectContains settings for vulnerability scans.default ObjectThe image tests configuration of the image.default ObjectThe Amazon Resource Name (ARN) of the infrastructure configuration that defines the environment in which your image will be built and tested.default ObjectThe logging configuration that's defined for the image.getTags()The tags of the image.default ObjectContains an array of workflow configuration objects.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getContainerRecipeArn
The Amazon Resource Name (ARN) of the container recipe that defines how images are configured and tested.- See Also:
-
getDeletionSettings
Enables deletion of underlying resources of an image when it is replaced or deleted, including its Amazon Machine Images (AMIs), snapshots, or containers.Returns union: either
IResolvableorCfnImage.DeletionSettingsProperty- See Also:
-
getDistributionConfigurationArn
The Amazon Resource Name (ARN) of the distribution configuration that defines and configures the outputs of your pipeline.Returns union: either
StringorIDistributionConfigurationRef- See Also:
-
getEnhancedImageMetadataEnabled
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 union: either
BooleanorIResolvable- 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:
-
getImagePipelineExecutionSettings
The image pipeline execution settings of the image.Returns union: either
IResolvableorCfnImage.ImagePipelineExecutionSettingsProperty- See Also:
-
getImageRecipeArn
The Amazon Resource Name (ARN) of the image recipe that defines how images are configured, tested, and assessed.Returns union: either
StringorIImageRecipeRef- See Also:
-
getImageScanningConfiguration
Contains settings for vulnerability scans.Returns union: either
IResolvableorCfnImage.ImageScanningConfigurationProperty- See Also:
-
getImageTestsConfiguration
The image tests configuration of the image.Returns union: either
IResolvableorCfnImage.ImageTestsConfigurationProperty- See Also:
-
getInfrastructureConfigurationArn
The Amazon Resource Name (ARN) of the infrastructure configuration that defines the environment in which your image will be built and tested.Returns union: either
StringorIInfrastructureConfigurationRef- See Also:
-
getLoggingConfiguration
The logging configuration that's defined for the image.Image Builder uses the defined settings to direct execution log output during image creation.
Returns union: either
IResolvableorCfnImage.ImageLoggingConfigurationProperty- See Also:
-
getTags
The tags of the image.- See Also:
-
getWorkflows
Contains an array of workflow configuration objects.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnImage.WorkflowConfigurationProperty>- See Also:
-
builder
- Returns:
- a
CfnImageProps.BuilderofCfnImageProps
-