Class: AWSCDK::Glue::CfnTableOptimizer::IcebergConfigurationProperty

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

Overview

IcebergConfiguration is a property type within the AWS::Glue::TableOptimizer resource in AWS CloudFormation.

This configuration is used when setting up table optimization for Iceberg tables in AWS Glue .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(location: nil, orphan_file_retention_period_in_days: nil) ⇒ IcebergConfigurationProperty

Returns a new instance of IcebergConfigurationProperty.

Parameters:

  • location (String, nil) (defaults to: nil)

    Specifies a directory in which to look for orphan files (defaults to the table's location).

  • orphan_file_retention_period_in_days (Numeric, nil) (defaults to: nil)

    The specific number of days you want to keep the orphan files.



556
557
558
559
560
561
# File 'glue/cfn_table_optimizer.rb', line 556

def initialize(location: nil, orphan_file_retention_period_in_days: nil)
  @location = location
  Jsii::Type.check_type(@location, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "location") unless @location.nil?
  @orphan_file_retention_period_in_days = orphan_file_retention_period_in_days
  Jsii::Type.check_type(@orphan_file_retention_period_in_days, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "orphanFileRetentionPeriodInDays") unless @orphan_file_retention_period_in_days.nil?
end

Instance Attribute Details

#locationString? (readonly)

Specifies a directory in which to look for orphan files (defaults to the table's location).

You may choose a sub-directory rather than the top-level table location.



569
570
571
# File 'glue/cfn_table_optimizer.rb', line 569

def location
  @location
end

#orphan_file_retention_period_in_daysNumeric? (readonly)

The specific number of days you want to keep the orphan files.



574
575
576
# File 'glue/cfn_table_optimizer.rb', line 574

def orphan_file_retention_period_in_days
  @orphan_file_retention_period_in_days
end

Class Method Details

.jsii_propertiesObject



576
577
578
579
580
581
# File 'glue/cfn_table_optimizer.rb', line 576

def self.jsii_properties
  {
    :location => "location",
    :orphan_file_retention_period_in_days => "orphanFileRetentionPeriodInDays",
  }
end

Instance Method Details

#to_jsiiObject



583
584
585
586
587
588
589
590
# File 'glue/cfn_table_optimizer.rb', line 583

def to_jsii
  result = {}
  result.merge!({
    "location" => @location,
    "orphanFileRetentionPeriodInDays" => @orphan_file_retention_period_in_days,
  })
  result.compact
end