CloudWatchLogsConfigProperty Struct
CloudWatchLogs is a property of the AWS CodeBuild Project LogsConfig property type that specifies settings for CloudWatch logs generated by an AWS CodeBuild build.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_codebuild as codebuild } from 'aws-cdk-lib';
const cloudWatchLogsConfigProperty: codebuild.CfnProject.CloudWatchLogsConfigProperty = {
status: 'status',
// the properties below are optional
groupName: 'groupName',
streamName: 'streamName',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_codebuild as codebuild
cloud_watch_logs_config_property = codebuild.CfnProject.CloudWatchLogsConfigProperty(
status="status",
# the properties below are optional
group_name="groupName",
stream_name="streamName"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.codebuild.*;
CloudWatchLogsConfigProperty cloudWatchLogsConfigProperty = CloudWatchLogsConfigProperty.builder()
.status("status")
// the properties below are optional
.groupName("groupName")
.streamName("streamName")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// 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 cloudWatchLogsConfigProperty = new CloudWatchLogsConfigProperty {
Status = "status",
// the properties below are optional
GroupName = "groupName",
StreamName = "streamName"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cloudWatchLogsConfigProperty := &CloudWatchLogsConfigProperty{
Status: jsii.String("status"),
// the properties below are optional
GroupName: jsii.String("groupName"),
StreamName: jsii.String("streamName"),
}
Properties
groupNameoptionalstringgroup_nameoptionalstrgroupNameoptionalStringGroupNameoptionalstringGroupNameoptional*string #The group name of the logs in CloudWatch Logs.
For more information, see Working with Log Groups and Log Streams .
The current status of the logs in CloudWatch Logs for a build project. Valid values are:.
ENABLED: CloudWatch Logs are enabled for this build project.DISABLED: CloudWatch Logs are not enabled for this build project.
streamNameoptionalstringstream_nameoptionalstrstreamNameoptionalStringStreamNameoptionalstringStreamNameoptional*string #The prefix of the stream name of the CloudWatch Logs.
For more information, see Working with Log Groups and Log Streams .