aws-cdk-lib.aws_codebuild.S3LoggingOptions

interface S3LoggingOptions

LanguageType name
.NETAmazon.CDK.AWS.CodeBuild.S3LoggingOptions
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awscodebuild#S3LoggingOptions
Javasoftware.amazon.awscdk.services.codebuild.S3LoggingOptions
Pythonaws_cdk.aws_codebuild.S3LoggingOptions
TypeScript (source)aws-cdk-lib » aws_codebuild » S3LoggingOptions

Information about logs built to an S3 bucket for a build project.

Example

new codebuild.Project(this, 'Project', {
  logging: {
    s3: {
      bucket: new s3.Bucket(this, `LogBucket`)
    }
  },
})

Properties

NameTypeDescription
bucketIBucketThe S3 Bucket to send logs to.
enabled?booleanThe current status of the logs in Amazon CloudWatch Logs for a build project.
encrypted?booleanEncrypt the S3 build log output.
prefix?stringThe path prefix for S3 logs.

bucket

Type: IBucket

The S3 Bucket to send logs to.


enabled?

Type: boolean (optional, default: true)

The current status of the logs in Amazon CloudWatch Logs for a build project.


encrypted?

Type: boolean (optional, default: true)

Encrypt the S3 build log output.


prefix?

Type: string (optional, default: no prefix)

The path prefix for S3 logs.