Struct: s3.LifecycleExpiration

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

Overview

Container for the expiration for the lifecycle of the object.

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, s3manager.WriterReadFrom

Structure Field Summary collapse

Service Operations collapse

Structure Field Details

Date *time.Time `type:"timestamp" timestampFormat:"iso8601"`

Indicates at what date the object is to be moved or deleted. The date value must conform to the ISO 8601 format. The time is always midnight UTC.

Days *int64 `type:"integer"`

Indicates the lifetime, in days, of the objects that are subject to the rule. The value must be a non-zero positive integer.

ExpiredObjectDeleteMarker *bool `type:"boolean"`

Indicates whether Amazon S3 will remove a delete marker with no noncurrent versions. If set to true, the delete marker will be expired; if set to false the policy takes no action. This cannot be specified with Days or Date in a Lifecycle Expiration Policy.

_ struct{} `type:"structure"`

Method Details

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



15558
15559
15560
// File 'service/s3/api.go', line 15558

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

func (s *LifecycleExpiration) SetDate(v time.Time) *LifecycleExpiration

SetDate sets the Date field's value.



15563
15564
15565
15566
// File 'service/s3/api.go', line 15563

func (s *LifecycleExpiration) SetDate(v time.Time) *LifecycleExpiration { s.Date = &v return s }

func (s *LifecycleExpiration) SetDays(v int64) *LifecycleExpiration

SetDays sets the Days field's value.



15569
15570
15571
15572
// File 'service/s3/api.go', line 15569

func (s *LifecycleExpiration) SetDays(v int64) *LifecycleExpiration { s.Days = &v return s }

func (s *LifecycleExpiration) SetExpiredObjectDeleteMarker(v bool) *LifecycleExpiration

SetExpiredObjectDeleteMarker sets the ExpiredObjectDeleteMarker field's value.



15575
15576
15577
15578
// File 'service/s3/api.go', line 15575

func (s *LifecycleExpiration) SetExpiredObjectDeleteMarker(v bool) *LifecycleExpiration { s.ExpiredObjectDeleteMarker = &v return s }

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



15549
15550
15551
// File 'service/s3/api.go', line 15549

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