Class RemovalPolicyOptions
Inheritance
System.Object
RemovalPolicyOptions
Implements
Namespace: Amazon.CDK
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class RemovalPolicyOptions : Object, IRemovalPolicyOptions
Syntax (vb)
Public Class RemovalPolicyOptions
Inherits Object
Implements IRemovalPolicyOptions
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK;
var removalPolicyOptions = new RemovalPolicyOptions {
ApplyToUpdateReplacePolicy = false,
Default = RemovalPolicy.DESTROY
};
Synopsis
Constructors
RemovalPolicyOptions() |
Properties
ApplyToUpdateReplacePolicy | Apply the same deletion policy to the resource's "UpdateReplacePolicy". |
Default | The default policy to apply in case the removal policy is not defined. |
Constructors
RemovalPolicyOptions()
public RemovalPolicyOptions()
Properties
ApplyToUpdateReplacePolicy
Apply the same deletion policy to the resource's "UpdateReplacePolicy".
public Nullable<bool> ApplyToUpdateReplacePolicy { get; set; }
Property Value
System.Nullable<System.Boolean>
Remarks
Default: true
Default
The default policy to apply in case the removal policy is not defined.
public Nullable<RemovalPolicy> Default { get; set; }
Property Value
System.Nullable<RemovalPolicy>
Remarks
Default: - Default value is resource specific. To determine the default value for a resource, please consult that specific resource's documentation.