Struct: s3.BucketLoggingStatus

import "../ibm-cos-sdk-go/service/s3"

Overview

Container for logging status information.

Implemented Interfaces

s3crypto.Cipher, s3manager.ReadSeekerWriteTo, request.Validator, s3manager.WriterReadFrom

Structure Field Summary collapse

Service Operations collapse

Structure Field Details

LoggingEnabled *LoggingEnabled `type:"structure"`

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.

_ struct{} `type:"structure"`

Method Details

func (s BucketLoggingStatus) 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”.



7536
7537
7538
// File 'service/s3/api.go', line 7536

func (s BucketLoggingStatus) GoString() string { return s.String() }

func (s *BucketLoggingStatus) SetLoggingEnabled(v *LoggingEnabled) *BucketLoggingStatus

SetLoggingEnabled sets the LoggingEnabled field's value.



7556
7557
7558
7559
// File 'service/s3/api.go', line 7556

func (s *BucketLoggingStatus) SetLoggingEnabled(v *LoggingEnabled) *BucketLoggingStatus { s.LoggingEnabled = v return s }

func (s BucketLoggingStatus) 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”.



7527
7528
7529
// File 'service/s3/api.go', line 7527

func (s BucketLoggingStatus) String() string { return awsutil.Prettify(s) }

func (s *BucketLoggingStatus) Validate() error

Validate inspects the fields of the type to determine if they are valid.



7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
// File 'service/s3/api.go', line 7541

func (s *BucketLoggingStatus) Validate() error { invalidParams := request.ErrInvalidParams{Context: "BucketLoggingStatus"} if s.LoggingEnabled != nil { if err := s.LoggingEnabled.Validate(); err != nil { invalidParams.AddNested("LoggingEnabled", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil }