get_pricing_service_attributes
Discover the filterable pricing attributes available for an AWS service, such as instanceType or location, to refine your pricing queries.
Instructions
Get filterable attributes available for an AWS service in the Pricing API.
**PURPOSE:** Discover what pricing dimensions (filters) are available for a specific AWS service.
**WORKFLOW:** Use this after get_pricing_service_codes() to see what filters you can apply to narrow down pricing queries.
**PARAMETERS:**
- service_code: AWS service code from get_pricing_service_codes() (e.g., 'AmazonEC2', 'AmazonRDS')
- region (optional): AWS region (e.g., 'us-east-1', 'eu-west-2'). Defaults to AWS_REGION env var. Set this to match the region you plan to query with get_pricing().
- filter (optional): Case-insensitive regex pattern to filter attribute names (e.g., "instance" matches "instanceType", "instanceFamily")
**RETURNS:** List of attribute names (e.g., 'instanceType', 'location', 'storageClass') that can be used as filters.
**NEXT STEPS:**
- Use get_pricing_attribute_values() to see valid values for each attribute
- Use these attributes in get_pricing() filters to get specific pricing data
**EXAMPLE:** For 'AmazonRDS' you might get ['engineCode', 'instanceType', 'deploymentOption', 'location'].
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filter | No | Optional case-insensitive regex pattern to filter service attribute names | |
| region | No | AWS region (e.g., "us-east-1", "eu-west-2"). Defaults to AWS_REGION env var (us-east-1). Attributes and values can differ by region, so set this to match the region you plan to query with get_pricing(). | |
| service_code | Yes | AWS service code (e.g., "AmazonEC2", "AmazonS3", "AmazonES") |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |