Show / Hide Table of Contents

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.AWS.S3.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.

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-replicationrulefilter.html

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;

ReplicationRuleFilterProperty 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:

    Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-replicationrulefilter.html#cfn-s3-bucket-replicationrulefilter-and

    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 .

    Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-replicationrulefilter.html#cfn-s3-bucket-replicationrulefilter-prefix

    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.

    Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-replicationrulefilter.html#cfn-s3-bucket-replicationrulefilter-tagfilter

    Back to top Generated by DocFX