Class: AWSCDK::S3Tables::CfnTableBucket::UnreferencedFileRemovalProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
s3_tables/cfn_table_bucket.rb

Overview

The unreferenced file removal settings for your table bucket.

Unreferenced file removal identifies and deletes all objects that are not referenced by any table snapshots. For more information, see the Amazon S3 User Guide .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(noncurrent_days: nil, status: nil, unreferenced_days: nil) ⇒ UnreferencedFileRemovalProperty

Returns a new instance of UnreferencedFileRemovalProperty.

Parameters:

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

    The number of days an object can be noncurrent before Amazon S3 deletes it.

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

    The status of the unreferenced file removal configuration for your table bucket.

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

    The number of days an object must be unreferenced by your table before Amazon S3 marks the object as noncurrent.



840
841
842
843
844
845
846
847
# File 's3_tables/cfn_table_bucket.rb', line 840

def initialize(noncurrent_days: nil, status: nil, unreferenced_days: nil)
  @noncurrent_days = noncurrent_days
  Jsii::Type.check_type(@noncurrent_days, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "noncurrentDays") unless @noncurrent_days.nil?
  @status = status
  Jsii::Type.check_type(@status, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "status") unless @status.nil?
  @unreferenced_days = unreferenced_days
  Jsii::Type.check_type(@unreferenced_days, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "unreferencedDays") unless @unreferenced_days.nil?
end

Instance Attribute Details

#noncurrent_daysNumeric? (readonly)

The number of days an object can be noncurrent before Amazon S3 deletes it.



853
854
855
# File 's3_tables/cfn_table_bucket.rb', line 853

def noncurrent_days
  @noncurrent_days
end

#statusString? (readonly)

The status of the unreferenced file removal configuration for your table bucket.



858
859
860
# File 's3_tables/cfn_table_bucket.rb', line 858

def status
  @status
end

#unreferenced_daysNumeric? (readonly)

The number of days an object must be unreferenced by your table before Amazon S3 marks the object as noncurrent.



863
864
865
# File 's3_tables/cfn_table_bucket.rb', line 863

def unreferenced_days
  @unreferenced_days
end

Class Method Details

.jsii_propertiesObject



865
866
867
868
869
870
871
# File 's3_tables/cfn_table_bucket.rb', line 865

def self.jsii_properties
  {
    :noncurrent_days => "noncurrentDays",
    :status => "status",
    :unreferenced_days => "unreferencedDays",
  }
end

Instance Method Details

#to_jsiiObject



873
874
875
876
877
878
879
880
881
# File 's3_tables/cfn_table_bucket.rb', line 873

def to_jsii
  result = {}
  result.merge!({
    "noncurrentDays" => @noncurrent_days,
    "status" => @status,
    "unreferencedDays" => @unreferenced_days,
  })
  result.compact
end