Skip to content

/AWS1/CL_S3_LOGGINGENABLED

Describes where logs are stored and the prefix that Amazon S3 assigns to all log object keys for a bucket. For more information, see PUT Bucket logging in the Amazon S3 API Reference.

CONSTRUCTOR

IMPORTING

Required arguments:

iv_targetbucket TYPE /AWS1/S3_TARGETBUCKET /AWS1/S3_TARGETBUCKET

Specifies the bucket where you want Amazon S3 to store server access logs. You can have your logs delivered to any bucket that you own, including the same bucket that is being logged. You can also configure multiple buckets to deliver their logs to the same target bucket. In this case, you should choose a different TargetPrefix for each source bucket so that the delivered log files can be distinguished by key.

iv_targetprefix TYPE /AWS1/S3_TARGETPREFIX /AWS1/S3_TARGETPREFIX

A prefix for all log object keys. If you store log files from multiple Amazon S3 buckets in a single bucket, you can use a prefix to distinguish which log files came from which bucket.

Optional arguments:

it_targetgrants TYPE /AWS1/CL_S3_TARGETGRANT=>TT_TARGETGRANTS TT_TARGETGRANTS

Container for granting information.

Buckets that use the bucket owner enforced setting for Object Ownership don't support target grants. For more information, see Permissions for server access log delivery in the Amazon S3 User Guide.

io_targetobjectkeyformat TYPE REF TO /AWS1/CL_S3_TARGETOBJKEYFORMAT /AWS1/CL_S3_TARGETOBJKEYFORMAT

Amazon S3 key format for log objects.


Queryable Attributes

TargetBucket

Specifies the bucket where you want Amazon S3 to store server access logs. You can have your logs delivered to any bucket that you own, including the same bucket that is being logged. You can also configure multiple buckets to deliver their logs to the same target bucket. In this case, you should choose a different TargetPrefix for each source bucket so that the delivered log files can be distinguished by key.

Accessible with the following methods

Method Description
GET_TARGETBUCKET() Getter for TARGETBUCKET, with configurable default
ASK_TARGETBUCKET() Getter for TARGETBUCKET w/ exceptions if field has no value
HAS_TARGETBUCKET() Determine if TARGETBUCKET has a value

TargetGrants

Container for granting information.

Buckets that use the bucket owner enforced setting for Object Ownership don't support target grants. For more information, see Permissions for server access log delivery in the Amazon S3 User Guide.

Accessible with the following methods

Method Description
GET_TARGETGRANTS() Getter for TARGETGRANTS, with configurable default
ASK_TARGETGRANTS() Getter for TARGETGRANTS w/ exceptions if field has no value
HAS_TARGETGRANTS() Determine if TARGETGRANTS has a value

TargetPrefix

A prefix for all log object keys. If you store log files from multiple Amazon S3 buckets in a single bucket, you can use a prefix to distinguish which log files came from which bucket.

Accessible with the following methods

Method Description
GET_TARGETPREFIX() Getter for TARGETPREFIX, with configurable default
ASK_TARGETPREFIX() Getter for TARGETPREFIX w/ exceptions if field has no value
HAS_TARGETPREFIX() Determine if TARGETPREFIX has a value

TargetObjectKeyFormat

Amazon S3 key format for log objects.

Accessible with the following methods

Method Description
GET_TARGETOBJECTKEYFORMAT() Getter for TARGETOBJECTKEYFORMAT