Class RemovalPolicy
Inheritance
System.Object
RemovalPolicy
Namespace: Amazon.CDK
Assembly: Amazon.CDK.dll
Syntax (csharp)
public sealed class RemovalPolicy : Enum
Syntax (vb)
Public NotInheritable Class RemovalPolicy
Inherits
Enum
Remarks
stability: Stable
Synopsis
Fields
DESTROY | This is the default removal policy. |
RETAIN | This uses the 'Retain' DeletionPolicy, which will cause the resource to be retained in the account, but orphaned from the stack. |
value__ |
Fields
DESTROY
This is the default removal policy.
public const RemovalPolicy DESTROY
Field Value
Type | Description |
---|---|
RemovalPolicy |
Remarks
It means that when the resource is removed from the app, it will be physically destroyed. stability: Stable
RETAIN
This uses the 'Retain' DeletionPolicy, which will cause the resource to be retained in the account, but orphaned from the stack.
public const RemovalPolicy RETAIN
Field Value
Type | Description |
---|---|
RemovalPolicy |
Remarks
stability: Stable
value__
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |