Class ImagePipeline
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.imagebuilder.alpha.ImagePipeline
- All Implemented Interfaces:
IEnvironmentAware,IResource,IImagePipeline,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-05T22:26:50.058Z")
@Stability(Experimental)
public class ImagePipeline
extends Resource
implements IImagePipeline
(experimental) Represents an EC2 Image Builder Image Pipeline.
Example:
ImagePipeline workflowPipeline = ImagePipeline.Builder.create(this, "WorkflowPipeline")
.recipe(exampleImageRecipe)
.workflows(List.of(WorkflowConfiguration.builder().workflow(AwsManagedWorkflow.buildImage(this, "BuildWorkflow")).build(), WorkflowConfiguration.builder().workflow(AwsManagedWorkflow.testImage(this, "TestWorkflow")).build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class(experimental) A fluent builder forImagePipeline.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.imagebuilder.alpha.IImagePipeline
IImagePipeline.Jsii$Default, IImagePipeline.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String(experimental) Uniquely identifies this class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedImagePipeline(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedImagePipeline(software.amazon.jsii.JsiiObjectRef objRef) ImagePipeline(software.constructs.Construct scope, String id, ImagePipelineProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic IImagePipelinefromImagePipelineArn(software.constructs.Construct scope, String id, String imagePipelineArn) (experimental) Import an existing image pipeline given its ARN.static IImagePipelinefromImagePipelineName(software.constructs.Construct scope, String id, String imagePipelineName) (experimental) Import an existing image pipeline given its name.(experimental) The execution role used for the image build.(experimental) The ARN of the image pipeline.(experimental) The name of the image pipeline.(experimental) The infrastructure configuration used for the image build.grant(IGrantable grantee, String... actions) (experimental) Grant custom actions to the given grantee for the image pipeline.(experimental) Grants the default permissions for building an image to the provided execution role.grantRead(IGrantable grantee) (experimental) Grant read permissions to the given grantee for the image pipeline.grantStartExecution(IGrantable grantee) (experimental) Grant permissions to the given grantee to start an execution of the image pipeline.static Boolean(experimental) Return whether the given object is an ImagePipeline.onCVEDetected(String id) (experimental) Creates an EventBridge rule for Image Builder CVE detected events.onCVEDetected(String id, OnEventOptions options) (experimental) Creates an EventBridge rule for Image Builder CVE detected events.(experimental) Creates an EventBridge rule for Image Builder events.onEvent(String id, OnEventOptions options) (experimental) Creates an EventBridge rule for Image Builder events.(experimental) Creates an EventBridge rule for Image Builder image build completion events.onImageBuildCompleted(String id, OnEventOptions options) (experimental) Creates an EventBridge rule for Image Builder image build completion events.(experimental) Creates an EventBridge rule for Image Builder image build failure events.onImageBuildFailed(String id, OnEventOptions options) (experimental) Creates an EventBridge rule for Image Builder image build failure events.(experimental) Creates an EventBridge rule for Image Builder image state change events.onImageBuildStateChange(String id, OnEventOptions options) (experimental) Creates an EventBridge rule for Image Builder image state change events.(experimental) Creates an EventBridge rule for Image Builder image success events.onImageBuildSucceeded(String id, OnEventOptions options) (experimental) Creates an EventBridge rule for Image Builder image success events.(experimental) Creates an EventBridge rule for Image Builder image pipeline automatically disabled events.onImagePipelineAutoDisabled(String id, OnEventOptions options) (experimental) Creates an EventBridge rule for Image Builder image pipeline automatically disabled events.(experimental) Creates an EventBridge rule for Image Builder wait for action events.onWaitForAction(String id, OnEventOptions options) (experimental) Creates an EventBridge rule for Image Builder wait for action events.Methods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourceMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
PROPERTY_INJECTION_ID
(experimental) Uniquely identifies this class.
-
-
Constructor Details
-
ImagePipeline
protected ImagePipeline(software.amazon.jsii.JsiiObjectRef objRef) -
ImagePipeline
protected ImagePipeline(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
ImagePipeline
@Stability(Experimental) public ImagePipeline(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull ImagePipelineProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props- This parameter is required.
-
-
Method Details
-
fromImagePipelineArn
@Stability(Experimental) @NotNull public static IImagePipeline fromImagePipelineArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String imagePipelineArn) (experimental) Import an existing image pipeline given its ARN.- Parameters:
scope- This parameter is required.id- This parameter is required.imagePipelineArn- This parameter is required.
-
fromImagePipelineName
@Stability(Experimental) @NotNull public static IImagePipeline fromImagePipelineName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String imagePipelineName) (experimental) Import an existing image pipeline given its name.The provided name must be normalized by converting all alphabetical characters to lowercase, and replacing all spaces and underscores with hyphens.
- Parameters:
scope- This parameter is required.id- This parameter is required.imagePipelineName- This parameter is required.
-
isImagePipeline
(experimental) Return whether the given object is an ImagePipeline.- Parameters:
x- This parameter is required.
-
grant
@Stability(Experimental) @NotNull public Grant grant(@NotNull IGrantable grantee, @NotNull String... actions) (experimental) Grant custom actions to the given grantee for the image pipeline.- Specified by:
grantin interfaceIImagePipeline- Parameters:
grantee- The principal. This parameter is required.actions- The list of actions. This parameter is required.
-
grantDefaultExecutionRolePermissions
@Stability(Experimental) @NotNull public List<Grant> grantDefaultExecutionRolePermissions(@NotNull IGrantable grantee) (experimental) Grants the default permissions for building an image to the provided execution role.- Specified by:
grantDefaultExecutionRolePermissionsin interfaceIImagePipeline- Parameters:
grantee- The execution role used for the image build. This parameter is required.
-
grantRead
(experimental) Grant read permissions to the given grantee for the image pipeline.- Specified by:
grantReadin interfaceIImagePipeline- Parameters:
grantee- The principal. This parameter is required.
-
grantStartExecution
(experimental) Grant permissions to the given grantee to start an execution of the image pipeline.- Specified by:
grantStartExecutionin interfaceIImagePipeline- Parameters:
grantee- The principal. This parameter is required.
-
onCVEDetected
@Stability(Experimental) @NotNull public Rule onCVEDetected(@NotNull String id, @Nullable OnEventOptions options) (experimental) Creates an EventBridge rule for Image Builder CVE detected events.- Specified by:
onCVEDetectedin interfaceIImagePipeline- Parameters:
id- Unique identifier for the rule. This parameter is required.options- Configuration options for the event rule.- See Also:
-
onCVEDetected
(experimental) Creates an EventBridge rule for Image Builder CVE detected events.- Specified by:
onCVEDetectedin interfaceIImagePipeline- Parameters:
id- Unique identifier for the rule. This parameter is required.- See Also:
-
onEvent
@Stability(Experimental) @NotNull public Rule onEvent(@NotNull String id, @Nullable OnEventOptions options) (experimental) Creates an EventBridge rule for Image Builder events.- Specified by:
onEventin interfaceIImagePipeline- Parameters:
id- Unique identifier for the rule. This parameter is required.options- Configuration options for the event rule.- See Also:
-
onEvent
(experimental) Creates an EventBridge rule for Image Builder events.- Specified by:
onEventin interfaceIImagePipeline- Parameters:
id- Unique identifier for the rule. This parameter is required.- See Also:
-
onImageBuildCompleted
@Stability(Experimental) @NotNull public Rule onImageBuildCompleted(@NotNull String id, @Nullable OnEventOptions options) (experimental) Creates an EventBridge rule for Image Builder image build completion events.- Specified by:
onImageBuildCompletedin interfaceIImagePipeline- Parameters:
id- Unique identifier for the rule. This parameter is required.options- Configuration options for the event rule.- See Also:
-
onImageBuildCompleted
(experimental) Creates an EventBridge rule for Image Builder image build completion events.- Specified by:
onImageBuildCompletedin interfaceIImagePipeline- Parameters:
id- Unique identifier for the rule. This parameter is required.- See Also:
-
onImageBuildFailed
@Stability(Experimental) @NotNull public Rule onImageBuildFailed(@NotNull String id, @Nullable OnEventOptions options) (experimental) Creates an EventBridge rule for Image Builder image build failure events.- Specified by:
onImageBuildFailedin interfaceIImagePipeline- Parameters:
id- Unique identifier for the rule. This parameter is required.options- Configuration options for the event rule.- See Also:
-
onImageBuildFailed
(experimental) Creates an EventBridge rule for Image Builder image build failure events.- Specified by:
onImageBuildFailedin interfaceIImagePipeline- Parameters:
id- Unique identifier for the rule. This parameter is required.- See Also:
-
onImageBuildStateChange
@Stability(Experimental) @NotNull public Rule onImageBuildStateChange(@NotNull String id, @Nullable OnEventOptions options) (experimental) Creates an EventBridge rule for Image Builder image state change events.- Specified by:
onImageBuildStateChangein interfaceIImagePipeline- Parameters:
id- Unique identifier for the rule. This parameter is required.options- Configuration options for the event rule.- See Also:
-
onImageBuildStateChange
(experimental) Creates an EventBridge rule for Image Builder image state change events.- Specified by:
onImageBuildStateChangein interfaceIImagePipeline- Parameters:
id- Unique identifier for the rule. This parameter is required.- See Also:
-
onImageBuildSucceeded
@Stability(Experimental) @NotNull public Rule onImageBuildSucceeded(@NotNull String id, @Nullable OnEventOptions options) (experimental) Creates an EventBridge rule for Image Builder image success events.- Specified by:
onImageBuildSucceededin interfaceIImagePipeline- Parameters:
id- Unique identifier for the rule. This parameter is required.options- Configuration options for the event rule.- See Also:
-
onImageBuildSucceeded
(experimental) Creates an EventBridge rule for Image Builder image success events.- Specified by:
onImageBuildSucceededin interfaceIImagePipeline- Parameters:
id- Unique identifier for the rule. This parameter is required.- See Also:
-
onImagePipelineAutoDisabled
@Stability(Experimental) @NotNull public Rule onImagePipelineAutoDisabled(@NotNull String id, @Nullable OnEventOptions options) (experimental) Creates an EventBridge rule for Image Builder image pipeline automatically disabled events.- Specified by:
onImagePipelineAutoDisabledin interfaceIImagePipeline- Parameters:
id- Unique identifier for the rule. This parameter is required.options- Configuration options for the event rule.- See Also:
-
onImagePipelineAutoDisabled
(experimental) Creates an EventBridge rule for Image Builder image pipeline automatically disabled events.- Specified by:
onImagePipelineAutoDisabledin interfaceIImagePipeline- Parameters:
id- Unique identifier for the rule. This parameter is required.- See Also:
-
onWaitForAction
@Stability(Experimental) @NotNull public Rule onWaitForAction(@NotNull String id, @Nullable OnEventOptions options) (experimental) Creates an EventBridge rule for Image Builder wait for action events.- Specified by:
onWaitForActionin interfaceIImagePipeline- Parameters:
id- Unique identifier for the rule. This parameter is required.options- Configuration options for the event rule.- See Also:
-
onWaitForAction
(experimental) Creates an EventBridge rule for Image Builder wait for action events.- Specified by:
onWaitForActionin interfaceIImagePipeline- Parameters:
id- Unique identifier for the rule. This parameter is required.- See Also:
-
getImagePipelineArn
(experimental) The ARN of the image pipeline.- Specified by:
getImagePipelineArnin interfaceIImagePipeline
-
getImagePipelineName
(experimental) The name of the image pipeline.- Specified by:
getImagePipelineNamein interfaceIImagePipeline
-
getInfrastructureConfiguration
@Stability(Experimental) @NotNull public IInfrastructureConfiguration getInfrastructureConfiguration()(experimental) The infrastructure configuration used for the image build. -
getExecutionRole
(experimental) The execution role used for the image build.If there is no execution role, then the build will be executed with the AWSServiceRoleForImageBuilder service-linked role.
-