Amazon Billing And Cost Management Tags API

Manage cost allocation tags

GitHub OpenAPI

Operations 6

POST /#GetTags Get Tags #
POST /#ListTagsForResource List Tags For Resource #
GET /tags/{ResourceArn} List Tags For Resource #
POST /tags/{ResourceArn} Tag Resource #
DELETE /tags/{ResourceArn} Untag Resource #
POST /#ListCostAllocationTags List Cost Allocation Tags #

Documentation

Specifications

Schemas & Data

Other Resources

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-tags-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-tags-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: AWS Cost Explorer Service Tags API
  version: '2017-10-25'
  description: Generated from AWS's published Smithy model for AWS Cost Explorer Service. 6 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: []
paths:
  /#GetTags:
    post:
      operationId: GetTags
      summary: Get Tags
      description: Queries for available tag keys and tag values for a specified period. You can search the tag values for
        an arbitrary string.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/GetTagsResponse'
        '400':
          description: BillExpirationException; BillingViewHealthStatusException; DataUnavailableException; InvalidNextTokenException;
            LimitExceededException; RequestChangedException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/BillExpirationException'
        '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.GetTags
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/GetTagsRequest'
      tags:
      - Tags
  /#ListTagsForResource:
    post:
      operationId: ListTagsForResource
      summary: List Tags For Resource
      description: Returns a list of resource tags associated with the resource specified by the Amazon Resource Name (ARN).
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ListTagsForResourceResponse'
        '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.ListTagsForResource
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/ListTagsForResourceRequest'
      tags:
      - Tags
  /tags/{ResourceArn}:
    get:
      operationId: ListTagsForResource
      summary: List Tags For Resource
      description: A list the tags for a resource.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BillingconductorListTagsForResourceResponse'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BillingconductorAccessDeniedException'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BillingconductorInternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BillingconductorResourceNotFoundException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BillingconductorThrottlingException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BillingconductorValidationException'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BillingconductorListTagsForResourceRequest'
      tags:
      - Tags
      servers:
      - url: https://billingconductor.{region}.amazonaws.com
        variables:
          region:
            default: us-east-1
      security:
      - sigv4_billingconductor: []
    post:
      operationId: TagResource
      summary: Tag Resource
      description: Associates the specified tags to a resource with the specified resourceArn. If existing tags on a resource
        are not specified in the request parameters, they are not changed.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TagResourceResponse'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BillingconductorAccessDeniedException'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BillingconductorInternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BillingconductorResourceNotFoundException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BillingconductorThrottlingException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BillingconductorValidationException'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BillingconductorTagResourceRequest'
      tags:
      - Tags
      servers:
      - url: https://billingconductor.{region}.amazonaws.com
        variables:
          region:
            default: us-east-1
      security:
      - sigv4_billingconductor: []
    delete:
      operationId: UntagResource
      summary: Untag Resource
      description: Deletes specified tags from a resource.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UntagResourceResponse'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BillingconductorAccessDeniedException'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BillingconductorInternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BillingconductorResourceNotFoundException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BillingconductorThrottlingException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BillingconductorValidationException'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BillingconductorUntagResourceRequest'
      tags:
      - Tags
      servers:
      - url: https://billingconductor.{region}.amazonaws.com
        variables:
          region:
            default: us-east-1
      security:
      - sigv4_billingconductor: []
  /#ListCostAllocationTags:
    post:
      operationId: ListCostAllocationTags
      summary: List Cost Allocation Tags
      description: Get a list of cost allocation tags. All inputs in the API are optional and serve as filters. By default,
        all cost allocation tags are returned.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ListCostAllocationTagsResponse'
        '400':
          description: InvalidNextTokenException; LimitExceededException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/InvalidNextTokenException'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - AWSInsightsIndexService.ListCostAllocationTags
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/ListCostAllocationTagsRequest'
      tags:
      - Tags
components:
  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
    sigv4_billingconductor:
      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: billingconductor
  schemas:
    BillExpirationException:
      type: object
      properties:
        Message:
          type: string
    BillingconductorAccessDeniedException:
      type: object
      properties:
        Message:
          type: string
      required:
      - Message
    BillingconductorInternalServerException:
      type: object
      properties:
        Message:
          type: string
        RetryAfterSeconds:
          type: integer
          description: Number of seconds you can retry after the call.
      required:
      - Message
    BillingconductorListTagsForResourceRequest:
      type: object
      properties:
        ResourceArn:
          type: string
          description: The Amazon Resource Name (ARN) that identifies the resource to list the tags.
      required:
      - ResourceArn
    BillingconductorListTagsForResourceResponse:
      type: object
      properties:
        Tags:
          type: object
          additionalProperties:
            type: string
          description: The tags for the resource.
    BillingconductorResourceNotFoundException:
      type: object
      properties:
        Message:
          type: string
        ResourceId:
          type: string
          description: Resource identifier that was not found.
        ResourceType:
          type: string
          description: Resource type that was not found.
      required:
      - Message
      - ResourceId
      - ResourceType
    BillingconductorTagResourceRequest:
      type: object
      properties:
        ResourceArn:
          type: string
          description: The Amazon Resource Name (ARN) of the resource to which to add tags.
        Tags:
          type: object
          additionalProperties:
            type: string
          description: The tags to add to the resource as a list of key-value pairs.
      required:
      - ResourceArn
      - Tags
    BillingconductorThrottlingException:
      type: object
      properties:
        Message:
          type: string
        RetryAfterSeconds:
          type: integer
          description: Number of seconds you can safely retry after the call.
      required:
      - Message
    BillingconductorUntagResourceRequest:
      type: object
      properties:
        ResourceArn:
          type: string
          description: The Amazon Resource Name (ARN) of the resource to which to delete tags.
        TagKeys:
          type: array
          items:
            type: string
          description: The tags to delete from the resource as a list of key-value pairs.
      required:
      - ResourceArn
      - TagKeys
    BillingconductorValidationException:
      type: object
      properties:
        Message:
          type: string
        Reason:
          type: string
          enum:
          - UNKNOWN_OPERATION
          - CANNOT_PARSE
          - FIELD_VALIDATION_FAILED
          - OTHER
          - PRIMARY_NOT_ASSOCIATED
          - PRIMARY_CANNOT_DISASSOCIATE
          - ACCOUNTS_NOT_ASSOCIATED
          - ACCOUNTS_ALREADY_ASSOCIATED
          - ILLEGAL_PRIMARY_ACCOUNT
          - ILLEGAL_ACCOUNTS
          - MISMATCHED_BILLINGGROUP_ARN
          - MISSING_BILLINGGROUP
          - MISMATCHED_CUSTOMLINEITEM_ARN
          - ILLEGAL_BILLING_PERIOD
          - ILLEGAL_BILLING_PERIOD_RANGE
          - TOO_MANY_ACCOUNTS_IN_REQUEST
          - DUPLICATE_ACCOUNT
          - INVALID_BILLING_GROUP_STATUS
          - MISMATCHED_PRICINGPLAN_ARN
          - MISSING_PRICINGPLAN
          - MISMATCHED_PRICINGRULE_ARN
          - DUPLICATE_PRICINGRULE_ARNS
          - MISSING_COSTCATEGORY
          - ILLEGAL_EXPRESSION
          - ILLEGAL_SCOPE
          - ILLEGAL_SERVICE
          - PRICINGRULES_NOT_EXIST
          - PRICINGRULES_ALREADY_ASSOCIATED
          - PRICINGRULES_NOT_ASSOCIATED
          - INVALID_TIME_RANGE
          - INVALID_BILLINGVIEW_ARN
          - MISMATCHED_BILLINGVIEW_ARN
          - ILLEGAL_CUSTOMLINEITEM
          - MISSING_CUSTOMLINEITEM
          - ILLEGAL_CUSTOMLINEITEM_UPDATE
          - TOO_MANY_CUSTOMLINEITEMS_IN_REQUEST
          - ILLEGAL_CHARGE_DETAILS
          - ILLEGAL_UPDATE_CHARGE_DETAILS
          - INVALID_ARN
          - ILLEGAL_RESOURCE_ARNS
          - ILLEGAL_CUSTOMLINEITEM_MODIFICATION
          - MISSING_LINKED_ACCOUNT_IDS
          - MULTIPLE_LINKED_ACCOUNT_IDS
          - MISSING_PRICING_PLAN_ARN
          - MULTIPLE_PRICING_PLAN_ARN
          - ILLEGAL_CHILD_ASSOCIATE_RESOURCE
          - CUSTOM_LINE_ITEM_ASSOCIATION_EXISTS
          - INVALID_BILLING_GROUP
          - INVALID_BILLING_PERIOD_FOR_OPERATION
          - ILLEGAL_BILLING_ENTITY
          - ILLEGAL_MODIFIER_PERCENTAGE
          - ILLEGAL_TYPE
          - ILLEGAL_BILLING_GROUP_TYPE
          - ILLEGAL_BILLING_GROUP_PRICING_PLAN
          - ILLEGAL_ENDED_BILLINGGROUP
          - ILLEGAL_TIERING_INPUT
          - ILLEGAL_OPERATION
          - ILLEGAL_USAGE_TYPE
          - INVALID_SKU_COMBO
          - INVALID_FILTER
          - TOO_MANY_AUTO_ASSOCIATE_BILLING_GROUPS
          - CANNOT_DELETE_AUTO_ASSOCIATE_BILLING_GROUP
          - ILLEGAL_ACCOUNT_ID
          - BILLING_GROUP_ALREADY_EXIST_IN_CURRENT_BILLING_PERIOD
          - ILLEGAL_COMPUTATION_RULE
          - ILLEGAL_LINE_ITEM_FILTER
          description: The reason the request's validation failed.
        Fields:
          type: array
          items:
            $ref: '#/components/schemas/BillingconductorValidationExceptionField'
          description: The fields that caused the error, if applicable.
      required:
      - Message
    BillingconductorValidationExceptionField:
      type: object
      properties:
        Name:
          type: string
          description: The field name.
        Message:
          type: string
          description: The message describing why the field failed validation.
      required:
      - Name
      - Message
    CostAllocationTag:
      type: object
      properties:
        TagKey:
          type: string
          description: The key for the cost allocation tag.
        Type:
          type: string
          enum:
          - AWSGenerated
          - UserDefined
          description: The type of cost allocation tag. You can use AWSGenerated or UserDefined type tags. AWSGenerated type
            tags are tags that Amazon Web Services defines and applies to support Amazon Web Services resources for cost allocation
            purposes. UserDefined type tags are tags that you define, create, and apply to resources.
        Status:
          type: string
          enum:
          - Active
          - Inactive
          description: The status of a cost allocation tag.
        LastUpdatedDate:
          type: string
          description: The last date that the tag was either activated or deactivated.
        LastUsedDate:
          type: string
          description: The last month that the tag was used on an Amazon Web Services resource.
      required:
      - TagKey
      - Type
      - Status
    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.
    DateInterval:
      type: object
      properties:
        Start:
          type: string
          description: The beginning of the time period. The start date is inclusive. For example, if start is 2017-01-01,
            Amazon Web Services retrieves cost and usage data starting at 2017-01-01 up to the end date. The start date must
            be equal to or no later than the current date to avoid a validation error.
        End:
          type: string
          description: The end of the time period. The end date is exclusive. For example, if end is 2017-05-01, Amazon Web
            Services retrieves cost and usage data from the start date up to, but not including, 2017-05-01.
      required:
      - Start
      - End
    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.
    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'
    GetTagsRequest:
      type: object
      properties:
        SearchString:
          type: string
          description: The value that you want to search for.
        TimePeriod:
          $ref: '#/components/schemas/DateInterval'
        TagKey:
          type: string
          description: The key of the tag that you want to return values for.
        Filter:
          $ref: '#/components/schemas/Expression'
        SortBy:
          type: array
          items:
            $ref: '#/components/schemas/SortDefinition'
          description: 'The value that you want to sort the data by. The key represents cost and usage metrics. The following
            values are supported: BlendedCost UnblendedCost AmortizedCost NetAmortizedCost NetUnblendedCost UsageQuantity
            NormalizedUsageAmount The supported values for SortOrder are ASCENDING and DESCENDING. When you use SortBy, NextPageToken
            and SearchString aren''t supported.'
        BillingViewArn:
          type: string
          description: The Amazon Resource Name (ARN) that uniquely identifies a specific billing view. The ARN is used to
            specify which particular billing view you want to interact with or retrieve information from when making API calls
            related to Amazon Web Services Billing and Cost Management features. The BillingViewArn can be retrieved by calling
            the ListBillingViews API.
        MaxResults:
          type: integer
          description: This field is only used when SortBy is provided in the request. The maximum number of objects that
            are returned for this request. If MaxResults isn't specified with SortBy, the request returns 1000 results as
            the default value for this parameter. For GetTags, MaxResults has an upper quota of 1000.
        NextPageToken:
          type: string
          description: The token to retrieve the next set of results. Amazon Web Services provides the token when the response
            from a previous call has more results than the maximum page size.
      required:
      - TimePeriod
    GetTagsResponse:
      type: object
      properties:
        NextPageToken:
          type: string
          description: The token for the next set of retrievable results. Amazon Web Services provides the token when the
            response from a previous call has more results than the maximum page size.
        Tags:
          type: array
          items:
            type: string
          description: The tags that match your request.
        ReturnSize:
          type: integer
          description: The number of query results that Amazon Web Services returns at a time.
        TotalSize:
          type: integer
          description: The total number of query results.
      required:
      - Tags
      - ReturnSize
      - TotalSize
    InvalidNextTokenException:
      type: object
      properties:
        Message:
          type: string
    LimitExceededException:
      type: object
      properties:
        Message:
          type: string
    ListCostAllocationTagsRequest:
      type: object
      properties:
        Status:
          type: string
          enum:
          - Active
          - Inactive
          description: The status of cost allocation tag keys that are returned for this request.
        TagKeys:
          type: array
          items:
            type: string
          description: The list of cost allocation tag keys that are returned for this request.
        Type:
          type: string
          enum:
          - AWSGenerated
          - UserDefined
          description: The type of CostAllocationTag object that are returned for this request. The AWSGenerated type tags
            are tags that Amazon Web Services defines and applies to support Amazon Web Services resources for cost allocation
            purposes. The UserDefined type tags are tags that you define, create, and apply to resources.
        NextToken:
          type: string
          description: The token to retrieve the next set of results. Amazon Web Services provides the token when the response
            from a previous call has more results than the maximum page size.
        MaxResults:
          type: integer
          description: The maximum number of objects that are returned for this request. By default, the request returns 100
            results.
    ListCostAllocationTagsResponse:
      type: object
      properties:
        CostAllocationTags:
          type: array
          items:
            $ref: '#/components/schemas/CostAllocationTag'
          description: A list of cost allocation tags that includes the detailed metadata for each one.
        NextToken:
          type: string
          description: The token to retrieve the next set of results. Amazon Web Services provides the token when the response
            from a previous call has more results than the maximum page size.
    ListTagsForResourceRequest:
      type: object
      properties:
        ResourceArn:
          type: string
          description: The Amazon Resource Name (ARN) of the resource. For a list of supported resources, see ResourceTag.
      required:
      - ResourceArn
    ListTagsForResourceResponse:
      type: object
      properties:
        ResourceTags:
          type: array
          items:
            $ref: '#/components/schemas/ResourceTag'
          description: A list of tag key value pairs that are associated with the resource.
    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
    ResourceNotFoundException:
      type: object
      properties:
        Message:
          type: string
        ResourceName:
          type: string
    ResourceTag:
      type: object
      properties:
        Key:
          type: string
          description: The key that's associated with the tag.
        Value:
          type: string
          description: The value that's associated with the tag.
      required:
      - Key
      - Value
    SortDefinition:
      type: object
      properties:
        Key:
          type: string
          description: The key that's used to sort the data.
        SortOrder:
          type: string
          enum:
          - ASCENDING
          - DESCENDING
          description: The order that's used to sort the data.
      required:
      - Key
    TagResourceResponse:
      type: object
      properties: {}
    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.
    UntagResourceResponse:
      type: object
      properties: {}
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/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)
  sources:
  - https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/cost-explorer/service/2017-10-25/cost-explorer-2017-10-25.json
  - https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/billingconductor/service/2021-07-30/billingconductor-2021-07-30.json