AWS SDK Version 4 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

This is used in a Lifecycle Rule Filter to apply a logical AND to two or more predicates. The Lifecycle Rule will apply to any object matching all of the predicates configured inside the And operator.

Inheritance Hierarchy

System.Object
  Amazon.S3.Model.LifecycleRuleAndOperator

Namespace: Amazon.S3.Model
Assembly: AWSSDK.S3.dll
Version: 3.x.y.z

Syntax

C#
public class LifecycleRuleAndOperator

The LifecycleRuleAndOperator type exposes the following members

Constructors

NameDescription
Public Method LifecycleRuleAndOperator()

Properties

NameTypeDescription
Public Property ObjectSizeGreaterThan System.Nullable<System.Int64>

Gets and sets the property ObjectSizeGreaterThan.

Minimum object size to which the rule applies.

Public Property ObjectSizeLessThan System.Nullable<System.Int64>

Gets and sets the property ObjectSizeLessThan.

Maximum object size to which the rule applies.

Public Property Prefix System.String

Gets and sets the property Prefix.

Prefix identifying one or more objects to which the rule applies.

Public Property Tags System.Collections.Generic.List<Amazon.S3.Model.Tag>

Gets and sets the property Tags.

All of these tags must exist in the object's tag set in order for the rule to apply.

Starting with version 4 of the SDK this property will default to null. If no data for this property is returned from the service the property will also be null. This was changed to improve performance and allow the SDK and caller to distinguish between a property not set or a property being empty to clear out a value. To retain the previous SDK behavior set the AWSConfigs.InitializeCollections static property to true.

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.7.2 and newer