Class: AWSCDK::Glue::CfnTableOptimizer::IcebergRetentionConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Glue::CfnTableOptimizer::IcebergRetentionConfigurationProperty
- Defined in:
- glue/cfn_table_optimizer.rb
Overview
Instance Attribute Summary collapse
- #clean_expired_files ⇒ Boolean, ... readonly
- #number_of_snapshots_to_retain ⇒ Numeric? readonly
- #snapshot_retention_period_in_days ⇒ Numeric? readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(clean_expired_files: nil, number_of_snapshots_to_retain: nil, snapshot_retention_period_in_days: nil) ⇒ IcebergRetentionConfigurationProperty
constructor
A new instance of IcebergRetentionConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(clean_expired_files: nil, number_of_snapshots_to_retain: nil, snapshot_retention_period_in_days: nil) ⇒ IcebergRetentionConfigurationProperty
Returns a new instance of IcebergRetentionConfigurationProperty.
600 601 602 603 604 605 606 607 |
# File 'glue/cfn_table_optimizer.rb', line 600 def initialize(clean_expired_files: nil, number_of_snapshots_to_retain: nil, snapshot_retention_period_in_days: nil) @clean_expired_files = clean_expired_files Jsii::Type.check_type(@clean_expired_files, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "cleanExpiredFiles") unless @clean_expired_files.nil? @number_of_snapshots_to_retain = number_of_snapshots_to_retain Jsii::Type.check_type(@number_of_snapshots_to_retain, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "numberOfSnapshotsToRetain") unless @number_of_snapshots_to_retain.nil? @snapshot_retention_period_in_days = snapshot_retention_period_in_days Jsii::Type.check_type(@snapshot_retention_period_in_days, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "snapshotRetentionPeriodInDays") unless @snapshot_retention_period_in_days.nil? end |
Instance Attribute Details
#clean_expired_files ⇒ Boolean, ... (readonly)
611 612 613 |
# File 'glue/cfn_table_optimizer.rb', line 611 def clean_expired_files @clean_expired_files end |
#number_of_snapshots_to_retain ⇒ Numeric? (readonly)
614 615 616 |
# File 'glue/cfn_table_optimizer.rb', line 614 def number_of_snapshots_to_retain @number_of_snapshots_to_retain end |
#snapshot_retention_period_in_days ⇒ Numeric? (readonly)
617 618 619 |
# File 'glue/cfn_table_optimizer.rb', line 617 def snapshot_retention_period_in_days @snapshot_retention_period_in_days end |
Class Method Details
.jsii_properties ⇒ Object
619 620 621 622 623 624 625 |
# File 'glue/cfn_table_optimizer.rb', line 619 def self.jsii_properties { :clean_expired_files => "cleanExpiredFiles", :number_of_snapshots_to_retain => "numberOfSnapshotsToRetain", :snapshot_retention_period_in_days => "snapshotRetentionPeriodInDays", } end |
Instance Method Details
#to_jsii ⇒ Object
627 628 629 630 631 632 633 634 635 |
# File 'glue/cfn_table_optimizer.rb', line 627 def to_jsii result = {} result.merge!({ "cleanExpiredFiles" => @clean_expired_files, "numberOfSnapshotsToRetain" => @number_of_snapshots_to_retain, "snapshotRetentionPeriodInDays" => @snapshot_retention_period_in_days, }) result.compact end |