CloudWatchLoggingOptions

class aws_cdk.aws_codebuild.CloudWatchLoggingOptions(*, enabled=None, log_group=None, prefix=None)

Bases: object

Information about logs built to a CloudWatch Log Group for a build project.

Parameters:
  • enabled (Optional[bool]) – The current status of the logs in Amazon CloudWatch Logs for a build project. Default: true

  • log_group (Optional[ILogGroup]) – The Log Group to send logs to. Default: - no log group specified

  • prefix (Optional[str]) – The prefix of the stream name of the Amazon CloudWatch Logs. Default: - no prefix

ExampleMetadata:

infused

Example:

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

Attributes

enabled

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

Default:

true

log_group

The Log Group to send logs to.

Default:
  • no log group specified

prefix

The prefix of the stream name of the Amazon CloudWatch Logs.

Default:
  • no prefix