LoggingOptions

class aws_cdk.aws_codebuild.LoggingOptions(*, cloud_watch=None, s3=None)

Bases: object

Information about logs for the build project.

A project can create logs in Amazon CloudWatch Logs, an S3 bucket, or both.

Parameters
  • cloud_watch (Optional[CloudWatchLoggingOptions]) – Information about Amazon CloudWatch Logs for a build project. Default: - enabled

  • s3 (Optional[S3LoggingOptions]) – Information about logs built to an S3 bucket for a build project. Default: - disabled

Example:

codebuild.Project(self, "Project",
    logging=codebuild.LoggingOptions(
        cloud_watch=codebuild.CloudWatchLoggingOptions(
            log_group=logs.LogGroup(self, "MyLogGroup")
        )
    )
)

Attributes

cloud_watch

Information about Amazon CloudWatch Logs for a build project.

Default
  • enabled

Return type

Optional[CloudWatchLoggingOptions]

s3

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

Default
  • disabled

Return type

Optional[S3LoggingOptions]