Package org.jclouds.s3.domain
Class BucketLogging
java.lang.Object
org.jclouds.s3.domain.BucketLogging
Each Amazon S3 bucket has an associated XML sub-resource that you can read and write in order to
inspect or change the logging status for that bucket.
-
Constructor Summary
ConstructorsConstructorDescriptionBucketLogging
(String targetBucket, String targetPrefix) BucketLogging
(String targetBucket, String targetPrefix, Iterable<AccessControlList.Grant> targetGrants) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Specifies the bucket where server access logs will be delivered.The bucket owner is automatically granted FULL_CONTROL to all logs delivered to the bucket.This element lets you specify a prefix for the keys that the delivered log files will be stored under.int
hashCode()
toString()
-
Constructor Details
-
BucketLogging
public BucketLogging(String targetBucket, String targetPrefix, Iterable<AccessControlList.Grant> targetGrants) - Parameters:
targetBucket
-getTargetBucket()
targetPrefix
-getTargetPrefix()
targetGrants
-getTargetGrants()
-
BucketLogging
- Parameters:
targetBucket
-getTargetBucket()
targetPrefix
-getTargetPrefix()
-
-
Method Details
-
getTargetGrants
The bucket owner is automatically granted FULL_CONTROL to all logs delivered to the bucket. This optional element enables you grant access to others. Any specified TargetGrants are added to the default ACL. For more information about ACLs, see Access Control Lists. -
getTargetBucket
Specifies the bucket where server access logs will be delivered. 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.Note
The source and the target buckets must be in the same location. For more information about bucket location constraints, see Buckets and Regions -
getTargetPrefix
This element lets you specify a prefix for the keys that the delivered log files will be stored under. For information on how the key name for log files is constructed, see Delivery of Server Access Logs. -
hashCode
public int hashCode() -
equals
-
toString
-