interface CloudWatchLoggingOptions
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.CodeBuild.CloudWatchLoggingOptions |
Java | software.amazon.awscdk.services.codebuild.CloudWatchLoggingOptions |
Python | aws_cdk.aws_codebuild.CloudWatchLoggingOptions |
TypeScript (source) | @aws-cdk/aws-codebuild » CloudWatchLoggingOptions |
Information about logs built to a CloudWatch Log Group for a build project.
Example
new codebuild.Project(this, 'Project', {
logging: {
cloudWatch: {
logGroup: new logs.LogGroup(this, `MyLogGroup`),
}
},
})
Properties
Name | Type | Description |
---|---|---|
enabled? | boolean | The current status of the logs in Amazon CloudWatch Logs for a build project. |
log | ILog | The Log Group to send logs to. |
prefix? | string | The prefix of the stream name of the Amazon CloudWatch Logs. |
enabled?
Type:
boolean
(optional, default: true)
The current status of the logs in Amazon CloudWatch Logs for a build project.
logGroup?
Type:
ILog
(optional, default: no log group specified)
The Log Group to send logs to.
prefix?
Type:
string
(optional, default: no prefix)
The prefix of the stream name of the Amazon CloudWatch Logs.