Class: AWSCDK::S3::TargetObjectKeyFormat
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::S3::TargetObjectKeyFormat
- Defined in:
- s3/target_object_key_format.rb
Overview
The key format for the log object.
Class Method Summary collapse
- .jsii_overridable_methods ⇒ Object
-
.partitioned_prefix(date_source = nil) ⇒ AWSCDK::S3::TargetObjectKeyFormat
Use partitioned prefix for log objects.
-
.simple_prefix ⇒ AWSCDK::S3::TargetObjectKeyFormat
Use the simple prefix for log objects.
Instance Method Summary collapse
-
#initialize ⇒ TargetObjectKeyFormat
constructor
A new instance of TargetObjectKeyFormat.
Constructor Details
#initialize ⇒ TargetObjectKeyFormat
Returns a new instance of TargetObjectKeyFormat.
8 9 10 |
# File 's3/target_object_key_format.rb', line 8 def initialize Jsii::Object.instance_method(:initialize).bind(self).call end |
Class Method Details
.jsii_overridable_methods ⇒ Object
12 13 14 15 |
# File 's3/target_object_key_format.rb', line 12 def self.jsii_overridable_methods { } end |
.partitioned_prefix(date_source = nil) ⇒ AWSCDK::S3::TargetObjectKeyFormat
Use partitioned prefix for log objects. If you do not specify the dateSource argument, the default is EventTime.
The partitioned prefix format as follow: [DestinationPrefix][SourceAccountId]/[SourceRegion]/[SourceBucket]/[YYYY]/[MM]/[DD]/[YYYY]-[MM]-[DD]-[hh]-[mm]-[ss]-[UniqueString]
24 25 26 27 |
# File 's3/target_object_key_format.rb', line 24 def self.partitioned_prefix(date_source = nil) Jsii::Type.check_type(date_source, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfczMuUGFydGl0aW9uRGF0ZVNvdXJjZSJ9")), "dateSource") unless date_source.nil? Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_s3.TargetObjectKeyFormat", "partitionedPrefix", [date_source]) end |
.simple_prefix ⇒ AWSCDK::S3::TargetObjectKeyFormat
Use the simple prefix for log objects.
The simple prefix format as follow: [DestinationPrefix][YYYY]-[MM]-[DD]-[hh]-[mm]-[ss]-[UniqueString]
35 36 37 |
# File 's3/target_object_key_format.rb', line 35 def self.simple_prefix() Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_s3.TargetObjectKeyFormat", "simplePrefix", []) end |