Interface ICloudWatchLoggingOptions
Information about logs built to a CloudWatch Log Group for a build project.
Namespace: Amazon.CDK.AWS.CodeBuild
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ICloudWatchLoggingOptions
Syntax (vb)
Public Interface ICloudWatchLoggingOptions
Remarks
ExampleMetadata: infused
Examples
new Project(this, "Project", new ProjectProps {
Logging = new LoggingOptions {
CloudWatch = new CloudWatchLoggingOptions {
LogGroup = new LogGroup(this, "MyLogGroup")
}
}
});
Synopsis
Properties
| Enabled | The current status of the logs in Amazon CloudWatch Logs for a build project. |
| LogGroup | The Log Group to send logs to. |
| Prefix | The prefix of the stream name of the Amazon CloudWatch Logs. |
Properties
Enabled
The current status of the logs in Amazon CloudWatch Logs for a build project.
bool? Enabled { get; }
Property Value
bool?
Remarks
Default: true
LogGroup
The Log Group to send logs to.
ILogGroup? LogGroup { get; }
Property Value
Remarks
Default: - no log group specified
Prefix
The prefix of the stream name of the Amazon CloudWatch Logs.
string? Prefix { get; }
Property Value
Remarks
Default: - no prefix