Table of Contents

Interface IRemovalPolicyOptions

Namespace
Amazon.CDK
Assembly
Amazon.CDK.dll
public interface IRemovalPolicyOptions

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
            };

Remarks

ExampleMetadata: fixture=_generated

Properties

ApplyToUpdateReplacePolicy

Apply the same deletion policy to the resource's "UpdateReplacePolicy".

bool? ApplyToUpdateReplacePolicy { get; }

Property Value

bool?

Remarks

Default: true

Default

The default policy to apply in case the removal policy is not defined.

RemovalPolicy? Default { get; }

Property Value

RemovalPolicy?

Remarks

Default: - Default value is resource specific. To determine the default value for a resoure, please consult that specific resource's documentation.