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



10577
10578
10579
// File 'service/s3/api.go', line 10577

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

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

SetStatus sets the Status field's value.



10595
10596
10597
10598
// File 'service/s3/api.go', line 10595

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



10568
10569
10570
// File 'service/s3/api.go', line 10568

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.



10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
// File 'service/s3/api.go', line 10582

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 }