# S3LoggingOptions

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

- Source: [`aws-codebuild/lib/project-logs.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-codebuild/lib/project-logs.ts#L7)

## Example

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

## Properties

- `bucket`: [IBucket](/cdk/api/v2/docs/aws-cdk-lib.aws_s3.IBucket.html) (required) — The S3 Bucket to send logs to.

- `enabled`: boolean = true — The current status of the logs in Amazon CloudWatch Logs for a build project.

- `encrypted`: boolean = true — Encrypt the S3 build log output.

- `prefix`: string — The path prefix for S3 logs.

  **Default:** no prefix
