Class CfnBucket.ReplicationRuleFilterProperty
A filter that identifies the subset of objects to which the replication rule applies.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.S3
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ReplicationRuleFilterProperty : Object, CfnBucket.IReplicationRuleFilterProperty
Syntax (vb)
Public Class ReplicationRuleFilterProperty
Inherits Object
Implements CfnBucket.IReplicationRuleFilterProperty
Remarks
A Filter
must specify exactly one Prefix
, TagFilter
, or an And
child element.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.S3;
var replicationRuleFilterProperty = new ReplicationRuleFilterProperty {
And = new ReplicationRuleAndOperatorProperty {
Prefix = "prefix",
TagFilters = new [] { new TagFilterProperty {
Key = "key",
Value = "value"
} }
},
Prefix = "prefix",
TagFilter = new TagFilterProperty {
Key = "key",
Value = "value"
}
};
Synopsis
Constructors
ReplicationRuleFilterProperty() |
Properties
And | A container for specifying rule filters. |
Prefix | An object key name prefix that identifies the subset of objects to which the rule applies. |
TagFilter | A container for specifying a tag key and value. |
Constructors
ReplicationRuleFilterProperty()
public ReplicationRuleFilterProperty()
Properties
And
A container for specifying rule filters.
public object And { get; set; }
Property Value
System.Object
Remarks
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:
Prefix
An object key name prefix that identifies the subset of objects to which the rule applies.
public string Prefix { get; set; }
Property Value
System.String
Remarks
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 .
TagFilter
A container for specifying a tag key and value.
public object TagFilter { get; set; }
Property Value
System.Object
Remarks
The rule applies only to objects that have the tag in their tag set.