Package software.amazon.awscdk
Class MissingRemovalPolicies
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.MissingRemovalPolicies
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-29T11:15:31.034Z")
@Stability(Stable)
public class MissingRemovalPolicies
extends software.amazon.jsii.JsiiObject
Manages removal policies for resources without existing policies within a construct scope.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.*; MissingRemovalPolicies missingRemovalPolicies = MissingRemovalPolicies.of(this);
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMissingRemovalPolicies(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedMissingRemovalPolicies(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(RemovalPolicy policy) Apply a removal policy only to resources without existing policies within this scope.voidapply(RemovalPolicy policy, RemovalPolicyProps props) Apply a removal policy only to resources without existing policies within this scope.voiddestroy()Apply DESTROY removal policy only to resources without existing policies within this scope.voiddestroy(RemovalPolicyProps props) Apply DESTROY removal policy only to resources without existing policies within this scope.static MissingRemovalPoliciesof(software.constructs.IConstruct scope) Returns the missing removal policies API for the given scope.voidretain()Apply RETAIN removal policy only to resources without existing policies within this scope.voidretain(RemovalPolicyProps props) Apply RETAIN removal policy only to resources without existing policies within this scope.voidApply RETAIN_ON_UPDATE_OR_DELETE removal policy only to resources without existing policies within this scope.voidApply RETAIN_ON_UPDATE_OR_DELETE removal policy only to resources without existing policies within this scope.voidsnapshot()Apply SNAPSHOT removal policy only to resources without existing policies within this scope.voidsnapshot(RemovalPolicyProps props) Apply SNAPSHOT removal policy only to resources without existing policies within this scope.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
-
MissingRemovalPolicies
protected MissingRemovalPolicies(software.amazon.jsii.JsiiObjectRef objRef) -
MissingRemovalPolicies
protected MissingRemovalPolicies(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
-
-
Method Details
-
of
@Stability(Stable) @NotNull public static MissingRemovalPolicies of(@NotNull software.constructs.IConstruct scope) Returns the missing removal policies API for the given scope.- Parameters:
scope- The scope. This parameter is required.
-
apply
@Stability(Stable) public void apply(@NotNull RemovalPolicy policy, @Nullable RemovalPolicyProps props) Apply a removal policy only to resources without existing policies within this scope.- Parameters:
policy- The removal policy to apply. This parameter is required.props- Configuration options.
-
apply
Apply a removal policy only to resources without existing policies within this scope.- Parameters:
policy- The removal policy to apply. This parameter is required.
-
destroy
Apply DESTROY removal policy only to resources without existing policies within this scope.- Parameters:
props- Configuration options.
-
destroy
@Stability(Stable) public void destroy()Apply DESTROY removal policy only to resources without existing policies within this scope. -
retain
Apply RETAIN removal policy only to resources without existing policies within this scope.- Parameters:
props- Configuration options.
-
retain
@Stability(Stable) public void retain()Apply RETAIN removal policy only to resources without existing policies within this scope. -
retainOnUpdateOrDelete
Apply RETAIN_ON_UPDATE_OR_DELETE removal policy only to resources without existing policies within this scope.- Parameters:
props- Configuration options.
-
retainOnUpdateOrDelete
@Stability(Stable) public void retainOnUpdateOrDelete()Apply RETAIN_ON_UPDATE_OR_DELETE removal policy only to resources without existing policies within this scope. -
snapshot
Apply SNAPSHOT removal policy only to resources without existing policies within this scope.- Parameters:
props- Configuration options.
-
snapshot
@Stability(Stable) public void snapshot()Apply SNAPSHOT removal policy only to resources without existing policies within this scope.
-