Class: AWSCDK::SecurityLake::CfnDataLake::TransitionsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
security_lake/cfn_data_lake.rb

Overview

Provides transition lifecycle details of the Amazon Security Lake object.

For more information about Amazon S3 Lifecycle configurations, see Managing your storage lifecycle in the Amazon Simple Storage Service User Guide .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(days: nil, storage_class: nil) ⇒ TransitionsProperty

Returns a new instance of TransitionsProperty.

Parameters:

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

    The number of days before data transitions to a different S3 Storage Class in the Amazon Security Lake object.

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

    The list of storage classes that you can choose from based on the data access, resiliency, and cost requirements of your workloads.



759
760
761
762
763
764
# File 'security_lake/cfn_data_lake.rb', line 759

def initialize(days: nil, storage_class: nil)
  @days = days
  Jsii::Type.check_type(@days, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "days") unless @days.nil?
  @storage_class = storage_class
  Jsii::Type.check_type(@storage_class, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "storageClass") unless @storage_class.nil?
end

Instance Attribute Details

#daysNumeric? (readonly)

The number of days before data transitions to a different S3 Storage Class in the Amazon Security Lake object.



770
771
772
# File 'security_lake/cfn_data_lake.rb', line 770

def days
  @days
end

#storage_classString? (readonly)

The list of storage classes that you can choose from based on the data access, resiliency, and cost requirements of your workloads.

The default storage class is S3 Standard . For information about other storage classes, see Setting the storage class of an object in the Amazon S3 User Guide .



777
778
779
# File 'security_lake/cfn_data_lake.rb', line 777

def storage_class
  @storage_class
end

Class Method Details

.jsii_propertiesObject



779
780
781
782
783
784
# File 'security_lake/cfn_data_lake.rb', line 779

def self.jsii_properties
  {
    :days => "days",
    :storage_class => "storageClass",
  }
end

Instance Method Details

#to_jsiiObject



786
787
788
789
790
791
792
793
# File 'security_lake/cfn_data_lake.rb', line 786

def to_jsii
  result = {}
  result.merge!({
    "days" => @days,
    "storageClass" => @storage_class,
  })
  result.compact
end