Class PartitionDateSource
The date source for the partitioned prefix.
Inheritance
System.Object
PartitionDateSource
Namespace: Amazon.CDK.AWS.S3
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public sealed class PartitionDateSource : Enum
Syntax (vb)
Public NotInheritable Class PartitionDateSource
Inherits
Enum
Remarks
ExampleMetadata: infused
Examples
var accessLogsBucket = new Bucket(this, "AccessLogsBucket");
var bucket = new Bucket(this, "MyBucket", new BucketProps {
ServerAccessLogsBucket = accessLogsBucket,
ServerAccessLogsPrefix = "logs",
TargetObjectKeyFormat = TargetObjectKeyFormat.PartitionedPrefix(PartitionDateSource.EVENT_TIME)
});
Synopsis
Fields
DELIVERY_TIME | The year, month, and day will be based on the time when the log file was delivered to S3. |
EVENT_TIME | The year, month, and day will be based on the timestamp of the S3 event in the file that's been delivered. |
value__ |
Fields
DELIVERY_TIME
The year, month, and day will be based on the time when the log file was delivered to S3.
public const PartitionDateSource DELIVERY_TIME
Field Value
Type | Description |
---|---|
PartitionDateSource |
EVENT_TIME
The year, month, and day will be based on the timestamp of the S3 event in the file that's been delivered.
public const PartitionDateSource EVENT_TIME
Field Value
Type | Description |
---|---|
PartitionDateSource |
value__
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |