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 (
Union
[CloudWatchLoggingOptions
,Dict
[str
,Any
],None
]) – Information about Amazon CloudWatch Logs for a build project. Default: - enableds3 (
Union
[S3LoggingOptions
,Dict
[str
,Any
],None
]) – Information about logs built to an S3 bucket for a build project. Default: - disabled
- ExampleMetadata:
infused
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
- s3
Information about logs built to an S3 bucket for a build project.
- Default:
disabled