Class RepositoryAutoDeleteImages
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.Mixin
software.amazon.awscdk.services.ecr.mixins.RepositoryAutoDeleteImages
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable,software.constructs.IMixin
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-03-11T13:19:43.154Z")
@Stability(Stable)
public class RepositoryAutoDeleteImages
extends Mixin
ECR-specific Mixin to force-delete all images from a repository when the repository is removed from the stack or when the stack is deleted.
Sets the emptyOnDelete property on the repository.
Example:
new CfnRepository(this, "Repo").with(new RepositoryAutoDeleteImages());
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IMixin
software.constructs.IMixin.Jsii$Default -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRepositoryAutoDeleteImages(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedRepositoryAutoDeleteImages(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Methods 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, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
RepositoryAutoDeleteImages
protected RepositoryAutoDeleteImages(software.amazon.jsii.JsiiObjectRef objRef) -
RepositoryAutoDeleteImages
protected RepositoryAutoDeleteImages(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
RepositoryAutoDeleteImages
@Stability(Stable) public RepositoryAutoDeleteImages()
-
-
Method Details
-
applyTo
@Stability(Stable) public void applyTo(@NotNull software.constructs.IConstruct construct) Applies the mixin functionality to the target construct. -
supports
@Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct) Determines whether this mixin can be applied to the given construct.
-