Class: AWSCDK::S3::CfnBucket::PartitionedPrefixProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::S3::CfnBucket::PartitionedPrefixProperty
- 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
-
#partition_date_source ⇒ String?
readonly
Specifies the partition date source for the partitioned prefix.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(partition_date_source: nil) ⇒ PartitionedPrefixProperty
constructor
A new instance of PartitionedPrefixProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(partition_date_source: nil) ⇒ PartitionedPrefixProperty
Returns a new instance of PartitionedPrefixProperty.
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_source ⇒ String? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |