Class CfnBucketPropsMixin.ReplicationRuleFilterProperty
A filter that identifies the subset of objects to which the replication rule applies.
Inherited Members
Namespace: Amazon.CDK.CfnPropertyMixins.AWS.S3
Assembly: Amazon.CDK.CfnPropertyMixins.dll
Syntax (csharp)
public class CfnBucketPropsMixin.ReplicationRuleFilterProperty : CfnBucketPropsMixin.IReplicationRuleFilterProperty
Syntax (vb)
Public Class CfnBucketPropsMixin.ReplicationRuleFilterProperty Implements CfnBucketPropsMixin.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.CfnPropertyMixins.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() | A filter that identifies the subset of objects to which the replication rule applies. |
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()
A filter that identifies the subset of objects to which the replication rule applies.
public ReplicationRuleFilterProperty()
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.CfnPropertyMixins.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"
}
};
Properties
And
A container for specifying rule filters.
public object? And { get; set; }
Property Value
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:
Type union: either IResolvable or CfnBucketPropsMixin.IReplicationRuleAndOperatorProperty
Prefix
An object key name prefix that identifies the subset of objects to which the rule applies.
public string? Prefix { get; set; }
Property Value
Remarks
Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-xml-related-constraints">XML related object key constraints</a> .
TagFilter
A container for specifying a tag key and value.
public object? TagFilter { get; set; }
Property Value
Remarks
The rule applies only to objects that have the tag in their tag set.
Type union: either IResolvable or CfnBucketPropsMixin.ITagFilterProperty