Class CloudWatchLoggingOptions
Information about logs built to a CloudWatch Log Group for a build project.
Inheritance
System.Object
CloudWatchLoggingOptions
Implements
Namespace: Amazon.CDK.AWS.CodeBuild
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CloudWatchLoggingOptions : Object, ICloudWatchLoggingOptions
Syntax (vb)
Public Class CloudWatchLoggingOptions
Inherits Object
Implements ICloudWatchLoggingOptions
Remarks
ExampleMetadata: infused
Examples
new Project(this, "Project", new ProjectProps {
Logging = new LoggingOptions {
CloudWatch = new CloudWatchLoggingOptions {
LogGroup = new LogGroup(this, "MyLogGroup")
}
}
});
Synopsis
Constructors
CloudWatchLoggingOptions() |
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. |
Constructors
CloudWatchLoggingOptions()
public CloudWatchLoggingOptions()
Properties
Enabled
The current status of the logs in Amazon CloudWatch Logs for a build project.
public Nullable<bool> Enabled { get; set; }
Property Value
System.Nullable<System.Boolean>
Remarks
Default: true
LogGroup
The Log Group to send logs to.
public ILogGroup LogGroup { get; set; }
Property Value
Remarks
Default: - no log group specified
Prefix
The prefix of the stream name of the Amazon CloudWatch Logs.
public string Prefix { get; set; }
Property Value
System.String
Remarks
Default: - no prefix