Skip to content
v2.278.0

LoggingConfigurationProperty ​

Struct External

Describes where logs are stored and the prefix that Amazon S3 assigns to all log object keys for a table bucket.

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 loggingConfigurationProperty: s3tables.CfnTableBucket.LoggingConfigurationProperty = {
  targetBucket: 'targetBucket',
  targetObjectKeyFormat: {
    partitionedPrefix: {
      partitionDateSource: 'partitionDateSource',
    },
  },
  targetPrefix: 'targetPrefix',
};
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

logging_configuration_property = s3tables.CfnTableBucket.LoggingConfigurationProperty(
    target_bucket="targetBucket",
    target_object_key_format=s3tables.CfnTableBucket.TargetObjectKeyFormatProperty(
        partitioned_prefix=s3tables.CfnTableBucket.PartitionedPrefixProperty(
            partition_date_source="partitionDateSource"
        )
    ),
    target_prefix="targetPrefix"
)
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.*;

LoggingConfigurationProperty loggingConfigurationProperty = LoggingConfigurationProperty.builder()
        .targetBucket("targetBucket")
        .targetObjectKeyFormat(TargetObjectKeyFormatProperty.builder()
                .partitionedPrefix(PartitionedPrefixProperty.builder()
                        .partitionDateSource("partitionDateSource")
                        .build())
                .build())
        .targetPrefix("targetPrefix")
        .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 loggingConfigurationProperty = new LoggingConfigurationProperty {
    TargetBucket = "targetBucket",
    TargetObjectKeyFormat = new TargetObjectKeyFormatProperty {
        PartitionedPrefix = new PartitionedPrefixProperty {
            PartitionDateSource = "partitionDateSource"
        }
    },
    TargetPrefix = "targetPrefix"
};
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"

loggingConfigurationProperty := &LoggingConfigurationProperty{
	TargetBucket: jsii.String("targetBucket"),
	TargetObjectKeyFormat: &TargetObjectKeyFormatProperty{
		PartitionedPrefix: &PartitionedPrefixProperty{
			PartitionDateSource: jsii.String("partitionDateSource"),
		},
	},
	TargetPrefix: jsii.String("targetPrefix"),
}

Properties ​

targetBucketstringtarget_bucketstrtargetBucketStringTargetBucketstringTargetBucket*string required #
The name of the general purpose bucket that logs are delivered to.
notes

The bucket must be in the same AWS Region and owned by the same AWS account as the table bucket. The bucket can't use SSE-KMS or DSSE-KMS default encryption, can't have S3 Object Lock enabled, and can't have Requester Pays enabled. You can deliver logs from multiple table buckets to the same target bucket. In this case, choose a different TargetPrefix for each table bucket so that you can tell their log objects apart.

targetObjectKeyFormatIResolvable | CfnTableBucket.TargetObjectKeyFormatPropertytarget_object_key_formattyping.Union[IResolvable, TargetObjectKeyFormatProperty]targetObjectKeyFormatIResolvableTargetObjectKeyFormatIResolvableTargetObjectKeyFormatinterface{} required #
The key format of the log objects.

Only PartitionedPrefix is supported.

targetPrefixstringtarget_prefixstrtargetPrefixStringTargetPrefixstringTargetPrefix*string required #
The prefix for the keys of the log objects that are delivered to the target bucket.