Skip to content

/AWS1/CL_BLDS3LOGSCONFIG

Information about S3 logs for a build project.

CONSTRUCTOR

IMPORTING

Required arguments:

iv_status TYPE /AWS1/BLDLOGSCONFIGSTATUSTYPE /AWS1/BLDLOGSCONFIGSTATUSTYPE

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.

Optional arguments:

iv_location TYPE /AWS1/BLDSTRING /AWS1/BLDSTRING

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.

iv_encryptiondisabled TYPE /AWS1/BLDWRAPPERBOOLEAN /AWS1/BLDWRAPPERBOOLEAN

Set to true if you do not want your S3 build log output encrypted. By default S3 build logs are encrypted.

iv_bucketowneraccess TYPE /AWS1/BLDBUCKETOWNERACCESS /AWS1/BLDBUCKETOWNERACCESS

Specifies the bucket owner's access for objects that another account uploads to their Amazon S3 bucket. By default, only the account that uploads the objects to the bucket has access to these objects. This property allows you to give the bucket owner access to these objects.

To use this property, your CodeBuild service role must have the s3:PutBucketAcl permission. This permission allows CodeBuild to modify the access control list for the bucket.

This property can be one of the following values:

NONE

The bucket owner does not have access to the objects. This is the default.

READ_ONLY

The bucket owner has read-only access to the objects. The uploading account retains ownership of the objects.

FULL

The bucket owner has full access to the objects. Object ownership is determined by the following criteria:

  • If the bucket is configured with the Bucket owner preferred setting, the bucket owner owns the objects. The uploading account will have object access as specified by the bucket's policy.

  • Otherwise, the uploading account retains ownership of the objects.

For more information about Amazon S3 object ownership, see Controlling ownership of uploaded objects using S3 Object Ownership in the Amazon Simple Storage Service User Guide.


Queryable Attributes

status

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.

Accessible with the following methods

Method Description
GET_STATUS() Getter for STATUS, with configurable default
ASK_STATUS() Getter for STATUS w/ exceptions if field has no value
HAS_STATUS() Determine if STATUS has a value

location

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.

Accessible with the following methods

Method Description
GET_LOCATION() Getter for LOCATION, with configurable default
ASK_LOCATION() Getter for LOCATION w/ exceptions if field has no value
HAS_LOCATION() Determine if LOCATION has a value

encryptionDisabled

Set to true if you do not want your S3 build log output encrypted. By default S3 build logs are encrypted.

Accessible with the following methods

Method Description
GET_ENCRYPTIONDISABLED() Getter for ENCRYPTIONDISABLED, with configurable default
ASK_ENCRYPTIONDISABLED() Getter for ENCRYPTIONDISABLED w/ exceptions if field has no
HAS_ENCRYPTIONDISABLED() Determine if ENCRYPTIONDISABLED has a value

bucketOwnerAccess

Specifies the bucket owner's access for objects that another account uploads to their Amazon S3 bucket. By default, only the account that uploads the objects to the bucket has access to these objects. This property allows you to give the bucket owner access to these objects.

To use this property, your CodeBuild service role must have the s3:PutBucketAcl permission. This permission allows CodeBuild to modify the access control list for the bucket.

This property can be one of the following values:

NONE

The bucket owner does not have access to the objects. This is the default.

READ_ONLY

The bucket owner has read-only access to the objects. The uploading account retains ownership of the objects.

FULL

The bucket owner has full access to the objects. Object ownership is determined by the following criteria:

  • If the bucket is configured with the Bucket owner preferred setting, the bucket owner owns the objects. The uploading account will have object access as specified by the bucket's policy.

  • Otherwise, the uploading account retains ownership of the objects.

For more information about Amazon S3 object ownership, see Controlling ownership of uploaded objects using S3 Object Ownership in the Amazon Simple Storage Service User Guide.

Accessible with the following methods

Method Description
GET_BUCKETOWNERACCESS() Getter for BUCKETOWNERACCESS, with configurable default
ASK_BUCKETOWNERACCESS() Getter for BUCKETOWNERACCESS w/ exceptions if field has no v
HAS_BUCKETOWNERACCESS() Determine if BUCKETOWNERACCESS has a value