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”.



7687
7688
7689
// File 'service/s3/api.go', line 7687

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

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

SetLoggingEnabled sets the LoggingEnabled field’s value.



7707
7708
7709
7710
// File 'service/s3/api.go', line 7707

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”.



7678
7679
7680
// File 'service/s3/api.go', line 7678

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.



7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
// File 'service/s3/api.go', line 7692

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 }