ProductAttributeValues
The product attribute values used for filtering the costs by key and value pairs. Product attributes are supported for Amazon Bedrock only.
Contents
- Key
-
The name of the product attribute to filter on. Valid values are the following:
-
feature– The feature that was used, such asOn-demand Inference. -
inferenceType– The type of inference usage, such asInput tokensorOutput tokens. -
model– The model, such asClaude Sonnet 5orClaude Haiku 4.5. -
provider– The model provider, such asAnthropic,Cohere, orAmazon.
Keys are case-sensitive.
Type: String
Length Constraints: Minimum length of 0. Maximum length of 1024.
Pattern:
[\S\s]*Required: Yes
-
- MatchOptions
-
The match options for the
ProductAttributesfilter. Valid values:-
ABSENT– Matches costs that have no value for the attribute. -
CASE_SENSITIVE– Requires an exact case match. -
EQUALS– Matches costs where the attribute equals the specified value.
Specify either
EQUALSorABSENT. You can addCASE_SENSITIVEtoEQUALS, but you can't use it by itself or withABSENT.Type: Array of strings
Valid Values:
EQUALS | ABSENT | STARTS_WITH | ENDS_WITH | CONTAINS | GREATER_THAN_OR_EQUAL | CASE_SENSITIVE | CASE_INSENSITIVERequired: No
-
- Values
-
The specific values of the product attribute, such as
Claude Sonnet 5for themodelkey. Values are matched exactly.Valuesis required unlessMatchOptionsisABSENT. To match costs that have no value for the key, setMatchOptionstoABSENTand omitValues.Type: Array of strings
Array Members: Minimum number of 1 item.
Length Constraints: Minimum length of 0. Maximum length of 1024.
Pattern:
[\S\s]*Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: