Struct: s3.VersioningConfiguration

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

Overview

Describes the versioning state of an Amazon S3 bucket. For more information, see PUT Bucket versioning (docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTVersioningStatus.html) in the Amazon Simple Storage Service API Reference.

Implemented Interfaces

s3crypto.Cipher, s3manager.ReadSeekerWriteTo, s3manager.WriterReadFrom

Structure Field Summary collapse

Service Operations collapse

Structure Field Details

MFADelete *string `locationName:"MfaDelete" type:"string" enum:"MFADelete"`

Specifies whether MFA delete is enabled in the bucket versioning configuration. This element is only returned if the bucket has been configured with MFA delete. If the bucket has never been so configured, this element is not returned.

Status *string `type:"string" enum:"BucketVersioningStatus"`

The versioning state of the bucket.

_ struct{} `type:"structure"`

Method Details

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



23567
23568
23569
// File 'service/s3/api.go', line 23567

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

func (s *VersioningConfiguration) SetMFADelete(v string) *VersioningConfiguration

SetMFADelete sets the MFADelete field’s value.



23572
23573
23574
23575
// File 'service/s3/api.go', line 23572

func (s *VersioningConfiguration) SetMFADelete(v string) *VersioningConfiguration { s.MFADelete = &v return s }

func (s *VersioningConfiguration) SetStatus(v string) *VersioningConfiguration

SetStatus sets the Status field’s value.



23578
23579
23580
23581
// File 'service/s3/api.go', line 23578

func (s *VersioningConfiguration) SetStatus(v string) *VersioningConfiguration { s.Status = &v return s }

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



23558
23559
23560
// File 'service/s3/api.go', line 23558

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