Package software.amazon.awscdk
Interface RemovalPolicyOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
RemovalPolicyOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-13T16:09:57.424Z")
@Stability(Stable)
public interface RemovalPolicyOptions
extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;
RemovalPolicyOptions removalPolicyOptions = RemovalPolicyOptions.builder()
.applyToUpdateReplacePolicy(false)
.default(RemovalPolicy.DESTROY)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forRemovalPolicyOptionsstatic final classAn implementation forRemovalPolicyOptions -
Method Summary
Modifier and TypeMethodDescriptionstatic RemovalPolicyOptions.Builderbuilder()default BooleanApply the same deletion policy to the resource's "UpdateReplacePolicy".default RemovalPolicyThe default policy to apply in case the removal policy is not defined.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getApplyToUpdateReplacePolicy
Apply the same deletion policy to the resource's "UpdateReplacePolicy".Default: true
-
getDefaultValue
The default policy to apply in case the removal policy is not defined.Default: - Default value is resource specific. To determine the default value for a resource, please consult that specific resource's documentation.
-
builder
- Returns:
- a
RemovalPolicyOptions.BuilderofRemovalPolicyOptions
-