Version: 0.36.00.36.10.36.20.37.00.38.00.39.01.0.01.1.01.2.01.3.01.4.01.5.01.6.01.6.11.7.01.8.01.9.01.10.01.10.11.11.01.12.01.13.01.13.11.14.01.15.01.16.01.16.11.16.21.16.31.17.01.17.11.18.01.19.01.20.01.21.01.21.11.22.01.23.01.24.01.25.01.26.01.27.01.28.01.29.01.30.01.31.01.32.01.32.11.32.21.33.01.33.11.34.01.34.11.35.01.36.01.36.11.37.01.38.01.39.01.40.01.41.01.42.01.42.11.43.01.44.01.45.01.46.01.47.01.47.11.48.01.49.01.49.11.50.01.51.01.52.01.53.01.54.01.55.01.56.01.57.01.58.01.59.01.60.01.61.01.61.11.62.01.63.01.64.01.64.11.65.01.66.01.67.01.68.01.69.01.70.01.71.01.72.01.73.01.74.01.75.01.76.01.77.01.78.01.79.01.80.01.81.01.82.01.83.01.84.01.85.01.86.01.87.01.87.11.88.01.89.01.90.01.90.11.91.01.92.01.93.01.94.01.94.11.95.01.95.11.95.21.96.01.97.01.98.01.99.01.100.01.101.01.102.01.103.01.104.01.105.01.106.01.106.11.107.01.108.01.108.11.109.01.110.01.110.11.111.01.112.01.113.01.114.01.115.01.116.01.117.01.118.01.119.01.120.01.121.01.122.01.123.01.124.01.125.01.126.01.127.01.128.01.129.01.130.01.131.01.132.01.133.01.134.01.135.01.136.01.137.01.138.01.138.11.138.21.139.01.140.01.141.01.142.01.143.01.144.01.145.01.146.01.147.01.148.01.149.01.150.01.151.01.152.01.153.01.153.11.154.01.155.01.156.01.156.11.157.01.158.01.159.01.160.01.161.01.162.01.163.01.163.11.163.21.164.01.165.01.166.11.167.01.168.01.169.01.170.01.170.11.171.01.172.01.173.01.174.01.175.01.176.01.177.01.178.01.179.01.180.01.181.01.181.11.182.01.183.01.184.01.184.11.185.01.186.01.186.11.187.01.188.01.189.01.190.01.191.01.192.01.193.01.194.01.195.01.196.01.197.01.198.01.198.11.199.01.200.01.201.01.202.01.203.01.204.0
/**
* Possible values for a resource's Removal Policy
*
* The removal policy controls what happens to the resource if it stops being
* managed by CloudFormation. This can happen in one of three situations:
* - The resource is removed from the template, so CloudFormation stops managing it;
* - A change to the resource is made that requires it to be replaced, so CloudFormation stops
* managing it;
* - The stack is deleted, so CloudFormation stops managing all resources in it.
* The Removal Policy applies to all above cases.
* Many stateful resources in the AWS Construct Library will accept a
* `removalPolicy` as a property, typically defaulting it to `RETAIN`.
* If the AWS Construct Library resource does not accept a `removalPolicy`
* argument, you can always configure it by using the escape hatch mechanism,
* as shown in the following example:
* ```ts
* declare const bucket: s3.Bucket;
* const cfnBucket = bucket.node.findChild('Resource') as CfnResource;
* cfnBucket.applyRemovalPolicy(RemovalPolicy.DESTROY);
* ```
*/
export declare enum RemovalPolicy {
* This is the default removal policy. It means that when the resource is
* removed from the app, it will be physically destroyed.
DESTROY = "destroy",
* This uses the 'Retain' DeletionPolicy, which will cause the resource to be retained
* in the account, but orphaned from the stack.
RETAIN = "retain",
* This retention policy deletes the resource,
* but saves a snapshot of its data before deleting,
* so that it can be re-created later.
* Only available for some stateful resources,
* like databases, EFS volumes, etc.
* @see https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html#aws-attribute-deletionpolicy-options
SNAPSHOT = "snapshot"
}
export interface RemovalPolicyOptions {
* The default policy to apply in case the removal policy is not defined.
* @default - Default value is resource specific. To determine the default value for a resoure,
* please consult that specific resource's documentation.
readonly default?: RemovalPolicy;
* Apply the same deletion policy to the resource's "UpdateReplacePolicy"
* @default true
readonly applyToUpdateReplacePolicy?: boolean;