Amazon Billing And Cost Management Billing And Cost Management Cost Category Definition API

The Billing And Cost Management Cost Category Definition API from Amazon Billing And Cost Management — 3 operation(s) for billing and cost management cost category definition.

Operations 3

POST /#DeleteCostCategoryDefinition Delete Cost Category Definition #
POST /#DescribeCostCategoryDefinition Describe Cost Category Definition #
POST /#UpdateCostCategoryDefinition Update Cost Category Definition #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/amazon-billing-and-cost-management:amazon-billing-and-cost-management-cost-category-definition-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

amazon-billing-and-cost-management-cost-category-definition-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: AWS Cost Explorer Service Cost Category Definition API
  version: '2017-10-25'
  description: Generated from AWS's published Smithy model for AWS Cost Explorer Service. 3 operation(s).
  contact:
    name: Amazon Web Services
    url: https://aws.amazon.com/contact-us/
  license:
    name: Apache 2.0
    identifier: Apache-2.0
    url: https://github.com/aws/api-models-aws/blob/main/LICENSE
servers:
- url: https://ce.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
tags:
- name: Cost Category Definition
paths:
  /#DeleteCostCategoryDefinition:
    post:
      operationId: DeleteCostCategoryDefinition
      summary: Delete Cost Category Definition
      description: Deletes a cost category. Expenses from this month going forward will no longer be categorized with this cost category.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/DeleteCostCategoryDefinitionResponse'
        '400':
          description: LimitExceededException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/LimitExceededException'
        '404':
          description: ResourceNotFoundException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - AWSInsightsIndexService.DeleteCostCategoryDefinition
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/DeleteCostCategoryDefinitionRequest'
      tags:
      - Cost Category Definition
  /#DescribeCostCategoryDefinition:
    post:
      operationId: DescribeCostCategoryDefinition
      summary: Describe Cost Category Definition
      description: Returns the name, Amazon Resource Name (ARN), rules, definition, and effective dates of a cost category that's defined in the account. You have the option to use EffectiveOn to return a cost category that's active on a specific date. If there's no EffectiveOn specified, you see a Cost Category that's effective on the current date. If cost category is still effective, EffectiveEnd is omitted in the response.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/DescribeCostCategoryDefinitionResponse'
        '400':
          description: LimitExceededException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/LimitExceededException'
        '404':
          description: ResourceNotFoundException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - AWSInsightsIndexService.DescribeCostCategoryDefinition
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/DescribeCostCategoryDefinitionRequest'
      tags:
      - Cost Category Definition
  /#UpdateCostCategoryDefinition:
    post:
      operationId: UpdateCostCategoryDefinition
      summary: Update Cost Category Definition
      description: Updates an existing cost category. Changes made to the cost category rules will be used to categorize the current month’s expenses and future expenses. This won’t change categorization for the previous months.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/UpdateCostCategoryDefinitionResponse'
        '400':
          description: LimitExceededException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/LimitExceededException'
        '404':
          description: ResourceNotFoundException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '402':
          description: ServiceQuotaExceededException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ServiceQuotaExceededException'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - AWSInsightsIndexService.UpdateCostCategoryDefinition
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/UpdateCostCategoryDefinitionRequest'
      tags:
      - Cost Category Definition
components:
  schemas:
    DescribeCostCategoryDefinitionRequest:
      type: object
      properties:
        CostCategoryArn:
          type: string
          description: The unique identifier for your cost category.
        EffectiveOn:
          type: string
          description: The date when the cost category was effective.
      required:
      - CostCategoryArn
    CostCategoryRule:
      type: object
      properties:
        Value:
          type: string
        Rule:
          $ref: '#/components/schemas/Expression'
        InheritedValue:
          $ref: '#/components/schemas/CostCategoryInheritedValueDimension'
        Type:
          type: string
          enum:
          - REGULAR
          - INHERITED_VALUE
          description: You can define the CostCategoryRule rule type as either REGULAR or INHERITED_VALUE. The INHERITED_VALUE rule type adds the flexibility to define a rule that dynamically inherits the cost category value. This value is from the dimension value that's defined by CostCategoryInheritedValueDimension. For example, suppose that you want to costs to be dynamically grouped based on the value of a specific tag key. First, choose an inherited value rule type, and then choose the tag dimension and specify the tag key to use.
    CostCategoryInheritedValueDimension:
      type: object
      properties:
        DimensionName:
          type: string
          enum:
          - LINKED_ACCOUNT_NAME
          - TAG
          description: The name of the dimension that's used to group costs. If you specify LINKED_ACCOUNT_NAME, the cost category value is based on account name. If you specify TAG, the cost category value is based on the value of the specified tag key.
        DimensionKey:
          type: string
          description: The key to extract cost category values.
    DimensionValues:
      type: object
      properties:
        Key:
          type: string
          enum:
          - AZ
          - INSTANCE_TYPE
          - LINKED_ACCOUNT
          - PAYER_ACCOUNT
          - LINKED_ACCOUNT_NAME
          - OPERATION
          - PURCHASE_TYPE
          - REGION
          - SERVICE
          - SERVICE_CODE
          - USAGE_TYPE
          - USAGE_TYPE_GROUP
          - RECORD_TYPE
          - OPERATING_SYSTEM
          - TENANCY
          - SCOPE
          - PLATFORM
          - SUBSCRIPTION_ID
          - LEGAL_ENTITY_NAME
          - DEPLOYMENT_OPTION
          - DATABASE_ENGINE
          - CACHE_ENGINE
          - INSTANCE_TYPE_FAMILY
          - BILLING_ENTITY
          - RESERVATION_ID
          - RESOURCE_ID
          - RIGHTSIZING_TYPE
          - SAVINGS_PLANS_TYPE
          - SAVINGS_PLAN_ARN
          - PAYMENT_OPTION
          - AGREEMENT_END_DATE_TIME_AFTER
          - AGREEMENT_END_DATE_TIME_BEFORE
          - INVOICING_ENTITY
          - ANOMALY_TOTAL_IMPACT_ABSOLUTE
          - ANOMALY_TOTAL_IMPACT_PERCENTAGE
          - PRODUCT_ATTRIBUTE
          description: The names of the metadata types that you can use to filter and group your results. For example, AZ returns a list of Availability Zones. Not all dimensions are supported in each API. Refer to the documentation for each specific API to see what is supported. LINKED_ACCOUNT_NAME and SERVICE_CODE can only be used in CostCategoryRule. ANOMALY_TOTAL_IMPACT_ABSOLUTE and ANOMALY_TOTAL_IMPACT_PERCENTAGE can only be used in AnomalySubscriptions. Use PRODUCT_ATTRIBUTE only as the Dimension in GetDimensionValues. To filter or group by product attributes, use the ProductAttributes field of Expression or t
        Values:
          type: array
          items:
            type: string
          description: The metadata values that you can use to filter and group your results. You can use GetDimensionValues to find specific values.
        MatchOptions:
          type: array
          items:
            type: string
            enum:
            - EQUALS
            - ABSENT
            - STARTS_WITH
            - ENDS_WITH
            - CONTAINS
            - CASE_SENSITIVE
            - CASE_INSENSITIVE
            - GREATER_THAN_OR_EQUAL
          description: The match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category and Anomaly Subscriptions. Refer to the documentation for each specific API to see what is supported. The default values for MatchOptions are EQUALS and CASE_SENSITIVE.
    DeleteCostCategoryDefinitionRequest:
      type: object
      properties:
        CostCategoryArn:
          type: string
          description: The unique identifier for your cost category.
      required:
      - CostCategoryArn
    DeleteCostCategoryDefinitionResponse:
      type: object
      properties:
        CostCategoryArn:
          type: string
          description: The unique identifier for your cost category.
        EffectiveEnd:
          type: string
          description: The effective end date of the cost category as a result of deleting it. No costs after this date is categorized by the deleted cost category.
    Expression:
      type: object
      properties:
        Or:
          type: array
          items:
            $ref: '#/components/schemas/Expression'
          description: Return results that match either Dimension object.
        And:
          type: array
          items:
            $ref: '#/components/schemas/Expression'
          description: Return results that match both Dimension objects.
        Not:
          $ref: '#/components/schemas/Expression'
        Dimensions:
          $ref: '#/components/schemas/DimensionValues'
        Tags:
          $ref: '#/components/schemas/TagValues'
        CostCategories:
          $ref: '#/components/schemas/CostCategoryValues'
        ProductAttributes:
          $ref: '#/components/schemas/ProductAttributeValues'
    LimitExceededException:
      type: object
      properties:
        Message:
          type: string
    UpdateCostCategoryDefinitionResponse:
      type: object
      properties:
        CostCategoryArn:
          type: string
          description: The unique identifier for your cost category.
        EffectiveStart:
          type: string
          description: The cost category's effective start date. It can only be a billing start date (first day of the month).
    DescribeCostCategoryDefinitionResponse:
      type: object
      properties:
        CostCategory:
          $ref: '#/components/schemas/CostCategory'
    UpdateCostCategoryDefinitionRequest:
      type: object
      properties:
        CostCategoryArn:
          type: string
          description: The unique identifier for your cost category.
        EffectiveStart:
          type: string
          description: The cost category's effective start date. It can only be a billing start date (first day of the month). If the date isn't provided, it's the first day of the current month. Dates can't be before the previous twelve months, or in the future.
        RuleVersion:
          type: string
          enum:
          - CostCategoryExpression.v1
        Rules:
          type: array
          items:
            $ref: '#/components/schemas/CostCategoryRule'
          description: The Expression object used to categorize costs. For more information, see CostCategoryRule .
        DefaultValue:
          type: string
        SplitChargeRules:
          type: array
          items:
            $ref: '#/components/schemas/CostCategorySplitChargeRule'
          description: The split charge rules used to allocate your charges between your cost category values.
      required:
      - CostCategoryArn
      - RuleVersion
      - Rules
    ProductAttributeValues:
      type: object
      properties:
        Key:
          type: string
          description: 'The name of the product attribute, such as model. The keys that are available depend on the service. For the keys of each supported service, see ProductAttributeValues . Keys are case-sensitive. A key that doesn''t exist doesn''t return an error: EQUALS matches no costs, and ABSENT matches all costs of supported services.'
        Values:
          type: array
          items:
            type: string
          description: The specific values of the product attribute, such as Claude Sonnet 5 for the model key. Values are matched exactly, including case. To list the values of a key, use GetDimensionValues with Dimension set to PRODUCT_ATTRIBUTE and DimensionKey set to the key. To match costs that have no value for the key, set MatchOptions to ABSENT and omit Values. Otherwise, Values is required.
        MatchOptions:
          type: array
          items:
            type: string
            enum:
            - EQUALS
            - ABSENT
            - STARTS_WITH
            - ENDS_WITH
            - CONTAINS
            - CASE_SENSITIVE
            - CASE_INSENSITIVE
            - GREATER_THAN_OR_EQUAL
          description: 'The match options that you can use to filter your results. Valid values: EQUALS - Matches the values that you specify. ABSENT - Matches costs that have no value for the key. Omit Values. CASE_SENSITIVE - Use only with EQUALS. Values are always matched case-sensitively. Default values are EQUALS and CASE_SENSITIVE.'
      required:
      - Key
    CostCategoryProcessingStatus:
      type: object
      properties:
        Component:
          type: string
          enum:
          - COST_EXPLORER
          description: The Cost Management product name of the applied status.
        Status:
          type: string
          enum:
          - PROCESSING
          - APPLIED
          description: The process status for a specific cost category.
    CostCategorySplitChargeRule:
      type: object
      properties:
        Source:
          type: string
          description: The cost category value that you want to split. That value can't be used as a source or a target in other split charge rules. To indicate uncategorized costs, you can use an empty string as the source.
        Targets:
          type: array
          items:
            type: string
          description: The cost category values that you want to split costs across. These values can't be used as a source in other split charge rules.
        Method:
          type: string
          enum:
          - FIXED
          - PROPORTIONAL
          - EVEN
          description: The method that's used to define how to split your source costs across your targets. Proportional - Allocates charges across your targets based on the proportional weighted cost of each target. Fixed - Allocates charges across your targets based on your defined allocation percentage. >Even - Allocates costs evenly across all targets.
        Parameters:
          type: array
          items:
            $ref: '#/components/schemas/CostCategorySplitChargeRuleParameter'
          description: The parameters for a split charge method. This is only required for the FIXED method.
      required:
      - Source
      - Targets
      - Method
    CostCategoryValues:
      type: object
      properties:
        Key:
          type: string
        Values:
          type: array
          items:
            type: string
          description: The specific value of the cost category.
        MatchOptions:
          type: array
          items:
            type: string
            enum:
            - EQUALS
            - ABSENT
            - STARTS_WITH
            - ENDS_WITH
            - CONTAINS
            - CASE_SENSITIVE
            - CASE_INSENSITIVE
            - GREATER_THAN_OR_EQUAL
          description: The match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE.
    CostCategorySplitChargeRuleParameter:
      type: object
      properties:
        Type:
          type: string
          enum:
          - ALLOCATION_PERCENTAGES
          description: The parameter type.
        Values:
          type: array
          items:
            type: string
          description: The parameter values.
      required:
      - Type
      - Values
    TagValues:
      type: object
      properties:
        Key:
          type: string
          description: The key for the tag.
        Values:
          type: array
          items:
            type: string
          description: The specific value of the tag.
        MatchOptions:
          type: array
          items:
            type: string
            enum:
            - EQUALS
            - ABSENT
            - STARTS_WITH
            - ENDS_WITH
            - CONTAINS
            - CASE_SENSITIVE
            - CASE_INSENSITIVE
            - GREATER_THAN_OR_EQUAL
          description: The match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions are EQUALS and CASE_SENSITIVE.
    ResourceNotFoundException:
      type: object
      properties:
        Message:
          type: string
        ResourceName:
          type: string
    CostCategory:
      type: object
      properties:
        CostCategoryArn:
          type: string
          description: The unique identifier for your cost category.
        EffectiveStart:
          type: string
          description: The effective start date of your cost category.
        EffectiveEnd:
          type: string
          description: The effective end date of your cost category.
        Name:
          type: string
        RuleVersion:
          type: string
          enum:
          - CostCategoryExpression.v1
        Rules:
          type: array
          items:
            $ref: '#/components/schemas/CostCategoryRule'
          description: The rules are processed in order. If there are multiple rules that match the line item, then the first rule to match is used to determine that cost category value.
        SplitChargeRules:
          type: array
          items:
            $ref: '#/components/schemas/CostCategorySplitChargeRule'
          description: The split charge rules that are used to allocate your charges between your cost category values.
        ProcessingStatus:
          type: array
          items:
            $ref: '#/components/schemas/CostCategoryProcessingStatus'
          description: The list of processing statuses for Cost Management products for a specific cost category.
        DefaultValue:
          type: string
      required:
      - CostCategoryArn
      - EffectiveStart
      - Name
      - RuleVersion
      - Rules
    ServiceQuotaExceededException:
      type: object
      properties:
        Message:
          type: string
  securitySchemes:
    sigv4:
      type: apiKey
      in: header
      name: Authorization
      description: AWS Signature Version 4. The Authorization header carries an AWS4-HMAC-SHA256 signature over the canonical request, with X-Amz-Date (and X-Amz-Security-Token for temporary credentials). Not a bearer token.
      x-aws-sigv4:
        signingName: ce
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/582e55931c45b944739742a2c1620b6026dd2d13/models/cost-explorer/service/2017-10-25/cost-explorer-2017-10-25.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)