Skip to content
v2.278.0

TargetObjectKeyFormatProperty ​

Struct External

The key format of the log objects.

Only PartitionedPrefix is supported.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_s3tables as s3tables } from 'aws-cdk-lib';
const targetObjectKeyFormatProperty: s3tables.CfnTableBucket.TargetObjectKeyFormatProperty = {
  partitionedPrefix: {
    partitionDateSource: 'partitionDateSource',
  },
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_s3tables as s3tables

target_object_key_format_property = s3tables.CfnTableBucket.TargetObjectKeyFormatProperty(
    partitioned_prefix=s3tables.CfnTableBucket.PartitionedPrefixProperty(
        partition_date_source="partitionDateSource"
    )
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.s3tables.*;

TargetObjectKeyFormatProperty targetObjectKeyFormatProperty = TargetObjectKeyFormatProperty.builder()
        .partitionedPrefix(PartitionedPrefixProperty.builder()
                .partitionDateSource("partitionDateSource")
                .build())
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.S3Tables;

var targetObjectKeyFormatProperty = new TargetObjectKeyFormatProperty {
    PartitionedPrefix = new PartitionedPrefixProperty {
        PartitionDateSource = "partitionDateSource"
    }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

targetObjectKeyFormatProperty := &TargetObjectKeyFormatProperty{
	PartitionedPrefix: &PartitionedPrefixProperty{
		PartitionDateSource: jsii.String("partitionDateSource"),
	},
}

Properties ​

partitionedPrefixIResolvable | CfnTableBucket.PartitionedPrefixPropertypartitioned_prefixtyping.Union[IResolvable, PartitionedPrefixProperty]partitionedPrefixIResolvablePartitionedPrefixIResolvablePartitionedPrefixinterface{} required #
Amazon S3 keys for log objects are partitioned in the following format: [TargetPrefix][SourceAccountId]/[SourceRegion]/[SourceTableBucket]/[YYYY]/[MM]/[DD]/[YYYY]-[MM]-[DD]-[hh]-[mm]-[ss]-[UniqueString].