Class: AWSCDK::Batch::CfnJobDefinition::ResourceRetentionPolicyProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Batch::CfnJobDefinition::ResourceRetentionPolicyProperty
- Defined in:
- batch/cfn_job_definition.rb
Overview
Specifies the resource retention policy settings for a job definition.
Instance Attribute Summary collapse
-
#skip_deregister_on_update ⇒ Boolean, ...
readonly
Specifies whether the previous revision of the job definition is retained in an active status after UPDATE events for the resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(skip_deregister_on_update: nil) ⇒ ResourceRetentionPolicyProperty
constructor
A new instance of ResourceRetentionPolicyProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(skip_deregister_on_update: nil) ⇒ ResourceRetentionPolicyProperty
Returns a new instance of ResourceRetentionPolicyProperty.
3175 3176 3177 3178 |
# File 'batch/cfn_job_definition.rb', line 3175 def initialize(skip_deregister_on_update: nil) @skip_deregister_on_update = skip_deregister_on_update Jsii::Type.check_type(@skip_deregister_on_update, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "skipDeregisterOnUpdate") unless @skip_deregister_on_update.nil? end |
Instance Attribute Details
#skip_deregister_on_update ⇒ Boolean, ... (readonly)
Note:
Default: - false
Specifies whether the previous revision of the job definition is retained in an active status after UPDATE events for the resource.
The default value is false . When the property is set to false , the previous revision of the job definition is de-registered after a new revision is created. When the property is set to true , the previous revision of the job definition is not de-registered.
3187 3188 3189 |
# File 'batch/cfn_job_definition.rb', line 3187 def skip_deregister_on_update @skip_deregister_on_update end |
Class Method Details
.jsii_properties ⇒ Object
3189 3190 3191 3192 3193 |
# File 'batch/cfn_job_definition.rb', line 3189 def self.jsii_properties { :skip_deregister_on_update => "skipDeregisterOnUpdate", } end |
Instance Method Details
#to_jsii ⇒ Object
3195 3196 3197 3198 3199 3200 3201 |
# File 'batch/cfn_job_definition.rb', line 3195 def to_jsii result = {} result.merge!({ "skipDeregisterOnUpdate" => @skip_deregister_on_update, }) result.compact end |