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

Class: Aws::EC2::Types::Filter

  • Object
show all
Defined in:



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

  name: "String",
  values: ["String"],

A filter name and value pair that is used to return a more specific list of results from a describe operation. Filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs. The filters supported by a describe operation are documented with the describe operation. For example:

Instance Attribute Summary collapse

Instance Attribute Details


The name of the filter. Filter names are case-sensitive.


  • (String)

    The name of the filter.


The filter values. Filter values are case-sensitive.


  • (Array<String>)

    The filter values.