@Generated(value="jsii-pacmak/0.14.3 (build 1b1062d)", date="2019-08-14T08:10:20.266Z") @Stability(value=Stable) public enum CfnDeletionPolicy extends Enum<CfnDeletionPolicy>
| Enum Constant and Description |
|---|
DELETE
AWS CloudFormation deletes the resource and all its content if applicable during stack deletion.
|
RETAIN
AWS CloudFormation keeps the resource without deleting the resource or its contents when its stack is deleted.
|
SNAPSHOT
For resources that support snapshots (AWS::EC2::Volume, AWS::ElastiCache::CacheCluster, AWS::ElastiCache::ReplicationGroup, AWS::RDS::DBInstance, AWS::RDS::DBCluster, and AWS::Redshift::Cluster), AWS CloudFormation creates a snapshot for the resource before deleting it.
|
| Modifier and Type | Method and Description |
|---|---|
static CfnDeletionPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CfnDeletionPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Stability(value=Stable) public static final CfnDeletionPolicy DELETE
@Stability(value=Stable) public static final CfnDeletionPolicy RETAIN
@Stability(value=Stable) public static final CfnDeletionPolicy SNAPSHOT
public static CfnDeletionPolicy[] values()
for (CfnDeletionPolicy c : CfnDeletionPolicy.values()) System.out.println(c);
public static CfnDeletionPolicy 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 © 2019. All rights reserved.