aws-cdk-lib.aws_codebuild.CfnProject.LogsConfigProperty

interface LogsConfigProperty

LanguageType name
.NETAmazon.CDK.AWS.CodeBuild.CfnProject.LogsConfigProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awscodebuild#CfnProject_LogsConfigProperty
Javasoftware.amazon.awscdk.services.codebuild.CfnProject.LogsConfigProperty
Pythonaws_cdk.aws_codebuild.CfnProject.LogsConfigProperty
TypeScript aws-cdk-lib » aws_codebuild » 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.

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 logsConfigProperty: codebuild.CfnProject.LogsConfigProperty = {
  cloudWatchLogs: {
    status: 'status',

    // the properties below are optional
    groupName: 'groupName',
    streamName: 'streamName',
  },
  s3Logs: {
    status: 'status',

    // the properties below are optional
    encryptionDisabled: false,
    location: 'location',
  },
};

Properties

NameTypeDescription
cloudWatchLogs?IResolvable | CloudWatchLogsConfigPropertyInformation about CloudWatch Logs for a build project.
s3Logs?IResolvable | S3LogsConfigPropertyInformation about logs built to an S3 bucket for a build project.

cloudWatchLogs?

Type: IResolvable | CloudWatchLogsConfigProperty (optional)

Information about CloudWatch Logs for a build project.

CloudWatch Logs are enabled by default.


s3Logs?

Type: IResolvable | S3LogsConfigProperty (optional)

Information about logs built to an S3 bucket for a build project.

S3 logs are not enabled by default.