interface LoggingOptions
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.CodeBuild.LoggingOptions |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awscodebuild#LoggingOptions |
Java | software.amazon.awscdk.services.codebuild.LoggingOptions |
Python | aws_cdk.aws_codebuild.LoggingOptions |
TypeScript (source) | aws-cdk-lib » aws_codebuild » LoggingOptions |
Information about logs for the build project.
A project can create logs in Amazon CloudWatch Logs, an S3 bucket, or both.
Example
new codebuild.Project(this, 'Project', {
logging: {
cloudWatch: {
logGroup: new logs.LogGroup(this, `MyLogGroup`),
}
},
})
Properties
Name | Type | Description |
---|---|---|
cloud | Cloud | Information about Amazon CloudWatch Logs for a build project. |
s3? | S3 | Information about logs built to an S3 bucket for a build project. |
cloudWatch?
Type:
Cloud
(optional, default: enabled)
Information about Amazon CloudWatch Logs for a build project.
s3?
Type:
S3
(optional, default: disabled)
Information about logs built to an S3 bucket for a build project.