Class: Aws::Pricing::Types::Filter
- Inherits:
-
Struct
- Object
- Struct
- Aws::Pricing::Types::Filter
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-pricing/types.rb
Overview
When making an API call, you may pass Filter data as a hash:
{
type: "TERM_MATCH", # required, accepts TERM_MATCH
field: "String", # required
value: "String", # required
}
The constraints that you want all returned products to match.
Instance Attribute Summary collapse
-
#field ⇒ String
The product metadata field that you want to filter on.
-
#type ⇒ String
The type of filter that you want to use.
-
#value ⇒ String
The service code or attribute value that you want to filter by.
Instance Attribute Details
#field ⇒ String
The product metadata field that you want to filter on. You can filter by just the service code to see all products for a specific service, filter by just the attribute name to see a specific attribute for multiple services, or use both a service code and an attribute name to retrieve only products that match both fields.
Valid values include: ‘ServiceCode`, and all attribute names
For example, you can filter by the ‘AmazonEC2` service code and the `volumeType` attribute name to get the prices for only Amazon EC2 volumes.
131 132 133 134 135 136 |
# File 'lib/aws-sdk-pricing/types.rb', line 131 class Filter < Struct.new( :type, :field, :value) include Aws::Structure end |
#type ⇒ String
The type of filter that you want to use.
Valid values are: ‘TERM_MATCH`. `TERM_MATCH` returns only products that match both the given filter field and the given value.
131 132 133 134 135 136 |
# File 'lib/aws-sdk-pricing/types.rb', line 131 class Filter < Struct.new( :type, :field, :value) include Aws::Structure end |
#value ⇒ String
The service code or attribute value that you want to filter by. If you are filtering by service code this is the actual service code, such as ‘AmazonEC2`. If you are filtering by attribute name, this is the attribute value that you want the returned products to match, such as a `Provisioned IOPS` volume.
131 132 133 134 135 136 |
# File 'lib/aws-sdk-pricing/types.rb', line 131 class Filter < Struct.new( :type, :field, :value) include Aws::Structure end |