Struct: s3.LifecycleConfiguration

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

Overview

Container for lifecycle rules. You can add as many as 1000 rules.

For more information see, Managing your storage lifecycle (docs.aws.amazon.com/AmazonS3/latest/userguide/object-lifecycle-mgmt.html) in the Amazon S3 User Guide.

Implemented Interfaces

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

Structure Field Summary collapse

Service Operations collapse

Structure Field Details

Rules []*LifecycleRule `locationName:"Rule" type:"list" flattened:"true" required:"true"`

Rules is a required field

_ struct{} `type:"structure"`

Method Details

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



15640
15641
15642
// File 'service/s3/api.go', line 15640

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

func (s *LifecycleConfiguration) SetRules(v []*LifecycleRule) *LifecycleConfiguration

SetRules sets the Rules field’s value.



15668
15669
15670
15671
// File 'service/s3/api.go', line 15668

func (s *LifecycleConfiguration) SetRules(v []*LifecycleRule) *LifecycleConfiguration { s.Rules = v return s }

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



15631
15632
15633
// File 'service/s3/api.go', line 15631

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

func (s *LifecycleConfiguration) Validate() error

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



15645
15646
15647
15648
15649
15650
15651
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
// File 'service/s3/api.go', line 15645

func (s *LifecycleConfiguration) Validate() error { invalidParams := request.ErrInvalidParams{Context: "LifecycleConfiguration"} if s.Rules == nil { invalidParams.Add(request.NewErrParamRequired("Rules")) } if s.Rules != nil { for i, v := range s.Rules { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Rules", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil }