interface RemovalPolicyOptions
Language | Type name |
---|---|
.NET | Amazon.CDK.RemovalPolicyOptions |
Java | software.amazon.awscdk.core.RemovalPolicyOptions |
Python | aws_cdk.core.RemovalPolicyOptions |
TypeScript (source) | @aws-cdk/core » 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/core';
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 resoure,
please consult that specific resource's documentation.)
The default policy to apply in case the removal policy is not defined.