Interface RemovalPolicyOptions

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
RemovalPolicyOptions.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:29:55.099Z") @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.core.*;
 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 resoure, please consult that specific resource's documentation.

    • builder

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