RemovalPolicyOptions

class aws_cdk.core.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 resoure, 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.core 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

Return type

Optional[bool]

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

please consult that specific resource’s documentation.

Return type

Optional[RemovalPolicy]