Skip to content
v2.276.0

S3LogsConfigProperty Struct ​

S3Logs is a property of the AWS CodeBuild Project LogsConfig property type that specifies settings for logs generated by an AWS CodeBuild build in an S3 bucket.

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 s3LogsConfigProperty: codebuild.CfnProject.S3LogsConfigProperty = {
  status: 'status',

  // the properties below are optional
  encryptionDisabled: false,
  location: 'location',
};
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

s3_logs_config_property = codebuild.CfnProject.S3LogsConfigProperty(
    status="status",

    # the properties below are optional
    encryption_disabled=False,
    location="location"
)
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.*;

S3LogsConfigProperty s3LogsConfigProperty = S3LogsConfigProperty.builder()
        .status("status")

        // the properties below are optional
        .encryptionDisabled(false)
        .location("location")
        .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 s3LogsConfigProperty = new S3LogsConfigProperty {
    Status = "status",

    // the properties below are optional
    EncryptionDisabled = false,
    Location = "location"
};
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"

s3LogsConfigProperty := &S3LogsConfigProperty{
	Status: jsii.String("status"),

	// the properties below are optional
	EncryptionDisabled: jsii.Boolean(false),
	Location: jsii.String("location"),
}

Properties ​

encryptionDisabledoptionalboolean | IResolvableencryption_disabledoptionaltyping.Union[bool, IResolvable]encryptionDisabledoptionalBooleanEncryptionDisabledoptionalboolEncryptionDisabledoptionalinterface{}#
Set to true if you do not want your S3 build log output encrypted.

By default S3 build logs are encrypted.

locationoptionalstringlocationoptionalstrlocationoptionalStringLocationoptionalstringLocationoptional*string#
The ARN of an S3 bucket and the path prefix for S3 logs.

If your Amazon S3 bucket name is my-bucket , and your path prefix is build-log , then acceptable formats are my-bucket/build-log or arn:aws:s3:::my-bucket/build-log .

statusstringstatusstrstatusStringStatusstringStatus*stringrequired#
The current status of the S3 build logs. Valid values are:.
  • ENABLED : S3 build logs are enabled for this build project.
  • DISABLED : S3 build logs are not enabled for this build project.