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



15489
15490
15491
// File 'service/s3/api.go', line 15489

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

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

SetRules sets the Rules field's value.



15517
15518
15519
15520
// File 'service/s3/api.go', line 15517

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



15480
15481
15482
// File 'service/s3/api.go', line 15480

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.



15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
// File 'service/s3/api.go', line 15494

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 }