interface CloudWatchLogsConfigProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.CodeBuild.CfnProject.CloudWatchLogsConfigProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awscodebuild#CfnProject_CloudWatchLogsConfigProperty |
Java | software.amazon.awscdk.services.codebuild.CfnProject.CloudWatchLogsConfigProperty |
Python | aws_cdk.aws_codebuild.CfnProject.CloudWatchLogsConfigProperty |
TypeScript | aws-cdk-lib » aws_codebuild » CfnProject » CloudWatchLogsConfigProperty |
CloudWatchLogs is a property of the AWS CodeBuild Project LogsConfig property type that specifies settings for CloudWatch logs generated by an AWS CodeBuild build.
Example
// 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',
};
Properties
| Name | Type | Description |
|---|---|---|
| status | string | The current status of the logs in CloudWatch Logs for a build project. Valid values are:. |
| group | string | The group name of the logs in CloudWatch Logs. |
| stream | string | The prefix of the stream name of the CloudWatch Logs. |
status
Type:
string
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.
groupName?
Type:
string
(optional)
The group name of the logs in CloudWatch Logs.
For more information, see Working with Log Groups and Log Streams .
streamName?
Type:
string
(optional)
The prefix of the stream name of the CloudWatch Logs.
For more information, see Working with Log Groups and Log Streams .

.NET
Go
Java
Python
TypeScript