Interface CfnBucket.IReplicationRuleFilterProperty
A filter that identifies the subset of objects to which the replication rule applies.
Namespace: Amazon.CDK.AWS.S3
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IReplicationRuleFilterProperty
Syntax (vb)
Public Interface 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
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. |
Properties
And
A container for specifying rule filters.
virtual object And { get; }
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.
virtual string Prefix { get; }
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.
virtual object TagFilter { get; }
Property Value
System.Object
Remarks
The rule applies only to objects that have the tag in their tag set.