You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::S3::Types::MetricsFilter

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing MetricsFilter as input to an Aws::Client method, you can use a vanilla Hash:

{
  prefix: "Prefix",
  tag: {
    key: "ObjectKey", # required
    value: "Value", # required
  },
  and: {
    prefix: "Prefix",
    tags: [
      {
        key: "ObjectKey", # required
        value: "Value", # required
      },
    ],
  },
}

Specifies a metrics configuration filter. The metrics configuration only includes objects that meet the filter's criteria. A filter must be a prefix, a tag, or a conjunction (MetricsAndOperator).

Returned by:

Instance Attribute Summary collapse

Instance Attribute Details

#andTypes::MetricsAndOperator

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.

Returns:

#prefixString

The prefix used when evaluating a metrics filter.

Returns:

  • (String)

    The prefix used when evaluating a metrics filter.

#tagTypes::Tag

The tag used when evaluating a metrics filter.

Returns:

  • (Types::Tag)

    The tag used when evaluating a metrics filter.