S3LoggingOptions
- class aws_cdk.aws_codebuild.S3LoggingOptions(*, bucket, enabled=None, encrypted=None, prefix=None)
Bases:
object
Information about logs built to an S3 bucket for a build project.
- Parameters:
bucket (
IBucket
) – The S3 Bucket to send logs to.enabled (
Optional
[bool
]) – The current status of the logs in Amazon CloudWatch Logs for a build project. Default: trueencrypted (
Optional
[bool
]) – Encrypt the S3 build log output. Default: trueprefix (
Optional
[str
]) – The path prefix for S3 logs. Default: - no prefix
- ExampleMetadata:
infused
Example:
codebuild.Project(self, "Project", logging=codebuild.LoggingOptions( s3=codebuild.S3LoggingOptions( bucket=s3.Bucket(self, "LogBucket") ) ) )
Attributes
- bucket
The S3 Bucket to send logs to.
- enabled
The current status of the logs in Amazon CloudWatch Logs for a build project.
- Default:
true
- encrypted
Encrypt the S3 build log output.
- Default:
true
- prefix
The path prefix for S3 logs.
- Default:
no prefix