Class CfnProject.LogsConfigProperty
LogsConfig
is a property of the AWS CodeBuild Project resource that specifies information about logs for a build project. These can be logs in Amazon CloudWatch Logs, built in a specified S3 bucket, or both.
Inheritance
System.Object
CfnProject.LogsConfigProperty
Implements
Namespace: Amazon.CDK.AWS.CodeBuild
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class LogsConfigProperty : Object, CfnProject.ILogsConfigProperty
Syntax (vb)
Public Class LogsConfigProperty
Inherits Object
Implements CfnProject.ILogsConfigProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CodeBuild;
var logsConfigProperty = new LogsConfigProperty {
CloudWatchLogs = new CloudWatchLogsConfigProperty {
Status = "status",
// the properties below are optional
GroupName = "groupName",
StreamName = "streamName"
},
S3Logs = new S3LogsConfigProperty {
Status = "status",
// the properties below are optional
EncryptionDisabled = false,
Location = "location"
}
};
Synopsis
Constructors
LogsConfigProperty() |
Properties
CloudWatchLogs | Information about CloudWatch Logs for a build project. |
S3Logs | Information about logs built to an S3 bucket for a build project. |
Constructors
LogsConfigProperty()
public LogsConfigProperty()
Properties
CloudWatchLogs
Information about CloudWatch Logs for a build project.
public object CloudWatchLogs { get; set; }
Property Value
System.Object
Remarks
CloudWatch Logs are enabled by default.
S3Logs
Information about logs built to an S3 bucket for a build project.
public object S3Logs { get; set; }
Property Value
System.Object
Remarks
S3 logs are not enabled by default.