{
  "version": "2.0",
  "service": "<p> You can use the Billing API to programatically list the billing views available to you for a given time period. A billing view represents a set of billing data. </p> <p>The Billing API provides the following endpoint:</p> <p> <code>https://billing.us-east-1.api.aws</code> </p>",
  "operations": {
    "AssociateSourceViews": "<p> Associates one or more source billing views with an existing billing view. This allows creating aggregate billing views that combine data from multiple sources. </p>",
    "CreateBillingView": "<p> Creates a billing view with the specified billing view attributes. </p>",
    "DeleteBillingView": "<p>Deletes the specified billing view.</p>",
    "DisassociateSourceViews": "<p> Removes the association between one or more source billing views and an existing billing view. This allows modifying the composition of aggregate billing views. </p>",
    "GetBillingView": "<p>Returns the metadata associated to the specified billing view ARN. </p>",
    "GetResourcePolicy": "<p>Returns the resource-based policy document attached to the resource in <code>JSON</code> format. </p>",
    "ListBillingViews": "<p>Lists the billing views available for a given time period. </p> <p>Every Amazon Web Services account has a unique <code>PRIMARY</code> billing view that represents the billing data available by default. Accounts that use Billing Conductor also have <code>BILLING_GROUP</code> billing views representing pro forma costs associated with each created billing group.</p>",
    "ListSourceViewsForBillingView": "<p>Lists the source views (managed Amazon Web Services billing views) associated with the billing view. </p>",
    "ListTagsForResource": "<p>Lists tags associated with the billing view resource. </p>",
    "TagResource": "<p> An API operation for adding one or more tags (key-value pairs) to a resource. </p>",
    "UntagResource": "<p> Removes one or more tags from a resource. Specify only tag keys in your request. Don't specify the value. </p>",
    "UpdateBillingView": "<p>An API to update the attributes of the billing view. </p>"
  },
  "shapes": {
    "AccessDeniedException": {
      "base": "<p>You don't have sufficient access to perform this action.</p>",
      "refs": {}
    },
    "AccountId": {
      "base": null,
      "refs": {
        "BillingViewElement$ownerAccountId": "<p>The account owner of the billing view. </p>",
        "BillingViewElement$sourceAccountId": "<p> The Amazon Web Services account ID that owns the source billing view, if this is a derived billing view. </p>",
        "BillingViewListElement$ownerAccountId": "<p> The list of owners of the Billing view. </p>",
        "BillingViewListElement$sourceAccountId": "<p> The Amazon Web Services account ID that owns the source billing view, if this is a derived billing view. </p>",
        "ListBillingViewsRequest$ownerAccountId": "<p> The list of owners of the billing view. </p>",
        "ListBillingViewsRequest$sourceAccountId": "<p> Filters the results to include only billing views that use the specified account as a source. </p>"
      }
    },
    "ActiveTimeRange": {
      "base": "<p>A time range with a start and end time.</p>",
      "refs": {
        "ListBillingViewsRequest$activeTimeRange": "<p> The time range for the billing views listed. <code>PRIMARY</code> billing view is always listed. <code>BILLING_GROUP</code> billing views are listed for time ranges when the associated billing group resource in Billing Conductor is active. The time range must be within one calendar month. </p>"
      }
    },
    "AssociateSourceViewsRequest": {
      "base": null,
      "refs": {}
    },
    "AssociateSourceViewsResponse": {
      "base": null,
      "refs": {}
    },
    "BillingViewArn": {
      "base": null,
      "refs": {
        "AssociateSourceViewsRequest$arn": "<p> The Amazon Resource Name (ARN) of the billing view to associate source views with. </p>",
        "AssociateSourceViewsResponse$arn": "<p> The ARN of the billing view that the source views were associated with. </p>",
        "BillingViewArnList$member": null,
        "BillingViewElement$arn": "<p> The Amazon Resource Name (ARN) that can be used to uniquely identify the billing view. </p>",
        "BillingViewListElement$arn": "<p>The Amazon Resource Name (ARN) that can be used to uniquely identify the billing view. </p>",
        "BillingViewSourceViewsList$member": null,
        "CreateBillingViewResponse$arn": "<p> The Amazon Resource Name (ARN) that can be used to uniquely identify the billing view. </p>",
        "DeleteBillingViewRequest$arn": "<p> The Amazon Resource Name (ARN) that can be used to uniquely identify the billing view. </p>",
        "DeleteBillingViewResponse$arn": "<p> The Amazon Resource Name (ARN) that can be used to uniquely identify the billing view. </p>",
        "DisassociateSourceViewsRequest$arn": "<p> The Amazon Resource Name (ARN) of the billing view to disassociate source views from. </p>",
        "DisassociateSourceViewsResponse$arn": "<p> The ARN of the billing view that the source views were disassociated from. </p>",
        "GetBillingViewRequest$arn": "<p> The Amazon Resource Name (ARN) that can be used to uniquely identify the billing view. </p>",
        "ListSourceViewsForBillingViewRequest$arn": "<p> The Amazon Resource Name (ARN) that can be used to uniquely identify the billing view. </p>",
        "UpdateBillingViewRequest$arn": "<p> The Amazon Resource Name (ARN) that can be used to uniquely identify the billing view. </p>",
        "UpdateBillingViewResponse$arn": "<p> The Amazon Resource Name (ARN) that can be used to uniquely identify the billing view. </p>"
      }
    },
    "BillingViewArnList": {
      "base": null,
      "refs": {
        "ListBillingViewsRequest$arns": "<p>The Amazon Resource Name (ARN) that can be used to uniquely identify the billing view. </p>"
      }
    },
    "BillingViewDescription": {
      "base": null,
      "refs": {
        "BillingViewElement$description": "<p> The description of the billing view. </p>",
        "BillingViewListElement$description": "<p> The description of the billing view. </p>",
        "CreateBillingViewRequest$description": "<p> The description of the billing view. </p>",
        "UpdateBillingViewRequest$description": "<p> The description of the billing view. </p>"
      }
    },
    "BillingViewElement": {
      "base": "<p>The metadata associated to the billing view. </p>",
      "refs": {
        "GetBillingViewResponse$billingView": "<p>The billing view element associated with the specified ARN. </p>"
      }
    },
    "BillingViewHealthStatus": {
      "base": "<p> Represents the health status of a billing view, including a status code and optional reasons for the status. </p>",
      "refs": {
        "BillingViewElement$healthStatus": "<p> The current health status of the billing view. </p>",
        "BillingViewListElement$healthStatus": "<p> The current health status of the billing view. </p>"
      }
    },
    "BillingViewHealthStatusException": {
      "base": "<p> Exception thrown when a billing view's health status prevents an operation from being performed. This may occur if the billing view is in a state other than <code>HEALTHY</code>.</p>",
      "refs": {}
    },
    "BillingViewList": {
      "base": null,
      "refs": {
        "ListBillingViewsResponse$billingViews": "<p>A list of <code>BillingViewListElement</code> retrieved.</p>"
      }
    },
    "BillingViewListElement": {
      "base": "<p>A representation of a billing view.</p>",
      "refs": {
        "BillingViewList$member": null
      }
    },
    "BillingViewName": {
      "base": null,
      "refs": {
        "BillingViewElement$name": "<p> The account name of the billing view. </p>",
        "BillingViewListElement$name": "<p> A list of names of the Billing view. </p>",
        "CreateBillingViewRequest$name": "<p> The name of the billing view. </p>",
        "UpdateBillingViewRequest$name": "<p> The name of the billing view. </p>"
      }
    },
    "BillingViewSourceViewsList": {
      "base": null,
      "refs": {
        "AssociateSourceViewsRequest$sourceViews": "<p> A list of ARNs of the source billing views to associate. </p>",
        "CreateBillingViewRequest$sourceViews": "<p>A list of billing views used as the data source for the custom billing view.</p>",
        "DisassociateSourceViewsRequest$sourceViews": "<p> A list of ARNs of the source billing views to disassociate. </p>",
        "ListSourceViewsForBillingViewResponse$sourceViews": "<p>A list of billing views used as the data source for the custom billing view. </p>"
      }
    },
    "BillingViewStatus": {
      "base": null,
      "refs": {
        "BillingViewHealthStatus$statusCode": "<p>The current health status code of the billing view.</p>"
      }
    },
    "BillingViewStatusReason": {
      "base": null,
      "refs": {
        "BillingViewStatusReasons$member": null
      }
    },
    "BillingViewStatusReasons": {
      "base": null,
      "refs": {
        "BillingViewHealthStatus$statusReasons": "<p>A list of reasons explaining the current health status, if applicable.</p>"
      }
    },
    "BillingViewType": {
      "base": null,
      "refs": {
        "BillingViewElement$billingViewType": "<p>The type of billing group. </p>",
        "BillingViewListElement$billingViewType": "<p>The type of billing view.</p>",
        "BillingViewTypeList$member": null
      }
    },
    "BillingViewTypeList": {
      "base": null,
      "refs": {
        "ListBillingViewsRequest$billingViewTypes": "<p>The type of billing view.</p>"
      }
    },
    "BillingViewsMaxResults": {
      "base": null,
      "refs": {
        "ListBillingViewsRequest$maxResults": "<p>The maximum number of billing views to retrieve. Default is 100. </p>",
        "ListSourceViewsForBillingViewRequest$maxResults": "<p> The number of entries a paginated response contains. </p>"
      }
    },
    "Boolean": {
      "base": null,
      "refs": {
        "DeleteBillingViewRequest$force": "<p> If set to true, forces deletion of the billing view even if it has derived resources (e.g. other billing views or budgets). Use with caution as this may break dependent resources. </p>"
      }
    },
    "ClientToken": {
      "base": null,
      "refs": {
        "CreateBillingViewRequest$clientToken": "<p>A unique, case-sensitive identifier you specify to ensure idempotency of the request. Idempotency ensures that an API request completes no more than one time. If the original request completes successfully, any subsequent retries complete successfully without performing any further actions with an idempotent request. </p>"
      }
    },
    "ConflictException": {
      "base": "<p> The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request. </p>",
      "refs": {}
    },
    "CostCategoryName": {
      "base": null,
      "refs": {
        "CostCategoryValues$key": "<p> The unique name of the Cost Category. </p>"
      }
    },
    "CostCategoryValues": {
      "base": "<p> The Cost Categories values used for filtering the costs. </p>",
      "refs": {
        "Expression$costCategories": "<p> The filter that's based on <code>CostCategory</code> values. </p>"
      }
    },
    "CreateBillingViewRequest": {
      "base": null,
      "refs": {}
    },
    "CreateBillingViewResponse": {
      "base": null,
      "refs": {}
    },
    "DeleteBillingViewRequest": {
      "base": null,
      "refs": {}
    },
    "DeleteBillingViewResponse": {
      "base": null,
      "refs": {}
    },
    "Dimension": {
      "base": null,
      "refs": {
        "DimensionValues$key": "<p> The names of the metadata types that you can use to filter and group your results. </p>"
      }
    },
    "DimensionValues": {
      "base": "<p> The metadata that you can use to filter and group your results. </p>",
      "refs": {
        "Expression$dimensions": "<p> The specific <code>Dimension</code> to use for <code>Expression</code>. </p>"
      }
    },
    "DisassociateSourceViewsRequest": {
      "base": null,
      "refs": {}
    },
    "DisassociateSourceViewsResponse": {
      "base": null,
      "refs": {}
    },
    "ErrorMessage": {
      "base": null,
      "refs": {
        "AccessDeniedException$message": null,
        "BillingViewHealthStatusException$message": null,
        "ConflictException$message": null,
        "InternalServerException$message": null,
        "ResourceNotFoundException$message": null,
        "ServiceQuotaExceededException$message": null,
        "ThrottlingException$message": null,
        "ValidationException$message": null,
        "ValidationExceptionField$message": "<p>The message describing why the field failed validation.</p>"
      }
    },
    "Expression": {
      "base": "<p> See <a href=\"https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_billing_Expression.html\">Expression</a>. Billing view only supports <code>LINKED_ACCOUNT</code>, <code>Tags</code>, and <code>CostCategories</code>. </p>",
      "refs": {
        "BillingViewElement$dataFilterExpression": "<p> See <a href=\"https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_billing_Expression.html\">Expression</a>. Billing view only supports <code>LINKED_ACCOUNT</code>, <code>Tags</code>, and <code>CostCategories</code>. </p>",
        "CreateBillingViewRequest$dataFilterExpression": "<p> See <a href=\"https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_billing_Expression.html\">Expression</a>. Billing view only supports <code>LINKED_ACCOUNT</code>, <code>Tags</code>, and <code>CostCategories</code>. </p>",
        "UpdateBillingViewRequest$dataFilterExpression": "<p>See <a href=\"https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_billing_Expression.html\">Expression</a>. Billing view only supports <code>LINKED_ACCOUNT</code>, <code>Tags</code>, and <code>CostCategories</code>. </p>"
      }
    },
    "FieldName": {
      "base": null,
      "refs": {
        "ValidationExceptionField$name": "<p>The name of the field.</p>"
      }
    },
    "GetBillingViewRequest": {
      "base": null,
      "refs": {}
    },
    "GetBillingViewResponse": {
      "base": null,
      "refs": {}
    },
    "GetResourcePolicyRequest": {
      "base": null,
      "refs": {}
    },
    "GetResourcePolicyResponse": {
      "base": null,
      "refs": {}
    },
    "Integer": {
      "base": null,
      "refs": {
        "BillingViewElement$derivedViewCount": "<p> The number of billing views that use this billing view as a source. </p>",
        "BillingViewElement$sourceViewCount": "<p> The number of source views associated with this billing view. </p>"
      }
    },
    "InternalServerException": {
      "base": "<p>The request processing failed because of an unknown error, exception, or failure. </p>",
      "refs": {}
    },
    "ListBillingViewsRequest": {
      "base": null,
      "refs": {}
    },
    "ListBillingViewsResponse": {
      "base": null,
      "refs": {}
    },
    "ListSourceViewsForBillingViewRequest": {
      "base": null,
      "refs": {}
    },
    "ListSourceViewsForBillingViewResponse": {
      "base": null,
      "refs": {}
    },
    "ListTagsForResourceRequest": {
      "base": null,
      "refs": {}
    },
    "ListTagsForResourceResponse": {
      "base": null,
      "refs": {}
    },
    "PageToken": {
      "base": null,
      "refs": {
        "ListBillingViewsRequest$nextToken": "<p>The pagination token that is used on subsequent calls to list billing views.</p>",
        "ListBillingViewsResponse$nextToken": "<p>The pagination token to use on subsequent calls to list billing views. </p>",
        "ListSourceViewsForBillingViewRequest$nextToken": "<p> The pagination token that is used on subsequent calls to list billing views. </p>",
        "ListSourceViewsForBillingViewResponse$nextToken": "<p> The pagination token that is used on subsequent calls to list billing views. </p>"
      }
    },
    "PolicyDocument": {
      "base": null,
      "refs": {
        "GetResourcePolicyResponse$policy": "<p>The resource-based policy document attached to the resource in <code>JSON</code> format. </p>"
      }
    },
    "QuotaCode": {
      "base": null,
      "refs": {
        "ServiceQuotaExceededException$quotaCode": "<p> The container for the <code>quotaCode</code>. </p>"
      }
    },
    "ResourceArn": {
      "base": null,
      "refs": {
        "GetResourcePolicyRequest$resourceArn": "<p>The Amazon Resource Name (ARN) of the billing view resource to which the policy is attached to. </p>",
        "GetResourcePolicyResponse$resourceArn": "<p>The Amazon Resource Name (ARN) of the billing view resource to which the policy is attached to. </p>",
        "ListTagsForResourceRequest$resourceArn": "<p> The Amazon Resource Name (ARN) of the resource. </p>",
        "TagResourceRequest$resourceArn": "<p> The Amazon Resource Name (ARN) of the resource. </p>",
        "UntagResourceRequest$resourceArn": "<p> The Amazon Resource Name (ARN) of the resource. </p>"
      }
    },
    "ResourceId": {
      "base": null,
      "refs": {
        "ConflictException$resourceId": "<p> The identifier for the service resource associated with the request. </p>",
        "ResourceNotFoundException$resourceId": "<p> Value is a list of resource IDs that were not found. </p>",
        "ServiceQuotaExceededException$resourceId": "<p> The ID of the resource. </p>"
      }
    },
    "ResourceNotFoundException": {
      "base": "<p> The specified ARN in the request doesn't exist. </p>",
      "refs": {}
    },
    "ResourceTag": {
      "base": "<p> The tag structure that contains a tag key and value. </p>",
      "refs": {
        "ResourceTagList$member": null
      }
    },
    "ResourceTagKey": {
      "base": null,
      "refs": {
        "ResourceTag$key": "<p> The key that's associated with the tag. </p>",
        "ResourceTagKeyList$member": null
      }
    },
    "ResourceTagKeyList": {
      "base": null,
      "refs": {
        "UntagResourceRequest$resourceTagKeys": "<p> A list of tag key value pairs that are associated with the resource. </p>"
      }
    },
    "ResourceTagList": {
      "base": null,
      "refs": {
        "CreateBillingViewRequest$resourceTags": "<p>A list of key value map specifying tags associated to the billing view being created. </p>",
        "ListTagsForResourceResponse$resourceTags": "<p> A list of tag key value pairs that are associated with the resource. </p>",
        "TagResourceRequest$resourceTags": "<p> A list of tag key value pairs that are associated with the resource. </p>"
      }
    },
    "ResourceTagValue": {
      "base": null,
      "refs": {
        "ResourceTag$value": "<p> The value that's associated with the tag. </p>"
      }
    },
    "ResourceType": {
      "base": null,
      "refs": {
        "ConflictException$resourceType": "<p> The type of resource associated with the request. </p>",
        "ResourceNotFoundException$resourceType": "<p> Value is the type of resource that was not found. </p>",
        "ServiceQuotaExceededException$resourceType": "<p> The type of Amazon Web Services resource. </p>"
      }
    },
    "SearchOption": {
      "base": null,
      "refs": {
        "StringSearch$searchOption": "<p> The type of search operation to perform on the string value. Determines how the search value is matched against the target field. </p>"
      }
    },
    "SearchValue": {
      "base": null,
      "refs": {
        "StringSearch$searchValue": "<p> The string value to use in the search operation. This value is compared against the target field using the specified search option. </p>"
      }
    },
    "ServiceCode": {
      "base": null,
      "refs": {
        "ServiceQuotaExceededException$serviceCode": "<p> The container for the <code>serviceCode</code>. </p>"
      }
    },
    "ServiceQuotaExceededException": {
      "base": "<p> You've reached the limit of resources you can create, or exceeded the size of an individual resource. </p>",
      "refs": {}
    },
    "StringSearch": {
      "base": "<p> A structure that defines how to search for string values. You can specify a search option and the value to search for. </p>",
      "refs": {
        "StringSearches$member": null
      }
    },
    "StringSearches": {
      "base": null,
      "refs": {
        "ListBillingViewsRequest$names": "<p> Filters the list of billing views by name. You can specify search criteria to match billing view names based on the search option provided. </p>"
      }
    },
    "TagKey": {
      "base": null,
      "refs": {
        "TagValues$key": "<p> The key for the tag. </p>"
      }
    },
    "TagResourceRequest": {
      "base": null,
      "refs": {}
    },
    "TagResourceResponse": {
      "base": null,
      "refs": {}
    },
    "TagValues": {
      "base": "<p> The values that are available for a tag. </p>",
      "refs": {
        "Expression$tags": "<p> The specific <code>Tag</code> to use for <code>Expression</code>. </p>"
      }
    },
    "ThrottlingException": {
      "base": "<p>The request was denied due to request throttling. </p>",
      "refs": {}
    },
    "TimeRange": {
      "base": "<p> Specifies a time range with inclusive begin and end dates. </p>",
      "refs": {
        "Expression$timeRange": "<p> Specifies a time range filter for the billing view data. </p>"
      }
    },
    "Timestamp": {
      "base": null,
      "refs": {
        "ActiveTimeRange$activeAfterInclusive": "<p>The inclusive time range start date.</p>",
        "ActiveTimeRange$activeBeforeInclusive": "<p> The inclusive time range end date. </p>",
        "BillingViewElement$createdAt": "<p>The time when the billing view was created. </p>",
        "BillingViewElement$updatedAt": "<p>The time when the billing view was last updated. </p>",
        "BillingViewElement$viewDefinitionLastUpdatedAt": "<p> The timestamp of when the billing view definition was last updated. </p>",
        "CreateBillingViewResponse$createdAt": "<p> The time when the billing view was created. </p>",
        "TimeRange$beginDateInclusive": "<p> The inclusive start date of the time range. </p>",
        "TimeRange$endDateInclusive": "<p> The inclusive end date of the time range. </p>",
        "UpdateBillingViewResponse$updatedAt": "<p> The time when the billing view was last updated. </p>"
      }
    },
    "UntagResourceRequest": {
      "base": null,
      "refs": {}
    },
    "UntagResourceResponse": {
      "base": null,
      "refs": {}
    },
    "UpdateBillingViewRequest": {
      "base": null,
      "refs": {}
    },
    "UpdateBillingViewResponse": {
      "base": null,
      "refs": {}
    },
    "ValidationException": {
      "base": "<p>The input fails to satisfy the constraints specified by an Amazon Web Services service. </p>",
      "refs": {}
    },
    "ValidationExceptionField": {
      "base": "<p>The field's information of a request that resulted in an exception. </p>",
      "refs": {
        "ValidationExceptionFieldList$member": null
      }
    },
    "ValidationExceptionFieldList": {
      "base": null,
      "refs": {
        "ValidationException$fieldList": "<p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>"
      }
    },
    "ValidationExceptionReason": {
      "base": null,
      "refs": {
        "ValidationException$reason": "<p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>"
      }
    },
    "Value": {
      "base": null,
      "refs": {
        "Values$member": null
      }
    },
    "Values": {
      "base": null,
      "refs": {
        "CostCategoryValues$values": "<p> The specific value of the Cost Category. </p>",
        "DimensionValues$values": "<p> The metadata values that you can use to filter and group your results. </p>",
        "TagValues$values": "<p> The specific value of the tag. </p>"
      }
    }
  }
}
