Struct: s3.DeleteMarkerReplication

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

Overview

Specifies whether Amazon S3 replicates delete markers. If you specify a Filter in your replication configuration, you must also include a DeleteMarkerReplication element. If your Filter includes a Tag element, the DeleteMarkerReplication Status must be set to Disabled, because Amazon S3 does not support replicating delete markers for tag-based rules. For an example configuration, see Basic Rule Configuration (docs.aws.amazon.com/AmazonS3/latest/dev/replication-add-config.html#replication-config-min-rule-config).

For more information about delete marker replication, see Basic Rule Configuration (docs.aws.amazon.com/AmazonS3/latest/dev/delete-marker-replication.html).

If you are using an earlier version of the replication configuration, Amazon S3 handles replication of delete markers differently. For more information, see Backward Compatibility (docs.aws.amazon.com/AmazonS3/latest/dev/replication-add-config.html#replication-backward-compat-considerations).

Implemented Interfaces

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

Structure Field Summary collapse

Service Operations collapse

Structure Field Details

Status *string `type:"string" required:"true" enum:"DeleteMarkerReplicationStatus"`

Indicates whether to replicate delete markers.

Indicates whether to replicate delete markers.

Status is a required field

_ struct{} `type:"structure"`

Method Details

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



10728
10729
10730
// File 'service/s3/api.go', line 10728

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

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

SetStatus sets the Status field’s value.



10746
10747
10748
10749
// File 'service/s3/api.go', line 10746

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

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



10719
10720
10721
// File 'service/s3/api.go', line 10719

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

func (s *DeleteMarkerReplication) Validate() error

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



10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
// File 'service/s3/api.go', line 10733

func (s *DeleteMarkerReplication) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteMarkerReplication"} if s.Status == nil { invalidParams.Add(request.NewErrParamRequired("Status")) } if invalidParams.Len() > 0 { return invalidParams } return nil }