Skip to content

S3  >  Unions  >  MetricsFilter

MetricsFilter

Union Type

MetricsFilter module-attribute

Specifies a metrics configuration filter. The metrics configuration only includes objects that meet the filter's criteria. A filter must be a prefix, an object tag, an access point ARN, or a conjunction (MetricsAndOperator). For more information, see PutBucketMetricsConfiguration.

Union Member Types

MetricsFilterPrefix dataclass

Bases: _SerdeShape

The prefix used when evaluating a metrics filter.

Attributes

value instance-attribute
value: str

MetricsFilterTag dataclass

Bases: _SerdeShape

The tag used when evaluating a metrics filter.

Note

Tag filters are not supported for directory buckets.

Attributes

value instance-attribute
value: Tag

MetricsFilterAccessPointArn dataclass

Bases: _SerdeShape

The access point ARN used when evaluating a metrics filter.

Attributes

value instance-attribute
value: str

MetricsFilterAnd dataclass

Bases: _SerdeShape

A conjunction (logical AND) of predicates, which is used in evaluating a metrics filter. The operator must have at least two predicates, and an object must match all of the predicates in order for the filter to apply.

Attributes

value instance-attribute

MetricsFilterUnknown dataclass

Bases: _SerdeShape

Represents an unknown variant. If you receive this value, you will need to update your library to receive the parsed value. This value may not be deliberately sent.

Attributes

tag instance-attribute
tag: str