Struct: s3.ReplicationRuleFilter
Overview
A filter that identifies the subset of objects to which the replication rule applies. A Filter must specify exactly one Prefix, Tag, or an And child element.
Implemented Interfaces
s3crypto.Cipher, s3manager.ReadSeekerWriteTo, request.Validator, s3manager.WriterReadFrom
Structure Field Summary collapse
-
And *ReplicationRuleAndOperator
A container for specifying rule filters.
-
Prefix *string
An object key name prefix that identifies the subset of objects to which the rule applies.
-
Tag *Tag
A container for specifying a tag key and value.
- _ struct{}
Service Operations collapse
-
GoString() string
operation
GoString returns the string representation.
-
SetAnd(*ReplicationRuleAndOperator) *ReplicationRuleFilter
operation
SetAnd sets the And field’s value.
-
SetPrefix(string) *ReplicationRuleFilter
operation
SetPrefix sets the Prefix field’s value.
-
SetTag(*Tag) *ReplicationRuleFilter
operation
SetTag sets the Tag field’s value.
-
String() string
operation
String returns the string representation.
-
Validate() error
operation
Validate inspects the fields of the type to determine if they are valid.
Structure Field Details
And *ReplicationRuleAndOperator
`type:"structure"`
A container for specifying rule filters. The filters determine the subset of objects to which the rule applies. This element is required only if you specify more than one filter. For example:
-
If you specify both a Prefix and a Tag filter, wrap these filters in an And tag.
-
If you specify a filter based on multiple tags, wrap the Tag elements in an And tag.
Prefix *string
`type:"string"`
An object key name prefix that identifies the subset of objects to which the rule applies.
Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests. For more information, see XML related object key constraints (docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-xml-related-constraints).
Tag *Tag
`type:"structure"`
A container for specifying a tag key and value.
The rule applies only to objects that have the tag in their tag set.
_ struct{}
`type:"structure"`
Method Details
func (s ReplicationRuleFilter) 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”.
22248 22249 22250 |
// File 'service/s3/api.go', line 22248
|
func (s *ReplicationRuleFilter) SetAnd(v *ReplicationRuleAndOperator) *ReplicationRuleFilter
SetAnd sets the And field’s value.
22273 22274 22275 22276 |
// File 'service/s3/api.go', line 22273
|
func (s *ReplicationRuleFilter) SetPrefix(v string) *ReplicationRuleFilter
SetPrefix sets the Prefix field’s value.
22279 22280 22281 22282 |
// File 'service/s3/api.go', line 22279
|
func (s *ReplicationRuleFilter) SetTag(v *Tag) *ReplicationRuleFilter
SetTag sets the Tag field’s value.
22285 22286 22287 22288 |
// File 'service/s3/api.go', line 22285
|
func (s ReplicationRuleFilter) 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”.
22239 22240 22241 |
// File 'service/s3/api.go', line 22239
|
func (s *ReplicationRuleFilter) Validate() error
Validate inspects the fields of the type to determine if they are valid.
22253 22254 22255 22256 22257 22258 22259 22260 22261 22262 22263 22264 22265 22266 22267 22268 22269 22270 |
// File 'service/s3/api.go', line 22253
|