BucketLoggingConfigurationArgs

data class BucketLoggingConfigurationArgs(val destinationBucketName: Output<String>? = null, val logFilePrefix: Output<String>? = null, val targetObjectKeyFormat: Output<BucketTargetObjectKeyFormatArgs>? = null) : ConvertibleToJava<BucketLoggingConfigurationArgs>

Describes where logs are stored and the prefix that Amazon S3 assigns to all log object keys for a bucket. For examples and more information, see PUT Bucket logging in the Amazon S3 API Reference. To successfully complete the `AWS::S3::Bucket LoggingConfiguration` request, you must have `s3:PutObject` and `s3:PutObjectAcl` in your IAM permissions.

Constructors

Link copied to clipboard
constructor(destinationBucketName: Output<String>? = null, logFilePrefix: Output<String>? = null, targetObjectKeyFormat: Output<BucketTargetObjectKeyFormatArgs>? = null)

Properties

Link copied to clipboard
val destinationBucketName: Output<String>? = null

The name of the bucket where Amazon S3 should store server access log files. You can store log files in any bucket that you own. By default, logs are stored in the bucket where the `LoggingConfiguration` property is defined.

Link copied to clipboard
val logFilePrefix: Output<String>? = null

A prefix for all log object keys. If you store log files from multiple Amazon S3 buckets in a single bucket, you can use a prefix to distinguish which log files came from which bucket.

Link copied to clipboard

Amazon S3 key format for log objects. Only one format, either PartitionedPrefix or SimplePrefix, is allowed.

Functions

Link copied to clipboard
open override fun toJava(): BucketLoggingConfigurationArgs