Class CfnImagePipeline
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.imagebuilder.CfnImagePipeline
- All Implemented Interfaces:
IInspectable
,ITaggable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-12-06T14:43:20.190Z")
@Stability(Stable)
public class CfnImagePipeline
extends CfnResource
implements IInspectable, ITaggable
An image pipeline is the automation configuration for building secure OS images on AWS .
The Image Builder image pipeline is associated with an image recipe that defines the build, validation, and test phases for an image build lifecycle. An image pipeline can be associated with an infrastructure configuration that defines where your image is built. You can define attributes, such as instance types, a subnet for your VPC, security groups, logging, and other infrastructure-related configurations. You can also associate your image pipeline with a distribution configuration to define how you would like to deploy your image.
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.*; CfnImagePipeline cfnImagePipeline = CfnImagePipeline.Builder.create(this, "MyCfnImagePipeline") .infrastructureConfigurationArn("infrastructureConfigurationArn") .name("name") // the properties below are optional .containerRecipeArn("containerRecipeArn") .description("description") .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()) .schedule(ScheduleProperty.builder() .pipelineExecutionStartCondition("pipelineExecutionStartCondition") .scheduleExpression("scheduleExpression") .build()) .status("status") .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
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnImagePipeline
.static interface
Settings that Image Builder uses to configure the ECR repository and the output container images that Amazon Inspector scans.static interface
Contains settings for Image Builder image resource and container image scans.static interface
When you create an image or container recipe with Image Builder , you can add the build or test components that your image pipeline uses to create the final image.static interface
A schedule configures when and how often a pipeline will automatically create a new image.static interface
Contains control settings and configurable inputs for a workflow resource.static interface
Contains a key/value pair that sets the named workflow parameter.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnImagePipeline
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnImagePipeline
(software.amazon.jsii.JsiiObjectRef objRef) CfnImagePipeline
(software.constructs.Construct scope, String id, CfnImagePipelineProps props) -
Method Summary
Modifier and TypeMethodDescriptionReturns the Amazon Resource Name (ARN) of the image pipeline.Returns the name of the image pipeline.The Amazon Resource Name (ARN) of the container recipe that is used for this pipeline.The description of this image pipeline.The Amazon Resource Name (ARN) of the distribution configuration associated with this image pipeline.Collects additional information about the image being created, including the operating system (OS) version and package list.The name or Amazon Resource Name (ARN) for the IAM role you create that grants Image Builder access to perform workflow actions.The Amazon Resource Name (ARN) of the image recipe associated with this image pipeline.Contains settings for vulnerability scans.The configuration of the image tests that run after image creation to ensure the quality of the image that was created.The Amazon Resource Name (ARN) of the infrastructure configuration associated with this image pipeline.getName()
The name of the image pipeline.The schedule of the image pipeline.The status of the image pipeline.getTags()
Tag Manager which manages the tags for this resource.The tags of this image pipeline.Contains the workflows that run for the image pipeline.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setContainerRecipeArn
(String value) The Amazon Resource Name (ARN) of the container recipe that is used for this pipeline.void
setDescription
(String value) The description of this image pipeline.void
The Amazon Resource Name (ARN) of the distribution configuration associated with this image pipeline.void
Collects additional information about the image being created, including the operating system (OS) version and package list.void
Collects additional information about the image being created, including the operating system (OS) version and package list.void
setExecutionRole
(String value) The name or Amazon Resource Name (ARN) for the IAM role you create that grants Image Builder access to perform workflow actions.void
setImageRecipeArn
(String value) The Amazon Resource Name (ARN) of the image recipe associated with this image pipeline.void
Contains settings for vulnerability scans.void
Contains settings for vulnerability scans.void
The configuration of the image tests that run after image creation to ensure the quality of the image that was created.void
The configuration of the image tests that run after image creation to ensure the quality of the image that was created.void
The Amazon Resource Name (ARN) of the infrastructure configuration associated with this image pipeline.void
The name of the image pipeline.void
setSchedule
(IResolvable value) The schedule of the image pipeline.void
The schedule of the image pipeline.void
The status of the image pipeline.void
setTagsRaw
(Map<String, String> value) The tags of this image pipeline.void
setWorkflows
(List<Object> value) Contains the workflows that run for the image pipeline.void
setWorkflows
(IResolvable value) Contains the workflows that run for the image pipeline.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnImagePipeline
protected CfnImagePipeline(software.amazon.jsii.JsiiObjectRef objRef) -
CfnImagePipeline
protected CfnImagePipeline(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnImagePipeline
@Stability(Stable) public CfnImagePipeline(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnImagePipelineProps props) - 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.props
- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrArn
Returns the Amazon Resource Name (ARN) of the image pipeline.For example,
arn:aws:imagebuilder:us-west-2:123456789012:image-pipeline/mywindows2016pipeline
. -
getAttrName
Returns the name of the image pipeline. -
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getTags
Tag Manager which manages the tags for this resource. -
getInfrastructureConfigurationArn
The Amazon Resource Name (ARN) of the infrastructure configuration associated with this image pipeline. -
setInfrastructureConfigurationArn
The Amazon Resource Name (ARN) of the infrastructure configuration associated with this image pipeline. -
getName
The name of the image pipeline. -
setName
The name of the image pipeline. -
getContainerRecipeArn
The Amazon Resource Name (ARN) of the container recipe that is used for this pipeline. -
setContainerRecipeArn
The Amazon Resource Name (ARN) of the container recipe that is used for this pipeline. -
getDescription
The description of this image pipeline. -
setDescription
The description of this image pipeline. -
getDistributionConfigurationArn
The Amazon Resource Name (ARN) of the distribution configuration associated with this image pipeline. -
setDistributionConfigurationArn
The Amazon Resource Name (ARN) of the distribution configuration associated with this image pipeline. -
getEnhancedImageMetadataEnabled
Collects additional information about the image being created, including the operating system (OS) version and package list. -
setEnhancedImageMetadataEnabled
Collects additional information about the image being created, including the operating system (OS) version and package list. -
setEnhancedImageMetadataEnabled
Collects additional information about the image being created, including the operating system (OS) version and package list. -
getExecutionRole
The name or Amazon Resource Name (ARN) for the IAM role you create that grants Image Builder access to perform workflow actions. -
setExecutionRole
The name or Amazon Resource Name (ARN) for the IAM role you create that grants Image Builder access to perform workflow actions. -
getImageRecipeArn
The Amazon Resource Name (ARN) of the image recipe associated with this image pipeline. -
setImageRecipeArn
The Amazon Resource Name (ARN) of the image recipe associated with this image pipeline. -
getImageScanningConfiguration
Contains settings for vulnerability scans. -
setImageScanningConfiguration
Contains settings for vulnerability scans. -
setImageScanningConfiguration
@Stability(Stable) public void setImageScanningConfiguration(@Nullable CfnImagePipeline.ImageScanningConfigurationProperty value) Contains settings for vulnerability scans. -
getImageTestsConfiguration
The configuration of the image tests that run after image creation to ensure the quality of the image that was created. -
setImageTestsConfiguration
The configuration of the image tests that run after image creation to ensure the quality of the image that was created. -
setImageTestsConfiguration
@Stability(Stable) public void setImageTestsConfiguration(@Nullable CfnImagePipeline.ImageTestsConfigurationProperty value) The configuration of the image tests that run after image creation to ensure the quality of the image that was created. -
getSchedule
The schedule of the image pipeline. -
setSchedule
The schedule of the image pipeline. -
setSchedule
The schedule of the image pipeline. -
getStatus
The status of the image pipeline. -
setStatus
The status of the image pipeline. -
getTagsRaw
The tags of this image pipeline. -
setTagsRaw
The tags of this image pipeline. -
getWorkflows
Contains the workflows that run for the image pipeline. -
setWorkflows
Contains the workflows that run for the image pipeline. -
setWorkflows
Contains the workflows that run for the image pipeline.
-