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

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-s3/lib/aws-sdk-s3/types.rb

Overview

Note:

When making an API call, you may pass MetricsFilter data as a 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).

Constant Summary collapse

SENSITIVE =
[]

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.



8670
8671
8672
8673
8674
8675
8676
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/types.rb', line 8670

class MetricsFilter < Struct.new(
  :prefix,
  :tag,
  :and)
  SENSITIVE = []
  include Aws::Structure
end

#prefixString

The prefix used when evaluating a metrics filter.

Returns:

  • (String)


8670
8671
8672
8673
8674
8675
8676
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/types.rb', line 8670

class MetricsFilter < Struct.new(
  :prefix,
  :tag,
  :and)
  SENSITIVE = []
  include Aws::Structure
end

#tagTypes::Tag

The tag used when evaluating a metrics filter.

Returns:



8670
8671
8672
8673
8674
8675
8676
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/types.rb', line 8670

class MetricsFilter < Struct.new(
  :prefix,
  :tag,
  :and)
  SENSITIVE = []
  include Aws::Structure
end