Struct: s3.LoggingEnabled
Overview
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 (docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTlogging.html) in the Amazon Simple Storage Service API Reference.
Implemented Interfaces
s3crypto.Cipher, s3manager.ReadSeekerWriteTo, request.Validator, s3manager.WriterReadFrom
Structure Field Summary collapse
-
TargetBucket *string
Specifies the bucket where you want Amazon S3 to store server access logs.
-
TargetGrants []*TargetGrant
Container for granting information.
-
TargetPrefix *string
A prefix for all log object keys.
- _ struct{}
Service Operations collapse
-
GoString() string
operation
GoString returns the string representation.
-
SetTargetBucket(string) *LoggingEnabled
operation
SetTargetBucket sets the TargetBucket field’s value.
-
SetTargetGrants([]*TargetGrant) *LoggingEnabled
operation
SetTargetGrants sets the TargetGrants field’s value.
-
SetTargetPrefix(string) *LoggingEnabled
operation
SetTargetPrefix sets the TargetPrefix field’s value.
-
String() string
operation
String returns the string representation.
-
Validate() error
operation
Validate inspects the fields of the type to determine if they are valid.
Structure Field Details
TargetBucket *string
`type:"string" required:"true"`
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.
TargetBucket is a required field
TargetGrants []*TargetGrant
`locationNameList:"Grant" type:"list"`
Container for granting information.
TargetPrefix *string
`type:"string" required:"true"`
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.
TargetPrefix is a required field
_ struct{}
`type:"structure"`
Method Details
func (s LoggingEnabled) GoString() string
GoString returns the string representation.
API parameter values that are decorated as “sensitive” in the API will not be included in the string output. The member name will be present, but the value will be replaced with “sensitive”.
18277 18278 18279 |
// File 'service/s3/api.go', line 18277
|
func (s *LoggingEnabled) SetTargetBucket(v string) *LoggingEnabled
SetTargetBucket sets the TargetBucket field’s value.
18308 18309 18310 18311 |
// File 'service/s3/api.go', line 18308
|
func (s *LoggingEnabled) SetTargetGrants(v []*TargetGrant) *LoggingEnabled
SetTargetGrants sets the TargetGrants field’s value.
18314 18315 18316 18317 |
// File 'service/s3/api.go', line 18314
|
func (s *LoggingEnabled) SetTargetPrefix(v string) *LoggingEnabled
SetTargetPrefix sets the TargetPrefix field’s value.
18320 18321 18322 18323 |
// File 'service/s3/api.go', line 18320
|
func (s LoggingEnabled) String() string
String returns the string representation.
API parameter values that are decorated as “sensitive” in the API will not be included in the string output. The member name will be present, but the value will be replaced with “sensitive”.
18268 18269 18270 |
// File 'service/s3/api.go', line 18268
|
func (s *LoggingEnabled) Validate() error
Validate inspects the fields of the type to determine if they are valid.
18282 18283 18284 18285 18286 18287 18288 18289 18290 18291 18292 18293 18294 18295 18296 18297 18298 18299 18300 18301 18302 18303 18304 18305 |
// File 'service/s3/api.go', line 18282
|