Class: AWSCDK::S3::CfnBucket::PartitionedPrefixProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
s3/cfn_bucket.rb

Overview

Amazon S3 keys for log objects are partitioned in the following format:.

[DestinationPrefix][SourceAccountId]/[SourceRegion]/[SourceBucket]/[YYYY]/[MM]/[DD]/[YYYY]-[MM]-[DD]-[hh]-[mm]-[ss]-[UniqueString]

PartitionedPrefix defaults to EventTime delivery when server access logs are delivered.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(partition_date_source: nil) ⇒ PartitionedPrefixProperty

Returns a new instance of PartitionedPrefixProperty.

Parameters:

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

    Specifies the partition date source for the partitioned prefix. PartitionDateSource can be EventTime or DeliveryTime .



2943
2944
2945
2946
# File 's3/cfn_bucket.rb', line 2943

def initialize(partition_date_source: nil)
  @partition_date_source = partition_date_source
  Jsii::Type.check_type(@partition_date_source, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "partitionDateSource") unless @partition_date_source.nil?
end

Instance Attribute Details

#partition_date_sourceString? (readonly)

Specifies the partition date source for the partitioned prefix. PartitionDateSource can be EventTime or DeliveryTime .

For DeliveryTime , the time in the log file names corresponds to the delivery time for the log files.

For EventTime , The logs delivered are for a specific day only. The year, month, and day correspond to the day on which the event occurred, and the hour, minutes and seconds are set to 00 in the key.



2956
2957
2958
# File 's3/cfn_bucket.rb', line 2956

def partition_date_source
  @partition_date_source
end

Class Method Details

.jsii_propertiesObject



2958
2959
2960
2961
2962
# File 's3/cfn_bucket.rb', line 2958

def self.jsii_properties
  {
    :partition_date_source => "partitionDateSource",
  }
end

Instance Method Details

#to_jsiiObject



2964
2965
2966
2967
2968
2969
2970
# File 's3/cfn_bucket.rb', line 2964

def to_jsii
  result = {}
  result.merge!({
    "partitionDateSource" => @partition_date_source,
  })
  result.compact
end