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();
 
  • Method Details

    • getApplyToUpdateReplacePolicy

      @Stability(Stable) @Nullable default Boolean getApplyToUpdateReplacePolicy()
      Apply the same deletion policy to the resource's "UpdateReplacePolicy".

      Default: true

    • getDefaultValue

      @Stability(Stable) @Nullable default RemovalPolicy 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

      @Stability(Stable) static RemovalPolicyOptions.Builder builder()
      Returns:
      a RemovalPolicyOptions.Builder of RemovalPolicyOptions