Package software.amazon.awscdk
Interface RemovalPolicyOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
RemovalPolicyOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-04T00:39:26.676Z")
@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
Modifier and TypeInterfaceDescriptionstatic final class
A builder forRemovalPolicyOptions
static final class
An implementation forRemovalPolicyOptions
-
Method Summary
Modifier and TypeMethodDescriptionstatic RemovalPolicyOptions.Builder
builder()
default Boolean
Apply the same deletion policy to the resource's "UpdateReplacePolicy".default RemovalPolicy
The 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.Builder
ofRemovalPolicyOptions
-