RemovalPolicyOptions

class aws_cdk.RemovalPolicyOptions(*, apply_to_update_replace_policy=None, default=None)

Bases: object

Parameters:
  • apply_to_update_replace_policy (Optional[bool]) – Apply the same deletion policy to the resource’s “UpdateReplacePolicy”. Default: true

  • default (Optional[RemovalPolicy]) – 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 resource, please consult that specific resource’s documentation.

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk as cdk

removal_policy_options = cdk.RemovalPolicyOptions(
    apply_to_update_replace_policy=False,
    default=cdk.RemovalPolicy.DESTROY
)

Attributes

apply_to_update_replace_policy

Apply the same deletion policy to the resource’s “UpdateReplacePolicy”.

Default:

true

default

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 resource,

please consult that specific resource’s documentation.