Class: AWSCDK::Glue::CfnTableOptimizer::IcebergRetentionConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
glue/cfn_table_optimizer.rb

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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.

Parameters:

  • clean_expired_files (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)
  • number_of_snapshots_to_retain (Numeric, nil) (defaults to: nil)
  • snapshot_retention_period_in_days (Numeric, nil) (defaults to: nil)


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_filesBoolean, ... (readonly)



611
612
613
# File 'glue/cfn_table_optimizer.rb', line 611

def clean_expired_files
  @clean_expired_files
end

#number_of_snapshots_to_retainNumeric? (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_daysNumeric? (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_propertiesObject



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_jsiiObject



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