interface RemovalPolicyOptions
Language | Type name |
---|---|
.NET | Amazon.CDK.RemovalPolicyOptions |
Go | github.com/aws/aws-cdk-go/awscdk/v2#RemovalPolicyOptions |
Java | software.amazon.awscdk.RemovalPolicyOptions |
Python | aws_cdk.RemovalPolicyOptions |
TypeScript (source) | aws-cdk-lib » RemovalPolicyOptions |
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';
const removalPolicyOptions: cdk.RemovalPolicyOptions = {
applyToUpdateReplacePolicy: false,
default: cdk.RemovalPolicy.DESTROY,
};
Properties
Name | Type | Description |
---|---|---|
apply | boolean | Apply the same deletion policy to the resource's "UpdateReplacePolicy". |
default? | Removal | The default policy to apply in case the removal policy is not defined. |
applyToUpdateReplacePolicy?
Type:
boolean
(optional, default: true)
Apply the same deletion policy to the resource's "UpdateReplacePolicy".
default?
Type:
Removal
(optional, default: Default value is resource specific. To determine the default value for a resource,
please consult that specific resource's documentation.)
The default policy to apply in case the removal policy is not defined.