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



15709
15710
15711
// File 'service/s3/api.go', line 15709

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

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

SetDate sets the Date field’s value.



15714
15715
15716
15717
// File 'service/s3/api.go', line 15714

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.



15720
15721
15722
15723
// File 'service/s3/api.go', line 15720

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.



15726
15727
15728
15729
// File 'service/s3/api.go', line 15726

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



15700
15701
15702
// File 'service/s3/api.go', line 15700

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