@Generated(value="jsii-pacmak/0.22.0 (build 14afdde)", date="2020-03-18T10:30:12.768Z") @Stability(value=Stable) public enum RemovalPolicy extends Enum<RemovalPolicy>
| Enum Constant and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
static RemovalPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RemovalPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Stability(value=Stable) public static final RemovalPolicy DESTROY
It means that when the resource is removed from the app, it will be physically destroyed.
@Stability(value=Stable) public static final RemovalPolicy RETAIN
public static RemovalPolicy[] values()
for (RemovalPolicy c : RemovalPolicy.values()) System.out.println(c);
public static RemovalPolicy valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2020. All rights reserved.