Class: AWSCDK::RemovalPolicyOptions
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::RemovalPolicyOptions
- Defined in:
- removal_policy_options.rb
Instance Attribute Summary collapse
-
#apply_to_update_replace_policy ⇒ Boolean?
readonly
Apply the same deletion policy to the resource's "UpdateReplacePolicy".
-
#default ⇒ AWSCDK::RemovalPolicy?
readonly
The default policy to apply in case the removal policy is not defined.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(apply_to_update_replace_policy: nil, default: nil) ⇒ RemovalPolicyOptions
constructor
A new instance of RemovalPolicyOptions.
- #to_jsii ⇒ Object
Constructor Details
#initialize(apply_to_update_replace_policy: nil, default: nil) ⇒ RemovalPolicyOptions
Returns a new instance of RemovalPolicyOptions.
8 9 10 11 12 13 |
# File 'removal_policy_options.rb', line 8 def initialize(apply_to_update_replace_policy: nil, default: nil) @apply_to_update_replace_policy = apply_to_update_replace_policy Jsii::Type.check_type(@apply_to_update_replace_policy, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "applyToUpdateReplacePolicy") unless @apply_to_update_replace_policy.nil? @default = default Jsii::Type.check_type(@default, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5SZW1vdmFsUG9saWN5In0=")), "default") unless @default.nil? end |
Instance Attribute Details
#apply_to_update_replace_policy ⇒ Boolean? (readonly)
Note:
Default: true
Apply the same deletion policy to the resource's "UpdateReplacePolicy".
19 20 21 |
# File 'removal_policy_options.rb', line 19 def apply_to_update_replace_policy @apply_to_update_replace_policy end |
#default ⇒ AWSCDK::RemovalPolicy? (readonly)
Note:
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.
24 25 26 |
# File 'removal_policy_options.rb', line 24 def default @default end |
Class Method Details
.jsii_properties ⇒ Object
26 27 28 29 30 31 |
# File 'removal_policy_options.rb', line 26 def self.jsii_properties { :apply_to_update_replace_policy => "applyToUpdateReplacePolicy", :default => "default", } end |
Instance Method Details
#to_jsii ⇒ Object
33 34 35 36 37 38 39 40 |
# File 'removal_policy_options.rb', line 33 def to_jsii result = {} result.merge!({ "applyToUpdateReplacePolicy" => @apply_to_update_replace_policy, "default" => @default, }) result.compact end |