Awsbilling API
Awsbilling API
Copyright © 2025 Amazon Web Services, Inc. and/or its affiliates. All rights reserved.
AWS Billing and Cost Management API Reference
Amazon's trademarks and trade dress may not be used in connection with any product or service
that is not Amazon's, in any manner that is likely to cause confusion among customers, or in any
manner that disparages or discredits Amazon. All other trademarks not owned by Amazon are
the property of their respective owners, who may or may not be affiliated with, connected to, or
sponsored by Amazon.
AWS Billing and Cost Management API Reference
Table of Contents
Welcome ........................................................................................................................................... 1
AWS Cost Explorer ....................................................................................................................................... 1
AWS Data Exports ........................................................................................................................................ 1
AWS Pricing Calculator ................................................................................................................................ 1
AWS Billing .................................................................................................................................................... 2
AWS Budgets ................................................................................................................................................. 2
AWS Cost Optimization Hub ...................................................................................................................... 3
AWS Cost and Usage Report ..................................................................................................................... 3
AWS Free Tier ................................................................................................................................................ 3
AWS Invoicing ................................................................................................................................................ 4
AWS Price List ............................................................................................................................................... 4
Tax Settings ................................................................................................................................................... 5
Actions .............................................................................................................................................. 6
AWS Cost Explorer ..................................................................................................................................... 12
CreateAnomalyMonitor ........................................................................................................................ 15
CreateAnomalySubscription ................................................................................................................ 19
CreateCostCategoryDefinition ............................................................................................................ 23
DeleteAnomalyMonitor ........................................................................................................................ 29
DeleteAnomalySubscription ................................................................................................................ 31
DeleteCostCategoryDefinition ............................................................................................................ 33
DescribeCostCategoryDefinition ........................................................................................................ 36
GetAnomalies ......................................................................................................................................... 40
GetAnomalyMonitors ............................................................................................................................ 45
GetAnomalySubscriptions ................................................................................................................... 49
GetApproximateUsageRecords ........................................................................................................... 53
GetCommitmentPurchaseAnalysis ..................................................................................................... 57
GetCostAndUsage ................................................................................................................................. 62
GetCostAndUsageWithResources ....................................................................................................... 73
GetCostCategories ................................................................................................................................. 84
GetCostForecast ..................................................................................................................................... 93
GetDimensionValues .......................................................................................................................... 101
GetReservationCoverage ................................................................................................................... 115
GetReservationPurchaseRecommendation .................................................................................... 127
GetReservationUtilization ................................................................................................................. 137
iii
AWS Billing and Cost Management API Reference
iv
AWS Billing and Cost Management API Reference
v
AWS Billing and Cost Management API Reference
vi
AWS Billing and Cost Management API Reference
vii
AWS Billing and Cost Management API Reference
viii
AWS Billing and Cost Management API Reference
ix
AWS Billing and Cost Management API Reference
x
AWS Billing and Cost Management API Reference
xi
AWS Billing and Cost Management API Reference
xii
AWS Billing and Cost Management API Reference
xiii
AWS Billing and Cost Management API Reference
xiv
AWS Billing and Cost Management API Reference
xv
AWS Billing and Cost Management API Reference
xvi
AWS Billing and Cost Management API Reference
xvii
AWS Billing and Cost Management API Reference
Welcome
Service Endpoint
• https://ce.us-east-1.amazonaws.com
For information about the costs that are associated with the Cost Explorer API, see AWS Cost
Management Pricing.
• https://bcm-data-exports.us-east-1.api.aws
• https://bcm-pricing-calculator.us-east-1.api.aws
AWS Billing
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.
https://billing.us-east-1.api.aws
AWS Budgets
Use the AWS Budgets API to plan your service usage, service costs, and instance reservations. This
API reference provides descriptions, syntax, and usage examples for each of the actions and data
types for the AWS Budgets feature.
• How close your plan is to your budgeted amount or to the free tier limits
• Your usage-to-date, including how much you've used of your Reserved Instances (RIs)
• Your current estimated charges from AWS, and how much your predicted usage will accrue in
charges by the end of the month
• How much of your budget has been used
AWS updates your budget status several times a day. Budgets track your unblended costs,
subscriptions, refunds, and RIs. You can create the following types of budgets:
Service Endpoint
AWS Billing 2
AWS Billing and Cost Management API Reference
• https://budgets.amazonaws.com
For information about costs that are associated with the AWS Budgets API, see AWS Cost
Management Pricing.
• https://cost-optimization-hub.us-east-1.amazonaws.com
AWS Cost and Usage Report track the monthly AWS costs and usage associated with your AWS
account. The report contains line items for each unique combination of AWS product, usage type,
and operation that your AWS account uses. You can configure the AWS Cost and Usage Report to
show only the data that you want, using the AWS Cost and Usage Report API.
Service Endpoint
The AWS Cost and Usage Report API provides the following endpoint:
• cur.us-east-1.amazonaws.com
Free Tier tracks your monthly usage data for all free tier offers that are associated with your AWS
account. You can use the Free Tier API to filter and show only the data that you want.
Service endpoint
• https://freetier.us-east-1.api.aws
For more information, see Using the AWS Free Tier in the AWS Billing User Guide.
AWS Invoicing
AWS Invoice Configuration
You can use AWS Invoice Configuration APIs to programmatically create, update, delete, get, and
list invoice units. You can also programmatically fetch the information of the invoice receiver. For
example, business legal name, address, and invoicing contacts.
You can use AWS Invoice Configuration to receive separate AWS invoices based your organizational
needs. By using AWS Invoice Configuration, you can configure invoice units that are groups
of AWS accounts that represent your business entities, and receive separate invoices for each
business entity. You can also assign a unique member or payer account as the invoice receiver
for each invoice unit. As you create new accounts within your Organizations using AWS Invoice
Configuration APIs, you can automate the creation of new invoice units and subsequently
automate the addition of new accounts to your invoice units.
Service endpoint
You can use the following endpoints for AWS Invoice Configuration:
• https://invoicing.us-east-1.api.aws
AWS Invoicing 4
AWS Billing and Cost Management API Reference
• Provide cost benefit analysis that compare your internal workloads with AWS
Use GetServices without a service code to retrieve the service codes for all AWS services, then
GetServices with a service code to retrieve the attribute names for that service. After you have
the service code and attribute names, you can use GetAttributeValues to see what values are
available for an attribute. With the service code and an attribute name and value, you can use
GetProducts to find specific products that you're interested in, such as an AmazonEC2 instance,
with a Provisioned IOPS volumeType.
You can use the following endpoints for the AWS Price List API:
• https://api.pricing.us-east-1.amazonaws.com
• https://api.pricing.ap-south-1.amazonaws.com
• https://api.pricing.eu-central-1.amazonaws.com
For more information, see Using the AWS Price List API in the AWS Billing User Guide.
For more information about AWS Billing and Cost Management endpoints, see AWS Billing and
Cost Management endpoints in the Amazon Web Services General Reference .
For more information about AWS Billing and Cost Management quotas, see Quotas and restrictions
in the AWS Billing User Guide and Quotas and restrictions in the AWS Cost Management User
Guide.
Tax Settings
You can use the tax setting API to programmatically set, modify, and delete the tax registration
number (TRN), associated business legal name, and address (Collectively referred to as "TRN
information"). You can also programmatically view TRN information and tax addresses ("Tax
profiles").
You can use this API to automate your TRN information settings instead of manually using the
console.
Service Endpoint
• https://tax.us-east-1.amazonaws.com
Tax Settings 5
AWS Billing and Cost Management API Reference
Actions
The following actions are supported by AWS Cost Explorer:
• CreateAnomalyMonitor
• CreateAnomalySubscription
• CreateCostCategoryDefinition
• DeleteAnomalyMonitor
• DeleteAnomalySubscription
• DeleteCostCategoryDefinition
• DescribeCostCategoryDefinition
• GetAnomalies
• GetAnomalyMonitors
• GetAnomalySubscriptions
• GetApproximateUsageRecords
• GetCommitmentPurchaseAnalysis
• GetCostAndUsage
• GetCostAndUsageWithResources
• GetCostCategories
• GetCostForecast
• GetDimensionValues
• GetReservationCoverage
• GetReservationPurchaseRecommendation
• GetReservationUtilization
• GetRightsizingRecommendation
• GetSavingsPlanPurchaseRecommendationDetails
• GetSavingsPlansCoverage
• GetSavingsPlansPurchaseRecommendation
• GetSavingsPlansUtilization
• GetSavingsPlansUtilizationDetails
• GetTags
6
AWS Billing and Cost Management API Reference
• GetUsageForecast
• ListCommitmentPurchaseAnalyses
• ListCostAllocationTagBackfillHistory
• ListCostAllocationTags
• ListCostCategoryDefinitions
• ListSavingsPlansPurchaseRecommendationGeneration
• ListTagsForResource
• ProvideAnomalyFeedback
• StartCommitmentPurchaseAnalysis
• StartCostAllocationTagBackfill
• StartSavingsPlansPurchaseRecommendationGeneration
• TagResource
• UntagResource
• UpdateAnomalyMonitor
• UpdateAnomalySubscription
• UpdateCostAllocationTagsStatus
• UpdateCostCategoryDefinition
• CreateExport
• DeleteExport
• GetExecution
• GetExport
• GetTable
• ListExecutions
• ListExports
• ListTables
• ListTagsForResource
• TagResource
• UntagResource
7
AWS Billing and Cost Management API Reference
• UpdateExport
• BatchCreateBillScenarioCommitmentModification
• BatchCreateBillScenarioUsageModification
• BatchCreateWorkloadEstimateUsage
• BatchDeleteBillScenarioCommitmentModification
• BatchDeleteBillScenarioUsageModification
• BatchDeleteWorkloadEstimateUsage
• BatchUpdateBillScenarioCommitmentModification
• BatchUpdateBillScenarioUsageModification
• BatchUpdateWorkloadEstimateUsage
• CreateBillEstimate
• CreateBillScenario
• CreateWorkloadEstimate
• DeleteBillEstimate
• DeleteBillScenario
• DeleteWorkloadEstimate
• GetBillEstimate
• GetBillScenario
• GetPreferences
• GetWorkloadEstimate
• ListBillEstimateCommitments
• ListBillEstimateInputCommitmentModifications
• ListBillEstimateInputUsageModifications
• ListBillEstimateLineItems
• ListBillEstimates
• ListBillScenarioCommitmentModifications
• ListBillScenarios
• ListBillScenarioUsageModifications
8
AWS Billing and Cost Management API Reference
• ListTagsForResource
• ListWorkloadEstimates
• ListWorkloadEstimateUsage
• TagResource
• UntagResource
• UpdateBillEstimate
• UpdateBillScenario
• UpdatePreferences
• UpdateWorkloadEstimate
• CreateBillingView
• DeleteBillingView
• GetBillingView
• GetResourcePolicy
• ListBillingViews
• ListSourceViewsForBillingView
• ListTagsForResource
• TagResource
• UntagResource
• UpdateBillingView
• CreateBudget
• CreateBudgetAction
• CreateNotification
• CreateSubscriber
• DeleteBudget
• DeleteBudgetAction
• DeleteNotification
9
AWS Billing and Cost Management API Reference
• DeleteSubscriber
• DescribeBudget
• DescribeBudgetAction
• DescribeBudgetActionHistories
• DescribeBudgetActionsForAccount
• DescribeBudgetActionsForBudget
• DescribeBudgetNotificationsForAccount
• DescribeBudgetPerformanceHistory
• DescribeBudgets
• DescribeNotificationsForBudget
• DescribeSubscribersForNotification
• ExecuteBudgetAction
• ListTagsForResource
• TagResource
• UntagResource
• UpdateBudget
• UpdateBudgetAction
• UpdateNotification
• UpdateSubscriber
• GetPreferences
• GetRecommendation
• ListEnrollmentStatuses
• ListRecommendations
• ListRecommendationSummaries
• UpdateEnrollmentStatus
• UpdatePreferences
The following actions are supported by AWS Cost and Usage Report:
10
AWS Billing and Cost Management API Reference
• DeleteReportDefinition
• DescribeReportDefinitions
• ListTagsForResource
• ModifyReportDefinition
• PutReportDefinition
• TagResource
• UntagResource
• GetFreeTierUsage
• BatchGetInvoiceProfile
• CreateInvoiceUnit
• DeleteInvoiceUnit
• GetInvoiceUnit
• ListInvoiceUnits
• ListTagsForResource
• TagResource
• UntagResource
• UpdateInvoiceUnit
• DescribeServices
• GetAttributeValues
• GetPriceListFileUrl
• GetProducts
• ListPriceLists
11
AWS Billing and Cost Management API Reference
• BatchDeleteTaxRegistration
• BatchGetTaxExemptions
• BatchPutTaxRegistration
• DeleteSupplementalTaxRegistration
• DeleteTaxRegistration
• GetTaxExemptionTypes
• GetTaxInheritance
• GetTaxRegistration
• GetTaxRegistrationDocument
• ListSupplementalTaxRegistrations
• ListTaxExemptions
• ListTaxRegistrations
• PutSupplementalTaxRegistration
• PutTaxExemption
• PutTaxInheritance
• PutTaxRegistration
• CreateAnomalyMonitor
• CreateAnomalySubscription
• CreateCostCategoryDefinition
• DeleteAnomalyMonitor
• DeleteAnomalySubscription
• DeleteCostCategoryDefinition
• DescribeCostCategoryDefinition
• GetAnomalies
• GetAnomalyMonitors
• GetAnomalySubscriptions
• GetApproximateUsageRecords
• GetCommitmentPurchaseAnalysis
• GetCostAndUsage
• GetCostAndUsageWithResources
• GetCostCategories
• GetCostForecast
• GetDimensionValues
• GetReservationCoverage
• GetReservationPurchaseRecommendation
• GetReservationUtilization
• GetRightsizingRecommendation
• GetSavingsPlanPurchaseRecommendationDetails
• GetSavingsPlansCoverage
• GetSavingsPlansPurchaseRecommendation
• GetSavingsPlansUtilization
• GetSavingsPlansUtilizationDetails
• GetTags
• GetUsageForecast
• ListCommitmentPurchaseAnalyses
• ListCostAllocationTagBackfillHistory
• ListCostAllocationTags
• ListCostCategoryDefinitions
• ListSavingsPlansPurchaseRecommendationGeneration
• ListTagsForResource
• ProvideAnomalyFeedback
• StartCommitmentPurchaseAnalysis
• StartCostAllocationTagBackfill
• StartSavingsPlansPurchaseRecommendationGeneration
• TagResource
• UntagResource
• UpdateAnomalyMonitor
• UpdateAnomalySubscription
• UpdateCostAllocationTagsStatus
• UpdateCostCategoryDefinition
CreateAnomalyMonitor
Service: AWS Cost Explorer
Creates a new cost anomaly detection monitor with the requested type and monitor specification.
Request Syntax
{
"AnomalyMonitor": {
"CreationDate": "string",
"DimensionalValueCount": number,
"LastEvaluatedDate": "string",
"LastUpdatedDate": "string",
"MonitorArn": "string",
"MonitorDimension": "string",
"MonitorName": "string",
"MonitorSpecification": {
"And": [
"Expression"
],
"CostCategories": {
"Key": "string",
"MatchOptions": [ "string" ],
"Values": [ "string" ]
},
"Dimensions": {
"Key": "string",
"MatchOptions": [ "string" ],
"Values": [ "string" ]
},
"Not": "Expression",
"Or": [
"Expression"
],
"Tags": {
"Key": "string",
"MatchOptions": [ "string" ],
"Values": [ "string" ]
}
},
"MonitorType": "string"
},
"ResourceTags": [
CreateAnomalyMonitor 15
AWS Billing and Cost Management API Reference
{
"Key": "string",
"Value": "string"
}
]
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
AnomalyMonitor
The cost anomaly detection monitor object that you want to create.
Required: Yes
ResourceTags
An optional list of tags to associate with the specified AnomalyMonitor. You can use resource
tags to control access to your monitor using IAM policies.
Each tag consists of a key and a value, and each key must be unique for the resource. The
following restrictions apply to resource tags:
• Although the maximum number of array members is 200, you can assign a maximum of 50
user-tags to one resource. The remaining are reserved for AWS use
• The maximum length of a key is 128 characters
• The maximum length of a value is 256 characters
• Keys and values can only contain alphanumeric characters, spaces, and any of the following:
_.:/=+@-
• Keys and values are case sensitive
• Keys and values are trimmed for any leading or trailing whitespaces
• Don’t use aws: as a prefix for your keys. This prefix is reserved for AWS use
CreateAnomalyMonitor 16
AWS Billing and Cost Management API Reference
Required: No
Response Syntax
{
"MonitorArn": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
MonitorArn
The unique identifier of your newly created cost anomaly detection monitor.
Type: String
Pattern: [\S\s]*
Errors
For information about the errors that are common to all actions, see Common Errors.
LimitExceededException
You made too many calls in a short period of time. Try again later.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
CreateAnomalyMonitor 17
AWS Billing and Cost Management API Reference
CreateAnomalyMonitor 18
AWS Billing and Cost Management API Reference
CreateAnomalySubscription
Service: AWS Cost Explorer
Adds an alert subscription to a cost anomaly detection monitor. You can use each subscription
to define subscribers with email or SNS notifications. Email subscribers can set an absolute or
percentage threshold and a time frequency for receiving notifications.
Request Syntax
{
"AnomalySubscription": {
"AccountId": "string",
"Frequency": "string",
"MonitorArnList": [ "string" ],
"Subscribers": [
{
"Address": "string",
"Status": "string",
"Type": "string"
}
],
"SubscriptionArn": "string",
"SubscriptionName": "string",
"Threshold": number,
"ThresholdExpression": {
"And": [
"Expression"
],
"CostCategories": {
"Key": "string",
"MatchOptions": [ "string" ],
"Values": [ "string" ]
},
"Dimensions": {
"Key": "string",
"MatchOptions": [ "string" ],
"Values": [ "string" ]
},
"Not": "Expression",
"Or": [
"Expression"
],
"Tags": {
CreateAnomalySubscription 19
AWS Billing and Cost Management API Reference
"Key": "string",
"MatchOptions": [ "string" ],
"Values": [ "string" ]
}
}
},
"ResourceTags": [
{
"Key": "string",
"Value": "string"
}
]
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
AnomalySubscription
Required: Yes
ResourceTags
An optional list of tags to associate with the specified AnomalySubscription. You can use
resource tags to control access to your subscription using IAM policies.
Each tag consists of a key and a value, and each key must be unique for the resource. The
following restrictions apply to resource tags:
• Although the maximum number of array members is 200, you can assign a maximum of 50
user-tags to one resource. The remaining are reserved for AWS use
• The maximum length of a key is 128 characters
• The maximum length of a value is 256 characters
• Keys and values can only contain alphanumeric characters, spaces, and any of the following:
_.:/=+@-
CreateAnomalySubscription 20
AWS Billing and Cost Management API Reference
Required: No
Response Syntax
{
"SubscriptionArn": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
SubscriptionArn
Type: String
Pattern: [\S\s]*
Errors
For information about the errors that are common to all actions, see Common Errors.
LimitExceededException
You made too many calls in a short period of time. Try again later.
CreateAnomalySubscription 21
AWS Billing and Cost Management API Reference
UnknownMonitorException
The cost anomaly monitor does not exist for the account.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
CreateAnomalySubscription 22
AWS Billing and Cost Management API Reference
CreateCostCategoryDefinition
Service: AWS Cost Explorer
Creates a new Cost Category with the requested name and rules.
Request Syntax
{
"DefaultValue": "string",
"EffectiveStart": "string",
"Name": "string",
"ResourceTags": [
{
"Key": "string",
"Value": "string"
}
],
"Rules": [
{
"InheritedValue": {
"DimensionKey": "string",
"DimensionName": "string"
},
"Rule": {
"And": [
"Expression"
],
"CostCategories": {
"Key": "string",
"MatchOptions": [ "string" ],
"Values": [ "string" ]
},
"Dimensions": {
"Key": "string",
"MatchOptions": [ "string" ],
"Values": [ "string" ]
},
"Not": "Expression",
"Or": [
"Expression"
],
"Tags": {
"Key": "string",
CreateCostCategoryDefinition 23
AWS Billing and Cost Management API Reference
"MatchOptions": [ "string" ],
"Values": [ "string" ]
}
},
"Type": "string",
"Value": "string"
}
],
"RuleVersion": "string",
"SplitChargeRules": [
{
"Method": "string",
"Parameters": [
{
"Type": "string",
"Values": [ "string" ]
}
],
"Source": "string",
"Targets": [ "string" ]
}
]
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
DefaultValue
Type: String
Required: No
CreateCostCategoryDefinition 24
AWS Billing and Cost Management API Reference
EffectiveStart
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.
Type: String
Pattern: ^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(([+-]\d\d:\d\d)|Z)$
Required: No
Name
Type: String
Required: Yes
ResourceTags
An optional list of tags to associate with the specified CostCategory. You can use resource
tags to control access to your cost category using IAM policies.
Each tag consists of a key and a value, and each key must be unique for the resource. The
following restrictions apply to resource tags:
• Although the maximum number of array members is 200, you can assign a maximum of 50
user-tags to one resource. The remaining are reserved for AWS use
• The maximum length of a key is 128 characters
• The maximum length of a value is 256 characters
• Keys and values can only contain alphanumeric characters, spaces, and any of the following:
_.:/=+@-
• Keys and values are case sensitive
• Keys and values are trimmed for any leading or trailing whitespaces
CreateCostCategoryDefinition 25
AWS Billing and Cost Management API Reference
• Don’t use aws: as a prefix for your keys. This prefix is reserved for AWS use
Required: No
Rules
The Cost Category rules used to categorize costs. For more information, see CostCategoryRule.
Required: Yes
RuleVersion
Type: String
Required: Yes
SplitChargeRules
The split charge rules used to allocate your charges between your Cost Category values.
Required: No
Response Syntax
{
"CostCategoryArn": "string",
"EffectiveStart": "string"
}
CreateCostCategoryDefinition 26
AWS Billing and Cost Management API Reference
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
CostCategoryArn
Type: String
Pattern: arn:aws[-a-z0-9]*:[a-z0-9]+:[-a-z0-9]*:[0-9]{12}:[-a-zA-Z0-9/:_]+
EffectiveStart
The Cost Category's effective start date. It can only be a billing start date (first day of the
month).
Type: String
Pattern: ^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(([+-]\d\d:\d\d)|Z)$
Errors
For information about the errors that are common to all actions, see Common Errors.
LimitExceededException
You made too many calls in a short period of time. Try again later.
You've reached the limit on the number of resources you can create, or exceeded the size of an
individual resource.
CreateCostCategoryDefinition 27
AWS Billing and Cost Management API Reference
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
CreateCostCategoryDefinition 28
AWS Billing and Cost Management API Reference
DeleteAnomalyMonitor
Service: AWS Cost Explorer
Request Syntax
{
"MonitorArn": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
MonitorArn
The unique identifier of the cost anomaly monitor that you want to delete.
Type: String
Pattern: [\S\s]*
Required: Yes
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors.
LimitExceededException
You made too many calls in a short period of time. Try again later.
DeleteAnomalyMonitor 29
AWS Billing and Cost Management API Reference
UnknownMonitorException
The cost anomaly monitor does not exist for the account.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
DeleteAnomalyMonitor 30
AWS Billing and Cost Management API Reference
DeleteAnomalySubscription
Service: AWS Cost Explorer
Request Syntax
{
"SubscriptionArn": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
SubscriptionArn
The unique identifier of the cost anomaly subscription that you want to delete.
Type: String
Pattern: [\S\s]*
Required: Yes
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors.
LimitExceededException
You made too many calls in a short period of time. Try again later.
DeleteAnomalySubscription 31
AWS Billing and Cost Management API Reference
UnknownSubscriptionException
The cost anomaly subscription does not exist for the account.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
DeleteAnomalySubscription 32
AWS Billing and Cost Management API Reference
DeleteCostCategoryDefinition
Service: AWS Cost Explorer
Deletes a Cost Category. Expenses from this month going forward will no longer be categorized
with this Cost Category.
Request Syntax
{
"CostCategoryArn": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
CostCategoryArn
Type: String
Pattern: arn:aws[-a-z0-9]*:[a-z0-9]+:[-a-z0-9]*:[0-9]{12}:[-a-zA-Z0-9/:_]+
Required: Yes
Response Syntax
{
"CostCategoryArn": "string",
"EffectiveEnd": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
DeleteCostCategoryDefinition 33
AWS Billing and Cost Management API Reference
CostCategoryArn
Type: String
Pattern: arn:aws[-a-z0-9]*:[a-z0-9]+:[-a-z0-9]*:[0-9]{12}:[-a-zA-Z0-9/:_]+
EffectiveEnd
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.
Type: String
Pattern: ^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(([+-]\d\d:\d\d)|Z)$
Errors
For information about the errors that are common to all actions, see Common Errors.
LimitExceededException
You made too many calls in a short period of time. Try again later.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
DeleteCostCategoryDefinition 34
AWS Billing and Cost Management API Reference
DeleteCostCategoryDefinition 35
AWS Billing and Cost Management API Reference
DescribeCostCategoryDefinition
Service: AWS Cost Explorer
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.
Request Syntax
{
"CostCategoryArn": "string",
"EffectiveOn": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
CostCategoryArn
Type: String
Pattern: arn:aws[-a-z0-9]*:[a-z0-9]+:[-a-z0-9]*:[0-9]{12}:[-a-zA-Z0-9/:_]+
Required: Yes
EffectiveOn
Type: String
DescribeCostCategoryDefinition 36
AWS Billing and Cost Management API Reference
Pattern: ^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(([+-]\d\d:\d\d)|Z)$
Required: No
Response Syntax
{
"CostCategory": {
"CostCategoryArn": "string",
"DefaultValue": "string",
"EffectiveEnd": "string",
"EffectiveStart": "string",
"Name": "string",
"ProcessingStatus": [
{
"Component": "string",
"Status": "string"
}
],
"Rules": [
{
"InheritedValue": {
"DimensionKey": "string",
"DimensionName": "string"
},
"Rule": {
"And": [
"Expression"
],
"CostCategories": {
"Key": "string",
"MatchOptions": [ "string" ],
"Values": [ "string" ]
},
"Dimensions": {
"Key": "string",
"MatchOptions": [ "string" ],
"Values": [ "string" ]
},
"Not": "Expression",
"Or": [
"Expression"
],
DescribeCostCategoryDefinition 37
AWS Billing and Cost Management API Reference
"Tags": {
"Key": "string",
"MatchOptions": [ "string" ],
"Values": [ "string" ]
}
},
"Type": "string",
"Value": "string"
}
],
"RuleVersion": "string",
"SplitChargeRules": [
{
"Method": "string",
"Parameters": [
{
"Type": "string",
"Values": [ "string" ]
}
],
"Source": "string",
"Targets": [ "string" ]
}
]
}
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
CostCategory
The structure of Cost Categories. This includes detailed metadata and the set of rules for the
CostCategory object.
Errors
For information about the errors that are common to all actions, see Common Errors.
DescribeCostCategoryDefinition 38
AWS Billing and Cost Management API Reference
LimitExceededException
You made too many calls in a short period of time. Try again later.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
DescribeCostCategoryDefinition 39
AWS Billing and Cost Management API Reference
GetAnomalies
Service: AWS Cost Explorer
Retrieves all of the cost anomalies detected on your account during the time period that's specified
by the DateInterval object. Anomalies are available for up to 90 days.
Request Syntax
{
"DateInterval": {
"EndDate": "string",
"StartDate": "string"
},
"Feedback": "string",
"MaxResults": number,
"MonitorArn": "string",
"NextPageToken": "string",
"TotalImpact": {
"EndValue": number,
"NumericOperator": "string",
"StartValue": number
}
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
DateInterval
Assigns the start and end dates for retrieving cost anomalies. The returned anomaly object will
have an AnomalyEndDate in the specified time range.
Required: Yes
Feedback
GetAnomalies 40
AWS Billing and Cost Management API Reference
Type: String
Required: No
MaxResults
Type: Integer
Required: No
MonitorArn
Retrieves all of the cost anomalies detected for a specific cost anomaly monitor Amazon
Resource Name (ARN).
Type: String
Pattern: [\S\s]*
Required: No
NextPageToken
The token to retrieve the next set of results. AWS provides the token when the response from a
previous call has more results than the maximum page size.
Type: String
Pattern: [\S\s]*
Required: No
TotalImpact
Filters anomaly results by the total impact field on the anomaly object. For example, you can
filter anomalies GREATER_THAN 200.00 to retrieve anomalies, with an estimated dollar
impact greater than 200.
GetAnomalies 41
AWS Billing and Cost Management API Reference
Required: No
Response Syntax
{
"Anomalies": [
{
"AnomalyEndDate": "string",
"AnomalyId": "string",
"AnomalyScore": {
"CurrentScore": number,
"MaxScore": number
},
"AnomalyStartDate": "string",
"DimensionValue": "string",
"Feedback": "string",
"Impact": {
"MaxImpact": number,
"TotalActualSpend": number,
"TotalExpectedSpend": number,
"TotalImpact": number,
"TotalImpactPercentage": number
},
"MonitorArn": "string",
"RootCauses": [
{
"Impact": {
"Contribution": number
},
"LinkedAccount": "string",
"LinkedAccountName": "string",
"Region": "string",
"Service": "string",
"UsageType": "string"
}
]
}
],
"NextPageToken": "string"
}
GetAnomalies 42
AWS Billing and Cost Management API Reference
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Anomalies
The token to retrieve the next set of results. AWS provides the token when the response from a
previous call has more results than the maximum page size.
Type: String
Pattern: [\S\s]*
Errors
For information about the errors that are common to all actions, see Common Errors.
InvalidNextTokenException
You made too many calls in a short period of time. Try again later.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
GetAnomalies 43
AWS Billing and Cost Management API Reference
GetAnomalies 44
AWS Billing and Cost Management API Reference
GetAnomalyMonitors
Service: AWS Cost Explorer
Retrieves the cost anomaly monitor definitions for your account. You can filter using a list of cost
anomaly monitor Amazon Resource Names (ARNs).
Request Syntax
{
"MaxResults": number,
"MonitorArnList": [ "string" ],
"NextPageToken": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
MaxResults
Type: Integer
Required: No
MonitorArnList
Pattern: [\S\s]*
Required: No
NextPageToken
The token to retrieve the next set of results. AWS provides the token when the response from a
previous call has more results than the maximum page size.
GetAnomalyMonitors 45
AWS Billing and Cost Management API Reference
Type: String
Pattern: [\S\s]*
Required: No
Response Syntax
{
"AnomalyMonitors": [
{
"CreationDate": "string",
"DimensionalValueCount": number,
"LastEvaluatedDate": "string",
"LastUpdatedDate": "string",
"MonitorArn": "string",
"MonitorDimension": "string",
"MonitorName": "string",
"MonitorSpecification": {
"And": [
"Expression"
],
"CostCategories": {
"Key": "string",
"MatchOptions": [ "string" ],
"Values": [ "string" ]
},
"Dimensions": {
"Key": "string",
"MatchOptions": [ "string" ],
"Values": [ "string" ]
},
"Not": "Expression",
"Or": [
"Expression"
],
"Tags": {
"Key": "string",
"MatchOptions": [ "string" ],
"Values": [ "string" ]
}
GetAnomalyMonitors 46
AWS Billing and Cost Management API Reference
},
"MonitorType": "string"
}
],
"NextPageToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
AnomalyMonitors
A list of cost anomaly monitors that includes the detailed metadata for each monitor.
The token to retrieve the next set of results. AWS provides the token when the response from a
previous call has more results than the maximum page size.
Type: String
Pattern: [\S\s]*
Errors
For information about the errors that are common to all actions, see Common Errors.
InvalidNextTokenException
You made too many calls in a short period of time. Try again later.
GetAnomalyMonitors 47
AWS Billing and Cost Management API Reference
The cost anomaly monitor does not exist for the account.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
GetAnomalyMonitors 48
AWS Billing and Cost Management API Reference
GetAnomalySubscriptions
Service: AWS Cost Explorer
Retrieves the cost anomaly subscription objects for your account. You can filter using a list of cost
anomaly monitor Amazon Resource Names (ARNs).
Request Syntax
{
"MaxResults": number,
"MonitorArn": "string",
"NextPageToken": "string",
"SubscriptionArnList": [ "string" ]
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
MaxResults
Type: Integer
Required: No
MonitorArn
Type: String
Pattern: [\S\s]*
Required: No
NextPageToken
The token to retrieve the next set of results. AWS provides the token when the response from a
previous call has more results than the maximum page size.
GetAnomalySubscriptions 49
AWS Billing and Cost Management API Reference
Type: String
Pattern: [\S\s]*
Required: No
SubscriptionArnList
Pattern: [\S\s]*
Required: No
Response Syntax
{
"AnomalySubscriptions": [
{
"AccountId": "string",
"Frequency": "string",
"MonitorArnList": [ "string" ],
"Subscribers": [
{
"Address": "string",
"Status": "string",
"Type": "string"
}
],
"SubscriptionArn": "string",
"SubscriptionName": "string",
"Threshold": number,
"ThresholdExpression": {
"And": [
"Expression"
],
"CostCategories": {
GetAnomalySubscriptions 50
AWS Billing and Cost Management API Reference
"Key": "string",
"MatchOptions": [ "string" ],
"Values": [ "string" ]
},
"Dimensions": {
"Key": "string",
"MatchOptions": [ "string" ],
"Values": [ "string" ]
},
"Not": "Expression",
"Or": [
"Expression"
],
"Tags": {
"Key": "string",
"MatchOptions": [ "string" ],
"Values": [ "string" ]
}
}
}
],
"NextPageToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
AnomalySubscriptions
A list of cost anomaly subscriptions that includes the detailed metadata for each one.
The token to retrieve the next set of results. AWS provides the token when the response from a
previous call has more results than the maximum page size.
Type: String
GetAnomalySubscriptions 51
AWS Billing and Cost Management API Reference
Pattern: [\S\s]*
Errors
For information about the errors that are common to all actions, see Common Errors.
InvalidNextTokenException
You made too many calls in a short period of time. Try again later.
The cost anomaly subscription does not exist for the account.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
GetAnomalySubscriptions 52
AWS Billing and Cost Management API Reference
GetApproximateUsageRecords
Service: AWS Cost Explorer
Retrieves estimated usage records for hourly granularity or resource-level data at daily granularity.
Request Syntax
{
"ApproximationDimension": "string",
"Granularity": "string",
"Services": [ "string" ]
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
ApproximationDimension
The service to evaluate for the usage records. You can choose resource-level data at daily
granularity, or hourly granularity with or without resource-level data.
Type: String
Required: Yes
Granularity
How granular you want the data to be. You can enable data at hourly or daily granularity.
Type: String
Required: Yes
Services
The service metadata for the service or services you want to query. If not specified, all elements
are returned.
GetApproximateUsageRecords 53
AWS Billing and Cost Management API Reference
Pattern: [\S\s]*
Required: No
Response Syntax
{
"LookbackPeriod": {
"End": "string",
"Start": "string"
},
"Services": {
"string" : number
},
"TotalRecords": number
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
LookbackPeriod
GetApproximateUsageRecords 54
AWS Billing and Cost Management API Reference
The total number of usage records for all services in the services list.
Type: Long
Errors
For information about the errors that are common to all actions, see Common Errors.
DataUnavailableException
You made too many calls in a short period of time. Try again later.
Examples
Sample Request
{
"ApproximationDimension":"SERVICE",
"Granularity": "HOURLY"
}
GetApproximateUsageRecords 55
AWS Billing and Cost Management API Reference
Sample Response
{
"LookbackPeriod": {
"End": "2023-12-31",
"Start": "2023-12-01"
},
"Services": {
"Amazon Virtual Private Cloud": 336,
"Amazon Relational Database Service": 1344,
"AmazonCloudWatch": 350,
"Tax": 0,
"Amazon DynamoDB": 672
},
"TotalRecords": 2702
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
GetApproximateUsageRecords 56
AWS Billing and Cost Management API Reference
GetCommitmentPurchaseAnalysis
Service: AWS Cost Explorer
Request Syntax
{
"AnalysisId": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
AnalysisId
Type: String
Pattern: ^[\S\s]{8}-[\S\s]{4}-[\S\s]{4}-[\S\s]{4}-[\S\s]{12}$
Required: Yes
Response Syntax
{
"AnalysisCompletionTime": "string",
"AnalysisDetails": {
"SavingsPlansPurchaseAnalysisDetails": {
"AdditionalMetadata": "string",
"CurrencyCode": "string",
"CurrentAverageCoverage": "string",
"CurrentAverageHourlyOnDemandSpend": "string",
"CurrentMaximumHourlyOnDemandSpend": "string",
"CurrentMinimumHourlyOnDemandSpend": "string",
"CurrentOnDemandSpend": "string",
"EstimatedAverageCoverage": "string",
GetCommitmentPurchaseAnalysis 57
AWS Billing and Cost Management API Reference
"EstimatedAverageUtilization": "string",
"EstimatedCommitmentCost": "string",
"EstimatedMonthlySavingsAmount": "string",
"EstimatedOnDemandCost": "string",
"EstimatedOnDemandCostWithCurrentCommitment": "string",
"EstimatedROI": "string",
"EstimatedSavingsAmount": "string",
"EstimatedSavingsPercentage": "string",
"ExistingHourlyCommitment": "string",
"HourlyCommitmentToPurchase": "string",
"LatestUsageTimestamp": "string",
"LookbackPeriodInHours": "string",
"MetricsOverLookbackPeriod": [
{
"CurrentCoverage": "string",
"EstimatedCoverage": "string",
"EstimatedNewCommitmentUtilization": "string",
"EstimatedOnDemandCost": "string",
"StartTime": "string"
}
],
"UpfrontCost": "string"
}
},
"AnalysisId": "string",
"AnalysisStartedTime": "string",
"AnalysisStatus": "string",
"CommitmentPurchaseAnalysisConfiguration": {
"SavingsPlansPurchaseAnalysisConfiguration": {
"AccountId": "string",
"AccountScope": "string",
"AnalysisType": "string",
"LookBackTimePeriod": {
"End": "string",
"Start": "string"
},
"SavingsPlansToAdd": [
{
"InstanceFamily": "string",
"OfferingId": "string",
"PaymentOption": "string",
"Region": "string",
"SavingsPlansCommitment": number,
"SavingsPlansType": "string",
GetCommitmentPurchaseAnalysis 58
AWS Billing and Cost Management API Reference
"TermInYears": "string"
}
],
"SavingsPlansToExclude": [ "string" ]
}
},
"ErrorCode": "string",
"EstimatedCompletionTime": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
AnalysisCompletionTime
Type: String
Pattern: ^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(([+-]\d\d:\d\d)|Z)$
AnalysisDetails
Type: String
Pattern: ^[\S\s]{8}-[\S\s]{4}-[\S\s]{4}-[\S\s]{4}-[\S\s]{12}$
AnalysisStartedTime
GetCommitmentPurchaseAnalysis 59
AWS Billing and Cost Management API Reference
Type: String
Pattern: ^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(([+-]\d\d:\d\d)|Z)$
AnalysisStatus
Type: String
Type: String
Type: String
Pattern: ^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(([+-]\d\d:\d\d)|Z)$
Errors
For information about the errors that are common to all actions, see Common Errors.
GetCommitmentPurchaseAnalysis 60
AWS Billing and Cost Management API Reference
AnalysisNotFoundException
You made too many calls in a short period of time. Try again later.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
GetCommitmentPurchaseAnalysis 61
AWS Billing and Cost Management API Reference
GetCostAndUsage
Service: AWS Cost Explorer
Retrieves cost and usage metrics for your account. You can specify which cost and usage-related
metric that you want the request to return. For example, you can specify BlendedCosts or
UsageQuantity. You can also filter and group your data by various dimensions, such as SERVICE
or AZ, in a specific time range. For a complete list of valid dimensions, see the GetDimensionValues
operation. Management account in an organization in AWS Organizations have access to all
member accounts.
For information about filter limitations, see Quotas and restrictions in the Billing and Cost
Management User Guide.
Request Syntax
{
"BillingViewArn": "string",
"Filter": {
"And": [
"Expression"
],
"CostCategories": {
"Key": "string",
"MatchOptions": [ "string" ],
"Values": [ "string" ]
},
"Dimensions": {
"Key": "string",
"MatchOptions": [ "string" ],
"Values": [ "string" ]
},
"Not": "Expression",
"Or": [
"Expression"
],
"Tags": {
"Key": "string",
"MatchOptions": [ "string" ],
"Values": [ "string" ]
}
},
"Granularity": "string",
GetCostAndUsage 62
AWS Billing and Cost Management API Reference
"GroupBy": [
{
"Key": "string",
"Type": "string"
}
],
"Metrics": [ "string" ],
"NextPageToken": "string",
"TimePeriod": {
"End": "string",
"Start": "string"
}
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
BillingViewArn
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 AWS Billing and Cost Management features. The
BillingViewArn can be retrieved by calling the ListBillingViews API.
Type: String
Pattern: ^arn:aws[a-z-]*:(billing)::[0-9]{12}:billingview/[-a-zA-Z0-9/:_
+=.-@]{1,43}$
Required: No
Filter
Filters AWS costs by different dimensions. For example, you can specify SERVICE and
LINKED_ACCOUNT and get the costs that are associated with that account's usage of that
service. You can nest Expression objects to define any combination of dimension filters. For
more information, see Expression.
GetCostAndUsage 63
AWS Billing and Cost Management API Reference
Valid values for MatchOptions for Dimensions are EQUALS and CASE_SENSITIVE.
Valid values for MatchOptions for CostCategories and Tags are EQUALS, ABSENT, and
CASE_SENSITIVE. Default values are EQUALS and CASE_SENSITIVE.
Required: No
Granularity
Sets the AWS cost granularity to MONTHLY or DAILY, or HOURLY. If Granularity isn't set, the
response object doesn't include the Granularity, either MONTHLY or DAILY, or HOURLY.
Type: String
Required: Yes
GroupBy
You can group AWS costs using up to two different groups, either dimensions, tag keys, cost
categories, or any two group by types.
Valid values for the DIMENSION type are AZ, INSTANCE_TYPE, LEGAL_ENTITY_NAME,
INVOICING_ENTITY, LINKED_ACCOUNT, OPERATION, PLATFORM, PURCHASE_TYPE, SERVICE,
TENANCY, RECORD_TYPE, and USAGE_TYPE.
When you group by the TAG type and include a valid tag key, you get all tag values, including
empty strings.
Required: No
Metrics
Which metrics are returned in the query. For more information about blended and unblended
rates, see Why does the "blended" annotation appear on some line items in my bill?.
GetCostAndUsage 64
AWS Billing and Cost Management API Reference
Note
If you return the UsageQuantity metric, the service aggregates all usage numbers
without taking into account the units. For example, if you aggregate usageQuantity
across all of Amazon EC2, the results aren't meaningful because Amazon EC2 compute
hours and data transfer are measured in different units (for example, hours and
GB). To get more meaningful UsageQuantity metrics, filter by UsageType or
UsageTypeGroups.
Pattern: [\S\s]*
Required: Yes
NextPageToken
The token to retrieve the next set of results. AWS provides the token when the response from a
previous call has more results than the maximum page size.
Type: String
Pattern: [\S\s]*
Required: No
TimePeriod
Sets the start date and end date for retrieving AWS costs. The start date is inclusive, but the
end date is exclusive. For example, if start is 2017-01-01 and end is 2017-05-01, then the
cost and usage data is retrieved from 2017-01-01 up to and including 2017-04-30 but not
including 2017-05-01.
GetCostAndUsage 65
AWS Billing and Cost Management API Reference
Required: Yes
Response Syntax
{
"DimensionValueAttributes": [
{
"Attributes": {
"string" : "string"
},
"Value": "string"
}
],
"GroupDefinitions": [
{
"Key": "string",
"Type": "string"
}
],
"NextPageToken": "string",
"ResultsByTime": [
{
"Estimated": boolean,
"Groups": [
{
"Keys": [ "string" ],
"Metrics": {
"string" : {
"Amount": "string",
"Unit": "string"
}
}
}
],
"TimePeriod": {
"End": "string",
"Start": "string"
},
"Total": {
"string" : {
"Amount": "string",
"Unit": "string"
}
GetCostAndUsage 66
AWS Billing and Cost Management API Reference
}
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
DimensionValueAttributes
The attributes that apply to a specific dimension value. For example, if the value is a linked
account, the attribute is that account name.
The groups that are specified by the Filter or GroupBy parameters in the request.
The token for the next set of retrievable results. AWS provides the token when the response
from a previous call has more results than the maximum page size.
Type: String
Pattern: [\S\s]*
ResultsByTime
Errors
For information about the errors that are common to all actions, see Common Errors.
GetCostAndUsage 67
AWS Billing and Cost Management API Reference
BillExpirationException
The requested report expired. Update the date interval and try again.
You made too many calls in a short period of time. Try again later.
Your request parameters changed between pages. Try again with the old parameters or without
a pagination token.
Examples
Example
The following is a sample request and response of the GetCostAndUsage operation that you can
use to retrieve your Amazon S3 costs. For more complex examples, such as multi-level groupings,
see Expression.
GetCostAndUsage 68
AWS Billing and Cost Management API Reference
Sample Request
POST / HTTP/1.1
Host: ce.us-east-1.amazonaws.com
x-amz-Date: <Date>
Authorization: AWS4-HMAC-SHA256 Credential=<Credential>,
SignedHeaders=contenttype;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-
requestid,Signature=<Signature>
User-Agent: <UserAgentString>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Connection: Keep-Alive
X-Amz-Target: AWSInsightsIndexService.GetCostAndUsage
{
"TimePeriod": {
"Start":"2017-09-01",
"End": "2017-10-01"
},
"Granularity": "MONTHLY",
"Filter": {
"Dimensions": {
"Key": "SERVICE",
"Values": [
"Amazon Simple Storage Service"
]
}
},
"GroupBy":[
{
"Type":"DIMENSION",
"Key":"SERVICE"
},
{
"Type":"TAG",
"Key":"Environment"
}
],
"Metrics":["BlendedCost", "UnblendedCost", "UsageQuantity"]
}
Sample Response
HTTP/1.1 200 OK
GetCostAndUsage 69
AWS Billing and Cost Management API Reference
x-amzn-RequestId: <RequestId>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Date: <Date>
{
"GroupDefinitions": [
{
"Key": "SERVICE",
"Type": "DIMENSION"
},
{
"Key": "Environment",
"Type": "TAG"
}
],
"ResultsByTime": [
{
"Estimated": false,
"Groups": [
{
"Keys": [
"Amazon Simple Storage Service",
"Environment$Prod"
],
"Metrics": {
"BlendedCost": {
"Amount": "39.1603300457",
"Unit": "USD"
},
"UnblendedCost": {
"Amount": "39.1603300457",
"Unit": "USD"
},
"UsageQuantity": {
"Amount": "173842.5440074444",
"Unit": "N/A"
}
}
},
{
"Keys": [
"Amazon Simple Storage Service",
"Environment$Test"
],
GetCostAndUsage 70
AWS Billing and Cost Management API Reference
"Metrics": {
"BlendedCost": {
"Amount": "0.1337464807",
"Unit": "USD"
},
"UnblendedCost": {
"Amount": "0.1337464807",
"Unit": "USD"
},
"UsageQuantity": {
"Amount": "15992.0786663399",
"Unit": "N/A"
}
}
}
],
"TimePeriod": {
"End": "2017-10-01",
"Start": "2017-09-01"
},
"Total": {}
}
]
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
GetCostAndUsage 71
AWS Billing and Cost Management API Reference
GetCostAndUsage 72
AWS Billing and Cost Management API Reference
GetCostAndUsageWithResources
Service: AWS Cost Explorer
Retrieves cost and usage metrics with resources for your account. You can specify which cost and
usage-related metric, such as BlendedCosts or UsageQuantity, that you want the request to
return. You can also filter and group your data by various dimensions, such as SERVICE or AZ, in a
specific time range. For a complete list of valid dimensions, see the GetDimensionValues operation.
Management account in an organization in AWS Organizations have access to all member accounts.
Hourly granularity is only available for EC2-Instances (Elastic Compute Cloud) resource-level data.
All other resource-level data is available at daily granularity.
Note
This is an opt-in only feature. You can enable this feature from the Cost Explorer Settings
page. For information about how to access the Settings page, see Controlling Access for
Cost Explorer in the AWS Billing and Cost Management User Guide.
Request Syntax
{
"BillingViewArn": "string",
"Filter": {
"And": [
"Expression"
],
"CostCategories": {
"Key": "string",
"MatchOptions": [ "string" ],
"Values": [ "string" ]
},
"Dimensions": {
"Key": "string",
"MatchOptions": [ "string" ],
"Values": [ "string" ]
},
"Not": "Expression",
"Or": [
"Expression"
],
GetCostAndUsageWithResources 73
AWS Billing and Cost Management API Reference
"Tags": {
"Key": "string",
"MatchOptions": [ "string" ],
"Values": [ "string" ]
}
},
"Granularity": "string",
"GroupBy": [
{
"Key": "string",
"Type": "string"
}
],
"Metrics": [ "string" ],
"NextPageToken": "string",
"TimePeriod": {
"End": "string",
"Start": "string"
}
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
BillingViewArn
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 AWS Billing and Cost Management features. The
BillingViewArn can be retrieved by calling the ListBillingViews API.
Type: String
Pattern: ^arn:aws[a-z-]*:(billing)::[0-9]{12}:billingview/[-a-zA-Z0-9/:_
+=.-@]{1,43}$
Required: No
GetCostAndUsageWithResources 74
AWS Billing and Cost Management API Reference
Filter
Filters Amazon Web Services costs by different dimensions. For example, you can specify
SERVICE and LINKED_ACCOUNT and get the costs that are associated with that account's usage
of that service. You can nest Expression objects to define any combination of dimension
filters. For more information, see Expression.
Valid values for MatchOptions for Dimensions are EQUALS and CASE_SENSITIVE.
Valid values for MatchOptions for CostCategories and Tags are EQUALS, ABSENT, and
CASE_SENSITIVE. Default values are EQUALS and CASE_SENSITIVE.
Required: Yes
Granularity
Sets the AWS cost granularity to MONTHLY, DAILY, or HOURLY. If Granularity isn't set, the
response object doesn't include the Granularity, MONTHLY, DAILY, or HOURLY.
Type: String
Required: Yes
GroupBy
You can group Amazon Web Services costs using up to two different groups: DIMENSION, TAG,
COST_CATEGORY.
Required: No
Metrics
Which metrics are returned in the query. For more information about blended and unblended
rates, see Why does the "blended" annotation appear on some line items in my bill?.
GetCostAndUsageWithResources 75
AWS Billing and Cost Management API Reference
Note
If you return the UsageQuantity metric, the service aggregates all usage numbers
without taking the units into account. For example, if you aggregate usageQuantity
across all of Amazon EC2, the results aren't meaningful because Amazon EC2 compute
hours and data transfer are measured in different units (for example, hour or GB). To get
more meaningful UsageQuantity metrics, filter by UsageType or UsageTypeGroups.
Pattern: [\S\s]*
Required: No
NextPageToken
The token to retrieve the next set of results. AWS provides the token when the response from a
previous call has more results than the maximum page size.
Type: String
Pattern: [\S\s]*
Required: No
TimePeriod
Sets the start and end dates for retrieving Amazon Web Services costs. The range must be
within the last 14 days (the start date cannot be earlier than 14 days ago). The start date
is inclusive, but the end date is exclusive. For example, if start is 2017-01-01 and end is
2017-05-01, then the cost and usage data is retrieved from 2017-01-01 up to and including
2017-04-30 but not including 2017-05-01.
GetCostAndUsageWithResources 76
AWS Billing and Cost Management API Reference
Required: Yes
Response Syntax
{
"DimensionValueAttributes": [
{
"Attributes": {
"string" : "string"
},
"Value": "string"
}
],
"GroupDefinitions": [
{
"Key": "string",
"Type": "string"
}
],
"NextPageToken": "string",
"ResultsByTime": [
{
"Estimated": boolean,
"Groups": [
{
"Keys": [ "string" ],
"Metrics": {
"string" : {
"Amount": "string",
"Unit": "string"
}
}
}
],
"TimePeriod": {
"End": "string",
"Start": "string"
},
"Total": {
"string" : {
"Amount": "string",
"Unit": "string"
}
GetCostAndUsageWithResources 77
AWS Billing and Cost Management API Reference
}
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
DimensionValueAttributes
The attributes that apply to a specific dimension value. For example, if the value is a linked
account, the attribute is that account name.
The groups that are specified by the Filter or GroupBy parameters in the request.
The token for the next set of retrievable results. AWS provides the token when the response
from a previous call has more results than the maximum page size.
Type: String
Pattern: [\S\s]*
ResultsByTime
Errors
For information about the errors that are common to all actions, see Common Errors.
GetCostAndUsageWithResources 78
AWS Billing and Cost Management API Reference
BillExpirationException
The requested report expired. Update the date interval and try again.
You made too many calls in a short period of time. Try again later.
Your request parameters changed between pages. Try again with the old parameters or without
a pagination token.
Examples
Example
GetCostAndUsageWithResources 79
AWS Billing and Cost Management API Reference
Sample Request
POST / HTTP/1.1
Host: ce.us-east-1.amazonaws.com
x-amz-Date: <Date>
Authorization: AWS4-HMAC-SHA256 Credential=<Credential>,
SignedHeaders=contenttype;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-
requestid,Signature=<Signature>
User-Agent: <UserAgentString>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Connection: Keep-Alive
X-Amz-Target: AWSInsightsIndexService.GetCostAndUsageWithResources
{
"TimePeriod": {
"Start":"2018-11-19",
"End": "2018-11-20"
},
"Granularity": "DAILY",
"Filter": {
"Dimensions": {
"Key": "SERVICE",
"Values": [
"Amazon Elastic Compute Cloud - Compute"
]
}
},
"GroupBy":[
{
"Type":"DIMENSION",
"Key":"RESOURCE_ID"
}
],
"Metrics":["BlendedCost", "UnblendedCost", "UsageQuantity"]
}
Sample Response
HTTP/1.1 200 OK
x-amzn-RequestId: <RequestId>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Date: <Date>
GetCostAndUsageWithResources 80
AWS Billing and Cost Management API Reference
{
"GroupDefinitions": [
{
"Key": "RESOURCE_ID",
"Type": "DIMENSION"
}
],
"ResultsByTime": [
{
"Estimated": true,
"Groups": [
{
"Keys": [
"i-00cb32c5f3163"
],
"Metrics": {
"BlendedCost": {
"Amount": "0.0927335232",
"Unit": "USD"
},
"UnblendedCost": {
"Amount": "0.1276",
"Unit": "USD"
},
"UsageQuantity": {
"Amount": "24.0010557602",
"Unit": "N/A"
}
}
},
{
"Keys": [
"i-04a0089019f41"
],
"Metrics": {
"BlendedCost": {
"Amount": "0.1656",
"Unit": "USD"
},
"UnblendedCost": {
"Amount": "0.1656",
"Unit": "USD"
},
"UsageQuantity": {
GetCostAndUsageWithResources 81
AWS Billing and Cost Management API Reference
"Amount": "24.0018044403",
"Unit": "N/A"
}
}
},
{
"Keys": [
"i-03b49bda9fdef"
],
"Metrics": {
"BlendedCost": {
"Amount": "0.0927335232",
"Unit": "USD"
},
"UnblendedCost": {
"Amount": "0.0116",
"Unit": "USD"
},
"UsageQuantity": {
"Amount": "24.0009345564",
"Unit": "N/A"
}
}
},
{
"Keys": [
"i-0e56e09d11711"
],
"Metrics": {
"BlendedCost": {
"Amount": "0.0927335232",
"Unit": "USD"
},
"UnblendedCost": {
"Amount": "0.1392",
"Unit": "USD"
},
"UsageQuantity": {
"Amount": "24.0011066563",
"Unit": "N/A"
}
}
}
],
GetCostAndUsageWithResources 82
AWS Billing and Cost Management API Reference
"TimePeriod": {
"End": "2018-11-20T00:00:00Z",
"Start": "2018-11-19T00:00:00Z"
},
"Total": {}
}
]
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
GetCostAndUsageWithResources 83
AWS Billing and Cost Management API Reference
GetCostCategories
Service: AWS Cost Explorer
Note
If some Cost Category names and values are not associated with any cost, they will not be
returned by this API.
Request Syntax
{
"BillingViewArn": "string",
"CostCategoryName": "string",
"Filter": {
"And": [
"Expression"
],
"CostCategories": {
"Key": "string",
"MatchOptions": [ "string" ],
"Values": [ "string" ]
},
"Dimensions": {
"Key": "string",
"MatchOptions": [ "string" ],
"Values": [ "string" ]
},
"Not": "Expression",
"Or": [
"Expression"
],
"Tags": {
"Key": "string",
"MatchOptions": [ "string" ],
"Values": [ "string" ]
}
},
"MaxResults": number,
"NextPageToken": "string",
GetCostCategories 84
AWS Billing and Cost Management API Reference
"SearchString": "string",
"SortBy": [
{
"Key": "string",
"SortOrder": "string"
}
],
"TimePeriod": {
"End": "string",
"Start": "string"
}
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
BillingViewArn
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 AWS Billing and Cost Management features. The
BillingViewArn can be retrieved by calling the ListBillingViews API.
Type: String
Pattern: ^arn:aws[a-z-]*:(billing)::[0-9]{12}:billingview/[-a-zA-Z0-9/:_
+=.-@]{1,43}$
Required: No
CostCategoryName
Type: String
GetCostCategories 85
AWS Billing and Cost Management API Reference
Required: No
Filter
Not all Expression types are supported in each API. Refer to the documentation for each
specific API to see what is supported.
GetCostCategories 86
AWS Billing and Cost Management API Reference
Note
Because each Expression can have only one operator, the service returns an
error if more than one is specified. The following example shows an Expression
object that creates an error: { "And": [ ... ], "Dimensions": { "Key":
"USAGE_TYPE", "Values": [ "DataTransfer" ] } }
The following is an example of the corresponding error message: "Expression has
more than one roots. Only one root operator is allowed for each
expression: And, Or, Not, Dimensions, Tags, CostCategories"
Note
For the GetRightsizingRecommendation action, a combination of OR and NOT isn't
supported. OR isn't supported between different dimensions, or dimensions and tags.
NOT operators aren't supported. Dimensions are also limited to LINKED_ACCOUNT,
REGION, or RIGHTSIZING_TYPE.
For the GetReservationPurchaseRecommendation action, only NOT is supported.
AND and OR aren't supported. Dimensions are limited to LINKED_ACCOUNT.
Required: No
MaxResults
This field is only used when the SortBy value is provided in the request.
GetCostCategories 87
AWS Billing and Cost Management API Reference
The maximum number of objects that are returned for this request. If MaxResults isn't
specified with the SortBy value, the request returns 1000 results as the default value for this
parameter.
Type: Integer
Required: No
NextPageToken
If the number of objects that are still available for retrieval exceeds the quota, AWS returns
a NextPageToken value in the response. To retrieve the next batch of objects, provide the
NextPageToken from the previous call in your next request.
Type: String
Pattern: [\S\s]*
Required: No
SearchString
The value that you want to search the filter values for.
Type: String
Pattern: [\S\s]*
Required: No
SortBy
GetCostCategories 88
AWS Billing and Cost Management API Reference
The key represents the cost and usage metrics. The following values are supported:
• BlendedCost
• UnblendedCost
• AmortizedCost
• NetAmortizedCost
• NetUnblendedCost
• UsageQuantity
• NormalizedUsageAmount
The supported key values for the SortOrder value are ASCENDING and DESCENDING.
When you use the SortBy value, the NextPageToken and SearchString key values aren't
supported.
Required: No
TimePeriod
Required: Yes
Response Syntax
{
"CostCategoryNames": [ "string" ],
"CostCategoryValues": [ "string" ],
"NextPageToken": "string",
"ReturnSize": number,
"TotalSize": number
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
GetCostCategories 89
AWS Billing and Cost Management API Reference
CostCategoryNames
If the CostCategoryName key isn't specified in the request, the CostCategoryValues fields
aren't returned.
If the number of objects that are still available for retrieval exceeds the quota, AWS returns a
NextPageToken value in the response. To retrieve the next batch of objects, provide the marker
from the prior call in your next request.
Type: String
Pattern: [\S\s]*
ReturnSize
Type: Integer
TotalSize
Type: Integer
GetCostCategories 90
AWS Billing and Cost Management API Reference
Errors
For information about the errors that are common to all actions, see Common Errors.
BillExpirationException
The requested report expired. Update the date interval and try again.
You made too many calls in a short period of time. Try again later.
Your request parameters changed between pages. Try again with the old parameters or without
a pagination token.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
GetCostCategories 91
AWS Billing and Cost Management API Reference
GetCostCategories 92
AWS Billing and Cost Management API Reference
GetCostForecast
Service: AWS Cost Explorer
Retrieves a forecast for how much Amazon Web Services predicts that you will spend over the
forecast time period that you select, based on your past costs.
Request Syntax
{
"BillingViewArn": "string",
"Filter": {
"And": [
"Expression"
],
"CostCategories": {
"Key": "string",
"MatchOptions": [ "string" ],
"Values": [ "string" ]
},
"Dimensions": {
"Key": "string",
"MatchOptions": [ "string" ],
"Values": [ "string" ]
},
"Not": "Expression",
"Or": [
"Expression"
],
"Tags": {
"Key": "string",
"MatchOptions": [ "string" ],
"Values": [ "string" ]
}
},
"Granularity": "string",
"Metric": "string",
"PredictionIntervalLevel": number,
"TimePeriod": {
"End": "string",
"Start": "string"
}
}
GetCostForecast 93
AWS Billing and Cost Management API Reference
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
BillingViewArn
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 AWS Billing and Cost Management features. The
BillingViewArn can be retrieved by calling the ListBillingViews API.
Type: String
Pattern: ^arn:aws[a-z-]*:(billing)::[0-9]{12}:billingview/[-a-zA-Z0-9/:_
+=.-@]{1,43}$
Required: No
Filter
The filters that you want to use to filter your forecast. The GetCostForecast API supports
filtering by the following dimensions:
• AZ
• INSTANCE_TYPE
• LINKED_ACCOUNT
• OPERATION
• PURCHASE_TYPE
• REGION
• SERVICE
• USAGE_TYPE
• USAGE_TYPE_GROUP
• RECORD_TYPE
• OPERATING_SYSTEM
• TENANCY
GetCostForecast 94
AWS Billing and Cost Management API Reference
• SCOPE
• PLATFORM
• SUBSCRIPTION_ID
• LEGAL_ENTITY_NAME
• DEPLOYMENT_OPTION
• DATABASE_ENGINE
• INSTANCE_TYPE_FAMILY
• BILLING_ENTITY
• RESERVATION_ID
• SAVINGS_PLAN_ARN
Required: No
Granularity
How granular you want the forecast to be. You can get 3 months of DAILY forecasts or 12
months of MONTHLY forecasts.
Type: String
Required: Yes
Metric
Which metric Cost Explorer uses to create your forecast. For more information about blended
and unblended rates, see Why does the "blended" annotation appear on some line items in my
bill?.
GetCostForecast 95
AWS Billing and Cost Management API Reference
• UNBLENDED_COST
Type: String
Required: Yes
PredictionIntervalLevel
Cost Explorer always returns the mean forecast as a single point. You can request a prediction
interval around the mean by specifying a confidence level. The higher the confidence level, the
more confident Cost Explorer is about the actual value falling in the prediction interval. Higher
confidence levels result in wider prediction intervals.
Type: Integer
Required: No
TimePeriod
The period of time that you want the forecast to cover. The start date must be equal to or no
later than the current date to avoid a validation error.
Required: Yes
Response Syntax
{
"ForecastResultsByTime": [
{
"MeanValue": "string",
"PredictionIntervalLowerBound": "string",
"PredictionIntervalUpperBound": "string",
"TimePeriod": {
"End": "string",
"Start": "string"
GetCostForecast 96
AWS Billing and Cost Management API Reference
}
}
],
"Total": {
"Amount": "string",
"Unit": "string"
}
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
ForecastResultsByTime
The forecasts for your query, in order. For DAILY forecasts, this is a list of days. For MONTHLY
forecasts, this is a list of months.
How much you are forecasted to spend over the forecast period, in USD.
Errors
For information about the errors that are common to all actions, see Common Errors.
DataUnavailableException
You made too many calls in a short period of time. Try again later.
GetCostForecast 97
AWS Billing and Cost Management API Reference
ResourceNotFoundException
Examples
Example
The following example shows how to retrieve a forecast using the GetCostForecast operation.
Sample Request
POST / HTTP/1.1
Host: ce.us-east-1.amazonaws.com
x-amz-Date: <Date>
Authorization: AWS4-HMAC-SHA256 Credential=<Credential>,
SignedHeaders=contenttype;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-
requestid,Signature=<Signature>
User-Agent: <UserAgentString>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Connection: Keep-Alive
X-Amz-Target: AWSInsightsIndexService.GetCostForecast
{
"TimePeriod": {
"Start":"2017-10-25",
"End": "2017-10-27"
},
"Granularity": "DAILY",
"Filter": {
"Dimensions": {
"Key": "SERVICE",
"Values": [
"Amazon Simple Storage Service"
]
}
},
"Metric":"BLENDED_COST",
"PredictionIntervalLevel":85
}
GetCostForecast 98
AWS Billing and Cost Management API Reference
Sample Response
HTTP/1.1 200 OK
x-amzn-RequestId: <RequestId>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Date: <Date>
{
"ForecastResultsByTime": [
{
"MeanValue": "37.0786663399",
"PredictionIntervalLowerBound": "34.9970026341",
"PredictionIntervalUpperBound": "39.1603300457",
"TimePeriod": {
"End": "2018-10-26",
"Start": "2018-10-25"
}
},
{
"MeanValue": "37.0786663399",
"PredictionIntervalLowerBound": "34.9970026341",
"PredictionIntervalUpperBound": "39.1603300457",
"TimePeriod": {
"End": "2018-10-27",
"Start": "2018-10-26"
}
}
],
"Total": {
"Amount": "74.1573326798",
"Unit": "USD"
}
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
GetCostForecast 99
AWS Billing and Cost Management API Reference
GetCostForecast 100
AWS Billing and Cost Management API Reference
GetDimensionValues
Service: AWS Cost Explorer
Retrieves all available filter values for a specified filter over a period of time. You can search the
dimension values for an arbitrary string.
Request Syntax
{
"BillingViewArn": "string",
"Context": "string",
"Dimension": "string",
"Filter": {
"And": [
"Expression"
],
"CostCategories": {
"Key": "string",
"MatchOptions": [ "string" ],
"Values": [ "string" ]
},
"Dimensions": {
"Key": "string",
"MatchOptions": [ "string" ],
"Values": [ "string" ]
},
"Not": "Expression",
"Or": [
"Expression"
],
"Tags": {
"Key": "string",
"MatchOptions": [ "string" ],
"Values": [ "string" ]
}
},
"MaxResults": number,
"NextPageToken": "string",
"SearchString": "string",
"SortBy": [
{
"Key": "string",
"SortOrder": "string"
GetDimensionValues 101
AWS Billing and Cost Management API Reference
}
],
"TimePeriod": {
"End": "string",
"Start": "string"
}
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
BillingViewArn
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 AWS Billing and Cost Management features. The
BillingViewArn can be retrieved by calling the ListBillingViews API.
Type: String
Pattern: ^arn:aws[a-z-]*:(billing)::[0-9]{12}:billingview/[-a-zA-Z0-9/:_
+=.-@]{1,43}$
Required: No
Context
If you set the context to COST_AND_USAGE, you can use the following dimensions for searching:
• AZ - The Availability Zone. An example is us-east-1a.
• BILLING_ENTITY - The AWS seller that your account is with. Possible values are the following:
GetDimensionValues 102
AWS Billing and Cost Management API Reference
- AISPL (Amazon Internet Services Pvt. Ltd.): The local Indian entity that's an acting reseller
for AWS services in India.
- AWS Marketplace: The entity that supports the sale of solutions that are built on AWS by
third-party software providers.
• CACHE_ENGINE - The Amazon ElastiCache operating system. Examples are Windows or Linux.
• DEPLOYMENT_OPTION - The scope of Amazon Relational Database Service deployments.
Valid values are SingleAZ and MultiAZ.
• DATABASE_ENGINE - The Amazon Relational Database Service database. Examples are Aurora
or MySQL.
• INSTANCE_TYPE - The type of Amazon EC2 instance. An example is m4.xlarge.
• INSTANCE_TYPE_FAMILY - A family of instance types optimized to fit different use
cases. Examples are Compute Optimized (for example, C4, C5, C6g, and C7g), Memory
Optimization (for example, R4, R5n, R5b, and R6g).
• INVOICING_ENTITY - The name of the entity that issues the AWS invoice.
• LEGAL_ENTITY_NAME - The name of the organization that sells you AWS services, such as
Amazon Web Services.
• LINKED_ACCOUNT - The description in the attribute map that includes the full name of the
member account. The value field contains the AWS ID of the member account.
• OPERATING_SYSTEM - The operating system. Examples are Windows or Linux.
• OPERATION - The action performed. Examples include RunInstance and CreateBucket.
• PLATFORM - The Amazon EC2 operating system. Examples are Windows or Linux.
• PURCHASE_TYPE - The reservation type of the purchase that this usage is related to.
Examples include On-Demand Instances and Standard Reserved Instances.
• RESERVATION_ID - The unique identifier for an AWS Reservation Instance.
• SAVINGS_PLAN_ARN - The unique identifier for your Savings Plans.
• SAVINGS_PLANS_TYPE - Type of Savings Plans (EC2 Instance or Compute).
• SERVICE - The AWS service such as Amazon DynamoDB.
• TENANCY - The tenancy of a resource. Examples are shared or dedicated.
• USAGE_TYPE - The type of usage. An example is DataTransfer-In-Bytes. The response for the
GetDimensionValues operation includes a unit attribute. Examples include GB and Hrs.
GetDimensionValues 103
AWS Billing and Cost Management API Reference
If you set the context to RESERVATIONS, you can use the following dimensions for searching:
• AZ - The Availability Zone. An example is us-east-1a.
• CACHE_ENGINE - The Amazon ElastiCache operating system. Examples are Windows or Linux.
• DEPLOYMENT_OPTION - The scope of Amazon Relational Database Service deployments.
Valid values are SingleAZ and MultiAZ.
• INSTANCE_TYPE - The type of Amazon EC2 instance. An example is m4.xlarge.
• LINKED_ACCOUNT - The description in the attribute map that includes the full name of the
member account. The value field contains the AWS ID of the member account.
• PLATFORM - The Amazon EC2 operating system. Examples are Windows or Linux.
• REGION - The AWS Region.
• SCOPE (Utilization only) - The scope of a Reserved Instance (RI). Values are regional or a
single Availability Zone.
• TAG (Coverage only) - The tags that are associated with a Reserved Instance (RI).
• TENANCY - The tenancy of a resource. Examples are shared or dedicated.
If you set the context to SAVINGS_PLANS, you can use the following dimensions for searching:
• SAVINGS_PLANS_TYPE - Type of Savings Plans (EC2 Instance or Compute)
• PAYMENT_OPTION - The payment option for the given Savings Plans (for example, All
Upfront)
• REGION - The AWS Region.
• INSTANCE_TYPE_FAMILY - The family of instances (For example, m5)
• LINKED_ACCOUNT - The description in the attribute map that includes the full name of the
member account. The value field contains the AWS ID of the member account.
• SAVINGS_PLAN_ARN - The unique identifier for your Savings Plans.
GetDimensionValues 104
AWS Billing and Cost Management API Reference
Type: String
Required: No
Dimension
The name of the dimension. Each Dimension is available for a different Context. For more
information, see Context. LINK_ACCOUNT_NAME and SERVICE_CODE can only be used in
CostCategoryRule.
Type: String
Required: Yes
Filter
Not all Expression types are supported in each API. Refer to the documentation for each
specific API to see what is supported.
GetDimensionValues 105
AWS Billing and Cost Management API Reference
• For each filter type, you can set the dimension name and values for the filters that you plan
to use.
• For example, you can filter for REGION==us-east-1 OR REGION==us-west-1.
For GetRightsizingRecommendation, the Region is a full name (for example,
REGION==US East (N. Virginia).
• As shown in the previous example, lists of dimension values are combined with OR when
applying the filter.
• You can also set different match options to further control how the filter behaves. Not all
APIs support match options. Refer to the documentation for each specific API to see what is
supported.
• For example, you can filter for linked account names that start with "a".
• You can use multiple Expression types and the logical operators AND/OR/NOT to create
a list of one or more Expression objects. By doing this, you can filter by more advanced
options.
Note
Because each Expression can have only one operator, the service returns an
error if more than one is specified. The following example shows an Expression
object that creates an error: { "And": [ ... ], "Dimensions": { "Key":
"USAGE_TYPE", "Values": [ "DataTransfer" ] } }
GetDimensionValues 106
AWS Billing and Cost Management API Reference
Note
For the GetRightsizingRecommendation action, a combination of OR and NOT isn't
supported. OR isn't supported between different dimensions, or dimensions and tags.
NOT operators aren't supported. Dimensions are also limited to LINKED_ACCOUNT,
REGION, or RIGHTSIZING_TYPE.
For the GetReservationPurchaseRecommendation action, only NOT is supported.
AND and OR aren't supported. Dimensions are limited to LINKED_ACCOUNT.
Required: No
MaxResults
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.
Type: Integer
Required: No
NextPageToken
The token to retrieve the next set of results. AWS provides the token when the response from a
previous call has more results than the maximum page size.
Type: String
GetDimensionValues 107
AWS Billing and Cost Management API Reference
Pattern: [\S\s]*
Required: No
SearchString
The value that you want to search the filter values for.
Type: String
Pattern: [\S\s]*
Required: No
SortBy
The key represents cost and usage metrics. The following values are supported:
• BlendedCost
• UnblendedCost
• AmortizedCost
• NetAmortizedCost
• NetUnblendedCost
• UsageQuantity
• NormalizedUsageAmount
The supported values for the SortOrder key are ASCENDING or DESCENDING.
When you specify a SortBy paramater, the context must be COST_AND_USAGE. Further, when
using SortBy, NextPageToken and SearchString aren't supported.
Required: No
TimePeriod
The start date and end date for retrieving the dimension values. The start date is inclusive, but
the end date is exclusive. For example, if start is 2017-01-01 and end is 2017-05-01, then
GetDimensionValues 108
AWS Billing and Cost Management API Reference
the cost and usage data is retrieved from 2017-01-01 up to and including 2017-04-30 but
not including 2017-05-01.
Required: Yes
Response Syntax
{
"DimensionValues": [
{
"Attributes": {
"string" : "string"
},
"Value": "string"
}
],
"NextPageToken": "string",
"ReturnSize": number,
"TotalSize": number
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
DimensionValues
The filters that you used to filter your request. Some dimensions are available only for a specific
context.
If you set the context to COST_AND_USAGE, you can use the following dimensions for searching:
• AZ - The Availability Zone. An example is us-east-1a.
• DATABASE_ENGINE - The Amazon Relational Database Service database. Examples are Aurora
or MySQL.
• INSTANCE_TYPE - The type of Amazon EC2 instance. An example is m4.xlarge.
GetDimensionValues 109
AWS Billing and Cost Management API Reference
• LEGAL_ENTITY_NAME - The name of the organization that sells you AWS services, such as
Amazon Web Services.
• LINKED_ACCOUNT - The description in the attribute map that includes the full name of the
member account. The value field contains the AWS ID of the member account.
• OPERATING_SYSTEM - The operating system. Examples are Windows or Linux.
• OPERATION - The action performed. Examples include RunInstance and CreateBucket.
• PLATFORM - The Amazon EC2 operating system. Examples are Windows or Linux.
• PURCHASE_TYPE - The reservation type of the purchase to which this usage is related.
Examples include On-Demand Instances and Standard Reserved Instances.
• SERVICE - The AWS service such as Amazon DynamoDB.
• USAGE_TYPE - The type of usage. An example is DataTransfer-In-Bytes. The response for the
GetDimensionValues operation includes a unit attribute. Examples include GB and Hrs.
• USAGE_TYPE_GROUP - The grouping of common usage types. An example is Amazon EC2:
CloudWatch – Alarms. The response for this operation includes a unit attribute.
• RECORD_TYPE - The different types of charges such as RI fees, usage costs, tax refunds, and
credits.
• RESOURCE_ID - The unique identifier of the resource. ResourceId is an opt-in feature only
available for last 14 days for EC2-Compute Service. You can opt-in by enabling Hourly and
Resource Level Data in AWS Cost Management Console preferences.
If you set the context to RESERVATIONS, you can use the following dimensions for searching:
• AZ - The Availability Zone. An example is us-east-1a.
• CACHE_ENGINE - The Amazon ElastiCache operating system. Examples are Windows or Linux.
• DEPLOYMENT_OPTION - The scope of Amazon Relational Database Service deployments.
Valid values are SingleAZ and MultiAZ.
• INSTANCE_TYPE - The type of Amazon EC2 instance. An example is m4.xlarge.
• LINKED_ACCOUNT - The description in the attribute map that includes the full name of the
member account. The value field contains the AWS ID of the member account.
• PLATFORM - The Amazon EC2 operating system. Examples are Windows or Linux.
• REGION - The AWS Region.
• SCOPE (Utilization only) - The scope of a Reserved Instance (RI). Values are regional or a
single Availability Zone.
GetDimensionValues 110
AWS Billing and Cost Management API Reference
• TAG (Coverage only) - The tags that are associated with a Reserved Instance (RI).
• TENANCY - The tenancy of a resource. Examples are shared or dedicated.
If you set the context to SAVINGS_PLANS, you can use the following dimensions for searching:
• SAVINGS_PLANS_TYPE - Type of Savings Plans (EC2 Instance or Compute)
• PAYMENT_OPTION - Payment option for the given Savings Plans (for example, All Upfront)
• REGION - The AWS Region.
• INSTANCE_TYPE_FAMILY - The family of instances (For example, m5)
• LINKED_ACCOUNT - The description in the attribute map that includes the full name of the
member account. The value field contains the AWS ID of the member account.
• SAVINGS_PLAN_ARN - The unique identifier for your Savings Plan
The token for the next set of retrievable results. AWS provides the token when the response
from a previous call has more results than the maximum page size.
Type: String
Pattern: [\S\s]*
ReturnSize
Type: Integer
TotalSize
Type: Integer
Errors
For information about the errors that are common to all actions, see Common Errors.
GetDimensionValues 111
AWS Billing and Cost Management API Reference
BillExpirationException
The requested report expired. Update the date interval and try again.
You made too many calls in a short period of time. Try again later.
Your request parameters changed between pages. Try again with the old parameters or without
a pagination token.
Examples
Example
The following is a sample request and response of the GetDimensionValues operation that
enables you to search for all the member accounts in an organization in AWS Organizations that
have "Elastic" in their name.
GetDimensionValues 112
AWS Billing and Cost Management API Reference
Sample Request
POST / HTTP/1.1
Host: ce.us-east-1.amazonaws.com
x-amz-Date: <Date>
Authorization: AWS4-HMAC-SHA256 Credential=<Credential>,
SignedHeaders=contenttype;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-
requestid,Signature=<Signature>
User-Agent: <UserAgentString>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Connection: Keep-Alive
X-Amz-Target: AWSInsightsIndexService.GetDimensionValues
{
"TimePeriod": {
"Start": "2017-01-01",
"End": "2017-05-18"
},
"SearchString": "Elastic",
"Dimension": "Service"
}
Sample Response
HTTP/1.1 200 OK
x-amzn-RequestId: <RequestId>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Date: <Date>
//Attributes are optional metadata that are returned depending on the dimension that
you select.
{
"DimensionValues": [
{
"Attributes": {},
"Value": "Amazon ElastiCache"
},
{
"Attributes": {},
"Value": "EC2 - Other"
},
{
"Attributes": {},
GetDimensionValues 113
AWS Billing and Cost Management API Reference
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
GetDimensionValues 114
AWS Billing and Cost Management API Reference
GetReservationCoverage
Service: AWS Cost Explorer
Retrieves the reservation coverage for your account, which you can use to see how much of your
Amazon Elastic Compute Cloud, Amazon ElastiCache, Amazon Relational Database Service, or
Amazon Redshift usage is covered by a reservation. An organization's management account can
see the coverage of the associated member accounts. This supports dimensions, Cost Categories,
and nested expressions. For any time period, you can filter data about reservation usage by the
following dimensions:
• AZ
• CACHE_ENGINE
• DATABASE_ENGINE
• DEPLOYMENT_OPTION
• INSTANCE_TYPE
• LINKED_ACCOUNT
• OPERATING_SYSTEM
• PLATFORM
• REGION
• SERVICE
• TAG
• TENANCY
Request Syntax
{
"Filter": {
"And": [
"Expression"
],
"CostCategories": {
"Key": "string",
"MatchOptions": [ "string" ],
"Values": [ "string" ]
GetReservationCoverage 115
AWS Billing and Cost Management API Reference
},
"Dimensions": {
"Key": "string",
"MatchOptions": [ "string" ],
"Values": [ "string" ]
},
"Not": "Expression",
"Or": [
"Expression"
],
"Tags": {
"Key": "string",
"MatchOptions": [ "string" ],
"Values": [ "string" ]
}
},
"Granularity": "string",
"GroupBy": [
{
"Key": "string",
"Type": "string"
}
],
"MaxResults": number,
"Metrics": [ "string" ],
"NextPageToken": "string",
"SortBy": {
"Key": "string",
"SortOrder": "string"
},
"TimePeriod": {
"End": "string",
"Start": "string"
}
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
GetReservationCoverage 116
AWS Billing and Cost Management API Reference
Filter
Filters utilization data by dimensions. You can filter by the following dimensions:
• AZ
• CACHE_ENGINE
• DATABASE_ENGINE
• DEPLOYMENT_OPTION
• INSTANCE_TYPE
• LINKED_ACCOUNT
• OPERATING_SYSTEM
• PLATFORM
• REGION
• SERVICE
• TAG
• TENANCY
GetReservationCoverage uses the same Expression object as the other operations, but only
AND is supported among each dimension. You can nest only one level deep. If there are multiple
values for a dimension, they are OR'd together.
Required: No
Granularity
The granularity of the AWS cost data for the reservation. Valid values are MONTHLY and DAILY.
If GroupBy is set, Granularity can't be set. If Granularity isn't set, the response object
doesn't include Granularity, either MONTHLY or DAILY.
Type: String
GetReservationCoverage 117
AWS Billing and Cost Management API Reference
Required: No
GroupBy
Required: No
MaxResults
The maximum number of objects that you returned for this request. If more objects are
available, in the response, AWS provides a NextPageToken value that you can use in a
subsequent call to get the next batch of objects.
Type: Integer
Required: No
Metrics
The measurement that you want your reservation coverage reported in.
Valid values are Hour, Unit, and Cost. You can use multiple values in a request.
GetReservationCoverage 118
AWS Billing and Cost Management API Reference
Pattern: [\S\s]*
Required: No
NextPageToken
The token to retrieve the next set of results. AWS provides the token when the response from a
previous call has more results than the maximum page size.
Type: String
Pattern: [\S\s]*
Required: No
SortBy
Required: No
GetReservationCoverage 119
AWS Billing and Cost Management API Reference
TimePeriod
The start and end dates of the period that you want to retrieve data about reservation
coverage for. You can retrieve data for a maximum of 13 months: the last 12 months and
the current month. The start date is inclusive, but the end date is exclusive. For example, if
start is 2017-01-01 and end is 2017-05-01, then the cost and usage data is retrieved from
2017-01-01 up to and including 2017-04-30 but not including 2017-05-01.
Required: Yes
Response Syntax
{
"CoveragesByTime": [
{
"Groups": [
{
"Attributes": {
"string" : "string"
},
"Coverage": {
"CoverageCost": {
"OnDemandCost": "string"
},
"CoverageHours": {
"CoverageHoursPercentage": "string",
"OnDemandHours": "string",
"ReservedHours": "string",
"TotalRunningHours": "string"
},
"CoverageNormalizedUnits": {
"CoverageNormalizedUnitsPercentage": "string",
"OnDemandNormalizedUnits": "string",
"ReservedNormalizedUnits": "string",
"TotalRunningNormalizedUnits": "string"
}
}
}
],
"TimePeriod": {
GetReservationCoverage 120
AWS Billing and Cost Management API Reference
"End": "string",
"Start": "string"
},
"Total": {
"CoverageCost": {
"OnDemandCost": "string"
},
"CoverageHours": {
"CoverageHoursPercentage": "string",
"OnDemandHours": "string",
"ReservedHours": "string",
"TotalRunningHours": "string"
},
"CoverageNormalizedUnits": {
"CoverageNormalizedUnitsPercentage": "string",
"OnDemandNormalizedUnits": "string",
"ReservedNormalizedUnits": "string",
"TotalRunningNormalizedUnits": "string"
}
}
}
],
"NextPageToken": "string",
"Total": {
"CoverageCost": {
"OnDemandCost": "string"
},
"CoverageHours": {
"CoverageHoursPercentage": "string",
"OnDemandHours": "string",
"ReservedHours": "string",
"TotalRunningHours": "string"
},
"CoverageNormalizedUnits": {
"CoverageNormalizedUnitsPercentage": "string",
"OnDemandNormalizedUnits": "string",
"ReservedNormalizedUnits": "string",
"TotalRunningNormalizedUnits": "string"
}
}
}
GetReservationCoverage 121
AWS Billing and Cost Management API Reference
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
CoveragesByTime
The token for the next set of retrievable results. AWS provides the token when the response
from a previous call has more results than the maximum page size.
Type: String
Pattern: [\S\s]*
Total
Errors
For information about the errors that are common to all actions, see Common Errors.
DataUnavailableException
GetReservationCoverage 122
AWS Billing and Cost Management API Reference
LimitExceededException
You made too many calls in a short period of time. Try again later.
Examples
Example
Sample Request
POST / HTTP/1.1
Host: ce.us-east-1.amazonaws.com
x-amz-Date: <Date>
Authorization: AWS4-HMAC-SHA256 Credential=<Credential>,
SignedHeaders=contenttype;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-
requestid,Signature=<Signature>
User-Agent: <UserAgentString>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Connection: Keep-Alive
X-Amz-Target: AWSInsightsIndexService.GetReservationCoverage
{
"TimePeriod": {
"Start":"2017-07-01",
"End": "2017-10-01"
},
"Filter": {
"And": [
{"Dimensions": {
"Key": "INSTANCE_TYPE",
"Values": [
"t2.nano"
]
},
{"Dimensions": {
"Key": "REGION",
"Values": [
"us-east-1"
GetReservationCoverage 123
AWS Billing and Cost Management API Reference
]
}}
]
},
"GroupBy":[
{
"Type":"Dimension",
"Key":"REGION"
}
]
}
Sample Response
HTTP/1.1 200 OK
x-amzn-RequestId: <RequestId>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Date: <Date>
{
"CoveragesByTime": [{
"Groups": [{
"Attributes": {
"region": "us-east-1"
},
"Coverage": {
"CoverageHours": {
"CoverageHoursPercentage": "40%",
"OnDemandHours": "40",
"ReservedHours": "40",
"TotalRunningHours": "80"
}
"CoverageNormalizedUnits": {
"CoverageNormalizedUnitsPercentage": "10",
"OnDemandNormalizedUnits": "10",
"ReservedNormalizedUnits": "10",
"TotalRunningNormalizedUnits": "20"
}
}
}],
"TimePeriod": {
"End": "2017-07-01",
"Start": "2017-10-01"
GetReservationCoverage 124
AWS Billing and Cost Management API Reference
},
"Total": {
"CoverageHours": {
"CoverageHoursPercentage": "40%",
"OnDemandHours": "40",
"ReservedHours": "40",
"TotalRunningHours": "80"
}
"CoverageNormalizedUnits": {
"CoverageNormalizedUnitsPercentage": "10",
"OnDemandNormalizedUnits": "10",
"ReservedNormalizedUnits": "10",
"TotalRunningNormalizedUnits": "20"
}
}
}],
"Total": {
"CoverageHours": {
"CoverageHoursPercentage": "40%",
"OnDemandHours": "40",
"ReservedHours": "40",
"TotalRunningHours": "80"
}
}
}
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
GetReservationCoverage 125
AWS Billing and Cost Management API Reference
GetReservationCoverage 126
AWS Billing and Cost Management API Reference
GetReservationPurchaseRecommendation
Service: AWS Cost Explorer
Gets recommendations for reservation purchases. These recommendations might help you to
reduce your costs. Reservations provide a discounted hourly rate (up to 75%) compared to On-
Demand pricing.
AWS generates your recommendations by identifying your On-Demand usage during a specific
time period and collecting your usage into categories that are eligible for a reservation. After AWS
has these categories, it simulates every combination of reservations in each category of usage
to identify the best number of each type of Reserved Instance (RI) to purchase to maximize your
estimated savings.
For example, AWS automatically aggregates your Amazon EC2 Linux, shared tenancy, and c4
family usage in the US West (Oregon) Region and recommends that you buy size-flexible regional
reservations to apply to the c4 family usage. AWS recommends the smallest size instance in an
instance family. This makes it easier to purchase a size-flexible Reserved Instance (RI). AWS also
shows the equal number of normalized units. This way, you can purchase any instance size that you
want. For this example, your RI recommendation is for c4.large because that is the smallest size
instance in the c4 instance family.
Request Syntax
{
"AccountId": "string",
"AccountScope": "string",
"Filter": {
"And": [
"Expression"
],
"CostCategories": {
"Key": "string",
"MatchOptions": [ "string" ],
"Values": [ "string" ]
},
"Dimensions": {
"Key": "string",
"MatchOptions": [ "string" ],
"Values": [ "string" ]
},
"Not": "Expression",
GetReservationPurchaseRecommendation 127
AWS Billing and Cost Management API Reference
"Or": [
"Expression"
],
"Tags": {
"Key": "string",
"MatchOptions": [ "string" ],
"Values": [ "string" ]
}
},
"LookbackPeriodInDays": "string",
"NextPageToken": "string",
"PageSize": number,
"PaymentOption": "string",
"Service": "string",
"ServiceSpecification": {
"EC2Specification": {
"OfferingClass": "string"
}
},
"TermInYears": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
AccountId
Type: String
Pattern: [\S\s]*
Required: No
AccountScope
The account scope that you want your recommendations for. Amazon Web Services calculates
recommendations including the management account and member accounts if the value is
GetReservationPurchaseRecommendation 128
AWS Billing and Cost Management API Reference
set to PAYER. If the value is LINKED, recommendations are calculated for individual member
accounts only.
Type: String
Required: No
Filter
Not all Expression types are supported in each API. Refer to the documentation for each
specific API to see what is supported.
• There are three types of simple dimension values: CostCategories, Tags, and
Dimensions.
• Specify the CostCategories field to define a filter that acts on Cost Categories.
• Specify the Tags field to define a filter that acts on Cost Allocation Tags.
• Specify the Dimensions field to define a filter that acts on the DimensionValues.
• For each filter type, you can set the dimension name and values for the filters that you plan
to use.
• For example, you can filter for REGION==us-east-1 OR REGION==us-west-1.
For GetRightsizingRecommendation, the Region is a full name (for example,
REGION==US East (N. Virginia).
• As shown in the previous example, lists of dimension values are combined with OR when
applying the filter.
• You can also set different match options to further control how the filter behaves. Not all
APIs support match options. Refer to the documentation for each specific API to see what is
supported.
• For example, you can filter for linked account names that start with "a".
GetReservationPurchaseRecommendation 129
AWS Billing and Cost Management API Reference
• You can use multiple Expression types and the logical operators AND/OR/NOT to create
a list of one or more Expression objects. By doing this, you can filter by more advanced
options.
Note
Because each Expression can have only one operator, the service returns an
error if more than one is specified. The following example shows an Expression
object that creates an error: { "And": [ ... ], "Dimensions": { "Key":
"USAGE_TYPE", "Values": [ "DataTransfer" ] } }
The following is an example of the corresponding error message: "Expression has
more than one roots. Only one root operator is allowed for each
expression: And, Or, Not, Dimensions, Tags, CostCategories"
Note
For the GetRightsizingRecommendation action, a combination of OR and NOT isn't
supported. OR isn't supported between different dimensions, or dimensions and tags.
NOT operators aren't supported. Dimensions are also limited to LINKED_ACCOUNT,
REGION, or RIGHTSIZING_TYPE.
For the GetReservationPurchaseRecommendation action, only NOT is supported.
AND and OR aren't supported. Dimensions are limited to LINKED_ACCOUNT.
GetReservationPurchaseRecommendation 130
AWS Billing and Cost Management API Reference
Required: No
LookbackPeriodInDays
The number of previous days that you want AWS to consider when it calculates your
recommendations.
Type: String
Required: No
NextPageToken
The pagination token that indicates the next set of results that you want to retrieve.
Type: String
Pattern: [\S\s]*
Required: No
PageSize
The number of recommendations that you want returned in a single response object.
Type: Integer
Required: No
PaymentOption
Type: String
Required: No
GetReservationPurchaseRecommendation 131
AWS Billing and Cost Management API Reference
Service
Type: String
Pattern: [\S\s]*
Required: Yes
ServiceSpecification
The hardware specifications for the service instances that you want recommendations for, such
as standard or convertible Amazon EC2 instances.
Required: No
TermInYears
Type: String
Required: No
Response Syntax
{
"Metadata": {
"AdditionalMetadata": "string",
"GenerationTimestamp": "string",
"RecommendationId": "string"
},
"NextPageToken": "string",
"Recommendations": [
{
"AccountScope": "string",
"LookbackPeriodInDays": "string",
"PaymentOption": "string",
GetReservationPurchaseRecommendation 132
AWS Billing and Cost Management API Reference
"RecommendationDetails": [
{
"AccountId": "string",
"AverageNormalizedUnitsUsedPerHour": "string",
"AverageNumberOfCapacityUnitsUsedPerHour": "string",
"AverageNumberOfInstancesUsedPerHour": "string",
"AverageUtilization": "string",
"CurrencyCode": "string",
"EstimatedBreakEvenInMonths": "string",
"EstimatedMonthlyOnDemandCost": "string",
"EstimatedMonthlySavingsAmount": "string",
"EstimatedMonthlySavingsPercentage": "string",
"EstimatedReservationCostForLookbackPeriod": "string",
"InstanceDetails": {
"EC2InstanceDetails": {
"AvailabilityZone": "string",
"CurrentGeneration": boolean,
"Family": "string",
"InstanceType": "string",
"Platform": "string",
"Region": "string",
"SizeFlexEligible": boolean,
"Tenancy": "string"
},
"ElastiCacheInstanceDetails": {
"CurrentGeneration": boolean,
"Family": "string",
"NodeType": "string",
"ProductDescription": "string",
"Region": "string",
"SizeFlexEligible": boolean
},
"ESInstanceDetails": {
"CurrentGeneration": boolean,
"InstanceClass": "string",
"InstanceSize": "string",
"Region": "string",
"SizeFlexEligible": boolean
},
"MemoryDBInstanceDetails": {
"CurrentGeneration": boolean,
"Family": "string",
"NodeType": "string",
"Region": "string",
GetReservationPurchaseRecommendation 133
AWS Billing and Cost Management API Reference
"SizeFlexEligible": boolean
},
"RDSInstanceDetails": {
"CurrentGeneration": boolean,
"DatabaseEdition": "string",
"DatabaseEngine": "string",
"DeploymentOption": "string",
"Family": "string",
"InstanceType": "string",
"LicenseModel": "string",
"Region": "string",
"SizeFlexEligible": boolean
},
"RedshiftInstanceDetails": {
"CurrentGeneration": boolean,
"Family": "string",
"NodeType": "string",
"Region": "string",
"SizeFlexEligible": boolean
}
},
"MaximumNormalizedUnitsUsedPerHour": "string",
"MaximumNumberOfCapacityUnitsUsedPerHour": "string",
"MaximumNumberOfInstancesUsedPerHour": "string",
"MinimumNormalizedUnitsUsedPerHour": "string",
"MinimumNumberOfCapacityUnitsUsedPerHour": "string",
"MinimumNumberOfInstancesUsedPerHour": "string",
"RecommendedNormalizedUnitsToPurchase": "string",
"RecommendedNumberOfCapacityUnitsToPurchase": "string",
"RecommendedNumberOfInstancesToPurchase": "string",
"RecurringStandardMonthlyCost": "string",
"ReservedCapacityDetails": {
"DynamoDBCapacityDetails": {
"CapacityUnits": "string",
"Region": "string"
}
},
"UpfrontCost": "string"
}
],
"RecommendationSummary": {
"CurrencyCode": "string",
"TotalEstimatedMonthlySavingsAmount": "string",
"TotalEstimatedMonthlySavingsPercentage": "string"
GetReservationPurchaseRecommendation 134
AWS Billing and Cost Management API Reference
},
"ServiceSpecification": {
"EC2Specification": {
"OfferingClass": "string"
}
},
"TermInYears": "string"
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Metadata
Information about this specific recommendation call, such as the time stamp for when Cost
Explorer generated this recommendation.
Type: String
Pattern: [\S\s]*
Recommendations
Errors
For information about the errors that are common to all actions, see Common Errors.
GetReservationPurchaseRecommendation 135
AWS Billing and Cost Management API Reference
DataUnavailableException
You made too many calls in a short period of time. Try again later.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
GetReservationPurchaseRecommendation 136
AWS Billing and Cost Management API Reference
GetReservationUtilization
Service: AWS Cost Explorer
Retrieves the reservation utilization for your account. Management account in an organization
have access to member accounts. You can filter data by dimensions in a time period. You can use
GetDimensionValues to determine the possible dimension values. Currently, you can group only
by SUBSCRIPTION_ID.
Request Syntax
{
"Filter": {
"And": [
"Expression"
],
"CostCategories": {
"Key": "string",
"MatchOptions": [ "string" ],
"Values": [ "string" ]
},
"Dimensions": {
"Key": "string",
"MatchOptions": [ "string" ],
"Values": [ "string" ]
},
"Not": "Expression",
"Or": [
"Expression"
],
"Tags": {
"Key": "string",
"MatchOptions": [ "string" ],
"Values": [ "string" ]
}
},
"Granularity": "string",
"GroupBy": [
{
"Key": "string",
"Type": "string"
}
],
GetReservationUtilization 137
AWS Billing and Cost Management API Reference
"MaxResults": number,
"NextPageToken": "string",
"SortBy": {
"Key": "string",
"SortOrder": "string"
},
"TimePeriod": {
"End": "string",
"Start": "string"
}
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
Filter
Filters utilization data by dimensions. You can filter by the following dimensions:
• AZ
• CACHE_ENGINE
• DEPLOYMENT_OPTION
• INSTANCE_TYPE
• LINKED_ACCOUNT
• OPERATING_SYSTEM
• PLATFORM
• REGION
• SERVICE
Note
If not specified, the SERVICE filter defaults to Amazon Elastic Compute Cloud
- Compute. Supported values for SERVICE are Amazon Elastic Compute Cloud
- Compute, Amazon Relational Database Service, Amazon ElastiCache, Amazon
Redshift, and Amazon Elasticsearch Service. The value for the SERVICE filter should
not exceed "1".
GetReservationUtilization 138
AWS Billing and Cost Management API Reference
• SCOPE
• TENANCY
GetReservationUtilization uses the same Expression object as the other operations, but
only AND is supported among each dimension, and nesting is supported up to only one level
deep. If there are multiple values for a dimension, they are OR'd together.
Required: No
Granularity
If GroupBy is set, Granularity can't be set. If Granularity isn't set, the response object
doesn't include Granularity, either MONTHLY or DAILY. If both GroupBy and Granularity
aren't set, GetReservationUtilization defaults to DAILY.
Type: String
Required: No
GroupBy
Required: No
MaxResults
The maximum number of objects that you returned for this request. If more objects are
available, in the response, AWS provides a NextPageToken value that you can use in a
subsequent call to get the next batch of objects.
Type: Integer
Required: No
GetReservationUtilization 139
AWS Billing and Cost Management API Reference
NextPageToken
The token to retrieve the next set of results. AWS provides the token when the response from a
previous call has more results than the maximum page size.
Type: String
Pattern: [\S\s]*
Required: No
SortBy
GetReservationUtilization 140
AWS Billing and Cost Management API Reference
Required: No
TimePeriod
Sets the start and end dates for retrieving Reserved Instance (RI) utilization. The start date
is inclusive, but the end date is exclusive. For example, if start is 2017-01-01 and end is
2017-05-01, then the cost and usage data is retrieved from 2017-01-01 up to and including
2017-04-30 but not including 2017-05-01.
Required: Yes
Response Syntax
{
"NextPageToken": "string",
"Total": {
"AmortizedRecurringFee": "string",
"AmortizedUpfrontFee": "string",
"NetRISavings": "string",
"OnDemandCostOfRIHoursUsed": "string",
"PurchasedHours": "string",
"PurchasedUnits": "string",
"RealizedSavings": "string",
"RICostForUnusedHours": "string",
"TotalActualHours": "string",
"TotalActualUnits": "string",
"TotalAmortizedFee": "string",
"TotalPotentialRISavings": "string",
"UnrealizedSavings": "string",
"UnusedHours": "string",
"UnusedUnits": "string",
"UtilizationPercentage": "string",
"UtilizationPercentageInUnits": "string"
},
"UtilizationsByTime": [
{
"Groups": [
{
"Attributes": {
GetReservationUtilization 141
AWS Billing and Cost Management API Reference
"string" : "string"
},
"Key": "string",
"Utilization": {
"AmortizedRecurringFee": "string",
"AmortizedUpfrontFee": "string",
"NetRISavings": "string",
"OnDemandCostOfRIHoursUsed": "string",
"PurchasedHours": "string",
"PurchasedUnits": "string",
"RealizedSavings": "string",
"RICostForUnusedHours": "string",
"TotalActualHours": "string",
"TotalActualUnits": "string",
"TotalAmortizedFee": "string",
"TotalPotentialRISavings": "string",
"UnrealizedSavings": "string",
"UnusedHours": "string",
"UnusedUnits": "string",
"UtilizationPercentage": "string",
"UtilizationPercentageInUnits": "string"
},
"Value": "string"
}
],
"TimePeriod": {
"End": "string",
"Start": "string"
},
"Total": {
"AmortizedRecurringFee": "string",
"AmortizedUpfrontFee": "string",
"NetRISavings": "string",
"OnDemandCostOfRIHoursUsed": "string",
"PurchasedHours": "string",
"PurchasedUnits": "string",
"RealizedSavings": "string",
"RICostForUnusedHours": "string",
"TotalActualHours": "string",
"TotalActualUnits": "string",
"TotalAmortizedFee": "string",
"TotalPotentialRISavings": "string",
"UnrealizedSavings": "string",
"UnusedHours": "string",
GetReservationUtilization 142
AWS Billing and Cost Management API Reference
"UnusedUnits": "string",
"UtilizationPercentage": "string",
"UtilizationPercentageInUnits": "string"
}
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
NextPageToken
The token for the next set of retrievable results. AWS provides the token when the response
from a previous call has more results than the maximum page size.
Type: String
Pattern: [\S\s]*
Total
The total amount of time that you used your Reserved Instances (RIs).
The amount of time that you used your Reserved Instances (RIs).
Errors
For information about the errors that are common to all actions, see Common Errors.
DataUnavailableException
GetReservationUtilization 143
AWS Billing and Cost Management API Reference
You made too many calls in a short period of time. Try again later.
Examples
Example
Sample Request
POST / HTTP/1.1
Host: ce.us-east-1.amazonaws.com
x-amz-Date: <Date>
Authorization: AWS4-HMAC-SHA256 Credential=<Credential>,
SignedHeaders=contenttype;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-
requestid,Signature=<Signature>
User-Agent: <UserAgentString>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Connection: Keep-Alive
X-Amz-Target: AWSInsightsIndexService.GetReservationUtilization
{
"TimePeriod": {
"Start":"2017-07-01",
"End": "2017-10-01"
},
"Filter": {
"Dimensions": {
"Key": "INSTANCE_TYPE",
"Values": [
GetReservationUtilization 144
AWS Billing and Cost Management API Reference
"t2.nano"
]
}
},
"GroupBy":[
{
"Type":"Dimension",
"Key":"SUBSCRIPTION_ID"
}
]
}
Sample Response
HTTP/1.1 200 OK
x-amzn-RequestId: <RequestId>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Date: <Date>
{
"UtilizationsByTime": [{
"Groups": [{
"Attributes": {
"AccountId": "0123456789",
"AccountName": null,
"AvailabilityZone": "",
"CancellationDateTime": "2019-09-28T15:22:31.000Z",
"EndDateTime": "2019-09-28T15:22:31.000Z",
"InstanceType": "t2.nano",
"LeaseId": null,
"NumberOfInstances": "1",
"OfferingType": "convertible",
"Platform": "Linux/UNIX",
"Region": "us-east-1",
"Scope": "Region",
"StartDateTime": "2016-09-28T15:22:32.000Z",
"SubscriptionId": "359809062",
"SubscriptionStatus": "Active",
"SubscriptionType": "All Upfront",
"Tenancy": "Shared"
},
"Key": "SUBSCRIPTION_ID",
"Utilization": {
GetReservationUtilization 145
AWS Billing and Cost Management API Reference
"PurchasedHours": 2208,
"TotalActualHours": 2208,
"UnusedHours": 0,
"UtilizationPercentage": 100
},
"Value": "359809062"
},
{
"Attributes": {
"": "0123456789",
"AccountName": null,
"AvailabilityZone": "us-east-1d",
"CancellationDateTime": "2017-09-28T15:22:31.000Z",
"EndDateTime": "2017-09-28T15:22:31.000Z",
"InstanceType": "t2.nano",
"LeaseId": null,
"NumberOfInstances": "1",
"OfferingType": "Standard",
"Platform": "Linux/UNIX",
"Region": "us-east-1",
"Scope": "Availability Zone",
"StartDateTime": "2016-09-28T15:22:32.000Z",
"SubscriptionId": "359809070",
"SubscriptionStatus": "Active",
"SubscriptionType": "All Upfront",
"Tenancy": "Shared"
},
"Key": "SUBSCRIPTION_ID",
"Utilization": {
"PurchasedHours": 2151,
"TotalActualHours": 2151,
"UnusedHours": 0,
"UtilizationPercentage": 100
},
"Value": "359809070"
},
{
"Attributes": {
"AccountId": "0123456789",
"AccountName": null,
"AvailabilityZone": "us-west-2a",
"CancellationDateTime": "2017-09-20T04:06:02.000Z",
"EndDateTime": "2017-09-20T04:06:02.000Z",
"InstanceType": "t2.nano",
GetReservationUtilization 146
AWS Billing and Cost Management API Reference
"LeaseId": null,
"NumberOfInstances": "1",
"OfferingType": "Standard",
"Platform": "Linux/UNIX",
"Region": "us-west-2",
"Scope": "Availability Zone",
"StartDateTime": "2016-09-20T04:06:03.000Z",
"SubscriptionId": "353571154",
"SubscriptionStatus": "Active",
"SubscriptionType": "Partial Upfront",
"Tenancy": "Shared"
},
"Key": "SUBSCRIPTION_ID",
"Utilization": {
"PurchasedHours": 1948,
"TotalActualHours": 0,
"UnusedHours": 1948,
"UtilizationPercentage": 0
},
"Value": "353571154"
}
],
"TimePeriod": {
"End": "2017-10-01",
"Start": "2017-07-01"
},
"Total": {
"PurchasedHours": 6307,
"TotalActualHours": 4359,
"UnusedHours": 1948,
"UtilizationPercentage": 69.11368320913270968764864436340574
}
}]
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
GetReservationUtilization 147
AWS Billing and Cost Management API Reference
GetReservationUtilization 148
AWS Billing and Cost Management API Reference
GetRightsizingRecommendation
Service: AWS Cost Explorer
Creates recommendations that help you save cost by identifying idle and underutilized Amazon
EC2 instances.
Recommendations are generated to either downsize or terminate instances, along with providing
savings detail and metrics. For more information about calculation and function, see Optimizing
Your Cost with Rightsizing Recommendations in the AWS Billing and Cost Management User Guide.
Request Syntax
{
"Configuration": {
"BenefitsConsidered": boolean,
"RecommendationTarget": "string"
},
"Filter": {
"And": [
"Expression"
],
"CostCategories": {
"Key": "string",
"MatchOptions": [ "string" ],
"Values": [ "string" ]
},
"Dimensions": {
"Key": "string",
"MatchOptions": [ "string" ],
"Values": [ "string" ]
},
"Not": "Expression",
"Or": [
"Expression"
],
"Tags": {
"Key": "string",
"MatchOptions": [ "string" ],
"Values": [ "string" ]
}
},
"NextPageToken": "string",
"PageSize": number,
GetRightsizingRecommendation 149
AWS Billing and Cost Management API Reference
"Service": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
Configuration
You can use Configuration to customize recommendations across two attributes. You can
choose to view recommendations for instances within the same instance families or across
different instance families. You can also choose to view your estimated savings that are
associated with recommendations with consideration of existing Savings Plans or RI benefits, or
neither.
Required: No
Filter
Not all Expression types are supported in each API. Refer to the documentation for each
specific API to see what is supported.
GetRightsizingRecommendation 150
AWS Billing and Cost Management API Reference
• As shown in the previous example, lists of dimension values are combined with OR when
applying the filter.
• You can also set different match options to further control how the filter behaves. Not all
APIs support match options. Refer to the documentation for each specific API to see what is
supported.
• For example, you can filter for linked account names that start with "a".
• You can use multiple Expression types and the logical operators AND/OR/NOT to create
a list of one or more Expression objects. By doing this, you can filter by more advanced
options.
Note
Because each Expression can have only one operator, the service returns an
error if more than one is specified. The following example shows an Expression
object that creates an error: { "And": [ ... ], "Dimensions": { "Key":
"USAGE_TYPE", "Values": [ "DataTransfer" ] } }
The following is an example of the corresponding error message: "Expression has
more than one roots. Only one root operator is allowed for each
expression: And, Or, Not, Dimensions, Tags, CostCategories"
GetRightsizingRecommendation 151
AWS Billing and Cost Management API Reference
Note
For the GetRightsizingRecommendation action, a combination of OR and NOT isn't
supported. OR isn't supported between different dimensions, or dimensions and tags.
NOT operators aren't supported. Dimensions are also limited to LINKED_ACCOUNT,
REGION, or RIGHTSIZING_TYPE.
For the GetReservationPurchaseRecommendation action, only NOT is supported.
AND and OR aren't supported. Dimensions are limited to LINKED_ACCOUNT.
Required: No
NextPageToken
The pagination token that indicates the next set of results that you want to retrieve.
Type: String
Pattern: [\S\s]*
Required: No
PageSize
The number of recommendations that you want returned in a single response object.
Type: Integer
Required: No
Service
The specific service that you want recommendations for. The only valid value for
GetRightsizingRecommendation is "AmazonEC2".
Type: String
GetRightsizingRecommendation 152
AWS Billing and Cost Management API Reference
Pattern: [\S\s]*
Required: Yes
Response Syntax
{
"Configuration": {
"BenefitsConsidered": boolean,
"RecommendationTarget": "string"
},
"Metadata": {
"AdditionalMetadata": "string",
"GenerationTimestamp": "string",
"LookbackPeriodInDays": "string",
"RecommendationId": "string"
},
"NextPageToken": "string",
"RightsizingRecommendations": [
{
"AccountId": "string",
"CurrentInstance": {
"CurrencyCode": "string",
"InstanceName": "string",
"MonthlyCost": "string",
"OnDemandHoursInLookbackPeriod": "string",
"ReservationCoveredHoursInLookbackPeriod": "string",
"ResourceDetails": {
"EC2ResourceDetails": {
"HourlyOnDemandRate": "string",
"InstanceType": "string",
"Memory": "string",
"NetworkPerformance": "string",
"Platform": "string",
"Region": "string",
"Sku": "string",
"Storage": "string",
"Vcpu": "string"
}
},
"ResourceId": "string",
"ResourceUtilization": {
"EC2ResourceUtilization": {
GetRightsizingRecommendation 153
AWS Billing and Cost Management API Reference
"DiskResourceUtilization": {
"DiskReadBytesPerSecond": "string",
"DiskReadOpsPerSecond": "string",
"DiskWriteBytesPerSecond": "string",
"DiskWriteOpsPerSecond": "string"
},
"EBSResourceUtilization": {
"EbsReadBytesPerSecond": "string",
"EbsReadOpsPerSecond": "string",
"EbsWriteBytesPerSecond": "string",
"EbsWriteOpsPerSecond": "string"
},
"MaxCpuUtilizationPercentage": "string",
"MaxMemoryUtilizationPercentage": "string",
"MaxStorageUtilizationPercentage": "string",
"NetworkResourceUtilization": {
"NetworkInBytesPerSecond": "string",
"NetworkOutBytesPerSecond": "string",
"NetworkPacketsInPerSecond": "string",
"NetworkPacketsOutPerSecond": "string"
}
}
},
"SavingsPlansCoveredHoursInLookbackPeriod": "string",
"Tags": [
{
"Key": "string",
"MatchOptions": [ "string" ],
"Values": [ "string" ]
}
],
"TotalRunningHoursInLookbackPeriod": "string"
},
"FindingReasonCodes": [ "string" ],
"ModifyRecommendationDetail": {
"TargetInstances": [
{
"CurrencyCode": "string",
"DefaultTargetInstance": boolean,
"EstimatedMonthlyCost": "string",
"EstimatedMonthlySavings": "string",
"ExpectedResourceUtilization": {
"EC2ResourceUtilization": {
"DiskResourceUtilization": {
GetRightsizingRecommendation 154
AWS Billing and Cost Management API Reference
"DiskReadBytesPerSecond": "string",
"DiskReadOpsPerSecond": "string",
"DiskWriteBytesPerSecond": "string",
"DiskWriteOpsPerSecond": "string"
},
"EBSResourceUtilization": {
"EbsReadBytesPerSecond": "string",
"EbsReadOpsPerSecond": "string",
"EbsWriteBytesPerSecond": "string",
"EbsWriteOpsPerSecond": "string"
},
"MaxCpuUtilizationPercentage": "string",
"MaxMemoryUtilizationPercentage": "string",
"MaxStorageUtilizationPercentage": "string",
"NetworkResourceUtilization": {
"NetworkInBytesPerSecond": "string",
"NetworkOutBytesPerSecond": "string",
"NetworkPacketsInPerSecond": "string",
"NetworkPacketsOutPerSecond": "string"
}
}
},
"PlatformDifferences": [ "string" ],
"ResourceDetails": {
"EC2ResourceDetails": {
"HourlyOnDemandRate": "string",
"InstanceType": "string",
"Memory": "string",
"NetworkPerformance": "string",
"Platform": "string",
"Region": "string",
"Sku": "string",
"Storage": "string",
"Vcpu": "string"
}
}
}
]
},
"RightsizingType": "string",
"TerminateRecommendationDetail": {
"CurrencyCode": "string",
"EstimatedMonthlySavings": "string"
}
GetRightsizingRecommendation 155
AWS Billing and Cost Management API Reference
}
],
"Summary": {
"EstimatedTotalMonthlySavingsAmount": "string",
"SavingsCurrencyCode": "string",
"SavingsPercentage": "string",
"TotalRecommendationCount": "string"
}
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Configuration
You can use Configuration to customize recommendations across two attributes. You can
choose to view recommendations for instances within the same instance families or across
different instance families. You can also choose to view your estimated savings that are
associated with recommendations with consideration of existing Savings Plans or RI benefits, or
neither.
Type: String
Pattern: [\S\s]*
RightsizingRecommendations
GetRightsizingRecommendation 156
AWS Billing and Cost Management API Reference
Errors
For information about the errors that are common to all actions, see Common Errors.
InvalidNextTokenException
You made too many calls in a short period of time. Try again later.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
GetRightsizingRecommendation 157
AWS Billing and Cost Management API Reference
GetSavingsPlanPurchaseRecommendationDetails
Service: AWS Cost Explorer
Retrieves the details for a Savings Plan recommendation. These details include the hourly data-
points that construct the cost, coverage, and utilization charts.
Request Syntax
{
"RecommendationDetailId": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
RecommendationDetailId
Type: String
Pattern: ^[\S\s]{8}-[\S\s]{4}-[\S\s]{4}-[\S\s]{4}-[\S\s]{12}$
Required: Yes
Response Syntax
{
"RecommendationDetailData": {
"AccountId": "string",
"AccountScope": "string",
"CurrencyCode": "string",
"CurrentAverageCoverage": "string",
"CurrentAverageHourlyOnDemandSpend": "string",
"CurrentMaximumHourlyOnDemandSpend": "string",
"CurrentMinimumHourlyOnDemandSpend": "string",
"EstimatedAverageCoverage": "string",
GetSavingsPlanPurchaseRecommendationDetails 158
AWS Billing and Cost Management API Reference
"EstimatedAverageUtilization": "string",
"EstimatedMonthlySavingsAmount": "string",
"EstimatedOnDemandCost": "string",
"EstimatedOnDemandCostWithCurrentCommitment": "string",
"EstimatedROI": "string",
"EstimatedSavingsAmount": "string",
"EstimatedSavingsPercentage": "string",
"EstimatedSPCost": "string",
"ExistingHourlyCommitment": "string",
"GenerationTimestamp": "string",
"HourlyCommitmentToPurchase": "string",
"InstanceFamily": "string",
"LatestUsageTimestamp": "string",
"LookbackPeriodInDays": "string",
"MetricsOverLookbackPeriod": [
{
"CurrentCoverage": "string",
"EstimatedCoverage": "string",
"EstimatedNewCommitmentUtilization": "string",
"EstimatedOnDemandCost": "string",
"StartTime": "string"
}
],
"OfferingId": "string",
"PaymentOption": "string",
"Region": "string",
"SavingsPlansType": "string",
"TermInYears": "string",
"UpfrontCost": "string"
},
"RecommendationDetailId": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
RecommendationDetailData
GetSavingsPlanPurchaseRecommendationDetails 159
AWS Billing and Cost Management API Reference
RecommendationDetailId
Type: String
Pattern: ^[\S\s]{8}-[\S\s]{4}-[\S\s]{4}-[\S\s]{4}-[\S\s]{12}$
Errors
For information about the errors that are common to all actions, see Common Errors.
DataUnavailableException
You made too many calls in a short period of time. Try again later.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
GetSavingsPlanPurchaseRecommendationDetails 160
AWS Billing and Cost Management API Reference
GetSavingsPlanPurchaseRecommendationDetails 161
AWS Billing and Cost Management API Reference
GetSavingsPlansCoverage
Service: AWS Cost Explorer
Retrieves the Savings Plans covered for your account. This enables you to see how much of your
cost is covered by a Savings Plan. An organization’s management account can see the coverage
of the associated member accounts. This supports dimensions, Cost Categories, and nested
expressions. For any time period, you can filter data for Savings Plans usage with the following
dimensions:
• LINKED_ACCOUNT
• REGION
• SERVICE
• INSTANCE_FAMILY
Request Syntax
{
"Filter": {
"And": [
"Expression"
],
"CostCategories": {
"Key": "string",
"MatchOptions": [ "string" ],
"Values": [ "string" ]
},
"Dimensions": {
"Key": "string",
"MatchOptions": [ "string" ],
"Values": [ "string" ]
},
"Not": "Expression",
"Or": [
"Expression"
],
"Tags": {
"Key": "string",
"MatchOptions": [ "string" ],
GetSavingsPlansCoverage 162
AWS Billing and Cost Management API Reference
"Values": [ "string" ]
}
},
"Granularity": "string",
"GroupBy": [
{
"Key": "string",
"Type": "string"
}
],
"MaxResults": number,
"Metrics": [ "string" ],
"NextToken": "string",
"SortBy": {
"Key": "string",
"SortOrder": "string"
},
"TimePeriod": {
"End": "string",
"Start": "string"
}
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
Filter
Filters Savings Plans coverage data by dimensions. You can filter data for Savings Plans usage
with the following dimensions:
• LINKED_ACCOUNT
• REGION
• SERVICE
• INSTANCE_FAMILY
GetSavingsPlansCoverage uses the same Expression object as the other operations, but
only AND is supported among each dimension. If there are multiple values for a dimension, they
are OR'd together.
GetSavingsPlansCoverage 163
AWS Billing and Cost Management API Reference
Required: No
Granularity
The granularity of the Amazon Web Services cost data for your Savings Plans. Granularity
can't be set if GroupBy is set.
Type: String
Required: No
GroupBy
You can group the data using the attributes INSTANCE_FAMILY, REGION, or SERVICE.
Required: No
MaxResults
The number of items to be returned in a response. The default is 20, with a minimum value of
1.
Type: Integer
Required: No
Metrics
The measurement that you want your Savings Plans coverage reported in. The only valid value
is SpendCoveredBySavingsPlans.
GetSavingsPlansCoverage 164
AWS Billing and Cost Management API Reference
Pattern: [\S\s]*
Required: No
NextToken
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.
Type: String
Pattern: [\S\s]*
Required: No
SortBy
Required: No
TimePeriod
The time period that you want the usage and costs for. The Start date must be within 13
months. The End date must be after the Start date, and before the current date. Future dates
can't be used as an End date.
GetSavingsPlansCoverage 165
AWS Billing and Cost Management API Reference
Required: Yes
Response Syntax
{
"NextToken": "string",
"SavingsPlansCoverages": [
{
"Attributes": {
"string" : "string"
},
"Coverage": {
"CoveragePercentage": "string",
"OnDemandCost": "string",
"SpendCoveredBySavingsPlans": "string",
"TotalCost": "string"
},
"TimePeriod": {
"End": "string",
"Start": "string"
}
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
NextToken
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.
Type: String
Pattern: [\S\s]*
GetSavingsPlansCoverage 166
AWS Billing and Cost Management API Reference
SavingsPlansCoverages
Errors
For information about the errors that are common to all actions, see Common Errors.
DataUnavailableException
You made too many calls in a short period of time. Try again later.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
GetSavingsPlansCoverage 167
AWS Billing and Cost Management API Reference
GetSavingsPlansCoverage 168
AWS Billing and Cost Management API Reference
GetSavingsPlansPurchaseRecommendation
Service: AWS Cost Explorer
Retrieves the Savings Plans recommendations for your account. First use
StartSavingsPlansPurchaseRecommendationGeneration to generate a new set of
recommendations, and then use GetSavingsPlansPurchaseRecommendation to retrieve them.
Request Syntax
{
"AccountScope": "string",
"Filter": {
"And": [
"Expression"
],
"CostCategories": {
"Key": "string",
"MatchOptions": [ "string" ],
"Values": [ "string" ]
},
"Dimensions": {
"Key": "string",
"MatchOptions": [ "string" ],
"Values": [ "string" ]
},
"Not": "Expression",
"Or": [
"Expression"
],
"Tags": {
"Key": "string",
"MatchOptions": [ "string" ],
"Values": [ "string" ]
}
},
"LookbackPeriodInDays": "string",
"NextPageToken": "string",
"PageSize": number,
"PaymentOption": "string",
"SavingsPlansType": "string",
"TermInYears": "string"
}
GetSavingsPlansPurchaseRecommendation 169
AWS Billing and Cost Management API Reference
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
AccountScope
The account scope that you want your recommendations for. Amazon Web Services calculates
recommendations including the management account and member accounts if the value is
set to PAYER. If the value is LINKED, recommendations are calculated for individual member
accounts only.
Type: String
Required: No
Filter
You can filter your recommendations by Account ID with the LINKED_ACCOUNT dimension. To
filter your recommendations by Account ID, specify Key as LINKED_ACCOUNT and Value as the
comma-separated Acount ID(s) that you want to see Savings Plans purchase recommendations
for.
Required: No
LookbackPeriodInDays
Type: String
Required: Yes
GetSavingsPlansPurchaseRecommendation 170
AWS Billing and Cost Management API Reference
NextPageToken
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.
Type: String
Pattern: [\S\s]*
Required: No
PageSize
The number of recommendations that you want returned in a single response object.
Type: Integer
Required: No
PaymentOption
Type: String
Required: Yes
SavingsPlansType
Type: String
Required: Yes
TermInYears
The savings plan recommendation term that's used to generate these recommendations.
GetSavingsPlansPurchaseRecommendation 171
AWS Billing and Cost Management API Reference
Type: String
Required: Yes
Response Syntax
{
"Metadata": {
"AdditionalMetadata": "string",
"GenerationTimestamp": "string",
"RecommendationId": "string"
},
"NextPageToken": "string",
"SavingsPlansPurchaseRecommendation": {
"AccountScope": "string",
"LookbackPeriodInDays": "string",
"PaymentOption": "string",
"SavingsPlansPurchaseRecommendationDetails": [
{
"AccountId": "string",
"CurrencyCode": "string",
"CurrentAverageHourlyOnDemandSpend": "string",
"CurrentMaximumHourlyOnDemandSpend": "string",
"CurrentMinimumHourlyOnDemandSpend": "string",
"EstimatedAverageUtilization": "string",
"EstimatedMonthlySavingsAmount": "string",
"EstimatedOnDemandCost": "string",
"EstimatedOnDemandCostWithCurrentCommitment": "string",
"EstimatedROI": "string",
"EstimatedSavingsAmount": "string",
"EstimatedSavingsPercentage": "string",
"EstimatedSPCost": "string",
"HourlyCommitmentToPurchase": "string",
"RecommendationDetailId": "string",
"SavingsPlansDetails": {
"InstanceFamily": "string",
"OfferingId": "string",
"Region": "string"
},
"UpfrontCost": "string"
}
GetSavingsPlansPurchaseRecommendation 172
AWS Billing and Cost Management API Reference
],
"SavingsPlansPurchaseRecommendationSummary": {
"CurrencyCode": "string",
"CurrentOnDemandSpend": "string",
"DailyCommitmentToPurchase": "string",
"EstimatedMonthlySavingsAmount": "string",
"EstimatedOnDemandCostWithCurrentCommitment": "string",
"EstimatedROI": "string",
"EstimatedSavingsAmount": "string",
"EstimatedSavingsPercentage": "string",
"EstimatedTotalCost": "string",
"HourlyCommitmentToPurchase": "string",
"TotalRecommendationCount": "string"
},
"SavingsPlansType": "string",
"TermInYears": "string"
}
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Metadata
The token for the next set of retrievable results. AWS provides the token when the response
from a previous call has more results than the maximum page size.
Type: String
Pattern: [\S\s]*
SavingsPlansPurchaseRecommendation
Contains your request parameters, Savings Plan Recommendations Summary, and Details.
GetSavingsPlansPurchaseRecommendation 173
AWS Billing and Cost Management API Reference
Errors
For information about the errors that are common to all actions, see Common Errors.
InvalidNextTokenException
You made too many calls in a short period of time. Try again later.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
GetSavingsPlansPurchaseRecommendation 174
AWS Billing and Cost Management API Reference
GetSavingsPlansUtilization
Service: AWS Cost Explorer
Retrieves the Savings Plans utilization for your account across date ranges with daily or monthly
granularity. Management account in an organization have access to member accounts. You can use
GetDimensionValues in SAVINGS_PLANS to determine the possible dimension values.
Note
You can't group by any dimension values for GetSavingsPlansUtilization.
Request Syntax
{
"Filter": {
"And": [
"Expression"
],
"CostCategories": {
"Key": "string",
"MatchOptions": [ "string" ],
"Values": [ "string" ]
},
"Dimensions": {
"Key": "string",
"MatchOptions": [ "string" ],
"Values": [ "string" ]
},
"Not": "Expression",
"Or": [
"Expression"
],
"Tags": {
"Key": "string",
"MatchOptions": [ "string" ],
"Values": [ "string" ]
}
},
"Granularity": "string",
"SortBy": {
"Key": "string",
GetSavingsPlansUtilization 175
AWS Billing and Cost Management API Reference
"SortOrder": "string"
},
"TimePeriod": {
"End": "string",
"Start": "string"
}
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
Filter
Filters Savings Plans utilization coverage data for active Savings Plans dimensions. You can filter
data with the following dimensions:
• LINKED_ACCOUNT
• SAVINGS_PLAN_ARN
• SAVINGS_PLANS_TYPE
• REGION
• PAYMENT_OPTION
• INSTANCE_TYPE_FAMILY
GetSavingsPlansUtilization uses the same Expression object as the other operations, but
only AND is supported among each dimension.
Required: No
Granularity
The granularity of the Amazon Web Services utillization data for your Savings Plans.
Type: String
GetSavingsPlansUtilization 176
AWS Billing and Cost Management API Reference
Required: No
SortBy
Required: No
TimePeriod
The time period that you want the usage and costs for. The Start date must be within 13
months. The End date must be after the Start date, and before the current date. Future dates
can't be used as an End date.
Required: Yes
Response Syntax
{
"SavingsPlansUtilizationsByTime": [
{
"AmortizedCommitment": {
"AmortizedRecurringCommitment": "string",
"AmortizedUpfrontCommitment": "string",
"TotalAmortizedCommitment": "string"
},
"Savings": {
"NetSavings": "string",
GetSavingsPlansUtilization 177
AWS Billing and Cost Management API Reference
"OnDemandCostEquivalent": "string"
},
"TimePeriod": {
"End": "string",
"Start": "string"
},
"Utilization": {
"TotalCommitment": "string",
"UnusedCommitment": "string",
"UsedCommitment": "string",
"UtilizationPercentage": "string"
}
}
],
"Total": {
"AmortizedCommitment": {
"AmortizedRecurringCommitment": "string",
"AmortizedUpfrontCommitment": "string",
"TotalAmortizedCommitment": "string"
},
"Savings": {
"NetSavings": "string",
"OnDemandCostEquivalent": "string"
},
"Utilization": {
"TotalCommitment": "string",
"UnusedCommitment": "string",
"UsedCommitment": "string",
"UtilizationPercentage": "string"
}
}
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
SavingsPlansUtilizationsByTime
The amount of cost/commitment that you used your Savings Plans. You can use it to specify
date ranges.
GetSavingsPlansUtilization 178
AWS Billing and Cost Management API Reference
The total amount of cost/commitment that you used your Savings Plans, regardless of date
ranges.
Errors
For information about the errors that are common to all actions, see Common Errors.
DataUnavailableException
You made too many calls in a short period of time. Try again later.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
GetSavingsPlansUtilization 179
AWS Billing and Cost Management API Reference
GetSavingsPlansUtilization 180
AWS Billing and Cost Management API Reference
GetSavingsPlansUtilizationDetails
Service: AWS Cost Explorer
Retrieves attribute data along with aggregate utilization and savings data for a given time period.
This doesn't support granular or grouped data (daily/monthly) in response. You can't retrieve data
by dates in a single response similar to GetSavingsPlanUtilization, but you have the option
to make multiple calls to GetSavingsPlanUtilizationDetails by providing individual dates.
You can use GetDimensionValues in SAVINGS_PLANS to determine the possible dimension
values.
Note
GetSavingsPlanUtilizationDetails internally groups data by SavingsPlansArn.
Request Syntax
{
"DataType": [ "string" ],
"Filter": {
"And": [
"Expression"
],
"CostCategories": {
"Key": "string",
"MatchOptions": [ "string" ],
"Values": [ "string" ]
},
"Dimensions": {
"Key": "string",
"MatchOptions": [ "string" ],
"Values": [ "string" ]
},
"Not": "Expression",
"Or": [
"Expression"
],
"Tags": {
"Key": "string",
"MatchOptions": [ "string" ],
"Values": [ "string" ]
GetSavingsPlansUtilizationDetails 181
AWS Billing and Cost Management API Reference
}
},
"MaxResults": number,
"NextToken": "string",
"SortBy": {
"Key": "string",
"SortOrder": "string"
},
"TimePeriod": {
"End": "string",
"Start": "string"
}
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
DataType
Required: No
Filter
Filters Savings Plans utilization coverage data for active Savings Plans dimensions. You can filter
data with the following dimensions:
• LINKED_ACCOUNT
• SAVINGS_PLAN_ARN
• REGION
• PAYMENT_OPTION
• INSTANCE_TYPE_FAMILY
GetSavingsPlansUtilizationDetails 182
AWS Billing and Cost Management API Reference
Required: No
MaxResults
The number of items to be returned in a response. The default is 20, with a minimum value of
1.
Type: Integer
Required: No
NextToken
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.
Type: String
Pattern: [\S\s]*
Required: No
SortBy
GetSavingsPlansUtilizationDetails 183
AWS Billing and Cost Management API Reference
Required: No
TimePeriod
The time period that you want the usage and costs for. The Start date must be within 13
months. The End date must be after the Start date, and before the current date. Future dates
can't be used as an End date.
Required: Yes
Response Syntax
{
"NextToken": "string",
"SavingsPlansUtilizationDetails": [
{
"AmortizedCommitment": {
"AmortizedRecurringCommitment": "string",
"AmortizedUpfrontCommitment": "string",
"TotalAmortizedCommitment": "string"
},
"Attributes": {
"string" : "string"
},
"Savings": {
"NetSavings": "string",
"OnDemandCostEquivalent": "string"
},
"SavingsPlanArn": "string",
"Utilization": {
"TotalCommitment": "string",
"UnusedCommitment": "string",
"UsedCommitment": "string",
"UtilizationPercentage": "string"
}
}
],
"TimePeriod": {
"End": "string",
GetSavingsPlansUtilizationDetails 184
AWS Billing and Cost Management API Reference
"Start": "string"
},
"Total": {
"AmortizedCommitment": {
"AmortizedRecurringCommitment": "string",
"AmortizedUpfrontCommitment": "string",
"TotalAmortizedCommitment": "string"
},
"Savings": {
"NetSavings": "string",
"OnDemandCostEquivalent": "string"
},
"Utilization": {
"TotalCommitment": "string",
"UnusedCommitment": "string",
"UsedCommitment": "string",
"UtilizationPercentage": "string"
}
}
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
NextToken
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.
Type: String
Pattern: [\S\s]*
SavingsPlansUtilizationDetails
Retrieves a single daily or monthly Savings Plans utilization rate and details for your account.
GetSavingsPlansUtilizationDetails 185
AWS Billing and Cost Management API Reference
TimePeriod
Errors
For information about the errors that are common to all actions, see Common Errors.
DataUnavailableException
You made too many calls in a short period of time. Try again later.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
GetSavingsPlansUtilizationDetails 186
AWS Billing and Cost Management API Reference
GetSavingsPlansUtilizationDetails 187
AWS Billing and Cost Management API Reference
GetTags
Service: AWS Cost Explorer
Queries for available tag keys and tag values for a specified period. You can search the tag values
for an arbitrary string.
Request Syntax
{
"BillingViewArn": "string",
"Filter": {
"And": [
"Expression"
],
"CostCategories": {
"Key": "string",
"MatchOptions": [ "string" ],
"Values": [ "string" ]
},
"Dimensions": {
"Key": "string",
"MatchOptions": [ "string" ],
"Values": [ "string" ]
},
"Not": "Expression",
"Or": [
"Expression"
],
"Tags": {
"Key": "string",
"MatchOptions": [ "string" ],
"Values": [ "string" ]
}
},
"MaxResults": number,
"NextPageToken": "string",
"SearchString": "string",
"SortBy": [
{
"Key": "string",
"SortOrder": "string"
}
],
GetTags 188
AWS Billing and Cost Management API Reference
"TagKey": "string",
"TimePeriod": {
"End": "string",
"Start": "string"
}
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
BillingViewArn
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 AWS Billing and Cost Management features. The
BillingViewArn can be retrieved by calling the ListBillingViews API.
Type: String
Pattern: ^arn:aws[a-z-]*:(billing)::[0-9]{12}:billingview/[-a-zA-Z0-9/:_
+=.-@]{1,43}$
Required: No
Filter
Not all Expression types are supported in each API. Refer to the documentation for each
specific API to see what is supported.
GetTags 189
AWS Billing and Cost Management API Reference
• Specify the Tags field to define a filter that acts on Cost Allocation Tags.
• Specify the Dimensions field to define a filter that acts on the DimensionValues.
• For each filter type, you can set the dimension name and values for the filters that you plan
to use.
• As shown in the previous example, lists of dimension values are combined with OR when
applying the filter.
• You can also set different match options to further control how the filter behaves. Not all
APIs support match options. Refer to the documentation for each specific API to see what is
supported.
• For example, you can filter for linked account names that start with "a".
• You can use multiple Expression types and the logical operators AND/OR/NOT to create
a list of one or more Expression objects. By doing this, you can filter by more advanced
options.
• For example, you can filter by ((REGION == us-east-1 OR REGION == us-west-1)
OR (TAG.Type == Type1)) AND (USAGE_TYPE != DataTransfer).
Note
Because each Expression can have only one operator, the service returns an
error if more than one is specified. The following example shows an Expression
GetTags 190
AWS Billing and Cost Management API Reference
Note
For the GetRightsizingRecommendation action, a combination of OR and NOT isn't
supported. OR isn't supported between different dimensions, or dimensions and tags.
NOT operators aren't supported. Dimensions are also limited to LINKED_ACCOUNT,
REGION, or RIGHTSIZING_TYPE.
For the GetReservationPurchaseRecommendation action, only NOT is supported.
AND and OR aren't supported. Dimensions are limited to LINKED_ACCOUNT.
Required: No
MaxResults
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.
Type: Integer
Required: No
NextPageToken
The token to retrieve the next set of results. AWS provides the token when the response from a
previous call has more results than the maximum page size.
Type: String
GetTags 191
AWS Billing and Cost Management API Reference
Pattern: [\S\s]*
Required: No
SearchString
Type: String
Pattern: [\S\s]*
Required: No
SortBy
The key represents cost and usage metrics. The following values are supported:
• BlendedCost
• UnblendedCost
• AmortizedCost
• NetAmortizedCost
• NetUnblendedCost
• UsageQuantity
• NormalizedUsageAmount
Required: No
TagKey
The key of the tag that you want to return values for.
Type: String
GetTags 192
AWS Billing and Cost Management API Reference
Pattern: [\S\s]*
Required: No
TimePeriod
The start and end dates for retrieving the dimension values. The start date is inclusive, but the
end date is exclusive. For example, if start is 2017-01-01 and end is 2017-05-01, then the
cost and usage data is retrieved from 2017-01-01 up to and including 2017-04-30 but not
including 2017-05-01.
Required: Yes
Response Syntax
{
"NextPageToken": "string",
"ReturnSize": number,
"Tags": [ "string" ],
"TotalSize": number
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
NextPageToken
The token for the next set of retrievable results. AWS provides the token when the response
from a previous call has more results than the maximum page size.
Type: String
Pattern: [\S\s]*
ReturnSize
GetTags 193
AWS Billing and Cost Management API Reference
Type: Integer
Tags
Type: Integer
Errors
For information about the errors that are common to all actions, see Common Errors.
BillExpirationException
The requested report expired. Update the date interval and try again.
You made too many calls in a short period of time. Try again later.
Your request parameters changed between pages. Try again with the old parameters or without
a pagination token.
GetTags 194
AWS Billing and Cost Management API Reference
Examples
Example
The following example shows how to retrieve the list of tag keys using the GetTags operation.
Sample Request
POST / HTTP/1.1
Host: ce.us-east-1.amazonaws.com
x-amz-Date: <Date>
Authorization: AWS4-HMAC-SHA256 Credential=<Credential>,
SignedHeaders=contenttype;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-
requestid,Signature=<Signature>
User-Agent: <UserAgentString>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Connection: Keep-Alive
X-Amz-Target: AWSInsightsIndexService.GetTags
{
"TimePeriod": {
"Start": "2017-01-01",
"End": "2017-05-18"
},
"TagKey": "Project",
"SearchString": "secretProject"
}
Sample Response
HTTP/1.1 200 OK
x-amzn-RequestId: <RequestId>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Date: <Date>
GetTags 195
AWS Billing and Cost Management API Reference
{
"ReturnSize": 2,
"Tags": [
secretProject1",
"secretProject2"
],
"TotalSize": 2
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
GetTags 196
AWS Billing and Cost Management API Reference
GetUsageForecast
Service: AWS Cost Explorer
Retrieves a forecast for how much Amazon Web Services predicts that you will use over the
forecast time period that you select, based on your past usage.
Request Syntax
{
"BillingViewArn": "string",
"Filter": {
"And": [
"Expression"
],
"CostCategories": {
"Key": "string",
"MatchOptions": [ "string" ],
"Values": [ "string" ]
},
"Dimensions": {
"Key": "string",
"MatchOptions": [ "string" ],
"Values": [ "string" ]
},
"Not": "Expression",
"Or": [
"Expression"
],
"Tags": {
"Key": "string",
"MatchOptions": [ "string" ],
"Values": [ "string" ]
}
},
"Granularity": "string",
"Metric": "string",
"PredictionIntervalLevel": number,
"TimePeriod": {
"End": "string",
"Start": "string"
}
}
GetUsageForecast 197
AWS Billing and Cost Management API Reference
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
BillingViewArn
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 AWS Billing and Cost Management features. The
BillingViewArn can be retrieved by calling the ListBillingViews API.
Type: String
Pattern: ^arn:aws[a-z-]*:(billing)::[0-9]{12}:billingview/[-a-zA-Z0-9/:_
+=.-@]{1,43}$
Required: No
Filter
The filters that you want to use to filter your forecast. The GetUsageForecast API supports
filtering by the following dimensions:
• AZ
• INSTANCE_TYPE
• LINKED_ACCOUNT
• LINKED_ACCOUNT_NAME
• OPERATION
• PURCHASE_TYPE
• REGION
• SERVICE
• USAGE_TYPE
• USAGE_TYPE_GROUP
• RECORD_TYPE
• OPERATING_SYSTEM
GetUsageForecast 198
AWS Billing and Cost Management API Reference
• TENANCY
• SCOPE
• PLATFORM
• SUBSCRIPTION_ID
• LEGAL_ENTITY_NAME
• DEPLOYMENT_OPTION
• DATABASE_ENGINE
• INSTANCE_TYPE_FAMILY
• BILLING_ENTITY
• RESERVATION_ID
• SAVINGS_PLAN_ARN
Required: No
Granularity
How granular you want the forecast to be. You can get 3 months of DAILY forecasts or 12
months of MONTHLY forecasts.
Type: String
Required: Yes
Metric
Type: String
GetUsageForecast 199
AWS Billing and Cost Management API Reference
Required: Yes
PredictionIntervalLevel
AWS Cost Explorer always returns the mean forecast as a single point. You can request a
prediction interval around the mean by specifying a confidence level. The higher the confidence
level, the more confident Cost Explorer is about the actual value falling in the prediction
interval. Higher confidence levels result in wider prediction intervals.
Type: Integer
Required: No
TimePeriod
The start and end dates of the period that you want to retrieve usage forecast for. The start
date is included in the period, but the end date isn't included in the period. For example, if
start is 2017-01-01 and end is 2017-05-01, then the cost and usage data is retrieved from
2017-01-01 up to and including 2017-04-30 but not including 2017-05-01. The start date
must be equal to or later than the current date to avoid a validation error.
Required: Yes
Response Syntax
{
"ForecastResultsByTime": [
{
"MeanValue": "string",
"PredictionIntervalLowerBound": "string",
"PredictionIntervalUpperBound": "string",
"TimePeriod": {
"End": "string",
"Start": "string"
}
GetUsageForecast 200
AWS Billing and Cost Management API Reference
}
],
"Total": {
"Amount": "string",
"Unit": "string"
}
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
ForecastResultsByTime
The forecasts for your query, in order. For DAILY forecasts, this is a list of days. For MONTHLY
forecasts, this is a list of months.
Errors
For information about the errors that are common to all actions, see Common Errors.
DataUnavailableException
You made too many calls in a short period of time. Try again later.
GetUsageForecast 201
AWS Billing and Cost Management API Reference
Cost Explorer was unable to identify the usage unit. Provide UsageType/UsageTypeGroup
filter selections that contain matching units, for example: hours.
Examples
Example
The following example shows how to retrieve a forecast using the GetUsageForecast operation.
Sample Request
POST / HTTP/1.1
Host: ce.us-east-1.amazonaws.com
x-amz-Date: <Date>
Authorization: AWS4-HMAC-SHA256 Credential=<Credential>,
SignedHeaders=contenttype;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-
requestid,Signature=<Signature>
User-Agent: <UserAgentString>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Connection: Keep-Alive
X-Amz-Target: AWSInsightsIndexService.GetUsageForecast
{
"TimePeriod": {
"Start":"2018-10-25",
"End": "2018-10-27"
},
"Granularity": "DAILY",
"Filter": {
"Dimensions": {
"Key": "SERVICE",
"Values": [
"Amazon Simple Storage Service"
]
}
},
"Metric":"USAGE_QUANTITY",
GetUsageForecast 202
AWS Billing and Cost Management API Reference
"PredictionIntervalLevel":85
}
Sample Response
HTTP/1.1 200 OK
x-amzn-RequestId: <RequestId>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Date: <Date>
{
"ForecastResultsByTime": [
{
"MeanValue": "37.0786663399",
"PredictionIntervalLowerBound": "34.9970026341",
"PredictionIntervalUpperBound": "39.1603300457",
"TimePeriod": {
"End": "2019-10-26",
"Start": "2019-10-25"
}
},
{
"MeanValue": "37.0786663399",
"PredictionIntervalLowerBound": "34.9970026341",
"PredictionIntervalUpperBound": "39.1603300457",
"TimePeriod": {
"End": "2019-10-27",
"Start": "2019-10-26"
}
}
],
"Total": {
"Amount": "74.1573326798",
"Unit": "Hrs"
}
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
GetUsageForecast 203
AWS Billing and Cost Management API Reference
GetUsageForecast 204
AWS Billing and Cost Management API Reference
ListCommitmentPurchaseAnalyses
Service: AWS Cost Explorer
Request Syntax
{
"AnalysisIds": [ "string" ],
"AnalysisStatus": "string",
"NextPageToken": "string",
"PageSize": number
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
AnalysisIds
Pattern: ^[\S\s]{8}-[\S\s]{4}-[\S\s]{4}-[\S\s]{4}-[\S\s]{12}$
Required: No
AnalysisStatus
Type: String
Required: No
ListCommitmentPurchaseAnalyses 205
AWS Billing and Cost Management API Reference
NextPageToken
Type: String
Pattern: [\S\s]*
Required: No
PageSize
The number of analyses that you want returned in a single response object.
Type: Integer
Required: No
Response Syntax
{
"AnalysisSummaryList": [
{
"AnalysisCompletionTime": "string",
"AnalysisId": "string",
"AnalysisStartedTime": "string",
"AnalysisStatus": "string",
"CommitmentPurchaseAnalysisConfiguration": {
"SavingsPlansPurchaseAnalysisConfiguration": {
"AccountId": "string",
"AccountScope": "string",
"AnalysisType": "string",
"LookBackTimePeriod": {
"End": "string",
"Start": "string"
},
"SavingsPlansToAdd": [
{
"InstanceFamily": "string",
ListCommitmentPurchaseAnalyses 206
AWS Billing and Cost Management API Reference
"OfferingId": "string",
"PaymentOption": "string",
"Region": "string",
"SavingsPlansCommitment": number,
"SavingsPlansType": "string",
"TermInYears": "string"
}
],
"SavingsPlansToExclude": [ "string" ]
}
},
"ErrorCode": "string",
"EstimatedCompletionTime": "string"
}
],
"NextPageToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
AnalysisSummaryList
Type: String
Pattern: [\S\s]*
Errors
For information about the errors that are common to all actions, see Common Errors.
ListCommitmentPurchaseAnalyses 207
AWS Billing and Cost Management API Reference
DataUnavailableException
You made too many calls in a short period of time. Try again later.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ListCommitmentPurchaseAnalyses 208
AWS Billing and Cost Management API Reference
ListCostAllocationTagBackfillHistory
Service: AWS Cost Explorer
Request Syntax
{
"MaxResults": number,
"NextToken": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
MaxResults
The maximum number of objects that are returned for this request.
Type: Integer
Required: No
NextToken
The token to retrieve the next set of results. AWS provides the token when the response from a
previous call has more results than the maximum page size.
Type: String
Pattern: [\S\s]*
Required: No
Response Syntax
ListCostAllocationTagBackfillHistory 209
AWS Billing and Cost Management API Reference
"BackfillRequests": [
{
"BackfillFrom": "string",
"BackfillStatus": "string",
"CompletedAt": "string",
"LastUpdatedAt": "string",
"RequestedAt": "string"
}
],
"NextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
BackfillRequests
The token to retrieve the next set of results. AWS provides the token when the response from a
previous call has more results than the maximum page size.
Type: String
Pattern: [\S\s]*
Errors
For information about the errors that are common to all actions, see Common Errors.
InvalidNextTokenException
ListCostAllocationTagBackfillHistory 210
AWS Billing and Cost Management API Reference
You made too many calls in a short period of time. Try again later.
Examples
Sample Request
{
"MaxResults": 1
}
Sample Response
{
"BackfillRequests": [
{
"BackfillFrom":"2024-02-01T00:00:00Z",
"BackfillStatus":"PROCESSING",
"RequestedAt":"2024-03-01T09:16:23Z",
"LastUpdatedAt":"2024-03-01T09:16:23Z"
}
],
"NextToken": null
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ListCostAllocationTagBackfillHistory 211
AWS Billing and Cost Management API Reference
ListCostAllocationTagBackfillHistory 212
AWS Billing and Cost Management API Reference
ListCostAllocationTags
Service: AWS Cost Explorer
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.
Request Syntax
{
"MaxResults": number,
"NextToken": "string",
"Status": "string",
"TagKeys": [ "string" ],
"Type": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
MaxResults
The maximum number of objects that are returned for this request. By default, the request
returns 100 results.
Type: Integer
Required: No
NextToken
The token to retrieve the next set of results. AWS provides the token when the response from a
previous call has more results than the maximum page size.
Type: String
Pattern: [\S\s]*
ListCostAllocationTags 213
AWS Billing and Cost Management API Reference
Required: No
Status
The status of cost allocation tag keys that are returned for this request.
Type: String
Required: No
TagKeys
The list of cost allocation tag keys that are returned for this request.
Pattern: [\S\s]*
Required: No
Type
The type of CostAllocationTag object that are returned for this request. The
AWSGenerated type tags are tags that AWS defines and applies to support AWS resources for
cost allocation purposes. The UserDefined type tags are tags that you define, create, and
apply to resources.
Type: String
Required: No
Response Syntax
{
"CostAllocationTags": [
{
"LastUpdatedDate": "string",
ListCostAllocationTags 214
AWS Billing and Cost Management API Reference
"LastUsedDate": "string",
"Status": "string",
"TagKey": "string",
"Type": "string"
}
],
"NextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
CostAllocationTags
A list of cost allocation tags that includes the detailed metadata for each one.
The token to retrieve the next set of results. AWS provides the token when the response from a
previous call has more results than the maximum page size.
Type: String
Pattern: [\S\s]*
Errors
For information about the errors that are common to all actions, see Common Errors.
InvalidNextTokenException
ListCostAllocationTags 215
AWS Billing and Cost Management API Reference
LimitExceededException
You made too many calls in a short period of time. Try again later.
Examples
The following are sample requests and responses of the ListCostAllocationTags operations.
Sample Request
{
"Type": "UserDefined",
"Status": "Active"
}
Sample Response
{
"CostAllocationTags": [
{
"TagKey": "tagA",
"Type": "UserDefined",
"Status": "Active"
}
],
"NextToken": null
}
Sample Request
ListCostAllocationTags 216
AWS Billing and Cost Management API Reference
Sample Response
{
"CostAllocationTags": [
{
"TagKey": "tagA",
"Type": "UserDefined",
"Status": "Active"
},
{
"TagKey": "tagB",
"Type": "UserDefined",
"Status": "Inactive"
}
],
"NextToken": null
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ListCostAllocationTags 217
AWS Billing and Cost Management API Reference
ListCostCategoryDefinitions
Service: AWS Cost Explorer
Returns the name, Amazon Resource Name (ARN), NumberOfRules and effective dates of all Cost
Categories defined in the account. You have the option to use EffectiveOn to return a list of Cost
Categories that were active on a specific date. If there is no EffectiveOn specified, you’ll see Cost
Categories that are effective on the current date. If Cost Category is still effective, EffectiveEnd
is omitted in the response. ListCostCategoryDefinitions supports pagination. The request
can have a MaxResults range up to 100.
Request Syntax
{
"EffectiveOn": "string",
"MaxResults": number,
"NextToken": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
EffectiveOn
Type: String
Pattern: ^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(([+-]\d\d:\d\d)|Z)$
Required: No
MaxResults
Type: Integer
ListCostCategoryDefinitions 218
AWS Billing and Cost Management API Reference
Required: No
NextToken
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.
Type: String
Pattern: [\S\s]*
Required: No
Response Syntax
{
"CostCategoryReferences": [
{
"CostCategoryArn": "string",
"DefaultValue": "string",
"EffectiveEnd": "string",
"EffectiveStart": "string",
"Name": "string",
"NumberOfRules": number,
"ProcessingStatus": [
{
"Component": "string",
"Status": "string"
}
],
"Values": [ "string" ]
}
],
"NextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
ListCostCategoryDefinitions 219
AWS Billing and Cost Management API Reference
CostCategoryReferences
A reference to a Cost Category that contains enough information to identify the Cost Category.
The token to retrieve the next set of results. AWS provides the token when the response from a
previous call has more results than the maximum page size.
Type: String
Pattern: [\S\s]*
Errors
For information about the errors that are common to all actions, see Common Errors.
LimitExceededException
You made too many calls in a short period of time. Try again later.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ListCostCategoryDefinitions 220
AWS Billing and Cost Management API Reference
ListCostCategoryDefinitions 221
AWS Billing and Cost Management API Reference
ListSavingsPlansPurchaseRecommendationGeneration
Service: AWS Cost Explorer
Retrieves a list of your historical recommendation generations within the past 30 days.
Request Syntax
{
"GenerationStatus": "string",
"NextPageToken": "string",
"PageSize": number,
"RecommendationIds": [ "string" ]
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
GenerationStatus
Type: String
Required: No
NextPageToken
Type: String
Pattern: [\S\s]*
Required: No
PageSize
The number of recommendations that you want returned in a single response object.
ListSavingsPlansPurchaseRecommendationGeneration 222
AWS Billing and Cost Management API Reference
Type: Integer
Required: No
RecommendationIds
Pattern: ^[\S\s]{8}-[\S\s]{4}-[\S\s]{4}-[\S\s]{4}-[\S\s]{12}$
Required: No
Response Syntax
{
"GenerationSummaryList": [
{
"EstimatedCompletionTime": "string",
"GenerationCompletionTime": "string",
"GenerationStartedTime": "string",
"GenerationStatus": "string",
"RecommendationId": "string"
}
],
"NextPageToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
GenerationSummaryList
ListSavingsPlansPurchaseRecommendationGeneration 223
AWS Billing and Cost Management API Reference
Type: String
Pattern: [\S\s]*
Errors
For information about the errors that are common to all actions, see Common Errors.
DataUnavailableException
You made too many calls in a short period of time. Try again later.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ListSavingsPlansPurchaseRecommendationGeneration 224
AWS Billing and Cost Management API Reference
ListSavingsPlansPurchaseRecommendationGeneration 225
AWS Billing and Cost Management API Reference
ListTagsForResource
Service: AWS Cost Explorer
Returns a list of resource tags associated with the resource specified by the Amazon Resource
Name (ARN).
Request Syntax
{
"ResourceArn": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
ResourceArn
The Amazon Resource Name (ARN) of the resource. For a list of supported resources, see
ResourceTag.
Type: String
Pattern: arn:aws[-a-z0-9]*:[a-z0-9]+:[-a-z0-9]*:[0-9]{12}:[-a-zA-Z0-9/:_]+
Required: Yes
Response Syntax
{
"ResourceTags": [
{
"Key": "string",
"Value": "string"
}
]
ListTagsForResource 226
AWS Billing and Cost Management API Reference
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
ResourceTags
A list of tag key value pairs that are associated with the resource.
Errors
For information about the errors that are common to all actions, see Common Errors.
LimitExceededException
You made too many calls in a short period of time. Try again later.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ListTagsForResource 227
AWS Billing and Cost Management API Reference
ListTagsForResource 228
AWS Billing and Cost Management API Reference
ProvideAnomalyFeedback
Service: AWS Cost Explorer
Request Syntax
{
"AnomalyId": "string",
"Feedback": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
AnomalyId
Type: String
Pattern: [\S\s]*
Required: Yes
Feedback
Describes whether the cost anomaly was a planned activity or you considered it an anomaly.
Type: String
Required: Yes
Response Syntax
ProvideAnomalyFeedback 229
AWS Billing and Cost Management API Reference
"AnomalyId": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
AnomalyId
Type: String
Pattern: [\S\s]*
Errors
For information about the errors that are common to all actions, see Common Errors.
LimitExceededException
You made too many calls in a short period of time. Try again later.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ProvideAnomalyFeedback 230
AWS Billing and Cost Management API Reference
ProvideAnomalyFeedback 231
AWS Billing and Cost Management API Reference
StartCommitmentPurchaseAnalysis
Service: AWS Cost Explorer
Specifies the parameters of a planned commitment purchase and starts the generation of the
analysis. This enables you to estimate the cost, coverage, and utilization impact of your planned
commitment purchases.
Request Syntax
{
"CommitmentPurchaseAnalysisConfiguration": {
"SavingsPlansPurchaseAnalysisConfiguration": {
"AccountId": "string",
"AccountScope": "string",
"AnalysisType": "string",
"LookBackTimePeriod": {
"End": "string",
"Start": "string"
},
"SavingsPlansToAdd": [
{
"InstanceFamily": "string",
"OfferingId": "string",
"PaymentOption": "string",
"Region": "string",
"SavingsPlansCommitment": number,
"SavingsPlansType": "string",
"TermInYears": "string"
}
],
"SavingsPlansToExclude": [ "string" ]
}
}
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
StartCommitmentPurchaseAnalysis 232
AWS Billing and Cost Management API Reference
CommitmentPurchaseAnalysisConfiguration
Required: Yes
Response Syntax
{
"AnalysisId": "string",
"AnalysisStartedTime": "string",
"EstimatedCompletionTime": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
AnalysisId
Type: String
Pattern: ^[\S\s]{8}-[\S\s]{4}-[\S\s]{4}-[\S\s]{4}-[\S\s]{12}$
AnalysisStartedTime
Type: String
Pattern: ^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(([+-]\d\d:\d\d)|Z)$
StartCommitmentPurchaseAnalysis 233
AWS Billing and Cost Management API Reference
EstimatedCompletionTime
Type: String
Pattern: ^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(([+-]\d\d:\d\d)|Z)$
Errors
For information about the errors that are common to all actions, see Common Errors.
DataUnavailableException
You made too many calls in a short period of time. Try again later.
You've reached the limit on the number of resources you can create, or exceeded the size of an
individual resource.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
StartCommitmentPurchaseAnalysis 234
AWS Billing and Cost Management API Reference
StartCommitmentPurchaseAnalysis 235
AWS Billing and Cost Management API Reference
StartCostAllocationTagBackfill
Service: AWS Cost Explorer
Request a cost allocation tag backfill. This will backfill the activation status (either active or
inactive) for all tag keys from para:BackfillFrom up to the time this request is made.
Request Syntax
{
"BackfillFrom": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
BackfillFrom
The date you want the backfill to start from. The date can only be a first day of the month (a
billing start date). Dates can't precede the previous twelve months, or in the future.
Type: String
Pattern: ^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(([+-]\d\d:\d\d)|Z)$
Required: Yes
Response Syntax
{
"BackfillRequest": {
"BackfillFrom": "string",
"BackfillStatus": "string",
"CompletedAt": "string",
"LastUpdatedAt": "string",
StartCostAllocationTagBackfill 236
AWS Billing and Cost Management API Reference
"RequestedAt": "string"
}
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
BackfillRequest
Errors
For information about the errors that are common to all actions, see Common Errors.
BackfillLimitExceededException
A request to backfill is already in progress. Once the previous request is complete, you can
create another request.
You made too many calls in a short period of time. Try again later.
Examples
StartCostAllocationTagBackfill 237
AWS Billing and Cost Management API Reference
Sample Request
{
"BackfillFrom": "2024-02-01T00:00:00Z"
}
Sample Response
{
"BackfillRequest": {
"BackfillFrom":"2024-02-01T00:00:00Z",
"BackfillStatus":"PROCESSING",
"RequestedAt":"2024-03-01T09:16:23Z",
"LastUpdatedAt":"2024-03-01T09:16:23Z"
}
}
Example 2: The backfill is skipped because there is no tag status change since the last backfill
Sample Request
{
"BackfillFrom": "2024-02-01T00:00:00Z"
}
Sample Response
{
"BackfillRequest": {
"BackfillFrom":"2024-02-01T00:00:00Z",
"BackfillStatus":"SUCCEEDED",
"RequestedAt":"2024-03-01T09:16:23Z",
"LastUpdatedAt":"2024-03-02T06:45:00Z",
"CompletedAt":"2024-03-02T06:45:00Z"
}
}
StartCostAllocationTagBackfill 238
AWS Billing and Cost Management API Reference
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
StartCostAllocationTagBackfill 239
AWS Billing and Cost Management API Reference
StartSavingsPlansPurchaseRecommendationGeneration
Service: AWS Cost Explorer
Requests a Savings Plans recommendation generation. This enables you to calculate a fresh set
of Savings Plans recommendations that takes your latest usage data and current Savings Plans
inventory into account. You can refresh Savings Plans recommendations up to three times daily for
a consolidated billing family.
Note
StartSavingsPlansPurchaseRecommendationGeneration has no request syntax
because no input parameters are needed to support this operation.
Response Syntax
{
"EstimatedCompletionTime": "string",
"GenerationStartedTime": "string",
"RecommendationId": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
EstimatedCompletionTime
The estimated time for when the recommendation generation will complete.
Type: String
Pattern: ^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(([+-]\d\d:\d\d)|Z)$
GenerationStartedTime
StartSavingsPlansPurchaseRecommendationGeneration 240
AWS Billing and Cost Management API Reference
Type: String
Pattern: ^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(([+-]\d\d:\d\d)|Z)$
RecommendationId
Type: String
Pattern: ^[\S\s]{8}-[\S\s]{4}-[\S\s]{4}-[\S\s]{4}-[\S\s]{12}$
Errors
For information about the errors that are common to all actions, see Common Errors.
DataUnavailableException
You made too many calls in a short period of time. Try again later.
You've reached the limit on the number of resources you can create, or exceeded the size of an
individual resource.
StartSavingsPlansPurchaseRecommendationGeneration 241
AWS Billing and Cost Management API Reference
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
StartSavingsPlansPurchaseRecommendationGeneration 242
AWS Billing and Cost Management API Reference
TagResource
Service: AWS Cost Explorer
An API operation for adding one or more tags (key-value pairs) to a resource.
You can use the TagResource operation with a resource that already has tags. If you specify a
new tag key for the resource, this tag is appended to the list of tags associated with the resource.
If you specify a tag key that is already associated with the resource, the new tag value you specify
replaces the previous value for that tag.
Although the maximum number of array members is 200, user-tag maximum is 50. The remaining
are reserved for AWS use.
Request Syntax
{
"ResourceArn": "string",
"ResourceTags": [
{
"Key": "string",
"Value": "string"
}
]
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
ResourceArn
The Amazon Resource Name (ARN) of the resource. For a list of supported resources, see
ResourceTag.
Type: String
Pattern: arn:aws[-a-z0-9]*:[a-z0-9]+:[-a-z0-9]*:[0-9]{12}:[-a-zA-Z0-9/:_]+
TagResource 243
AWS Billing and Cost Management API Reference
Required: Yes
ResourceTags
Each tag consists of a key and a value, and each key must be unique for the resource. The
following restrictions apply to resource tags:
• Although the maximum number of array members is 200, you can assign a maximum of 50
user-tags to one resource. The remaining are reserved for AWS use
• The maximum length of a key is 128 characters
• The maximum length of a value is 256 characters
• Keys and values can only contain alphanumeric characters, spaces, and any of the following:
_.:/=+@-
• Keys and values are case sensitive
• Keys and values are trimmed for any leading or trailing whitespaces
• Don’t use aws: as a prefix for your keys. This prefix is reserved for AWS use
Required: Yes
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors.
LimitExceededException
You made too many calls in a short period of time. Try again later.
TagResource 244
AWS Billing and Cost Management API Reference
Can occur if you specify a number of tags for a resource greater than the maximum 50 user tags
per resource.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
TagResource 245
AWS Billing and Cost Management API Reference
UntagResource
Service: AWS Cost Explorer
Removes one or more tags from a resource. Specify only tag keys in your request. Don't specify the
value.
Request Syntax
{
"ResourceArn": "string",
"ResourceTagKeys": [ "string" ]
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
ResourceArn
The Amazon Resource Name (ARN) of the resource. For a list of supported resources, see
ResourceTag.
Type: String
Pattern: arn:aws[-a-z0-9]*:[a-z0-9]+:[-a-z0-9]*:[0-9]{12}:[-a-zA-Z0-9/:_]+
Required: Yes
ResourceTagKeys
A list of tag keys associated with tags that need to be removed from the resource. If you specify
a tag key that doesn't exist, it's ignored. Although the maximum number of array members is
200, user-tag maximum is 50. The remaining are reserved for AWS use.
UntagResource 246
AWS Billing and Cost Management API Reference
Pattern: ^([\p{L}\p{Z}\p{N}_.:/=+\-@]*)$
Required: Yes
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors.
LimitExceededException
You made too many calls in a short period of time. Try again later.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
UntagResource 247
AWS Billing and Cost Management API Reference
UntagResource 248
AWS Billing and Cost Management API Reference
UpdateAnomalyMonitor
Service: AWS Cost Explorer
Updates an existing cost anomaly monitor. The changes made are applied going forward, and
doesn't change anomalies detected in the past.
Request Syntax
{
"MonitorArn": "string",
"MonitorName": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
MonitorArn
Type: String
Pattern: [\S\s]*
Required: Yes
MonitorName
Type: String
Pattern: [\S\s]*
Required: No
UpdateAnomalyMonitor 249
AWS Billing and Cost Management API Reference
Response Syntax
{
"MonitorArn": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
MonitorArn
Type: String
Pattern: [\S\s]*
Errors
For information about the errors that are common to all actions, see Common Errors.
LimitExceededException
You made too many calls in a short period of time. Try again later.
The cost anomaly monitor does not exist for the account.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
UpdateAnomalyMonitor 250
AWS Billing and Cost Management API Reference
UpdateAnomalyMonitor 251
AWS Billing and Cost Management API Reference
UpdateAnomalySubscription
Service: AWS Cost Explorer
Updates an existing cost anomaly subscription. Specify the fields that you want to update. Omitted
fields are unchanged.
Note
The JSON below describes the generic construct for each type. See Request Parameters for
possible values as they apply to AnomalySubscription.
Request Syntax
{
"Frequency": "string",
"MonitorArnList": [ "string" ],
"Subscribers": [
{
"Address": "string",
"Status": "string",
"Type": "string"
}
],
"SubscriptionArn": "string",
"SubscriptionName": "string",
"Threshold": number,
"ThresholdExpression": {
"And": [
"Expression"
],
"CostCategories": {
"Key": "string",
"MatchOptions": [ "string" ],
"Values": [ "string" ]
},
"Dimensions": {
"Key": "string",
"MatchOptions": [ "string" ],
"Values": [ "string" ]
},
"Not": "Expression",
UpdateAnomalySubscription 252
AWS Billing and Cost Management API Reference
"Or": [
"Expression"
],
"Tags": {
"Key": "string",
"MatchOptions": [ "string" ],
"Values": [ "string" ]
}
}
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
Frequency
Type: String
Required: No
MonitorArnList
Pattern: arn:aws[-a-z0-9]*:[a-z0-9]+:[-a-z0-9]*:[0-9]{12}:[-a-zA-Z0-9/:_]+
Required: No
Subscribers
Required: No
UpdateAnomalySubscription 253
AWS Billing and Cost Management API Reference
SubscriptionArn
Type: String
Pattern: [\S\s]*
Required: Yes
SubscriptionName
Type: String
Pattern: [\S\s]*
Required: No
Threshold
(deprecated)
This field has been deprecated. To update a threshold, use ThresholdExpression. Continued use
of Threshold will be treated as shorthand syntax for a ThresholdExpression.
Type: Double
Required: No
ThresholdExpression
The update to the Expression object used to specify the anomalies that you want to generate
alerts for. This supports dimensions and nested expressions. The supported dimensions
are ANOMALY_TOTAL_IMPACT_ABSOLUTE and ANOMALY_TOTAL_IMPACT_PERCENTAGE,
corresponding to an anomaly’s TotalImpact and TotalImpactPercentage, respectively (see
UpdateAnomalySubscription 254
AWS Billing and Cost Management API Reference
Impact for more details). The supported nested expression types are AND and OR. The match
option GREATER_THAN_OR_EQUAL is required. Values must be numbers between 0 and
10,000,000,000 in string format.
Required: No
Response Syntax
{
"SubscriptionArn": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
UpdateAnomalySubscription 255
AWS Billing and Cost Management API Reference
SubscriptionArn
Type: String
Pattern: [\S\s]*
Errors
For information about the errors that are common to all actions, see Common Errors.
LimitExceededException
You made too many calls in a short period of time. Try again later.
The cost anomaly monitor does not exist for the account.
The cost anomaly subscription does not exist for the account.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
UpdateAnomalySubscription 256
AWS Billing and Cost Management API Reference
UpdateAnomalySubscription 257
AWS Billing and Cost Management API Reference
UpdateCostAllocationTagsStatus
Service: AWS Cost Explorer
Updates status for cost allocation tags in bulk, with maximum batch size of 20. If the tag status
that's updated is the same as the existing tag status, the request doesn't fail. Instead, it doesn't
have any effect on the tag status (for example, activating the active tag).
Request Syntax
{
"CostAllocationTagsStatus": [
{
"Status": "string",
"TagKey": "string"
}
]
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
CostAllocationTagsStatus
The list of CostAllocationTagStatusEntry objects that are used to update cost allocation
tags status for this request.
Required: Yes
Response Syntax
{
"Errors": [
{
"Code": "string",
"Message": "string",
UpdateCostAllocationTagsStatus 258
AWS Billing and Cost Management API Reference
"TagKey": "string"
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Errors
Errors
For information about the errors that are common to all actions, see Common Errors.
LimitExceededException
You made too many calls in a short period of time. Try again later.
Examples
Sample Request
UpdateCostAllocationTagsStatus 259
AWS Billing and Cost Management API Reference
"CostAllocationTagsStatus": [
{
"TagKey": "tagA",
"Status": "Active"
},
{
"TagKey": "tagB",
"Status": "Inactive"
}
]
}
Sample Response
{
"Errors": []
}
Sample Request
{
"CostAllocationTagsStatus": [
{
"TagKey": "tagC",
"Status": "Active"
},
{
"TagKey": "tagD",
"Status": "Inactive"
}
]
}
Sample Response
{
"Errors": [
{
UpdateCostAllocationTagsStatus 260
AWS Billing and Cost Management API Reference
"TagKey": "tagC",
"Code": "TagKeysNotFoundException",
"Message": "Failed to update Cost Allocation Tag: tagC"
}
]
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
UpdateCostAllocationTagsStatus 261
AWS Billing and Cost Management API Reference
UpdateCostCategoryDefinition
Service: AWS Cost Explorer
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.
Request Syntax
{
"CostCategoryArn": "string",
"DefaultValue": "string",
"EffectiveStart": "string",
"Rules": [
{
"InheritedValue": {
"DimensionKey": "string",
"DimensionName": "string"
},
"Rule": {
"And": [
"Expression"
],
"CostCategories": {
"Key": "string",
"MatchOptions": [ "string" ],
"Values": [ "string" ]
},
"Dimensions": {
"Key": "string",
"MatchOptions": [ "string" ],
"Values": [ "string" ]
},
"Not": "Expression",
"Or": [
"Expression"
],
"Tags": {
"Key": "string",
"MatchOptions": [ "string" ],
"Values": [ "string" ]
}
},
UpdateCostCategoryDefinition 262
AWS Billing and Cost Management API Reference
"Type": "string",
"Value": "string"
}
],
"RuleVersion": "string",
"SplitChargeRules": [
{
"Method": "string",
"Parameters": [
{
"Type": "string",
"Values": [ "string" ]
}
],
"Source": "string",
"Targets": [ "string" ]
}
]
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
CostCategoryArn
Type: String
Pattern: arn:aws[-a-z0-9]*:[a-z0-9]+:[-a-z0-9]*:[0-9]{12}:[-a-zA-Z0-9/:_]+
Required: Yes
DefaultValue
Type: String
UpdateCostCategoryDefinition 263
AWS Billing and Cost Management API Reference
Required: No
EffectiveStart
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.
Type: String
Pattern: ^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(([+-]\d\d:\d\d)|Z)$
Required: No
Rules
The Expression object used to categorize costs. For more information, see CostCategoryRule .
Required: Yes
RuleVersion
Type: String
Required: Yes
SplitChargeRules
The split charge rules used to allocate your charges between your Cost Category values.
Required: No
UpdateCostCategoryDefinition 264
AWS Billing and Cost Management API Reference
Response Syntax
{
"CostCategoryArn": "string",
"EffectiveStart": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
CostCategoryArn
Type: String
Pattern: arn:aws[-a-z0-9]*:[a-z0-9]+:[-a-z0-9]*:[0-9]{12}:[-a-zA-Z0-9/:_]+
EffectiveStart
The Cost Category's effective start date. It can only be a billing start date (first day of the
month).
Type: String
Pattern: ^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(([+-]\d\d:\d\d)|Z)$
Errors
For information about the errors that are common to all actions, see Common Errors.
LimitExceededException
You made too many calls in a short period of time. Try again later.
UpdateCostCategoryDefinition 265
AWS Billing and Cost Management API Reference
ResourceNotFoundException
You've reached the limit on the number of resources you can create, or exceeded the size of an
individual resource.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
• CreateExport
• DeleteExport
• GetExecution
• GetExport
• GetTable
• ListExecutions
• ListExports
• ListTables
• ListTagsForResource
• TagResource
• UntagResource
• UpdateExport
CreateExport
Service: AWS Data Exports
Creates a data export and specifies the data query, the delivery preference, and any optional
resource tags.
The QueryStatement is an SQL statement. Data Exports only supports a limited subset of the
SQL syntax. For more information on the SQL syntax that is supported, see Data query. To view the
available tables and columns, see the Data Exports table dictionary.
Request Syntax
{
"Export": {
"DataQuery": {
"QueryStatement": "string",
"TableConfigurations": {
"string" : {
"string" : "string"
}
}
},
"Description": "string",
"DestinationConfigurations": {
"S3Destination": {
"S3Bucket": "string",
"S3OutputConfigurations": {
"Compression": "string",
"Format": "string",
"OutputType": "string",
"Overwrite": "string"
CreateExport 268
AWS Billing and Cost Management API Reference
},
"S3Prefix": "string",
"S3Region": "string"
}
},
"ExportArn": "string",
"Name": "string",
"RefreshCadence": {
"Frequency": "string"
}
},
"ResourceTags": [
{
"Key": "string",
"Value": "string"
}
]
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
Export
The details of the export, including data query, name, description, and destination
configuration.
Required: Yes
ResourceTags
An optional list of tags to associate with the specified export. Each tag consists of a key and a
value, and each key must be unique for the resource.
Required: No
CreateExport 269
AWS Billing and Cost Management API Reference
Response Syntax
{
"ExportArn": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
ExportArn
Type: String
Pattern: ^arn:aws[-a-z0-9]*:[-a-z0-9]+:[-a-z0-9]*:[0-9]{12}:[-a-zA-
Z0-9/:_]+$
Errors
For information about the errors that are common to all actions, see Common Errors.
InternalServerException
An error on the server occurred during the processing of your request. Try again later.
You've reached the limit on the number of resources you can create, or exceeded the size of an
individual resource.
CreateExport 270
AWS Billing and Cost Management API Reference
Examples
Sample Request
{
"Export": {
"Name": "ExampleExportName",
"Description": "Example Description",
"DataQuery": {
"QueryStatement": "SELECT identity_line_item_id, identity_time_interval,
line_item_product_code,line_item_unblended_cost FROM COST_AND_USAGE_REPORT",
"TableConfigurations": {
"COST_AND_USAGE_REPORT": {
"TIME_GRANULARITY": "DAILY",
"INCLUDE_RESOURCES": "FALSE",
"INCLUDE_MANUAL_DISCOUNT_COMPATIBILITY": "FALSE",
"INCLUDE_SPLIT_COST_ALLOCATION_DATA": "FALSE"
}
}
},
"DestinationConfigurations": {
"S3Destination": {
"S3Bucket": "ExampleS3Bucket",
"S3Prefix": "ExampleS3Prefix",
"S3Region": "us-east-1",
"S3OutputConfigurations": {
"Overwrite": "OVERWRITE_REPORT",
"Format": "TEXT_OR_CSV",
"Compression": "GZIP",
"OutputType": "CUSTOM"
}
CreateExport 271
AWS Billing and Cost Management API Reference
}
},
"RefreshCadence": {
"Frequency": "SYNCHRONOUS"
}
},
"ResourceTags": [
{
"Key": "YourTagKey",
"Value": "YourTagValue"
}
]
}
Sample Response
{
"ExportArn": "arn:aws:bcm-data-exports:::export/Example-b9ac8e7c-6a49-468f-
a43e-9ce6b5b051d1"
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
CreateExport 272
AWS Billing and Cost Management API Reference
CreateExport 273
AWS Billing and Cost Management API Reference
DeleteExport
Service: AWS Data Exports
Request Syntax
{
"ExportArn": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
ExportArn
Type: String
Pattern: ^arn:aws[-a-z0-9]*:[-a-z0-9]+:[-a-z0-9]*:[0-9]{12}:[-a-zA-
Z0-9/:_]+$
Required: Yes
Response Syntax
{
"ExportArn": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
DeleteExport 274
AWS Billing and Cost Management API Reference
ExportArn
Type: String
Pattern: ^arn:aws[-a-z0-9]*:[-a-z0-9]+:[-a-z0-9]*:[0-9]{12}:[-a-zA-
Z0-9/:_]+$
Errors
For information about the errors that are common to all actions, see Common Errors.
InternalServerException
An error on the server occurred during the processing of your request. Try again later.
The specified Amazon Resource Name (ARN) in the request doesn't exist.
Examples
DeleteExport 275
AWS Billing and Cost Management API Reference
Sample Request
{
"ExportArn": "arn:aws:bcm-data-exports:::export:Example/837fcfce-f85b-4600-b333-
b38a12c3a927"
}
Sample Response
{
"ExportArn": "arn:aws:bcm-data-exports:::export:Example/837fcfce-f85b-4600-b333-
b38a12c3a927"
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
DeleteExport 276
AWS Billing and Cost Management API Reference
GetExecution
Service: AWS Data Exports
Request Syntax
{
"ExecutionId": "string",
"ExportArn": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
ExecutionId
Type: String
Pattern: ^[\S\s]*$
Required: Yes
ExportArn
The Amazon Resource Name (ARN) of the Export object that generated this specific execution.
Type: String
Pattern: ^arn:aws[-a-z0-9]*:[-a-z0-9]+:[-a-z0-9]*:[0-9]{12}:[-a-zA-
Z0-9/:_]+$
Required: Yes
GetExecution 277
AWS Billing and Cost Management API Reference
Response Syntax
{
"ExecutionId": "string",
"ExecutionStatus": {
"CompletedAt": "string",
"CreatedAt": "string",
"LastUpdatedAt": "string",
"StatusCode": "string",
"StatusReason": "string"
},
"Export": {
"DataQuery": {
"QueryStatement": "string",
"TableConfigurations": {
"string" : {
"string" : "string"
}
}
},
"Description": "string",
"DestinationConfigurations": {
"S3Destination": {
"S3Bucket": "string",
"S3OutputConfigurations": {
"Compression": "string",
"Format": "string",
"OutputType": "string",
"Overwrite": "string"
},
"S3Prefix": "string",
"S3Region": "string"
}
},
"ExportArn": "string",
"Name": "string",
"RefreshCadence": {
"Frequency": "string"
}
}
}
GetExecution 278
AWS Billing and Cost Management API Reference
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
ExecutionId
Type: String
Pattern: ^[\S\s]*$
ExecutionStatus
The export data for this specific execution. This export data is a snapshot from when the
execution was generated. The data could be different from the current export data if the export
was updated since the execution was generated.
Errors
For information about the errors that are common to all actions, see Common Errors.
InternalServerException
An error on the server occurred during the processing of your request. Try again later.
The specified Amazon Resource Name (ARN) in the request doesn't exist.
GetExecution 279
AWS Billing and Cost Management API Reference
ThrottlingException
Examples
Sample Request
{
"ExportArn": "arn:aws:bcm-data-exports:::export:Example/837fcfce-f85b-4600-b333-
b38a12c3a927",
"ExecutionId": "8ae3fbeb-fbeb-4048-bb39-f7c6c7e80c21"
}
Sample Response
{
"ExecutionId": "f0cfeaf0-c552-47e7-82bc-0107fbfc7a8b",
"ExecutionStatus": {
"CreatedAt": "2023-11-14T18:14:12.813Z",
"LastUpdatedAt": "2023-11-14T18:18:14.252556820Z",
"StatusCode": "DELIVERY_SUCCESS"
},
"Export": {
"Name": "ExampleExportName",
"Description": "Example Description",
"DataQuery": {
GetExecution 280
AWS Billing and Cost Management API Reference
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
GetExecution 281
AWS Billing and Cost Management API Reference
GetExecution 282
AWS Billing and Cost Management API Reference
GetExport
Service: AWS Data Exports
Request Syntax
{
"ExportArn": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
ExportArn
Type: String
Pattern: ^arn:aws[-a-z0-9]*:[-a-z0-9]+:[-a-z0-9]*:[0-9]{12}:[-a-zA-
Z0-9/:_]+$
Required: Yes
Response Syntax
{
"Export": {
"DataQuery": {
"QueryStatement": "string",
"TableConfigurations": {
"string" : {
"string" : "string"
}
}
},
GetExport 283
AWS Billing and Cost Management API Reference
"Description": "string",
"DestinationConfigurations": {
"S3Destination": {
"S3Bucket": "string",
"S3OutputConfigurations": {
"Compression": "string",
"Format": "string",
"OutputType": "string",
"Overwrite": "string"
},
"S3Prefix": "string",
"S3Region": "string"
}
},
"ExportArn": "string",
"Name": "string",
"RefreshCadence": {
"Frequency": "string"
}
},
"ExportStatus": {
"CreatedAt": "string",
"LastRefreshedAt": "string",
"LastUpdatedAt": "string",
"StatusCode": "string",
"StatusReason": "string"
}
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Export
GetExport 284
AWS Billing and Cost Management API Reference
Errors
For information about the errors that are common to all actions, see Common Errors.
InternalServerException
An error on the server occurred during the processing of your request. Try again later.
The specified Amazon Resource Name (ARN) in the request doesn't exist.
Examples
Sample Request
{
"ExportArn": "arn:aws:bcm-data-exports:::export:Example/837fcfce-f85b-4600-b333-
b38a12c3a927"
}
GetExport 285
AWS Billing and Cost Management API Reference
Sample Response
{
"Export": {
"Name": "ExampleExportName",
"Description": "Example Description",
"DataQuery": {
"QueryStatement": "SELECT identity_line_item_id, identity_time_interval,
line_item_product_code,line_item_unblended_cost FROM COST_AND_USAGE_REPORT",
"TableConfigurations": {
"COST_AND_USAGE_REPORT": {
"TIME_GRANULARITY": "DAILY",
"INCLUDE_RESOURCES": "FALSE",
"INCLUDE_MANUAL_DISCOUNT_COMPATIBILITY": "FALSE",
"INCLUDE_SPLIT_COST_ALLOCATION_DATA": "FALSE"
}
}
},
"DestinationConfigurations": {
"S3Destination": {
"S3Bucket": "ExampleS3Bucket",
"S3Prefix": "ExampleS3Prefix",
"S3Region": "us-east-1",
"S3OutputConfigurations": {
"Overwrite": "OVERWRITE_REPORT",
"Format": "TEXT_OR_CSV",
"Compression": "GZIP",
"OutputType": "CUSTOM"
}
}
},
"RefreshCadence": {
"Frequency": "SYNCHRONOUS"
}
},
"ExportStatus": {
"CreatedAt": "2023-11-14T18:02:02.371Z",
"LastRefreshedAt": "2023-11-14T18:18:12.592Z",
"LastUpdatedAt": "2023-11-14T18:02:02.371Z",
"StatusCode": "HEALTHY"
GetExport 286
AWS Billing and Cost Management API Reference
}
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
GetExport 287
AWS Billing and Cost Management API Reference
GetTable
Service: AWS Data Exports
Returns the metadata for the specified table and table properties. This includes the list of columns
in the table schema, their data types, and column descriptions.
Request Syntax
{
"TableName": "string",
"TableProperties": {
"string" : "string"
}
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
TableName
Type: String
Pattern: ^[\S\s]*$
Required: Yes
TableProperties
TableProperties are additional configurations you can provide to change the data and schema
of a table. Each table can have different TableProperties. Tables are not required to have any
TableProperties. Each table property has a default value that it assumes if not specified.
GetTable 288
AWS Billing and Cost Management API Reference
Required: No
Response Syntax
{
"Description": "string",
"Schema": [
{
"Description": "string",
"Name": "string",
"Type": "string"
}
],
"TableName": "string",
"TableProperties": {
"string" : "string"
}
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Description
Type: String
Pattern: ^[\S\s]*$
Schema
GetTable 289
AWS Billing and Cost Management API Reference
Type: String
Pattern: ^[\S\s]*$
TableProperties
TableProperties are additional configurations you can provide to change the data and schema
of a table. Each table can have different TableProperties. Tables are not required to have any
TableProperties. Each table property has a default value that it assumes if not specified.
Errors
For information about the errors that are common to all actions, see Common Errors.
InternalServerException
An error on the server occurred during the processing of your request. Try again later.
GetTable 290
AWS Billing and Cost Management API Reference
ValidationException
Examples
Sample Request
{
"TableName": "COST_AND_USAGE_REPORT",
"TableProperties": {
}
}
Sample Response
{
"Description": "Cost and Usage Report",
"Schema": [
{
"Description": "This field is generated for each line item and is unique
in a given partition. This does not guarantee that the field will be unique across
an entire delivery (that is, all partitions in an update) of the AWS CUR. The line
item ID isn't consistent between different Cost and Usage Reports and can't be used to
identify the same line item across different reports.",
"Name": "identity_line_item_id",
"Type": "String"
},
{
"Description": "The time interval that this line item applies to, in the
following format: YYYY-MM-DDTHH:mm:ssZ/YYYY-MM-DDTHH:mm:ssZ. The time interval is in
UTC and can be either daily or hourly, depending on the granularity of the report.",
GetTable 291
AWS Billing and Cost Management API Reference
"Name": "identity_time_interval",
"Type": "String"
},
{
"Description": "The ID associated with a specific line item. Until the
report is final, the InvoiceId is blank.",
"Name": "bill_invoice_id",
"Type": "String"
}
],
"TableName": "COST_AND_USAGE_REPORT",
"TableProperties": {
"INCLUDE_MANUAL_DISCOUNT_COMPATIBILITY": "FALSE",
"INCLUDE_RESOURCES": "FALSE",
"INCLUDE_SPLIT_COST_ALLOCATION_DATA": "FALSE",
"TIME_GRANULARITY": "HOURLY"
}
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
GetTable 292
AWS Billing and Cost Management API Reference
ListExecutions
Service: AWS Data Exports
Request Syntax
{
"ExportArn": "string",
"MaxResults": number,
"NextToken": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
ExportArn
Type: String
Pattern: ^arn:aws[-a-z0-9]*:[-a-z0-9]+:[-a-z0-9]*:[0-9]{12}:[-a-zA-
Z0-9/:_]+$
Required: Yes
MaxResults
The maximum number of objects that are returned for the request.
Type: Integer
Required: No
NextToken
ListExecutions 293
AWS Billing and Cost Management API Reference
Type: String
Pattern: ^[\S\s]*$
Required: No
Response Syntax
{
"Executions": [
{
"ExecutionId": "string",
"ExecutionStatus": {
"CompletedAt": "string",
"CreatedAt": "string",
"LastUpdatedAt": "string",
"StatusCode": "string",
"StatusReason": "string"
}
}
],
"NextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Executions
Type: String
ListExecutions 294
AWS Billing and Cost Management API Reference
Pattern: ^[\S\s]*$
Errors
For information about the errors that are common to all actions, see Common Errors.
InternalServerException
An error on the server occurred during the processing of your request. Try again later.
The specified Amazon Resource Name (ARN) in the request doesn't exist.
Examples
Sample Request
{
"ExportArn": "arn:aws:bcm-data-exports:::export:Example/837fcfce-f85b-4600-b333-
b38a12c3a927",
ListExecutions 295
AWS Billing and Cost Management API Reference
"MaxResults": 100,
"NextToken": ""
}
Sample Response
{
"Executions": [
{
"ExecutionId": "f0cfeaf0-c552-47e7-82bc-0107fbfc7a8b",
"ExecutionStatus": {
"CreatedAt": "2023-11-14T18:14:12.813Z",
"LastUpdatedAt": "2023-11-14T18:18:14.252556820Z",
"StatusCode": "DELIVERY_SUCCESS"
}
},
{
"ExecutionId": "2c173333-4b14-4740-98a1-d52304eced2d",
"ExecutionStatus": {
"CreatedAt": "2023-11-14T09:20:47.137Z",
"LastUpdatedAt": "2023-11-14T09:53:48.285265457Z",
"StatusCode": "DELIVERY_SUCCESS"
}
}
]
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ListExecutions 296
AWS Billing and Cost Management API Reference
ListExecutions 297
AWS Billing and Cost Management API Reference
ListExports
Service: AWS Data Exports
Request Syntax
{
"MaxResults": number,
"NextToken": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
MaxResults
The maximum number of objects that are returned for the request.
Type: Integer
Required: No
NextToken
Type: String
Pattern: ^[\S\s]*$
Required: No
Response Syntax
{
"Exports": [
ListExports 298
AWS Billing and Cost Management API Reference
{
"ExportArn": "string",
"ExportName": "string",
"ExportStatus": {
"CreatedAt": "string",
"LastRefreshedAt": "string",
"LastUpdatedAt": "string",
"StatusCode": "string",
"StatusReason": "string"
}
}
],
"NextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Exports
Type: String
Pattern: ^[\S\s]*$
Errors
For information about the errors that are common to all actions, see Common Errors.
InternalServerException
An error on the server occurred during the processing of your request. Try again later.
ListExports 299
AWS Billing and Cost Management API Reference
Examples
Sample Request
{
"MaxResults": 100,
"NextToken": ""
}
Sample Response
{
"Exports": [
{
"ExportArn": "arn:aws:bcm-data-exports:::export:Example/837fcfce-f85b-4600-
b333-b38a12c3a927",
"ExportName": "ExampleExportName1",
"ExportStatus": {
"CreatedAt": "2023-11-14T18:02:02.371Z",
"LastRefreshedAt": "2023-11-14T18:18:12.592Z",
"LastUpdatedAt": "2023-11-14T18:02:02.371Z",
ListExports 300
AWS Billing and Cost Management API Reference
"StatusCode": "HEALTHY"
}
},
{
"ExportArn": "arn:aws:bcm-data-exports:::export:Example/837fcfce-f85b-4600-
b333-b38a12c3a927",
"ExportName": "ExampleExportName2",
"ExportStatus": {
"CreatedAt": "2023-11-14T18:03:02.038Z",
"LastRefreshedAt": "2023-11-14T18:18:12.629Z",
"LastUpdatedAt": "2023-11-14T18:03:02.038Z",
"StatusCode": "UNHEALTHY"
}
}
]
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ListExports 301
AWS Billing and Cost Management API Reference
ListTables
Service: AWS Data Exports
Request Syntax
{
"MaxResults": number,
"NextToken": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
MaxResults
The maximum number of objects that are returned for the request.
Type: Integer
Required: No
NextToken
Type: String
Pattern: ^[\S\s]*$
Required: No
Response Syntax
ListTables 302
AWS Billing and Cost Management API Reference
"NextToken": "string",
"Tables": [
{
"Description": "string",
"TableName": "string",
"TableProperties": [
{
"DefaultValue": "string",
"Description": "string",
"Name": "string",
"ValidValues": [ "string" ]
}
]
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
NextToken
Type: String
Pattern: ^[\S\s]*$
Tables
Errors
For information about the errors that are common to all actions, see Common Errors.
ListTables 303
AWS Billing and Cost Management API Reference
InternalServerException
An error on the server occurred during the processing of your request. Try again later.
Examples
Sample Request
{
"MaxResults": 100,
"NextToken": ""
}
Sample Response
{
"Tables": [
{
"Description": "A view over CUR for CostAndUsageDashboard",
"TableName": "COST_AND_USAGE_DASHBOARD",
"TableProperties": [
{}
]
ListTables 304
AWS Billing and Cost Management API Reference
},
{
"Description": "Cost and Usage Report",
"TableName": "COST_AND_USAGE_REPORT",
"TableProperties": [
{
"DefaultValue": "HOURLY",
"Description": "The granularity of the line-items in the table.",
"Name": "TIME_GRANULARITY",
"ValidValues": [
"DAILY",
"MONTHLY",
"HOURLY"
]
},
{
"DefaultValue": "FALSE",
"Description": "Whether to simulate manual discounts for automated
discount data.",
"Name": "INCLUDE_MANUAL_DISCOUNT_COMPATIBILITY",
"ValidValues": [
"TRUE",
"FALSE"
]
},
{
"DefaultValue": "FALSE",
"Description": "Whether to include fission columns.",
"Name": "INCLUDE_SPLIT_COST_ALLOCATION_DATA",
"ValidValues": [
"TRUE",
"FALSE"
]
},
{
"DefaultValue": "FALSE",
"Description": "Whether to include resource IDs on line items.",
"Name": "INCLUDE_RESOURCES",
"ValidValues": [
"TRUE",
"FALSE"
]
}
]
ListTables 305
AWS Billing and Cost Management API Reference
}
]
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ListTables 306
AWS Billing and Cost Management API Reference
ListTagsForResource
Service: AWS Data Exports
Request Syntax
{
"MaxResults": number,
"NextToken": "string",
"ResourceArn": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
MaxResults
The maximum number of objects that are returned for the request.
Type: Integer
Required: No
NextToken
Type: String
Pattern: ^[\S\s]*$
Required: No
ResourceArn
ListTagsForResource 307
AWS Billing and Cost Management API Reference
Type: String
Pattern: ^arn:aws[-a-z0-9]*:[-a-z0-9]+:[-a-z0-9]*:[0-9]{12}:[-a-zA-
Z0-9/:_]+$
Required: Yes
Response Syntax
{
"NextToken": "string",
"ResourceTags": [
{
"Key": "string",
"Value": "string"
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
NextToken
Type: String
Pattern: ^[\S\s]*$
ResourceTags
An optional list of tags to associate with the specified export. Each tag consists of a key and a
value, and each key must be unique for the resource.
ListTagsForResource 308
AWS Billing and Cost Management API Reference
Errors
For information about the errors that are common to all actions, see Common Errors.
InternalServerException
An error on the server occurred during the processing of your request. Try again later.
The specified Amazon Resource Name (ARN) in the request doesn't exist.
Examples
Sample Request
{
"ResourceArn": "arn:aws:bcm-data-exports:::export:Example/837fcfce-f85b-4600-b333-
b38a12c3a927"
}
ListTagsForResource 309
AWS Billing and Cost Management API Reference
Sample Response
{
"ResourceTags": [
{
"Key": "YourTagKey",
"Value": "YourTagValue"
}
]
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ListTagsForResource 310
AWS Billing and Cost Management API Reference
TagResource
Service: AWS Data Exports
Request Syntax
{
"ResourceArn": "string",
"ResourceTags": [
{
"Key": "string",
"Value": "string"
}
]
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
ResourceArn
Type: String
Pattern: ^arn:aws[-a-z0-9]*:[-a-z0-9]+:[-a-z0-9]*:[0-9]{12}:[-a-zA-
Z0-9/:_]+$
Required: Yes
ResourceTags
The tags to associate with the resource. Each tag consists of a key and a value, and each key
must be unique for the resource.
TagResource 311
AWS Billing and Cost Management API Reference
Required: Yes
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors.
InternalServerException
An error on the server occurred during the processing of your request. Try again later.
The specified Amazon Resource Name (ARN) in the request doesn't exist.
Examples
Sample Request
TagResource 312
AWS Billing and Cost Management API Reference
"ResourceArn": "arn:aws:bcm-data-exports:::export:Example/837fcfce-f85b-4600-b333-
b38a12c3a927",
"ResourceTags": [
{
"Key": "YourTagKey",
"Value": "YourTagValue"
}
]
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
TagResource 313
AWS Billing and Cost Management API Reference
UntagResource
Service: AWS Data Exports
Request Syntax
{
"ResourceArn": "string",
"ResourceTagKeys": [ "string" ]
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
ResourceArn
Type: String
Pattern: ^arn:aws[-a-z0-9]*:[-a-z0-9]+:[-a-z0-9]*:[0-9]{12}:[-a-zA-
Z0-9/:_]+$
Required: Yes
ResourceTagKeys
The tag keys that are associated with the resource ARN.
Required: Yes
UntagResource 314
AWS Billing and Cost Management API Reference
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors.
InternalServerException
An error on the server occurred during the processing of your request. Try again later.
The specified Amazon Resource Name (ARN) in the request doesn't exist.
Examples
Sample Request
{
"ResourceArn": "arn:aws:bcm-data-exports:::export:Example/837fcfce-f85b-4600-b333-
b38a12c3a927",
"ResourceTagKeys": [
UntagResource 315
AWS Billing and Cost Management API Reference
"YourTagKey"
]
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
UntagResource 316
AWS Billing and Cost Management API Reference
UpdateExport
Service: AWS Data Exports
Updates an existing data export by overwriting all export parameters. All export parameters must
be provided in the UpdateExport request.
Request Syntax
{
"Export": {
"DataQuery": {
"QueryStatement": "string",
"TableConfigurations": {
"string" : {
"string" : "string"
}
}
},
"Description": "string",
"DestinationConfigurations": {
"S3Destination": {
"S3Bucket": "string",
"S3OutputConfigurations": {
"Compression": "string",
"Format": "string",
"OutputType": "string",
"Overwrite": "string"
},
"S3Prefix": "string",
"S3Region": "string"
}
},
"ExportArn": "string",
"Name": "string",
"RefreshCadence": {
"Frequency": "string"
}
},
"ExportArn": "string"
}
UpdateExport 317
AWS Billing and Cost Management API Reference
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
Export
Required: Yes
ExportArn
Type: String
Pattern: ^arn:aws[-a-z0-9]*:[-a-z0-9]+:[-a-z0-9]*:[0-9]{12}:[-a-zA-
Z0-9/:_]+$
Required: Yes
Response Syntax
{
"ExportArn": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
ExportArn
Type: String
UpdateExport 318
AWS Billing and Cost Management API Reference
Pattern: ^arn:aws[-a-z0-9]*:[-a-z0-9]+:[-a-z0-9]*:[0-9]{12}:[-a-zA-
Z0-9/:_]+$
Errors
For information about the errors that are common to all actions, see Common Errors.
InternalServerException
An error on the server occurred during the processing of your request. Try again later.
The specified Amazon Resource Name (ARN) in the request doesn't exist.
Examples
Sample Request
{
"ExportArn": "arn:aws:bcm-data-exports:::export:Example/837fcfce-f85b-4600-b333-
b38a12c3a927",
"Export": {
UpdateExport 319
AWS Billing and Cost Management API Reference
"Name": "ExampleExportName",
"Description": "Example Description",
"DataQuery": {
"QueryStatement": "SELECT identity_line_item_id, identity_time_interval,
line_item_product_code,line_item_unblended_cost FROM COST_AND_USAGE_REPORT",
"TableConfigurations": {
"COST_AND_USAGE_REPORT": {
"TIME_GRANULARITY": "DAILY",
"INCLUDE_RESOURCES": "FALSE",
"INCLUDE_MANUAL_DISCOUNT_COMPATIBILITY": "FALSE",
"INCLUDE_SPLIT_COST_ALLOCATION_DATA": "FALSE"
}
}
},
"DestinationConfigurations": {
"S3Destination": {
"S3Bucket": "ExampleS3Bucket",
"S3Prefix": "ExampleS3Prefix",
"S3Region": "us-east-1",
"S3OutputConfigurations": {
"Overwrite": "OVERWRITE_REPORT",
"Format": "TEXT_OR_CSV",
"Compression": "GZIP",
"OutputType": "CUSTOM"
}
}
},
"RefreshCadence": {
"Frequency": "SYNCHRONOUS"
}
}
}
Sample Response
{
"ExportArn": "arn:aws:bcm-data-exports:::export:Example/837fcfce-f85b-4600-b333-
b38a12c3a927"
}
UpdateExport 320
AWS Billing and Cost Management API Reference
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
• BatchCreateBillScenarioCommitmentModification
• BatchCreateBillScenarioUsageModification
• BatchCreateWorkloadEstimateUsage
• BatchDeleteBillScenarioCommitmentModification
• BatchDeleteBillScenarioUsageModification
• BatchDeleteWorkloadEstimateUsage
• BatchUpdateBillScenarioCommitmentModification
• BatchUpdateBillScenarioUsageModification
• BatchUpdateWorkloadEstimateUsage
• CreateBillEstimate
• CreateBillScenario
• CreateWorkloadEstimate
• DeleteBillEstimate
• DeleteBillScenario
• DeleteWorkloadEstimate
• GetBillEstimate
• GetBillScenario
• GetPreferences
• GetWorkloadEstimate
• ListBillEstimateCommitments
• ListBillEstimateInputCommitmentModifications
• ListBillEstimateInputUsageModifications
• ListBillEstimateLineItems
• ListBillEstimates
• ListBillScenarioCommitmentModifications
• ListBillScenarios
• ListBillScenarioUsageModifications
• ListTagsForResource
• ListWorkloadEstimates
• ListWorkloadEstimateUsage
• TagResource
• UntagResource
• UpdateBillEstimate
• UpdateBillScenario
• UpdatePreferences
• UpdateWorkloadEstimate
BatchCreateBillScenarioCommitmentModification
Service: AWS Pricing Calculator
Create Compute Savings Plans, EC2 Instance Savings Plans, or EC2 Reserved Instances
commitments that you want to model in a Bill Scenario.
Note
The BatchCreateBillScenarioCommitmentModification operation doesn't have its
own IAM permission. To authorize this operation for AWS principals, include the permission
bcm-pricing-calculator:CreateBillScenarioCommitmentModification in your
policies.
Request Syntax
{
"billScenarioId": "string",
"clientToken": "string",
"commitmentModifications": [
{
"commitmentAction": { ... },
"group": "string",
"key": "string",
"usageAccountId": "string"
}
]
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
billScenarioId
The ID of the Bill Scenario for which you want to create the modeled commitment.
Type: String
BatchCreateBillScenarioCommitmentModification 323
AWS Billing and Cost Management API Reference
Pattern: [a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}
Required: Yes
clientToken
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
Type: String
Pattern: [\u0021-\u007E]+
Required: No
commitmentModifications
Required: Yes
Response Syntax
{
"errors": [
{
"errorCode": "string",
"errorMessage": "string",
"key": "string"
}
],
"items": [
{
"commitmentAction": { ... },
"group": "string",
"id": "string",
"key": "string",
BatchCreateBillScenarioCommitmentModification 324
AWS Billing and Cost Management API Reference
"usageAccountId": "string"
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
errors
Returns the list of errors reason and the commitment item keys that cannot be created in the
Bill Scenario.
Returns the list of successful commitment line items that were created for the Bill Scenario.
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
The request could not be processed because of conflict in the current state of the resource.
BatchCreateBillScenarioCommitmentModification 325
AWS Billing and Cost Management API Reference
InternalServerException
An internal error has occurred. Retry your request, but if the problem persists, contact AWS
support.
The input provided fails to satisfy the constraints specified by an AWS service.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
BatchCreateBillScenarioCommitmentModification 326
AWS Billing and Cost Management API Reference
BatchCreateBillScenarioUsageModification
Service: AWS Pricing Calculator
Create AWS service usage that you want to model in a Bill Scenario.
Note
The BatchCreateBillScenarioUsageModification operation doesn't have its own
IAM permission. To authorize this operation for AWS principals, include the permission
bcm-pricing-calculator:CreateBillScenarioUsageModification in your
policies.
Request Syntax
{
"billScenarioId": "string",
"clientToken": "string",
"usageModifications": [
{
"amounts": [
{
"amount": number,
"startHour": number
}
],
"availabilityZone": "string",
"group": "string",
"historicalUsage": {
"billInterval": {
"end": number,
"start": number
},
"filterExpression": {
"and": [
"Expression"
],
"costCategories": {
"key": "string",
"matchOptions": [ "string" ],
"values": [ "string" ]
},
BatchCreateBillScenarioUsageModification 327
AWS Billing and Cost Management API Reference
"dimensions": {
"key": "string",
"matchOptions": [ "string" ],
"values": [ "string" ]
},
"not": "Expression",
"or": [
"Expression"
],
"tags": {
"key": "string",
"matchOptions": [ "string" ],
"values": [ "string" ]
}
},
"location": "string",
"operation": "string",
"serviceCode": "string",
"usageAccountId": "string",
"usageType": "string"
},
"key": "string",
"operation": "string",
"serviceCode": "string",
"usageAccountId": "string",
"usageType": "string"
}
]
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
billScenarioId
The ID of the Bill Scenario for which you want to create the modeled usage.
Type: String
BatchCreateBillScenarioUsageModification 328
AWS Billing and Cost Management API Reference
Pattern: [a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}
Required: Yes
clientToken
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
Type: String
Pattern: [\u0021-\u007E]+
Required: No
usageModifications
Required: Yes
Response Syntax
{
"errors": [
{
"errorCode": "string",
"errorMessage": "string",
"key": "string"
}
],
"items": [
{
"availabilityZone": "string",
"group": "string",
"historicalUsage": {
"billInterval": {
"end": number,
"start": number
},
BatchCreateBillScenarioUsageModification 329
AWS Billing and Cost Management API Reference
"filterExpression": {
"and": [
"Expression"
],
"costCategories": {
"key": "string",
"matchOptions": [ "string" ],
"values": [ "string" ]
},
"dimensions": {
"key": "string",
"matchOptions": [ "string" ],
"values": [ "string" ]
},
"not": "Expression",
"or": [
"Expression"
],
"tags": {
"key": "string",
"matchOptions": [ "string" ],
"values": [ "string" ]
}
},
"location": "string",
"operation": "string",
"serviceCode": "string",
"usageAccountId": "string",
"usageType": "string"
},
"id": "string",
"key": "string",
"location": "string",
"operation": "string",
"quantities": [
{
"amount": number,
"startHour": number,
"unit": "string"
}
],
"serviceCode": "string",
"usageAccountId": "string",
"usageType": "string"
BatchCreateBillScenarioUsageModification 330
AWS Billing and Cost Management API Reference
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
errors
Returns the list of errors reason and the usage item keys that cannot be created in the Bill
Scenario.
Returns the list of successful usage line items that were created for the Bill Scenario.
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
The request could not be processed because of conflict in the current state of the resource.
BatchCreateBillScenarioUsageModification 331
AWS Billing and Cost Management API Reference
InternalServerException
An internal error has occurred. Retry your request, but if the problem persists, contact AWS
support.
The input provided fails to satisfy the constraints specified by an AWS service.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
BatchCreateBillScenarioUsageModification 332
AWS Billing and Cost Management API Reference
BatchCreateBillScenarioUsageModification 333
AWS Billing and Cost Management API Reference
BatchCreateWorkloadEstimateUsage
Service: AWS Pricing Calculator
Create AWS service usage that you want to model in a Workload Estimate.
Note
The BatchCreateWorkloadEstimateUsage operation doesn't have its own IAM
permission. To authorize this operation for AWS principals, include the permission bcm-
pricing-calculator:CreateWorkloadEstimateUsage in your policies.
Request Syntax
{
"clientToken": "string",
"usage": [
{
"amount": number,
"group": "string",
"historicalUsage": {
"billInterval": {
"end": number,
"start": number
},
"filterExpression": {
"and": [
"Expression"
],
"costCategories": {
"key": "string",
"matchOptions": [ "string" ],
"values": [ "string" ]
},
"dimensions": {
"key": "string",
"matchOptions": [ "string" ],
"values": [ "string" ]
},
"not": "Expression",
"or": [
"Expression"
BatchCreateWorkloadEstimateUsage 334
AWS Billing and Cost Management API Reference
],
"tags": {
"key": "string",
"matchOptions": [ "string" ],
"values": [ "string" ]
}
},
"location": "string",
"operation": "string",
"serviceCode": "string",
"usageAccountId": "string",
"usageType": "string"
},
"key": "string",
"operation": "string",
"serviceCode": "string",
"usageAccountId": "string",
"usageType": "string"
}
],
"workloadEstimateId": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
clientToken
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
Type: String
Pattern: [\u0021-\u007E]+
Required: No
usage
BatchCreateWorkloadEstimateUsage 335
AWS Billing and Cost Management API Reference
Required: Yes
workloadEstimateId
The ID of the Workload estimate for which you want to create the modeled usage.
Type: String
Pattern: [a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}
Required: Yes
Response Syntax
{
"errors": [
{
"errorCode": "string",
"errorMessage": "string",
"key": "string"
}
],
"items": [
{
"cost": number,
"currency": "string",
"group": "string",
"historicalUsage": {
"billInterval": {
"end": number,
"start": number
},
"filterExpression": {
"and": [
"Expression"
],
"costCategories": {
"key": "string",
BatchCreateWorkloadEstimateUsage 336
AWS Billing and Cost Management API Reference
"matchOptions": [ "string" ],
"values": [ "string" ]
},
"dimensions": {
"key": "string",
"matchOptions": [ "string" ],
"values": [ "string" ]
},
"not": "Expression",
"or": [
"Expression"
],
"tags": {
"key": "string",
"matchOptions": [ "string" ],
"values": [ "string" ]
}
},
"location": "string",
"operation": "string",
"serviceCode": "string",
"usageAccountId": "string",
"usageType": "string"
},
"id": "string",
"key": "string",
"location": "string",
"operation": "string",
"quantity": {
"amount": number,
"unit": "string"
},
"serviceCode": "string",
"status": "string",
"usageAccountId": "string",
"usageType": "string"
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
BatchCreateWorkloadEstimateUsage 337
AWS Billing and Cost Management API Reference
errors
Returns the list of errors reason and the usage item keys that cannot be created in the
Workload estimate.
Returns the list of successful usage line items that were created for the Workload estimate.
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
The request could not be processed because of conflict in the current state of the resource.
An internal error has occurred. Retry your request, but if the problem persists, contact AWS
support.
BatchCreateWorkloadEstimateUsage 338
AWS Billing and Cost Management API Reference
The input provided fails to satisfy the constraints specified by an AWS service.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
BatchCreateWorkloadEstimateUsage 339
AWS Billing and Cost Management API Reference
BatchDeleteBillScenarioCommitmentModification
Service: AWS Pricing Calculator
Delete commitment that you have created in a Bill Scenario. You can only delete a
commitment that you had added and cannot model deletion (or removal) of a existing
commitment. If you want model deletion of an existing commitment, see the negate
BillScenarioCommitmentModificationAction of BatchCreateBillScenarioCommitmentModification
operation.
Note
The BatchDeleteBillScenarioCommitmentModification operation doesn't have its
own IAM permission. To authorize this operation for AWS principals, include the permission
bcm-pricing-calculator:DeleteBillScenarioCommitmentModification in your
policies.
Request Syntax
{
"billScenarioId": "string",
"ids": [ "string" ]
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
billScenarioId
The ID of the Bill Scenario for which you want to delete the modeled commitment.
Type: String
Pattern: [a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}
Required: Yes
BatchDeleteBillScenarioCommitmentModification 340
AWS Billing and Cost Management API Reference
ids
List of commitments that you want to delete from the Bill Scenario.
Pattern: [a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}
Required: Yes
Response Syntax
{
"errors": [
{
"errorCode": "string",
"errorMessage": "string",
"id": "string"
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
errors
Returns the list of errors reason and the commitment item keys that cannot be deleted from
the Bill Scenario.
Errors
For information about the errors that are common to all actions, see Common Errors.
BatchDeleteBillScenarioCommitmentModification 341
AWS Billing and Cost Management API Reference
AccessDeniedException
The request could not be processed because of conflict in the current state of the resource.
An internal error has occurred. Retry your request, but if the problem persists, contact AWS
support.
The input provided fails to satisfy the constraints specified by an AWS service.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
BatchDeleteBillScenarioCommitmentModification 342
AWS Billing and Cost Management API Reference
BatchDeleteBillScenarioCommitmentModification 343
AWS Billing and Cost Management API Reference
BatchDeleteBillScenarioUsageModification
Service: AWS Pricing Calculator
Delete usage that you have created in a Bill Scenario. You can only delete usage that you had
added and cannot model deletion (or removal) of a existing usage. If you want model removal of
an existing usage, see BatchUpdateBillScenarioUsageModification.
Note
The BatchDeleteBillScenarioUsageModification operation doesn't have its own
IAM permission. To authorize this operation for AWS principals, include the permission
bcm-pricing-calculator:DeleteBillScenarioUsageModification in your
policies.
Request Syntax
{
"billScenarioId": "string",
"ids": [ "string" ]
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
billScenarioId
The ID of the Bill Scenario for which you want to delete the modeled usage.
Type: String
Pattern: [a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}
Required: Yes
BatchDeleteBillScenarioUsageModification 344
AWS Billing and Cost Management API Reference
ids
List of usage that you want to delete from the Bill Scenario.
Pattern: [a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}
Required: Yes
Response Syntax
{
"errors": [
{
"errorCode": "string",
"errorMessage": "string",
"id": "string"
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
errors
Returns the list of errors reason and the usage item keys that cannot be deleted from the Bill
Scenario.
Errors
For information about the errors that are common to all actions, see Common Errors.
BatchDeleteBillScenarioUsageModification 345
AWS Billing and Cost Management API Reference
AccessDeniedException
The request could not be processed because of conflict in the current state of the resource.
An internal error has occurred. Retry your request, but if the problem persists, contact AWS
support.
The input provided fails to satisfy the constraints specified by an AWS service.
BatchDeleteBillScenarioUsageModification 346
AWS Billing and Cost Management API Reference
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
BatchDeleteBillScenarioUsageModification 347
AWS Billing and Cost Management API Reference
BatchDeleteWorkloadEstimateUsage
Service: AWS Pricing Calculator
Delete usage that you have created in a Workload estimate. You can only delete usage that you had
added and cannot model deletion (or removal) of a existing usage. If you want model removal of
an existing usage, see BatchUpdateWorkloadEstimateUsage.
Note
The BatchDeleteWorkloadEstimateUsage operation doesn't have its own IAM
permission. To authorize this operation for AWS principals, include the permission bcm-
pricing-calculator:DeleteWorkloadEstimateUsage in your policies.
Request Syntax
{
"ids": [ "string" ],
"workloadEstimateId": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
ids
List of usage that you want to delete from the Workload estimate.
Pattern: [a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}
Required: Yes
BatchDeleteWorkloadEstimateUsage 348
AWS Billing and Cost Management API Reference
workloadEstimateId
The ID of the Workload estimate for which you want to delete the modeled usage.
Type: String
Pattern: [a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}
Required: Yes
Response Syntax
{
"errors": [
{
"errorCode": "string",
"errorMessage": "string",
"id": "string"
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
errors
Returns the list of errors reason and the usage item keys that cannot be deleted from the
Workload estimate.
Errors
For information about the errors that are common to all actions, see Common Errors.
BatchDeleteWorkloadEstimateUsage 349
AWS Billing and Cost Management API Reference
AccessDeniedException
An internal error has occurred. Retry your request, but if the problem persists, contact AWS
support.
The input provided fails to satisfy the constraints specified by an AWS service.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
BatchDeleteWorkloadEstimateUsage 350
AWS Billing and Cost Management API Reference
BatchDeleteWorkloadEstimateUsage 351
AWS Billing and Cost Management API Reference
BatchUpdateBillScenarioCommitmentModification
Service: AWS Pricing Calculator
Update a newly added or existing commitment. You can update the commitment group based on a
commitment ID and a Bill scenario ID.
Note
The BatchUpdateBillScenarioCommitmentModification operation doesn't have its
own IAM permission. To authorize this operation for AWS principals, include the permission
bcm-pricing-calculator:UpdateBillScenarioCommitmentModification in your
policies.
Request Syntax
{
"billScenarioId": "string",
"commitmentModifications": [
{
"group": "string",
"id": "string"
}
]
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
billScenarioId
The ID of the Bill Scenario for which you want to modify the commitment group of a modeled
commitment.
Type: String
BatchUpdateBillScenarioCommitmentModification 352
AWS Billing and Cost Management API Reference
Pattern: [a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}
Required: Yes
commitmentModifications
Required: Yes
Response Syntax
{
"errors": [
{
"errorCode": "string",
"errorMessage": "string",
"id": "string"
}
],
"items": [
{
"commitmentAction": { ... },
"group": "string",
"id": "string",
"usageAccountId": "string"
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
errors
Returns the list of error reasons and commitment line item IDs that could not be updated for
the Bill Scenario.
BatchUpdateBillScenarioCommitmentModification 353
AWS Billing and Cost Management API Reference
Returns the list of successful commitment line items that were updated for a Bill Scenario.
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
The request could not be processed because of conflict in the current state of the resource.
An internal error has occurred. Retry your request, but if the problem persists, contact AWS
support.
BatchUpdateBillScenarioCommitmentModification 354
AWS Billing and Cost Management API Reference
The input provided fails to satisfy the constraints specified by an AWS service.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
BatchUpdateBillScenarioCommitmentModification 355
AWS Billing and Cost Management API Reference
BatchUpdateBillScenarioUsageModification
Service: AWS Pricing Calculator
Update a newly added or existing usage lines. You can update the usage amounts, usage hour, and
usage group based on a usage ID and a Bill scenario ID.
Note
The BatchUpdateBillScenarioUsageModification operation doesn't have its own
IAM permission. To authorize this operation for AWS principals, include the permission
bcm-pricing-calculator:UpdateBillScenarioUsageModification in your
policies.
Request Syntax
{
"billScenarioId": "string",
"usageModifications": [
{
"amounts": [
{
"amount": number,
"startHour": number
}
],
"group": "string",
"id": "string"
}
]
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
billScenarioId
The ID of the Bill Scenario for which you want to modify the usage lines.
BatchUpdateBillScenarioUsageModification 356
AWS Billing and Cost Management API Reference
Type: String
Pattern: [a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}
Required: Yes
usageModifications
List of usage lines that you want to update in a Bill Scenario identified by the usage ID.
Required: Yes
Response Syntax
{
"errors": [
{
"errorCode": "string",
"errorMessage": "string",
"id": "string"
}
],
"items": [
{
"availabilityZone": "string",
"group": "string",
"historicalUsage": {
"billInterval": {
"end": number,
"start": number
},
"filterExpression": {
"and": [
"Expression"
],
"costCategories": {
"key": "string",
"matchOptions": [ "string" ],
BatchUpdateBillScenarioUsageModification 357
AWS Billing and Cost Management API Reference
"values": [ "string" ]
},
"dimensions": {
"key": "string",
"matchOptions": [ "string" ],
"values": [ "string" ]
},
"not": "Expression",
"or": [
"Expression"
],
"tags": {
"key": "string",
"matchOptions": [ "string" ],
"values": [ "string" ]
}
},
"location": "string",
"operation": "string",
"serviceCode": "string",
"usageAccountId": "string",
"usageType": "string"
},
"id": "string",
"location": "string",
"operation": "string",
"quantities": [
{
"amount": number,
"startHour": number,
"unit": "string"
}
],
"serviceCode": "string",
"usageAccountId": "string",
"usageType": "string"
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
BatchUpdateBillScenarioUsageModification 358
AWS Billing and Cost Management API Reference
errors
Returns the list of error reasons and usage line item IDs that could not be updated for the Bill
Scenario.
Returns the list of successful usage line items that were updated for a Bill Scenario.
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
The request could not be processed because of conflict in the current state of the resource.
An internal error has occurred. Retry your request, but if the problem persists, contact AWS
support.
BatchUpdateBillScenarioUsageModification 359
AWS Billing and Cost Management API Reference
The input provided fails to satisfy the constraints specified by an AWS service.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
BatchUpdateBillScenarioUsageModification 360
AWS Billing and Cost Management API Reference
BatchUpdateWorkloadEstimateUsage
Service: AWS Pricing Calculator
Update a newly added or existing usage lines. You can update the usage amounts and usage group
based on a usage ID and a Workload estimate ID.
Note
The BatchUpdateWorkloadEstimateUsage operation doesn't have its own IAM
permission. To authorize this operation for AWS principals, include the permission bcm-
pricing-calculator:UpdateWorkloadEstimateUsage in your policies.
Request Syntax
{
"usage": [
{
"amount": number,
"group": "string",
"id": "string"
}
],
"workloadEstimateId": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
usage
List of usage line amounts and usage group that you want to update in a Workload estimate
identified by the usage ID.
Required: Yes
BatchUpdateWorkloadEstimateUsage 361
AWS Billing and Cost Management API Reference
workloadEstimateId
The ID of the Workload estimate for which you want to modify the usage lines.
Type: String
Pattern: [a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}
Required: Yes
Response Syntax
{
"errors": [
{
"errorCode": "string",
"errorMessage": "string",
"id": "string"
}
],
"items": [
{
"cost": number,
"currency": "string",
"group": "string",
"historicalUsage": {
"billInterval": {
"end": number,
"start": number
},
"filterExpression": {
"and": [
"Expression"
],
"costCategories": {
"key": "string",
"matchOptions": [ "string" ],
"values": [ "string" ]
},
"dimensions": {
"key": "string",
BatchUpdateWorkloadEstimateUsage 362
AWS Billing and Cost Management API Reference
"matchOptions": [ "string" ],
"values": [ "string" ]
},
"not": "Expression",
"or": [
"Expression"
],
"tags": {
"key": "string",
"matchOptions": [ "string" ],
"values": [ "string" ]
}
},
"location": "string",
"operation": "string",
"serviceCode": "string",
"usageAccountId": "string",
"usageType": "string"
},
"id": "string",
"location": "string",
"operation": "string",
"quantity": {
"amount": number,
"unit": "string"
},
"serviceCode": "string",
"status": "string",
"usageAccountId": "string",
"usageType": "string"
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
errors
Returns the list of error reasons and usage line item IDs that could not be updated for the
Workload estimate.
BatchUpdateWorkloadEstimateUsage 363
AWS Billing and Cost Management API Reference
Returns the list of successful usage line items that were updated for a Workload estimate.
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
An internal error has occurred. Retry your request, but if the problem persists, contact AWS
support.
BatchUpdateWorkloadEstimateUsage 364
AWS Billing and Cost Management API Reference
The input provided fails to satisfy the constraints specified by an AWS service.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
BatchUpdateWorkloadEstimateUsage 365
AWS Billing and Cost Management API Reference
CreateBillEstimate
Service: AWS Pricing Calculator
Create a Bill estimate from a Bill scenario. In the Bill scenario you can model usage addition, usage
changes, and usage removal. You can also model commitment addition and commitment removal.
After all changes in a Bill scenario is made satisfactorily, you can call this API with a Bill scenario
ID to generate the Bill estimate. Bill estimate calculates the pre-tax cost for your consolidated
billing family, incorporating all modeled usage and commitments alongside existing usage and
commitments from your most recent completed anniversary bill, with any applicable discounts
applied.
Request Syntax
{
"billScenarioId": "string",
"clientToken": "string",
"name": "string",
"tags": {
"string" : "string"
}
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
billScenarioId
The ID of the Bill Scenario for which you want to create a Bill estimate.
Type: String
Pattern: [a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}
Required: Yes
clientToken
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
CreateBillEstimate 366
AWS Billing and Cost Management API Reference
Type: String
Pattern: [\u0021-\u007E]+
Required: No
name
The name of the Bill estimate that will be created. Names must be unique for an account.
Type: String
Pattern: [a-zA-Z0-9-]+
Required: Yes
tags
An optional list of tags to associate with the specified BillEstimate. You can use resource tags
to control access to your BillEstimate using IAM policies. Each tag consists of a key and a value,
and each key must be unique for the resource. The following restrictions apply to resource tags:
• Although the maximum number of array members is 200, you can assign a maximum of 50
user-tags to one resource. The remaining are reserved for AWS.
• The maximum length of a key is 128 characters.
• The maximum length of a value is 256 characters.
• Keys and values can only contain alphanumeric characters, spaces, and any of the following:
_.:/=+@-.
• Keys and values are case sensitive.
• Keys and values are trimmed for any leading or trailing whitespaces.
• Don't use aws: as a prefix for your keys. This prefix is reserved for AWS.
CreateBillEstimate 367
AWS Billing and Cost Management API Reference
Required: No
Response Syntax
{
"billInterval": {
"end": number,
"start": number
},
"costSummary": {
"serviceCostDifferences": {
"string" : {
"estimatedCost": {
"amount": number,
"currency": "string"
},
"historicalCost": {
"amount": number,
"currency": "string"
}
}
},
"totalCostDifference": {
"estimatedCost": {
"amount": number,
"currency": "string"
},
"historicalCost": {
"amount": number,
"currency": "string"
}
}
},
"createdAt": number,
"expiresAt": number,
"failureMessage": "string",
"id": "string",
"name": "string",
"status": "string"
CreateBillEstimate 368
AWS Billing and Cost Management API Reference
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
billInterval
The bill month start and end timestamp that was used to create the Bill estimate. This is set to
the last complete anniversary bill month start and end timestamp.
Returns summary-level cost information once a Bill estimate is successfully generated. This
summary includes: 1) the total cost difference, showing the pre-tax cost change for the
consolidated billing family between the completed anniversary bill and the estimated bill, and
2) total cost differences per service, detailing the pre-tax cost of each service, comparing the
completed anniversary bill to the estimated bill on a per-service basis.
The timestamp of when the Bill estimate create process was started (not when it successfully
completed or failed).
Type: Timestamp
expiresAt
The timestamp of when the Bill estimate will expire. A Bill estimate becomes inaccessible after
expiration.
Type: Timestamp
failureMessage
This attribute provides the reason if a Bill estimate result generation fails.
Type: String
CreateBillEstimate 369
AWS Billing and Cost Management API Reference
id
Type: String
Pattern: [a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}
name
Type: String
Pattern: [a-zA-Z0-9-]+
status
The status of your newly created Bill estimate. Bill estimate creation can take anywhere
between 8 to 12 hours. The status will allow you to identify when the Bill estimate is complete
or has failed.
Type: String
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
The request could not be processed because of conflict in the current state of the resource.
CreateBillEstimate 370
AWS Billing and Cost Management API Reference
DataUnavailableException
An internal error has occurred. Retry your request, but if the problem persists, contact AWS
support.
The input provided fails to satisfy the constraints specified by an AWS service.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
CreateBillEstimate 371
AWS Billing and Cost Management API Reference
CreateBillEstimate 372
AWS Billing and Cost Management API Reference
CreateBillScenario
Service: AWS Pricing Calculator
Creates a new bill scenario to model potential changes to AWS usage and costs.
Request Syntax
{
"clientToken": "string",
"name": "string",
"tags": {
"string" : "string"
}
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
clientToken
Type: String
Pattern: [\u0021-\u007E]+
Required: No
name
Type: String
Pattern: [a-zA-Z0-9-]+
Required: Yes
CreateBillScenario 373
AWS Billing and Cost Management API Reference
tags
Required: No
Response Syntax
{
"billInterval": {
"end": number,
"start": number
},
"createdAt": number,
"expiresAt": number,
"failureMessage": "string",
"id": "string",
"name": "string",
"status": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
billInterval
CreateBillScenario 374
AWS Billing and Cost Management API Reference
Type: Timestamp
expiresAt
Type: Timestamp
failureMessage
Type: String
id
Type: String
Pattern: [a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}
name
Type: String
Pattern: [a-zA-Z0-9-]+
status
Type: String
CreateBillScenario 375
AWS Billing and Cost Management API Reference
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
The request could not be processed because of conflict in the current state of the resource.
An internal error has occurred. Retry your request, but if the problem persists, contact AWS
support.
The input provided fails to satisfy the constraints specified by an AWS service.
CreateBillScenario 376
AWS Billing and Cost Management API Reference
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
CreateBillScenario 377
AWS Billing and Cost Management API Reference
CreateWorkloadEstimate
Service: AWS Pricing Calculator
Request Syntax
{
"clientToken": "string",
"name": "string",
"rateType": "string",
"tags": {
"string" : "string"
}
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
clientToken
Type: String
Pattern: [\u0021-\u007E]+
Required: No
name
Type: String
Pattern: [a-zA-Z0-9-]+
CreateWorkloadEstimate 378
AWS Billing and Cost Management API Reference
Required: Yes
rateType
Type: String
Required: No
tags
Required: No
Response Syntax
{
"costCurrency": "string",
"createdAt": number,
"expiresAt": number,
"failureMessage": "string",
"id": "string",
"name": "string",
"rateTimestamp": number,
"rateType": "string",
"status": "string",
"totalCost": number
}
CreateWorkloadEstimate 379
AWS Billing and Cost Management API Reference
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
costCurrency
Type: String
Type: Timestamp
expiresAt
Type: Timestamp
failureMessage
Type: String
id
Type: String
Pattern: [a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}
name
Type: String
CreateWorkloadEstimate 380
AWS Billing and Cost Management API Reference
Pattern: [a-zA-Z0-9-]+
rateTimestamp
Type: Timestamp
rateType
Type: String
Type: String
Type: Double
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
The request could not be processed because of conflict in the current state of the resource.
CreateWorkloadEstimate 381
AWS Billing and Cost Management API Reference
An internal error has occurred. Retry your request, but if the problem persists, contact AWS
support.
The input provided fails to satisfy the constraints specified by an AWS service.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
CreateWorkloadEstimate 382
AWS Billing and Cost Management API Reference
CreateWorkloadEstimate 383
AWS Billing and Cost Management API Reference
DeleteBillEstimate
Service: AWS Pricing Calculator
Request Syntax
{
"identifier": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
identifier
Type: String
Pattern: [a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}
Required: Yes
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
DeleteBillEstimate 384
AWS Billing and Cost Management API Reference
ConflictException
The request could not be processed because of conflict in the current state of the resource.
An internal error has occurred. Retry your request, but if the problem persists, contact AWS
support.
The input provided fails to satisfy the constraints specified by an AWS service.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
DeleteBillEstimate 385
AWS Billing and Cost Management API Reference
DeleteBillEstimate 386
AWS Billing and Cost Management API Reference
DeleteBillScenario
Service: AWS Pricing Calculator
Request Syntax
{
"identifier": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
identifier
Type: String
Pattern: [a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}
Required: Yes
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
DeleteBillScenario 387
AWS Billing and Cost Management API Reference
ConflictException
The request could not be processed because of conflict in the current state of the resource.
An internal error has occurred. Retry your request, but if the problem persists, contact AWS
support.
The input provided fails to satisfy the constraints specified by an AWS service.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
DeleteBillScenario 388
AWS Billing and Cost Management API Reference
DeleteBillScenario 389
AWS Billing and Cost Management API Reference
DeleteWorkloadEstimate
Service: AWS Pricing Calculator
Request Syntax
{
"identifier": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
identifier
Type: String
Pattern: [a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}
Required: Yes
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
DeleteWorkloadEstimate 390
AWS Billing and Cost Management API Reference
DataUnavailableException
An internal error has occurred. Retry your request, but if the problem persists, contact AWS
support.
The input provided fails to satisfy the constraints specified by an AWS service.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
DeleteWorkloadEstimate 391
AWS Billing and Cost Management API Reference
GetBillEstimate
Service: AWS Pricing Calculator
Request Syntax
{
"identifier": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
identifier
Type: String
Pattern: [a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}
Required: Yes
Response Syntax
{
"billInterval": {
"end": number,
"start": number
},
"costSummary": {
"serviceCostDifferences": {
"string" : {
"estimatedCost": {
"amount": number,
GetBillEstimate 392
AWS Billing and Cost Management API Reference
"currency": "string"
},
"historicalCost": {
"amount": number,
"currency": "string"
}
}
},
"totalCostDifference": {
"estimatedCost": {
"amount": number,
"currency": "string"
},
"historicalCost": {
"amount": number,
"currency": "string"
}
}
},
"createdAt": number,
"expiresAt": number,
"failureMessage": "string",
"id": "string",
"name": "string",
"status": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
billInterval
GetBillEstimate 393
AWS Billing and Cost Management API Reference
createdAt
Type: Timestamp
expiresAt
Type: Timestamp
failureMessage
Type: String
id
Type: String
Pattern: [a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}
name
Type: String
Pattern: [a-zA-Z0-9-]+
status
Type: String
GetBillEstimate 394
AWS Billing and Cost Management API Reference
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
An internal error has occurred. Retry your request, but if the problem persists, contact AWS
support.
The input provided fails to satisfy the constraints specified by an AWS service.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
GetBillEstimate 395
AWS Billing and Cost Management API Reference
GetBillEstimate 396
AWS Billing and Cost Management API Reference
GetBillScenario
Service: AWS Pricing Calculator
Request Syntax
{
"identifier": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
identifier
Type: String
Pattern: [a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}
Required: Yes
Response Syntax
{
"billInterval": {
"end": number,
"start": number
},
"createdAt": number,
"expiresAt": number,
"failureMessage": "string",
"id": "string",
"name": "string",
GetBillScenario 397
AWS Billing and Cost Management API Reference
"status": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
billInterval
Type: Timestamp
expiresAt
Type: Timestamp
failureMessage
Type: String
id
Type: String
Pattern: [a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}
name
GetBillScenario 398
AWS Billing and Cost Management API Reference
Type: String
Pattern: [a-zA-Z0-9-]+
status
Type: String
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
An internal error has occurred. Retry your request, but if the problem persists, contact AWS
support.
GetBillScenario 399
AWS Billing and Cost Management API Reference
The input provided fails to satisfy the constraints specified by an AWS service.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
GetBillScenario 400
AWS Billing and Cost Management API Reference
GetPreferences
Service: AWS Pricing Calculator
Response Syntax
{
"managementAccountRateTypeSelections": [ "string" ],
"memberAccountRateTypeSelections": [ "string" ],
"standaloneAccountRateTypeSelections": [ "string" ]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
managementAccountRateTypeSelections
GetPreferences 401
AWS Billing and Cost Management API Reference
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
An internal error has occurred. Retry your request, but if the problem persists, contact AWS
support.
The input provided fails to satisfy the constraints specified by an AWS service.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
GetPreferences 402
AWS Billing and Cost Management API Reference
GetPreferences 403
AWS Billing and Cost Management API Reference
GetWorkloadEstimate
Service: AWS Pricing Calculator
Request Syntax
{
"identifier": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
identifier
Type: String
Pattern: [a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}
Required: Yes
Response Syntax
{
"costCurrency": "string",
"createdAt": number,
"expiresAt": number,
"failureMessage": "string",
"id": "string",
"name": "string",
"rateTimestamp": number,
"rateType": "string",
"status": "string",
"totalCost": number
GetWorkloadEstimate 404
AWS Billing and Cost Management API Reference
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
costCurrency
Type: String
Type: Timestamp
expiresAt
Type: Timestamp
failureMessage
Type: String
id
Type: String
Pattern: [a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}
name
GetWorkloadEstimate 405
AWS Billing and Cost Management API Reference
Type: String
Pattern: [a-zA-Z0-9-]+
rateTimestamp
Type: Timestamp
rateType
Type: String
Type: String
Type: Double
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
GetWorkloadEstimate 406
AWS Billing and Cost Management API Reference
An internal error has occurred. Retry your request, but if the problem persists, contact AWS
support.
The input provided fails to satisfy the constraints specified by an AWS service.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
GetWorkloadEstimate 407
AWS Billing and Cost Management API Reference
GetWorkloadEstimate 408
AWS Billing and Cost Management API Reference
ListBillEstimateCommitments
Service: AWS Pricing Calculator
Request Syntax
{
"billEstimateId": "string",
"maxResults": number,
"nextToken": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
billEstimateId
Type: String
Pattern: [a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}
Required: Yes
maxResults
Type: Integer
Required: No
nextToken
ListBillEstimateCommitments 409
AWS Billing and Cost Management API Reference
Type: String
Pattern: [\S\s]*
Required: No
Response Syntax
{
"items": [
{
"id": "string",
"monthlyPayment": {
"amount": number,
"currency": "string"
},
"offeringId": "string",
"paymentOption": "string",
"purchaseAgreementType": "string",
"region": "string",
"termLength": "string",
"upfrontPayment": {
"amount": number,
"currency": "string"
},
"usageAccountId": "string"
}
],
"nextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
items
ListBillEstimateCommitments 410
AWS Billing and Cost Management API Reference
Type: String
Pattern: [\S\s]*
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
An internal error has occurred. Retry your request, but if the problem persists, contact AWS
support.
ListBillEstimateCommitments 411
AWS Billing and Cost Management API Reference
ValidationException
The input provided fails to satisfy the constraints specified by an AWS service.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ListBillEstimateCommitments 412
AWS Billing and Cost Management API Reference
ListBillEstimateInputCommitmentModifications
Service: AWS Pricing Calculator
Request Syntax
{
"billEstimateId": "string",
"maxResults": number,
"nextToken": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
billEstimateId
The unique identifier of the bill estimate to list input commitment modifications for.
Type: String
Pattern: [a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}
Required: Yes
maxResults
Type: Integer
Required: No
nextToken
ListBillEstimateInputCommitmentModifications 413
AWS Billing and Cost Management API Reference
Type: String
Pattern: [\S\s]*
Required: No
Response Syntax
{
"items": [
{
"commitmentAction": { ... },
"group": "string",
"id": "string",
"usageAccountId": "string"
}
],
"nextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
items
The list of input commitment modifications associated with the bill estimate.
Type: String
Pattern: [\S\s]*
ListBillEstimateInputCommitmentModifications 414
AWS Billing and Cost Management API Reference
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
An internal error has occurred. Retry your request, but if the problem persists, contact AWS
support.
The input provided fails to satisfy the constraints specified by an AWS service.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ListBillEstimateInputCommitmentModifications 415
AWS Billing and Cost Management API Reference
ListBillEstimateInputCommitmentModifications 416
AWS Billing and Cost Management API Reference
ListBillEstimateInputUsageModifications
Service: AWS Pricing Calculator
Request Syntax
{
"billEstimateId": "string",
"filters": [
{
"matchOption": "string",
"name": "string",
"values": [ "string" ]
}
],
"maxResults": number,
"nextToken": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
billEstimateId
The unique identifier of the bill estimate to list input usage modifications for.
Type: String
Pattern: [a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}
Required: Yes
filters
ListBillEstimateInputUsageModifications 417
AWS Billing and Cost Management API Reference
Required: No
maxResults
Type: Integer
Required: No
nextToken
Type: String
Pattern: [\S\s]*
Required: No
Response Syntax
{
"items": [
{
"availabilityZone": "string",
"group": "string",
"historicalUsage": {
"billInterval": {
"end": number,
"start": number
},
"filterExpression": {
"and": [
"Expression"
],
"costCategories": {
"key": "string",
"matchOptions": [ "string" ],
"values": [ "string" ]
},
ListBillEstimateInputUsageModifications 418
AWS Billing and Cost Management API Reference
"dimensions": {
"key": "string",
"matchOptions": [ "string" ],
"values": [ "string" ]
},
"not": "Expression",
"or": [
"Expression"
],
"tags": {
"key": "string",
"matchOptions": [ "string" ],
"values": [ "string" ]
}
},
"location": "string",
"operation": "string",
"serviceCode": "string",
"usageAccountId": "string",
"usageType": "string"
},
"id": "string",
"location": "string",
"operation": "string",
"quantities": [
{
"amount": number,
"startHour": number,
"unit": "string"
}
],
"serviceCode": "string",
"usageAccountId": "string",
"usageType": "string"
}
],
"nextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
ListBillEstimateInputUsageModifications 419
AWS Billing and Cost Management API Reference
items
The list of input usage modifications associated with the bill estimate.
Type: String
Pattern: [\S\s]*
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
An internal error has occurred. Retry your request, but if the problem persists, contact AWS
support.
ListBillEstimateInputUsageModifications 420
AWS Billing and Cost Management API Reference
ThrottlingException
The input provided fails to satisfy the constraints specified by an AWS service.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ListBillEstimateInputUsageModifications 421
AWS Billing and Cost Management API Reference
ListBillEstimateLineItems
Service: AWS Pricing Calculator
Request Syntax
{
"billEstimateId": "string",
"filters": [
{
"matchOption": "string",
"name": "string",
"values": [ "string" ]
}
],
"maxResults": number,
"nextToken": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
billEstimateId
The unique identifier of the bill estimate to list line items for.
Type: String
Pattern: [a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}
Required: Yes
filters
ListBillEstimateLineItems 422
AWS Billing and Cost Management API Reference
Required: No
maxResults
Type: Integer
Required: No
nextToken
Type: String
Pattern: [\S\s]*
Required: No
Response Syntax
{
"items": [
{
"availabilityZone": "string",
"estimatedCost": {
"amount": number,
"currency": "string"
},
"estimatedUsageQuantity": {
"amount": number,
"unit": "string"
},
"historicalCost": {
"amount": number,
"currency": "string"
},
"historicalUsageQuantity": {
ListBillEstimateLineItems 423
AWS Billing and Cost Management API Reference
"amount": number,
"unit": "string"
},
"id": "string",
"lineItemId": "string",
"lineItemType": "string",
"location": "string",
"operation": "string",
"payerAccountId": "string",
"savingsPlanArns": [ "string" ],
"serviceCode": "string",
"usageAccountId": "string",
"usageType": "string"
}
],
"nextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
items
Type: String
Pattern: [\S\s]*
Errors
For information about the errors that are common to all actions, see Common Errors.
ListBillEstimateLineItems 424
AWS Billing and Cost Management API Reference
AccessDeniedException
An internal error has occurred. Retry your request, but if the problem persists, contact AWS
support.
The input provided fails to satisfy the constraints specified by an AWS service.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ListBillEstimateLineItems 425
AWS Billing and Cost Management API Reference
ListBillEstimateLineItems 426
AWS Billing and Cost Management API Reference
ListBillEstimates
Service: AWS Pricing Calculator
Request Syntax
{
"createdAtFilter": {
"afterTimestamp": number,
"beforeTimestamp": number
},
"expiresAtFilter": {
"afterTimestamp": number,
"beforeTimestamp": number
},
"filters": [
{
"matchOption": "string",
"name": "string",
"values": [ "string" ]
}
],
"maxResults": number,
"nextToken": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
createdAtFilter
Required: No
expiresAtFilter
ListBillEstimates 427
AWS Billing and Cost Management API Reference
Required: No
filters
Required: No
maxResults
Type: Integer
Required: No
nextToken
Type: String
Pattern: [\S\s]*
Required: No
Response Syntax
{
"items": [
{
"billInterval": {
"end": number,
"start": number
},
"createdAt": number,
ListBillEstimates 428
AWS Billing and Cost Management API Reference
"expiresAt": number,
"id": "string",
"name": "string",
"status": "string"
}
],
"nextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
items
Type: String
Pattern: [\S\s]*
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
ListBillEstimates 429
AWS Billing and Cost Management API Reference
An internal error has occurred. Retry your request, but if the problem persists, contact AWS
support.
The input provided fails to satisfy the constraints specified by an AWS service.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ListBillEstimates 430
AWS Billing and Cost Management API Reference
ListBillScenarioCommitmentModifications
Service: AWS Pricing Calculator
Request Syntax
{
"billScenarioId": "string",
"maxResults": number,
"nextToken": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
billScenarioId
The unique identifier of the bill scenario to list commitment modifications for.
Type: String
Pattern: [a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}
Required: Yes
maxResults
Type: Integer
Required: No
nextToken
ListBillScenarioCommitmentModifications 431
AWS Billing and Cost Management API Reference
Type: String
Pattern: [\S\s]*
Required: No
Response Syntax
{
"items": [
{
"commitmentAction": { ... },
"group": "string",
"id": "string",
"usageAccountId": "string"
}
],
"nextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
items
Type: String
Pattern: [\S\s]*
ListBillScenarioCommitmentModifications 432
AWS Billing and Cost Management API Reference
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
An internal error has occurred. Retry your request, but if the problem persists, contact AWS
support.
The input provided fails to satisfy the constraints specified by an AWS service.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ListBillScenarioCommitmentModifications 433
AWS Billing and Cost Management API Reference
ListBillScenarioCommitmentModifications 434
AWS Billing and Cost Management API Reference
ListBillScenarios
Service: AWS Pricing Calculator
Request Syntax
{
"createdAtFilter": {
"afterTimestamp": number,
"beforeTimestamp": number
},
"expiresAtFilter": {
"afterTimestamp": number,
"beforeTimestamp": number
},
"filters": [
{
"matchOption": "string",
"name": "string",
"values": [ "string" ]
}
],
"maxResults": number,
"nextToken": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
createdAtFilter
Required: No
expiresAtFilter
ListBillScenarios 435
AWS Billing and Cost Management API Reference
Required: No
filters
Required: No
maxResults
Type: Integer
Required: No
nextToken
Type: String
Pattern: [\S\s]*
Required: No
Response Syntax
{
"items": [
{
"billInterval": {
"end": number,
"start": number
},
"createdAt": number,
"expiresAt": number,
ListBillScenarios 436
AWS Billing and Cost Management API Reference
"failureMessage": "string",
"id": "string",
"name": "string",
"status": "string"
}
],
"nextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
items
Type: String
Pattern: [\S\s]*
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
ListBillScenarios 437
AWS Billing and Cost Management API Reference
An internal error has occurred. Retry your request, but if the problem persists, contact AWS
support.
The input provided fails to satisfy the constraints specified by an AWS service.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ListBillScenarios 438
AWS Billing and Cost Management API Reference
ListBillScenarioUsageModifications
Service: AWS Pricing Calculator
Request Syntax
{
"billScenarioId": "string",
"filters": [
{
"matchOption": "string",
"name": "string",
"values": [ "string" ]
}
],
"maxResults": number,
"nextToken": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
billScenarioId
The unique identifier of the bill scenario to list usage modifications for.
Type: String
Pattern: [a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}
Required: Yes
filters
ListBillScenarioUsageModifications 439
AWS Billing and Cost Management API Reference
Required: No
maxResults
Type: Integer
Required: No
nextToken
Type: String
Pattern: [\S\s]*
Required: No
Response Syntax
{
"items": [
{
"availabilityZone": "string",
"group": "string",
"historicalUsage": {
"billInterval": {
"end": number,
"start": number
},
"filterExpression": {
"and": [
"Expression"
],
"costCategories": {
"key": "string",
"matchOptions": [ "string" ],
"values": [ "string" ]
},
ListBillScenarioUsageModifications 440
AWS Billing and Cost Management API Reference
"dimensions": {
"key": "string",
"matchOptions": [ "string" ],
"values": [ "string" ]
},
"not": "Expression",
"or": [
"Expression"
],
"tags": {
"key": "string",
"matchOptions": [ "string" ],
"values": [ "string" ]
}
},
"location": "string",
"operation": "string",
"serviceCode": "string",
"usageAccountId": "string",
"usageType": "string"
},
"id": "string",
"location": "string",
"operation": "string",
"quantities": [
{
"amount": number,
"startHour": number,
"unit": "string"
}
],
"serviceCode": "string",
"usageAccountId": "string",
"usageType": "string"
}
],
"nextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
ListBillScenarioUsageModifications 441
AWS Billing and Cost Management API Reference
items
Type: String
Pattern: [\S\s]*
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
An internal error has occurred. Retry your request, but if the problem persists, contact AWS
support.
ListBillScenarioUsageModifications 442
AWS Billing and Cost Management API Reference
ThrottlingException
The input provided fails to satisfy the constraints specified by an AWS service.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ListBillScenarioUsageModifications 443
AWS Billing and Cost Management API Reference
ListTagsForResource
Service: AWS Pricing Calculator
Request Syntax
{
"arn": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
arn
The Amazon Resource Name (ARN) of the resource to list tags for.
Type: String
Pattern: arn:aws[-a-z0-9]*:bcm-pricing-calculator:[-a-z0-9]*:[0-9]{12}:[-a-
z0-9/:_]+
Required: Yes
Response Syntax
{
"tags": {
"string" : "string"
}
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
ListTagsForResource 444
AWS Billing and Cost Management API Reference
tags
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
An internal error has occurred. Retry your request, but if the problem persists, contact AWS
support.
ListTagsForResource 445
AWS Billing and Cost Management API Reference
The input provided fails to satisfy the constraints specified by an AWS service.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ListTagsForResource 446
AWS Billing and Cost Management API Reference
ListWorkloadEstimates
Service: AWS Pricing Calculator
Request Syntax
{
"createdAtFilter": {
"afterTimestamp": number,
"beforeTimestamp": number
},
"expiresAtFilter": {
"afterTimestamp": number,
"beforeTimestamp": number
},
"filters": [
{
"matchOption": "string",
"name": "string",
"values": [ "string" ]
}
],
"maxResults": number,
"nextToken": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
createdAtFilter
Required: No
expiresAtFilter
ListWorkloadEstimates 447
AWS Billing and Cost Management API Reference
Required: No
filters
Required: No
maxResults
Type: Integer
Required: No
nextToken
Type: String
Pattern: [\S\s]*
Required: No
Response Syntax
{
"items": [
{
"costCurrency": "string",
"createdAt": number,
"expiresAt": number,
"failureMessage": "string",
"id": "string",
"name": "string",
ListWorkloadEstimates 448
AWS Billing and Cost Management API Reference
"rateTimestamp": number,
"rateType": "string",
"status": "string",
"totalCost": number
}
],
"nextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
items
Type: String
Pattern: [\S\s]*
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
ListWorkloadEstimates 449
AWS Billing and Cost Management API Reference
An internal error has occurred. Retry your request, but if the problem persists, contact AWS
support.
The input provided fails to satisfy the constraints specified by an AWS service.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ListWorkloadEstimates 450
AWS Billing and Cost Management API Reference
ListWorkloadEstimateUsage
Service: AWS Pricing Calculator
Request Syntax
{
"filters": [
{
"matchOption": "string",
"name": "string",
"values": [ "string" ]
}
],
"maxResults": number,
"nextToken": "string",
"workloadEstimateId": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
filters
Required: No
maxResults
Type: Integer
Required: No
ListWorkloadEstimateUsage 451
AWS Billing and Cost Management API Reference
nextToken
Type: String
Pattern: [\S\s]*
Required: No
workloadEstimateId
Type: String
Pattern: [a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}
Required: Yes
Response Syntax
{
"items": [
{
"cost": number,
"currency": "string",
"group": "string",
"historicalUsage": {
"billInterval": {
"end": number,
"start": number
},
"filterExpression": {
"and": [
"Expression"
],
"costCategories": {
"key": "string",
"matchOptions": [ "string" ],
ListWorkloadEstimateUsage 452
AWS Billing and Cost Management API Reference
"values": [ "string" ]
},
"dimensions": {
"key": "string",
"matchOptions": [ "string" ],
"values": [ "string" ]
},
"not": "Expression",
"or": [
"Expression"
],
"tags": {
"key": "string",
"matchOptions": [ "string" ],
"values": [ "string" ]
}
},
"location": "string",
"operation": "string",
"serviceCode": "string",
"usageAccountId": "string",
"usageType": "string"
},
"id": "string",
"location": "string",
"operation": "string",
"quantity": {
"amount": number,
"unit": "string"
},
"serviceCode": "string",
"status": "string",
"usageAccountId": "string",
"usageType": "string"
}
],
"nextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
ListWorkloadEstimateUsage 453
AWS Billing and Cost Management API Reference
items
Type: String
Pattern: [\S\s]*
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
An internal error has occurred. Retry your request, but if the problem persists, contact AWS
support.
ListWorkloadEstimateUsage 454
AWS Billing and Cost Management API Reference
ThrottlingException
The input provided fails to satisfy the constraints specified by an AWS service.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ListWorkloadEstimateUsage 455
AWS Billing and Cost Management API Reference
TagResource
Service: AWS Pricing Calculator
Request Syntax
{
"arn": "string",
"tags": {
"string" : "string"
}
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
arn
The Amazon Resource Name (ARN) of the resource to add tags to.
Type: String
Pattern: arn:aws[-a-z0-9]*:bcm-pricing-calculator:[-a-z0-9]*:[0-9]{12}:[-a-
z0-9/:_]+
Required: Yes
tags
TagResource 456
AWS Billing and Cost Management API Reference
Required: Yes
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
An internal error has occurred. Retry your request, but if the problem persists, contact AWS
support.
TagResource 457
AWS Billing and Cost Management API Reference
The input provided fails to satisfy the constraints specified by an AWS service.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
TagResource 458
AWS Billing and Cost Management API Reference
UntagResource
Service: AWS Pricing Calculator
Request Syntax
{
"arn": "string",
"tagKeys": [ "string" ]
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
arn
The Amazon Resource Name (ARN) of the resource to remove tags from.
Type: String
Pattern: arn:aws[-a-z0-9]*:bcm-pricing-calculator:[-a-z0-9]*:[0-9]{12}:[-a-
z0-9/:_]+
Required: Yes
tagKeys
Pattern: [\w\s:+=@/-]+
Required: Yes
UntagResource 459
AWS Billing and Cost Management API Reference
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
An internal error has occurred. Retry your request, but if the problem persists, contact AWS
support.
The input provided fails to satisfy the constraints specified by an AWS service.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
UntagResource 460
AWS Billing and Cost Management API Reference
UntagResource 461
AWS Billing and Cost Management API Reference
UpdateBillEstimate
Service: AWS Pricing Calculator
Request Syntax
{
"expiresAt": number,
"identifier": "string",
"name": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
expiresAt
Type: Timestamp
Required: No
identifier
Type: String
Pattern: [a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}
Required: Yes
name
Type: String
UpdateBillEstimate 462
AWS Billing and Cost Management API Reference
Pattern: [a-zA-Z0-9-]+
Required: No
Response Syntax
{
"billInterval": {
"end": number,
"start": number
},
"costSummary": {
"serviceCostDifferences": {
"string" : {
"estimatedCost": {
"amount": number,
"currency": "string"
},
"historicalCost": {
"amount": number,
"currency": "string"
}
}
},
"totalCostDifference": {
"estimatedCost": {
"amount": number,
"currency": "string"
},
"historicalCost": {
"amount": number,
"currency": "string"
}
}
},
"createdAt": number,
"expiresAt": number,
"failureMessage": "string",
"id": "string",
"name": "string",
"status": "string"
UpdateBillEstimate 463
AWS Billing and Cost Management API Reference
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
billInterval
Type: Timestamp
expiresAt
Type: Timestamp
failureMessage
Type: String
id
Type: String
Pattern: [a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}
UpdateBillEstimate 464
AWS Billing and Cost Management API Reference
name
Type: String
Pattern: [a-zA-Z0-9-]+
status
Type: String
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
The request could not be processed because of conflict in the current state of the resource.
An internal error has occurred. Retry your request, but if the problem persists, contact AWS
support.
UpdateBillEstimate 465
AWS Billing and Cost Management API Reference
ResourceNotFoundException
The input provided fails to satisfy the constraints specified by an AWS service.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
UpdateBillEstimate 466
AWS Billing and Cost Management API Reference
UpdateBillScenario
Service: AWS Pricing Calculator
Request Syntax
{
"expiresAt": number,
"identifier": "string",
"name": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
expiresAt
Type: Timestamp
Required: No
identifier
Type: String
Pattern: [a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}
Required: Yes
name
UpdateBillScenario 467
AWS Billing and Cost Management API Reference
Type: String
Pattern: [a-zA-Z0-9-]+
Required: No
Response Syntax
{
"billInterval": {
"end": number,
"start": number
},
"createdAt": number,
"expiresAt": number,
"failureMessage": "string",
"id": "string",
"name": "string",
"status": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
billInterval
Type: Timestamp
expiresAt
UpdateBillScenario 468
AWS Billing and Cost Management API Reference
Type: Timestamp
failureMessage
Type: String
id
Type: String
Pattern: [a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}
name
Type: String
Pattern: [a-zA-Z0-9-]+
status
Type: String
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
UpdateBillScenario 469
AWS Billing and Cost Management API Reference
ConflictException
The request could not be processed because of conflict in the current state of the resource.
An internal error has occurred. Retry your request, but if the problem persists, contact AWS
support.
The input provided fails to satisfy the constraints specified by an AWS service.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
UpdateBillScenario 470
AWS Billing and Cost Management API Reference
UpdateBillScenario 471
AWS Billing and Cost Management API Reference
UpdatePreferences
Service: AWS Pricing Calculator
Request Syntax
{
"managementAccountRateTypeSelections": [ "string" ],
"memberAccountRateTypeSelections": [ "string" ],
"standaloneAccountRateTypeSelections": [ "string" ]
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
managementAccountRateTypeSelections
Required: No
memberAccountRateTypeSelections
Required: No
UpdatePreferences 472
AWS Billing and Cost Management API Reference
standaloneAccountRateTypeSelections
Required: No
Response Syntax
{
"managementAccountRateTypeSelections": [ "string" ],
"memberAccountRateTypeSelections": [ "string" ],
"standaloneAccountRateTypeSelections": [ "string" ]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
managementAccountRateTypeSelections
UpdatePreferences 473
AWS Billing and Cost Management API Reference
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
An internal error has occurred. Retry your request, but if the problem persists, contact AWS
support.
UpdatePreferences 474
AWS Billing and Cost Management API Reference
ValidationException
The input provided fails to satisfy the constraints specified by an AWS service.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
UpdatePreferences 475
AWS Billing and Cost Management API Reference
UpdateWorkloadEstimate
Service: AWS Pricing Calculator
Request Syntax
{
"expiresAt": number,
"identifier": "string",
"name": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
expiresAt
Type: Timestamp
Required: No
identifier
Type: String
Pattern: [a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}
Required: Yes
name
Type: String
UpdateWorkloadEstimate 476
AWS Billing and Cost Management API Reference
Pattern: [a-zA-Z0-9-]+
Required: No
Response Syntax
{
"costCurrency": "string",
"createdAt": number,
"expiresAt": number,
"failureMessage": "string",
"id": "string",
"name": "string",
"rateTimestamp": number,
"rateType": "string",
"status": "string",
"totalCost": number
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
costCurrency
Type: String
Type: Timestamp
expiresAt
UpdateWorkloadEstimate 477
AWS Billing and Cost Management API Reference
Type: Timestamp
failureMessage
Type: String
id
Type: String
Pattern: [a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}
name
Type: String
Pattern: [a-zA-Z0-9-]+
rateTimestamp
The timestamp of the pricing rates used for the updated estimate.
Type: Timestamp
rateType
Type: String
Type: String
UpdateWorkloadEstimate 478
AWS Billing and Cost Management API Reference
Type: Double
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
The request could not be processed because of conflict in the current state of the resource.
An internal error has occurred. Retry your request, but if the problem persists, contact AWS
support.
UpdateWorkloadEstimate 479
AWS Billing and Cost Management API Reference
The input provided fails to satisfy the constraints specified by an AWS service.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
AWS Billing
The following actions are supported by AWS Billing:
• CreateBillingView
• DeleteBillingView
• GetBillingView
• GetResourcePolicy
• ListBillingViews
• ListSourceViewsForBillingView
• ListTagsForResource
• TagResource
• UntagResource
• UpdateBillingView
CreateBillingView
Service: AWS Billing
Request Syntax
{
"clientToken": "string",
"dataFilterExpression": {
"dimensions": {
"key": "string",
"values": [ "string" ]
},
"tags": {
"key": "string",
"values": [ "string" ]
}
},
"description": "string",
"name": "string",
"resourceTags": [
{
"key": "string",
"value": "string"
}
],
"sourceViews": [ "string" ]
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
clientToken
CreateBillingView 482
AWS Billing and Cost Management API Reference
Type: String
Pattern: [a-zA-Z0-9-]+
Required: No
dataFilterExpression
Required: No
description
Type: String
Pattern: ([ a-zA-Z0-9_\+=\.\-@]+)?
Required: No
name
Type: String
Pattern: [ a-zA-Z0-9_\+=\.\-@]+
Required: Yes
resourceTags
A list of key value map specifying tags associated to the billing view being created.
CreateBillingView 483
AWS Billing and Cost Management API Reference
Required: No
sourceViews
A list of billing views used as the data source for the custom billing view.
Pattern: arn:aws[a-z-]*:(billing)::[0-9]{12}:billingview/[a-zA-Z0-9/:_\+=\.
\-@]{0,59}[a-zA-Z0-9]
Required: Yes
Response Syntax
{
"arn": "string",
"createdAt": number
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
arn
The Amazon Resource Name (ARN) that can be used to uniquely identify the billing view.
Type: String
Pattern: arn:aws[a-z-]*:(billing)::[0-9]{12}:billingview/[a-zA-Z0-9/:_\+=\.
\-@]{0,59}[a-zA-Z0-9]
createdAt
Type: Timestamp
CreateBillingView 484
AWS Billing and Cost Management API Reference
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
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.
You've reached the limit of resources you can create, or exceeded the size of an individual
resource.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
CreateBillingView 485
AWS Billing and Cost Management API Reference
CreateBillingView 486
AWS Billing and Cost Management API Reference
DeleteBillingView
Service: AWS Billing
Request Syntax
{
"arn": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
arn
The Amazon Resource Name (ARN) that can be used to uniquely identify the billing view.
Type: String
Pattern: arn:aws[a-z-]*:(billing)::[0-9]{12}:billingview/[a-zA-Z0-9/:_\+=\.
\-@]{0,59}[a-zA-Z0-9]
Required: Yes
Response Syntax
{
"arn": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
DeleteBillingView 487
AWS Billing and Cost Management API Reference
arn
The Amazon Resource Name (ARN) that can be used to uniquely identify the billing view.
Type: String
Pattern: arn:aws[a-z-]*:(billing)::[0-9]{12}:billingview/[a-zA-Z0-9/:_\+=\.
\-@]{0,59}[a-zA-Z0-9]
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
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.
DeleteBillingView 488
AWS Billing and Cost Management API Reference
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
DeleteBillingView 489
AWS Billing and Cost Management API Reference
GetBillingView
Service: AWS Billing
Request Syntax
{
"arn": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
arn
The Amazon Resource Name (ARN) that can be used to uniquely identify the billing view.
Type: String
Pattern: arn:aws[a-z-]*:(billing)::[0-9]{12}:billingview/[a-zA-Z0-9/:_\+=\.
\-@]{0,59}[a-zA-Z0-9]
Required: Yes
Response Syntax
{
"billingView": {
"arn": "string",
"billingViewType": "string",
"createdAt": number,
"dataFilterExpression": {
"dimensions": {
"key": "string",
"values": [ "string" ]
},
"tags": {
GetBillingView 490
AWS Billing and Cost Management API Reference
"key": "string",
"values": [ "string" ]
}
},
"description": "string",
"name": "string",
"ownerAccountId": "string",
"updatedAt": number
}
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
billingView
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
GetBillingView 491
AWS Billing and Cost Management API Reference
ThrottlingException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
GetBillingView 492
AWS Billing and Cost Management API Reference
GetResourcePolicy
Service: AWS Billing
Returns the resource-based policy document attached to the resource in JSON format.
Request Syntax
{
"resourceArn": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
resourceArn
The Amazon Resource Name (ARN) of the billing view resource to which the policy is attached
to.
Type: String
Pattern: arn:aws[a-z-]*:(billing)::[0-9]{12}:[a-zA-Z0-9/:_\+=\.\@-]{0,70}
[a-zA-Z0-9]
Required: Yes
Response Syntax
{
"policy": "string",
"resourceArn": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
GetResourcePolicy 493
AWS Billing and Cost Management API Reference
policy
Type: String
resourceArn
The Amazon Resource Name (ARN) of the billing view resource to which the policy is attached
to.
Type: String
Pattern: arn:aws[a-z-]*:(billing)::[0-9]{12}:[a-zA-Z0-9/:_\+=\.\@-]{0,70}
[a-zA-Z0-9]
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
GetResourcePolicy 494
AWS Billing and Cost Management API Reference
ValidationException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
GetResourcePolicy 495
AWS Billing and Cost Management API Reference
ListBillingViews
Service: AWS Billing
Every AWS account has a unique PRIMARY billing view that represents the billing data available
by default. Accounts that use AWS Billing Conductor also have BILLING_GROUP billing views
representing pro forma costs associated with each created billing group.
Request Syntax
{
"activeTimeRange": {
"activeAfterInclusive": number,
"activeBeforeInclusive": number
},
"arns": [ "string" ],
"billingViewTypes": [ "string" ],
"maxResults": number,
"nextToken": "string",
"ownerAccountId": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
activeTimeRange
The time range for the billing views listed. PRIMARY billing view is always listed.
BILLING_GROUP billing views are listed for time ranges when the associated billing group
resource in AWS Billing Conductor is active. The time range must be within one calendar month.
Required: No
arns
The Amazon Resource Name (ARN) that can be used to uniquely identify the billing view.
ListBillingViews 496
AWS Billing and Cost Management API Reference
Pattern: arn:aws[a-z-]*:(billing)::[0-9]{12}:billingview/[a-zA-Z0-9/:_\+=\.
\-@]{0,59}[a-zA-Z0-9]
Required: No
billingViewTypes
Required: No
maxResults
Type: Integer
Required: No
nextToken
The pagination token that is used on subsequent calls to list billing views.
Type: String
Required: No
ownerAccountId
Type: String
Pattern: [0-9]{12}
Required: No
ListBillingViews 497
AWS Billing and Cost Management API Reference
Response Syntax
{
"billingViews": [
{
"arn": "string",
"billingViewType": "string",
"description": "string",
"name": "string",
"ownerAccountId": "string"
}
],
"nextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
billingViews
Type: String
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
ListBillingViews 498
AWS Billing and Cost Management API Reference
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ListBillingViews 499
AWS Billing and Cost Management API Reference
ListSourceViewsForBillingView
Service: AWS Billing
Lists the source views (managed AWS billing views) associated with the billing view.
Request Syntax
{
"arn": "string",
"maxResults": number,
"nextToken": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
arn
The Amazon Resource Name (ARN) that can be used to uniquely identify the billing view.
Type: String
Pattern: arn:aws[a-z-]*:(billing)::[0-9]{12}:billingview/[a-zA-Z0-9/:_\+=\.
\-@]{0,59}[a-zA-Z0-9]
Required: Yes
maxResults
Type: Integer
Required: No
nextToken
The pagination token that is used on subsequent calls to list billing views.
ListSourceViewsForBillingView 500
AWS Billing and Cost Management API Reference
Type: String
Required: No
Response Syntax
{
"nextToken": "string",
"sourceViews": [ "string" ]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
nextToken
The pagination token that is used on subsequent calls to list billing views.
Type: String
A list of billing views used as the data source for the custom billing view.
Pattern: arn:aws[a-z-]*:(billing)::[0-9]{12}:billingview/[a-zA-Z0-9/:_\+=\.
\-@]{0,59}[a-zA-Z0-9]
Errors
For information about the errors that are common to all actions, see Common Errors.
ListSourceViewsForBillingView 501
AWS Billing and Cost Management API Reference
AccessDeniedException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ListSourceViewsForBillingView 502
AWS Billing and Cost Management API Reference
ListSourceViewsForBillingView 503
AWS Billing and Cost Management API Reference
ListTagsForResource
Service: AWS Billing
Request Syntax
{
"resourceArn": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
resourceArn
Type: String
Pattern: arn:aws[a-z-]*:(billing)::[0-9]{12}:[a-zA-Z0-9/:_\+=\.\@-]{0,70}
[a-zA-Z0-9]
Required: Yes
Response Syntax
{
"resourceTags": [
{
"key": "string",
"value": "string"
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
ListTagsForResource 504
AWS Billing and Cost Management API Reference
resourceTags
A list of tag key value pairs that are associated with the resource.
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
ListTagsForResource 505
AWS Billing and Cost Management API Reference
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ListTagsForResource 506
AWS Billing and Cost Management API Reference
TagResource
Service: AWS Billing
An API operation for adding one or more tags (key-value pairs) to a resource.
Request Syntax
{
"resourceArn": "string",
"resourceTags": [
{
"key": "string",
"value": "string"
}
]
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
resourceArn
Type: String
Pattern: arn:aws[a-z-]*:(billing)::[0-9]{12}:[a-zA-Z0-9/:_\+=\.\@-]{0,70}
[a-zA-Z0-9]
Required: Yes
resourceTags
A list of tag key value pairs that are associated with the resource.
Required: Yes
TagResource 507
AWS Billing and Cost Management API Reference
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
TagResource 508
AWS Billing and Cost Management API Reference
TagResource 509
AWS Billing and Cost Management API Reference
UntagResource
Service: AWS Billing
Removes one or more tags from a resource. Specify only tag keys in your request. Don't specify the
value.
Request Syntax
{
"resourceArn": "string",
"resourceTagKeys": [ "string" ]
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
resourceArn
Type: String
Pattern: arn:aws[a-z-]*:(billing)::[0-9]{12}:[a-zA-Z0-9/:_\+=\.\@-]{0,70}
[a-zA-Z0-9]
Required: Yes
resourceTagKeys
A list of tag key value pairs that are associated with the resource.
Required: Yes
UntagResource 510
AWS Billing and Cost Management API Reference
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
UntagResource 511
AWS Billing and Cost Management API Reference
UntagResource 512
AWS Billing and Cost Management API Reference
UpdateBillingView
Service: AWS Billing
Request Syntax
{
"arn": "string",
"dataFilterExpression": {
"dimensions": {
"key": "string",
"values": [ "string" ]
},
"tags": {
"key": "string",
"values": [ "string" ]
}
},
"description": "string",
"name": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
arn
The Amazon Resource Name (ARN) that can be used to uniquely identify the billing view.
Type: String
Pattern: arn:aws[a-z-]*:(billing)::[0-9]{12}:billingview/[a-zA-Z0-9/:_\+=\.
\-@]{0,59}[a-zA-Z0-9]
Required: Yes
dataFilterExpression
UpdateBillingView 513
AWS Billing and Cost Management API Reference
Required: No
description
Type: String
Pattern: ([ a-zA-Z0-9_\+=\.\-@]+)?
Required: No
name
Type: String
Pattern: [ a-zA-Z0-9_\+=\.\-@]+
Required: No
Response Syntax
{
"arn": "string",
"updatedAt": number
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
arn
The Amazon Resource Name (ARN) that can be used to uniquely identify the billing view.
UpdateBillingView 514
AWS Billing and Cost Management API Reference
Type: String
Pattern: arn:aws[a-z-]*:(billing)::[0-9]{12}:billingview/[a-zA-Z0-9/:_\+=\.
\-@]{0,59}[a-zA-Z0-9]
updatedAt
Type: Timestamp
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
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.
You've reached the limit of resources you can create, or exceeded the size of an individual
resource.
UpdateBillingView 515
AWS Billing and Cost Management API Reference
ThrottlingException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
AWS Budgets
The following actions are supported by AWS Budgets:
• CreateBudget
• CreateBudgetAction
• CreateNotification
• CreateSubscriber
• DeleteBudget
• DeleteBudgetAction
• DeleteNotification
• DeleteSubscriber
• DescribeBudget
• DescribeBudgetAction
• DescribeBudgetActionHistories
• DescribeBudgetActionsForAccount
• DescribeBudgetActionsForBudget
• DescribeBudgetNotificationsForAccount
• DescribeBudgetPerformanceHistory
• DescribeBudgets
• DescribeNotificationsForBudget
• DescribeSubscribersForNotification
• ExecuteBudgetAction
• ListTagsForResource
• TagResource
• UntagResource
• UpdateBudget
• UpdateBudgetAction
• UpdateNotification
• UpdateSubscriber
CreateBudget
Service: AWS Budgets
Important
Only one of BudgetLimit or PlannedBudgetLimits can be present in the syntax at
one time. Use the syntax that matches your case. The Request Syntax section shows the
BudgetLimit syntax. For PlannedBudgetLimits, see the Examples section.
Request Syntax
{
"AccountId": "string",
"Budget": {
"AutoAdjustData": {
"AutoAdjustType": "string",
"HistoricalOptions": {
"BudgetAdjustmentPeriod": number,
"LookBackAvailablePeriods": number
},
"LastAutoAdjustTime": number
},
"BudgetLimit": {
"Amount": "string",
"Unit": "string"
},
"BudgetName": "string",
"BudgetType": "string",
"CalculatedSpend": {
"ActualSpend": {
"Amount": "string",
"Unit": "string"
},
"ForecastedSpend": {
"Amount": "string",
"Unit": "string"
}
},
"CostFilters": {
CreateBudget 518
AWS Billing and Cost Management API Reference
"string" : [ "string" ]
},
"CostTypes": {
"IncludeCredit": boolean,
"IncludeDiscount": boolean,
"IncludeOtherSubscription": boolean,
"IncludeRecurring": boolean,
"IncludeRefund": boolean,
"IncludeSubscription": boolean,
"IncludeSupport": boolean,
"IncludeTax": boolean,
"IncludeUpfront": boolean,
"UseAmortized": boolean,
"UseBlended": boolean
},
"LastUpdatedTime": number,
"PlannedBudgetLimits": {
"string" : {
"Amount": "string",
"Unit": "string"
}
},
"TimePeriod": {
"End": number,
"Start": number
},
"TimeUnit": "string"
},
"NotificationsWithSubscribers": [
{
"Notification": {
"ComparisonOperator": "string",
"NotificationState": "string",
"NotificationType": "string",
"Threshold": number,
"ThresholdType": "string"
},
"Subscribers": [
{
"Address": "string",
"SubscriptionType": "string"
}
]
}
CreateBudget 519
AWS Billing and Cost Management API Reference
],
"ResourceTags": [
{
"Key": "string",
"Value": "string"
}
]
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
AccountId
Type: String
Pattern: \d{12}
Required: Yes
Budget
Required: Yes
NotificationsWithSubscribers
A notification that you want to associate with a budget. A budget can have up to five
notifications, and each notification can have one SNS subscriber and up to 10 email subscribers.
If you include notifications and subscribers in your CreateBudget call, AWS creates the
notifications and subscribers for you.
CreateBudget 520
AWS Billing and Cost Management API Reference
Required: No
ResourceTags
An optional list of tags to associate with the specified budget. Each tag consists of a key and a
value, and each key must be unique for the resource.
Required: No
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
You are not authorized to use this operation with the given parameters.
The budget name already exists. Budget names must be unique within an account.
An error on the server occurred during the processing of your request. Try again later.
An error on the client occurred. Typically, the cause is an invalid input value.
CreateBudget 521
AWS Billing and Cost Management API Reference
You've reached the limit on the number of tags you can associate with a resource.
The number of API requests has exceeded the maximum allowed API request throttling limit for
the account.
Examples
Example
{
"AccountId": "string",
"Budget": {
"PlannedBudgetLimits": {
“string": {
"Amount": "string",
"Unit": "string"
},
},
"BudgetName": "string",
"BudgetType": "string",
"CalculatedSpend": {
"ActualSpend": {
"Amount": "string",
"Unit": "string"
},
"ForecastedSpend": {
"Amount": "string",
"Unit": "string"
}
},
"CostFilters": {
CreateBudget 522
AWS Billing and Cost Management API Reference
"string" : [ "string" ]
},
"CostTypes": {
"IncludeCredit": boolean,
"IncludeDiscount": boolean,
"IncludeOtherSubscription": boolean,
"IncludeRecurring": boolean,
"IncludeRefund": boolean,
"IncludeSubscription": boolean,
"IncludeSupport": boolean,
"IncludeTax": boolean,
"IncludeUpfront": boolean,
"UseAmortized": boolean,
"UseBlended": boolean
},
"LastUpdatedTime": number,
"TimePeriod": {
"End": number,
"Start": number
},
"TimeUnit": "string"
},
"NotificationsWithSubscribers": [
{
"Notification": {
"ComparisonOperator": "string",
"NotificationState": "string",
"NotificationType": "string",
"Threshold": number,
"ThresholdType": "string"
},
"Subscribers": [
{
"Address": "string",
"SubscriptionType": "string"
}
]
}
]
}
Example
CreateBudget 523
AWS Billing and Cost Management API Reference
Sample Request
POST / HTTP/1.1
Host: awsbudgets.<region>.<domain>
x-amz-Date: <Date>
Authorization: AWS4-HMAC-SHA256 Credential=<Credential>,
SignedHeaders=contenttype;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-
requestid,Signature=<Signature>
User-Agent: <UserAgentString>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Connection: Keep-Alive
X-Amz-Target: AWSBudgetServiceGateway.CreateBudgets
{
"AccountId": "111122223333",
"Budget": {
"BudgetLimit": {
"Amount": "100",
"Unit": "USD"
},
"BudgetName": "Example Budget",
"BudgetType": "COST",
"CostFilters": {
"AZ" : [ "us-east-1" ]
},
"CostTypes": {
"IncludeCredit": true,
"IncludeDiscount": true,
"IncludeOtherSubscription": true,
"IncludeRecurring": true,
"IncludeRefund": true,
"IncludeSubscription": true,
"IncludeSupport": true,
"IncludeTax": true,
"IncludeUpfront": true,
"UseBlended": false
},
"TimePeriod": {
"Start": 1477353600,
"End": 1477958399
},
"TimeUnit": "MONTHLY"
},
"NotificationsWithSubscribers": [
CreateBudget 524
AWS Billing and Cost Management API Reference
{
"Notification": {
"ComparisonOperator": "GREATER_THAN",
"NotificationType": "ACTUAL",
"Threshold": 80,
"ThresholdType": "PERCENTAGE"
},
"Subscribers": [
{
"Address": "[email protected]",
"SubscriptionType": "EMAIL"
}
]
}
]
}
Example
Sample Request
POST / HTTP/1.1
Host: awsbudgets.<region>.<domain>
x-amz-Date: <Date>
Authorization: AWS4-HMAC-SHA256 Credential=<Credential>,
SignedHeaders=contenttype;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-
requestid,Signature=<Signature>
User-Agent: <UserAgentString>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Connection: Keep-Alive
X-Amz-Target: AWSBudgetServiceGateway.CreateBudgets
{
"AccountId": "111122223333",
"Budget": {
"PlannedBudgetLimits": {
"1583020800": {
"Amount": "100",
"Unit": "USD"
},
"1564617600": {
"Amount": "200",
CreateBudget 525
AWS Billing and Cost Management API Reference
"Unit": "USD"
},
"1569888000": {
"Amount": "300",
"Unit": "USD"
},
"1556668800": {
"Amount": "400",
"Unit": "USD"
},
"1575158400": {
"Amount": "500",
"Unit": "USD"
},
"1580515200": {
"Amount": "200",
"Unit": "USD"
},
"1567296000": {
"Amount": "300",
"Unit": "USD"
},
"1554076800": {
"Amount": "100",
"Unit": "USD"
},
"1577836800": {
"Amount": "200",
"Unit": "USD"
},
"1561939200": {
"Amount": "100",
"Unit": "USD"
},
"1572566400": {
"Amount": "110",
"Unit": "USD"
},
"1559347200": {
"Amount": "120",
"Unit": "USD"
}
},
"BudgetName": "Example Budget",
CreateBudget 526
AWS Billing and Cost Management API Reference
"BudgetType": "COST",
"CostFilters": {
"AZ" : [ "us-east-1" ]
},
"CostTypes": {
"IncludeCredit": true,
"IncludeDiscount": true,
"IncludeOtherSubscription": true,
"IncludeRecurring": true,
"IncludeRefund": true,
"IncludeSubscription": true,
"IncludeSupport": true,
"IncludeTax": true,
"IncludeUpfront": true,
"UseBlended": false
},
"TimePeriod": {
"Start": 1477353600,
"End": 1477958399
},
"TimeUnit": "MONTHLY"
},
"NotificationsWithSubscribers": [
{
"Notification": {
"ComparisonOperator": "GREATER_THAN",
"NotificationType": "ACTUAL",
"Threshold": 80,
"ThresholdType": "PERCENTAGE"
},
"Subscribers": [
{
"Address": "[email protected]",
"SubscriptionType": "EMAIL"
}
]
}
]
}
CreateBudget 527
AWS Billing and Cost Management API Reference
Example
The following is a sample request of the CreateBudget operation using BudgetLimit and
filtering for a specific tag.
Sample Request
POST / HTTP/1.1
Host: awsbudgets.<region>.<domain>
x-amz-Date: <Date>
Authorization: AWS4-HMAC-SHA256 Credential=<Credential>,
SignedHeaders=contenttype;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-
requestid,Signature=<Signature>
User-Agent: <UserAgentString>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Connection: Keep-Alive
X-Amz-Target: AWSBudgetServiceGateway.CreateBudgets
{
"AccountId": "111122223333",
"Budget": {
"BudgetLimit": {
"Amount": "100",
"Unit": "USD"},
"BudgetName": "Example Tag Budget",
"BudgetType": "COST",
"CostFilters": {
"TagKeyValue" : ["user:Key$value1","user:Key$value2"]
},
"CostTypes": {
"IncludeCredit": true,
"IncludeDiscount": true,
"IncludeOtherSubscription": true,
"IncludeRecurring": true,
"IncludeRefund": true,
"IncludeSubscription": true,
"IncludeSupport": true,
"IncludeTax": true,
"IncludeUpfront": true,
"UseBlended": false
},
"TimePeriod": {
"Start": 1477958399,
"End": 3706473600
CreateBudget 528
AWS Billing and Cost Management API Reference
"TimeUnit": "MONTHLY"
},
"NotificationsWithSubscribers": [
{
"Notification": {
"ComparisonOperator": "GREATER_THAN",
"NotificationType": "ACTUAL",
"Threshold": 80,
"ThresholdType": "PERCENTAGE"
},
"Subscribers": [
{
"Address": "[email protected]",
"SubscriptionType": "EMAIL"
}
]
}
]
}
Example
The following is a sample request of the CreateBudget operation using ResourceTags and
filtering for a specific tag.
Sample Request
POST / HTTP/1.1
Host: awsbudgets.<region>.<domain>
x-amz-Date: <Date>
Authorization: AWS4-HMAC-SHA256 Credential=<Credential>,
SignedHeaders=contenttype;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-
requestid,Signature=<Signature>
User-Agent: <UserAgentString>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Connection: Keep-Alive
X-Amz-Target: AWSBudgetServiceGateway.CreateBudgets
{
"AccountId": "111122223333",
"Budget": {
"BudgetLimit": {
CreateBudget 529
AWS Billing and Cost Management API Reference
"Amount": "100",
"Unit": "USD"
},
"BudgetName": "Example Tag Budget",
"BudgetType": "COST",
"CostFilters": {
"TagKeyValue": [
"user:tagKey1$value1",
"user:tagKey2$value2"
]
},
"CostTypes": {
"IncludeCredit": true,
"IncludeDiscount": true,
"IncludeOtherSubscription": true,
"IncludeRecurring": true,
"IncludeRefund": true,
"IncludeSubscription": true,
"IncludeSupport": true,
"IncludeTax": true,
"IncludeUpfront": true,
"UseBlended": false
},
"TimePeriod": {
"Start": 1477958399,
"End": 3706473600
},
"TimeUnit": "MONTHLY"
},
"NotificationsWithSubscribers": [
{
"Notification": {
"ComparisonOperator": "GREATER_THAN",
"NotificationType": "ACTUAL",
"Threshold": 80,
"ThresholdType": "PERCENTAGE"
},
"Subscribers": [
{
"Address": "[email protected]",
"SubscriptionType": "EMAIL"
}
]
}
CreateBudget 530
AWS Billing and Cost Management API Reference
],
"ResourceTags": [
{
"Key": "tagKey1",
"Value": "value1"
},
{
"Key": "tagKey2",
"Value": "value1"
}
]
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
CreateBudget 531
AWS Billing and Cost Management API Reference
CreateBudgetAction
Service: AWS Budgets
Request Syntax
{
"AccountId": "string",
"ActionThreshold": {
"ActionThresholdType": "string",
"ActionThresholdValue": number
},
"ActionType": "string",
"ApprovalModel": "string",
"BudgetName": "string",
"Definition": {
"IamActionDefinition": {
"Groups": [ "string" ],
"PolicyArn": "string",
"Roles": [ "string" ],
"Users": [ "string" ]
},
"ScpActionDefinition": {
"PolicyId": "string",
"TargetIds": [ "string" ]
},
"SsmActionDefinition": {
"ActionSubType": "string",
"InstanceIds": [ "string" ],
"Region": "string"
}
},
"ExecutionRoleArn": "string",
"NotificationType": "string",
"ResourceTags": [
{
"Key": "string",
"Value": "string"
}
],
"Subscribers": [
{
CreateBudgetAction 532
AWS Billing and Cost Management API Reference
"Address": "string",
"SubscriptionType": "string"
}
]
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
AccountId
Type: String
Pattern: \d{12}
Required: Yes
ActionThreshold
Required: Yes
ActionType
The type of action. This defines the type of tasks that can be carried out by this action. This
field also determines the format for definition.
Type: String
Required: Yes
ApprovalModel
CreateBudgetAction 533
AWS Billing and Cost Management API Reference
Type: String
Required: Yes
BudgetName
A string that represents the budget name. The ":" and "\" characters, and the "/action/"
substring, aren't allowed.
Type: String
Pattern: ^(?![^:\\]*/action/|(?i).*<script>.*</script>.*)[^:\\]+$
Required: Yes
Definition
Required: Yes
ExecutionRoleArn
The role passed for action execution and reversion. Roles and actions must be in the same
account.
Type: String
Pattern: ^arn:(aws|aws-cn|aws-us-gov|us-iso-east-1|us-isob-east-1):iam::
\d{12}:role(\u002F[\u0021-\u007F]+\u002F|\u002F)[\w+=,.@-]+$
Required: Yes
NotificationType
Type: String
CreateBudgetAction 534
AWS Billing and Cost Management API Reference
Required: Yes
ResourceTags
An optional list of tags to associate with the specified budget action. Each tag consists of a key
and a value, and each key must be unique for the resource.
Required: No
Subscribers
A list of subscribers.
Required: Yes
Response Syntax
{
"AccountId": "string",
"ActionId": "string",
"BudgetName": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
AccountId
Type: String
CreateBudgetAction 535
AWS Billing and Cost Management API Reference
Pattern: \d{12}
ActionId
Type: String
Pattern: ^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-
fA-F0-9]{12}$
BudgetName
A string that represents the budget name. The ":" and "\" characters, and the "/action/"
substring, aren't allowed.
Type: String
Pattern: ^(?![^:\\]*/action/|(?i).*<script>.*</script>.*)[^:\\]+$
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
You are not authorized to use this operation with the given parameters.
The budget name already exists. Budget names must be unique within an account.
CreateBudgetAction 536
AWS Billing and Cost Management API Reference
An error on the server occurred during the processing of your request. Try again later.
An error on the client occurred. Typically, the cause is an invalid input value.
You've reached the limit on the number of tags you can associate with a resource.
The number of API requests has exceeded the maximum allowed API request throttling limit for
the account.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
CreateBudgetAction 537
AWS Billing and Cost Management API Reference
CreateBudgetAction 538
AWS Billing and Cost Management API Reference
CreateNotification
Service: AWS Budgets
Creates a notification. You must create the budget before you create the associated notification.
Request Syntax
{
"AccountId": "string",
"BudgetName": "string",
"Notification": {
"ComparisonOperator": "string",
"NotificationState": "string",
"NotificationType": "string",
"Threshold": number,
"ThresholdType": "string"
},
"Subscribers": [
{
"Address": "string",
"SubscriptionType": "string"
}
]
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
AccountId
The accountId that is associated with the budget that you want to create a notification for.
Type: String
Pattern: \d{12}
Required: Yes
CreateNotification 539
AWS Billing and Cost Management API Reference
BudgetName
The name of the budget that you want AWS to notify you about. Budget names must be unique
within an account.
Type: String
Pattern: ^(?![^:\\]*/action/|(?i).*<script>.*</script>.*)[^:\\]+$
Required: Yes
Notification
Required: Yes
Subscribers
A list of subscribers that you want to associate with the notification. Each notification can have
one SNS subscriber and up to 10 email subscribers.
Required: Yes
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
You are not authorized to use this operation with the given parameters.
CreateNotification 540
AWS Billing and Cost Management API Reference
CreationLimitExceededException
The budget name already exists. Budget names must be unique within an account.
An error on the server occurred during the processing of your request. Try again later.
An error on the client occurred. Typically, the cause is an invalid input value.
The number of API requests has exceeded the maximum allowed API request throttling limit for
the account.
Examples
Example
Sample Request
POST / HTTP/1.1
CreateNotification 541
AWS Billing and Cost Management API Reference
Host: awsbudgets.<region>.<domain>
x-amz-Date: <Date>
Authorization: AWS4-HMAC-SHA256 Credential=<Credential>,
SignedHeaders=contenttype;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-
requestid,Signature=<Signature>
User-Agent: <UserAgentString>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Connection: Keep-Alive
X-Amz-Target: AWSBudgetServiceGateway.CreateNotification
{
"AccountId": "111122223333",
"BudgetName": "Example Budget",
"Notification": {
"ComparisonOperator": "GREATER_THAN",
"NotificationType": "ACTUAL",
"Threshold": 80,
"ThresholdType": "PERCENTAGE"
},
"Subscribers": [
{
"Address": "[email protected]",
"SubscriptionType": "EMAIL"
}
]
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
CreateNotification 542
AWS Billing and Cost Management API Reference
CreateNotification 543
AWS Billing and Cost Management API Reference
CreateSubscriber
Service: AWS Budgets
Creates a subscriber. You must create the associated budget and notification before you create the
subscriber.
Request Syntax
{
"AccountId": "string",
"BudgetName": "string",
"Notification": {
"ComparisonOperator": "string",
"NotificationState": "string",
"NotificationType": "string",
"Threshold": number,
"ThresholdType": "string"
},
"Subscriber": {
"Address": "string",
"SubscriptionType": "string"
}
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
AccountId
The accountId that is associated with the budget that you want to create a subscriber for.
Type: String
Pattern: \d{12}
Required: Yes
CreateSubscriber 544
AWS Billing and Cost Management API Reference
BudgetName
The name of the budget that you want to subscribe to. Budget names must be unique within an
account.
Type: String
Pattern: ^(?![^:\\]*/action/|(?i).*<script>.*</script>.*)[^:\\]+$
Required: Yes
Notification
Required: Yes
Subscriber
Required: Yes
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
You are not authorized to use this operation with the given parameters.
CreateSubscriber 545
AWS Billing and Cost Management API Reference
CreationLimitExceededException
The budget name already exists. Budget names must be unique within an account.
An error on the server occurred during the processing of your request. Try again later.
An error on the client occurred. Typically, the cause is an invalid input value.
The number of API requests has exceeded the maximum allowed API request throttling limit for
the account.
Examples
Example
Sample Request
POST / HTTP/1.1
CreateSubscriber 546
AWS Billing and Cost Management API Reference
Host: awsbudgets.<region>.<domain>
x-amz-Date: <Date>
Authorization: AWS4-HMAC-SHA256 Credential=<Credential>,
SignedHeaders=contenttype;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-
requestid,Signature=<Signature>
User-Agent: <UserAgentString>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Connection: Keep-Alive
X-Amz-Target: AWSBudgetServiceGateway.CreateSubscriber
{
"AccountId": "111122223333",
"BudgetName": "Example Budget",
"Notification": {
"ComparisonOperator": "GREATER_THAN",
"NotificationType": "ACTUAL",
"Threshold": 80,
"ThresholdType": "PERCENTAGE"
},
"Subscribers": [
{
"Address": "[email protected]",
"SubscriptionType": "EMAIL"
}
]
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
CreateSubscriber 547
AWS Billing and Cost Management API Reference
CreateSubscriber 548
AWS Billing and Cost Management API Reference
DeleteBudget
Service: AWS Budgets
Important
Deleting a budget also deletes the notifications and subscribers that are associated with
that budget.
Request Syntax
{
"AccountId": "string",
"BudgetName": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
AccountId
The accountId that is associated with the budget that you want to delete.
Type: String
Pattern: \d{12}
Required: Yes
BudgetName
Type: String
DeleteBudget 549
AWS Billing and Cost Management API Reference
Pattern: ^(?![^:\\]*/action/|(?i).*<script>.*</script>.*)[^:\\]+$
Required: Yes
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
You are not authorized to use this operation with the given parameters.
An error on the server occurred during the processing of your request. Try again later.
An error on the client occurred. Typically, the cause is an invalid input value.
The number of API requests has exceeded the maximum allowed API request throttling limit for
the account.
DeleteBudget 550
AWS Billing and Cost Management API Reference
Examples
Example
Sample Request
POST / HTTP/1.1
Host: awsbudgets.<region>.<domain>
x-amz-Date: <Date>
Authorization: AWS4-HMAC-SHA256 Credential=<Credential>,
SignedHeaders=contenttype;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-
requestid,Signature=<Signature>
User-Agent: <UserAgentString>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Connection: Keep-Alive
X-Amz-Target: AWSBudgetServiceGateway.DeleteBudget
{
"AccountId": "111122223333",
"BudgetName": "Example Budget"
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
DeleteBudget 551
AWS Billing and Cost Management API Reference
DeleteBudgetAction
Service: AWS Budgets
Request Syntax
{
"AccountId": "string",
"ActionId": "string",
"BudgetName": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
AccountId
Type: String
Pattern: \d{12}
Required: Yes
ActionId
Type: String
Pattern: ^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-
fA-F0-9]{12}$
Required: Yes
DeleteBudgetAction 552
AWS Billing and Cost Management API Reference
BudgetName
A string that represents the budget name. The ":" and "\" characters, and the "/action/"
substring, aren't allowed.
Type: String
Pattern: ^(?![^:\\]*/action/|(?i).*<script>.*</script>.*)[^:\\]+$
Required: Yes
Response Syntax
{
"AccountId": "string",
"Action": {
"ActionId": "string",
"ActionThreshold": {
"ActionThresholdType": "string",
"ActionThresholdValue": number
},
"ActionType": "string",
"ApprovalModel": "string",
"BudgetName": "string",
"Definition": {
"IamActionDefinition": {
"Groups": [ "string" ],
"PolicyArn": "string",
"Roles": [ "string" ],
"Users": [ "string" ]
},
"ScpActionDefinition": {
"PolicyId": "string",
"TargetIds": [ "string" ]
},
"SsmActionDefinition": {
"ActionSubType": "string",
"InstanceIds": [ "string" ],
"Region": "string"
}
},
DeleteBudgetAction 553
AWS Billing and Cost Management API Reference
"ExecutionRoleArn": "string",
"NotificationType": "string",
"Status": "string",
"Subscribers": [
{
"Address": "string",
"SubscriptionType": "string"
}
]
},
"BudgetName": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
AccountId
Type: String
Pattern: \d{12}
Action
A string that represents the budget name. The ":" and "\" characters, and the "/action/"
substring, aren't allowed.
Type: String
Pattern: ^(?![^:\\]*/action/|(?i).*<script>.*</script>.*)[^:\\]+$
DeleteBudgetAction 554
AWS Billing and Cost Management API Reference
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
You are not authorized to use this operation with the given parameters.
An error on the server occurred during the processing of your request. Try again later.
An error on the client occurred. Typically, the cause is an invalid input value.
The request was received and recognized by the server, but the server rejected that particular
method for the requested resource.
The number of API requests has exceeded the maximum allowed API request throttling limit for
the account.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
DeleteBudgetAction 555
AWS Billing and Cost Management API Reference
DeleteBudgetAction 556
AWS Billing and Cost Management API Reference
DeleteNotification
Service: AWS Budgets
Deletes a notification.
Important
Deleting a notification also deletes the subscribers that are associated with the notification.
Request Syntax
{
"AccountId": "string",
"BudgetName": "string",
"Notification": {
"ComparisonOperator": "string",
"NotificationState": "string",
"NotificationType": "string",
"Threshold": number,
"ThresholdType": "string"
}
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
AccountId
The accountId that is associated with the budget whose notification you want to delete.
Type: String
Pattern: \d{12}
Required: Yes
DeleteNotification 557
AWS Billing and Cost Management API Reference
BudgetName
Type: String
Pattern: ^(?![^:\\]*/action/|(?i).*<script>.*</script>.*)[^:\\]+$
Required: Yes
Notification
Required: Yes
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
You are not authorized to use this operation with the given parameters.
An error on the server occurred during the processing of your request. Try again later.
An error on the client occurred. Typically, the cause is an invalid input value.
DeleteNotification 558
AWS Billing and Cost Management API Reference
NotFoundException
The number of API requests has exceeded the maximum allowed API request throttling limit for
the account.
Examples
Example
Sample Request
POST / HTTP/1.1
Host: awsbudgets.<region>.<domain>
x-amz-Date: <Date>
Authorization: AWS4-HMAC-SHA256 Credential=<Credential>,
SignedHeaders=contenttype;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-
requestid,Signature=<Signature>
User-Agent: <UserAgentString>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Connection: Keep-Alive
X-Amz-Target: AWSBudgetServiceGateway.DeleteNotification
{
"AccountId": "111122223333",
"BudgetName": "Example Budget",
"Notification": {
"ComparisonOperator": "GREATER_THAN",
"NotificationType": "ACTUAL",
"Threshold": 80,
"ThresholdType": "PERCENTAGE"
}
}
DeleteNotification 559
AWS Billing and Cost Management API Reference
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
DeleteNotification 560
AWS Billing and Cost Management API Reference
DeleteSubscriber
Service: AWS Budgets
Deletes a subscriber.
Important
Deleting the last subscriber to a notification also deletes the notification.
Request Syntax
{
"AccountId": "string",
"BudgetName": "string",
"Notification": {
"ComparisonOperator": "string",
"NotificationState": "string",
"NotificationType": "string",
"Threshold": number,
"ThresholdType": "string"
},
"Subscriber": {
"Address": "string",
"SubscriptionType": "string"
}
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
AccountId
The accountId that is associated with the budget whose subscriber you want to delete.
Type: String
DeleteSubscriber 561
AWS Billing and Cost Management API Reference
Pattern: \d{12}
Required: Yes
BudgetName
Type: String
Pattern: ^(?![^:\\]*/action/|(?i).*<script>.*</script>.*)[^:\\]+$
Required: Yes
Notification
Required: Yes
Subscriber
Required: Yes
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
You are not authorized to use this operation with the given parameters.
DeleteSubscriber 562
AWS Billing and Cost Management API Reference
InternalErrorException
An error on the server occurred during the processing of your request. Try again later.
An error on the client occurred. Typically, the cause is an invalid input value.
The number of API requests has exceeded the maximum allowed API request throttling limit for
the account.
Examples
Example
Sample Request
POST / HTTP/1.1
Host: awsbudgets.<region>.<domain>
x-amz-Date: <Date>
Authorization: AWS4-HMAC-SHA256 Credential=<Credential>,
SignedHeaders=contenttype;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-
requestid,Signature=<Signature>
User-Agent: <UserAgentString>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Connection: Keep-Alive
X-Amz-Target: AWSBudgetServiceGateway.DeleteSubscriber
DeleteSubscriber 563
AWS Billing and Cost Management API Reference
{
"AccountId": "111122223333",
"BudgetName": "Example Budget",
"Notification": {
"ComparisonOperator": "GREATER_THAN",
"NotificationType": "ACTUAL",
"Threshold": 80,
"ThresholdType": "PERCENTAGE"
},
"Subscribers": [
{
"Address": "[email protected]",
"SubscriptionType": "EMAIL"
}
]
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
DeleteSubscriber 564
AWS Billing and Cost Management API Reference
DescribeBudget
Service: AWS Budgets
Describes a budget.
Important
The Request Syntax section shows the BudgetLimit syntax. For PlannedBudgetLimits,
see the Examples section.
Request Syntax
{
"AccountId": "string",
"BudgetName": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
AccountId
The accountId that is associated with the budget that you want a description of.
Type: String
Pattern: \d{12}
Required: Yes
BudgetName
Type: String
DescribeBudget 565
AWS Billing and Cost Management API Reference
Pattern: ^(?![^:\\]*/action/|(?i).*<script>.*</script>.*)[^:\\]+$
Required: Yes
Response Syntax
{
"Budget": {
"AutoAdjustData": {
"AutoAdjustType": "string",
"HistoricalOptions": {
"BudgetAdjustmentPeriod": number,
"LookBackAvailablePeriods": number
},
"LastAutoAdjustTime": number
},
"BudgetLimit": {
"Amount": "string",
"Unit": "string"
},
"BudgetName": "string",
"BudgetType": "string",
"CalculatedSpend": {
"ActualSpend": {
"Amount": "string",
"Unit": "string"
},
"ForecastedSpend": {
"Amount": "string",
"Unit": "string"
}
},
"CostFilters": {
"string" : [ "string" ]
},
"CostTypes": {
"IncludeCredit": boolean,
"IncludeDiscount": boolean,
"IncludeOtherSubscription": boolean,
"IncludeRecurring": boolean,
"IncludeRefund": boolean,
DescribeBudget 566
AWS Billing and Cost Management API Reference
"IncludeSubscription": boolean,
"IncludeSupport": boolean,
"IncludeTax": boolean,
"IncludeUpfront": boolean,
"UseAmortized": boolean,
"UseBlended": boolean
},
"LastUpdatedTime": number,
"PlannedBudgetLimits": {
"string" : {
"Amount": "string",
"Unit": "string"
}
},
"TimePeriod": {
"End": number,
"Start": number
},
"TimeUnit": "string"
}
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Budget
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
You are not authorized to use this operation with the given parameters.
DescribeBudget 567
AWS Billing and Cost Management API Reference
InternalErrorException
An error on the server occurred during the processing of your request. Try again later.
An error on the client occurred. Typically, the cause is an invalid input value.
The number of API requests has exceeded the maximum allowed API request throttling limit for
the account.
Examples
Example
{
"Budget": {
"BudgetLimit": {
"Amount": "string",
"Unit": "string"
},
"PlannedBudgetLimits": {
"BudgetLimit”: “string": {
"Amount": "string",
"Unit": "string"
},
},
"BudgetName": "string",
"BudgetType": "string",
"CalculatedSpend": {
DescribeBudget 568
AWS Billing and Cost Management API Reference
"ActualSpend": {
"Amount": "string",
"Unit": "string"
},
"ForecastedSpend": {
"Amount": "string",
"Unit": "string"
}
},
"CostFilters": {
"string" : [ "string" ]
},
"CostTypes": {
"IncludeCredit": boolean,
"IncludeDiscount": boolean,
"IncludeOtherSubscription": boolean,
"IncludeRecurring": boolean,
"IncludeRefund": boolean,
"IncludeSubscription": boolean,
"IncludeSupport": boolean,
"IncludeTax": boolean,
"IncludeUpfront": boolean,
"UseAmortized": boolean,
"UseBlended": boolean
},
"LastUpdatedTime": number,
"TimePeriod": {
"End": number,
"Start": number
},
"TimeUnit": "string"
}
}
Example
The following is a sample request and response of the DescribeBudget operation using
BudgetLimit
Sample Request
POST / HTTP/1.1
Host: awsbudgets.<region>.<domain>
DescribeBudget 569
AWS Billing and Cost Management API Reference
x-amz-Date: <Date>
Authorization: AWS4-HMAC-SHA256 Credential=<Credential>,
SignedHeaders=contenttype;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-
requestid,Signature=<Signature>
User-Agent: <UserAgentString>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Connection: Keep-Alive
X-Amz-Target: AWSBudgetServiceGateway.DescribeBudget
{
"AccountId": "111122223333",
"BudgetName": "Example Budget"
}
Sample Response
{
"Budget": {
"BudgetLimit": {
"Amount": "100",
"Unit": "USD"
},
"BudgetName": "Example Budget",
"BudgetType": "COST",
"CalculatedSpend": {
"ActualSpend": {
"Amount": "50",
"Unit": "USD"
},
"ForecastedSpend": {
"Amount": "100",
"Unit": "USD"
}
},
"CostFilters": {
"AZ" : [ "us-east-1" ]
},
"CostTypes": {
"IncludeCredit": true,
"IncludeDiscount": true,
"IncludeOtherSubscription": true,
"IncludeRecurring": true,
"IncludeRefund": true,
DescribeBudget 570
AWS Billing and Cost Management API Reference
"IncludeSubscription": true,
"IncludeSupport": true,
"IncludeTax": true,
"IncludeUpfront": true,
"UseBlended": false
},
"TimePeriod": {
"Start": 1477353600,
"End": 1477958399
},
"TimeUnit": "MONTHLY"
}
}
Example
Sample Response
{
"Budget": {
"BudgetLimit": {
"Amount": "100",
"Unit": "USD"
},
"PlannedBudgetLimits":{
"1583020800": {
"Amount": "100",
"Unit": "USD"
},
"1564617600": {
"Amount": "200",
"Unit": "USD"
},
"1569888000": {
"Amount": "300",
"Unit": "USD"
},
"1556668800": {
"Amount": "400",
"Unit": "USD"
DescribeBudget 571
AWS Billing and Cost Management API Reference
},
"1575158400": {
"Amount": "500",
"Unit": "USD"
},
"1580515200": {
"Amount": "200",
"Unit": "USD"
},
"1567296000": {
"Amount": "300",
"Unit": "USD"
},
"1554076800": {
"Amount": "100",
"Unit": "USD"
},
"1577836800": {
"Amount": "200",
"Unit": "USD"
},
"1561939200": {
"Amount": "100",
"Unit": "USD"
},
"1572566400": {
"Amount": "110",
"Unit": "USD"
},
"1559347200": {
"Amount": "120",
"Unit": "USD"
}
},
"BudgetName": "Example Budget",
"BudgetType": "COST",
"CalculatedSpend": {
"ActualSpend": {
"Amount": "50",
"Unit": "USD"
},
"ForecastedSpend": {
"Amount": "100",
"Unit": "USD"
DescribeBudget 572
AWS Billing and Cost Management API Reference
}
},
"CostFilters": {
"AZ" : [ "us-east-1" ]
},
"CostTypes": {
"IncludeCredit": true,
"IncludeDiscount": true,
"IncludeOtherSubscription": true,
"IncludeRecurring": true,
"IncludeRefund": true,
"IncludeSubscription": true,
"IncludeSupport": true,
"IncludeTax": true,
"IncludeUpfront": true,
"UseBlended": false
},
"TimePeriod": {
"Start": 1477353600,
"End": 1477958399
},
"TimeUnit": "MONTHLY"
}
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
DescribeBudget 573
AWS Billing and Cost Management API Reference
DescribeBudget 574
AWS Billing and Cost Management API Reference
DescribeBudgetAction
Service: AWS Budgets
Request Syntax
{
"AccountId": "string",
"ActionId": "string",
"BudgetName": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
AccountId
Type: String
Pattern: \d{12}
Required: Yes
ActionId
Type: String
Pattern: ^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-
fA-F0-9]{12}$
Required: Yes
DescribeBudgetAction 575
AWS Billing and Cost Management API Reference
BudgetName
A string that represents the budget name. The ":" and "\" characters, and the "/action/"
substring, aren't allowed.
Type: String
Pattern: ^(?![^:\\]*/action/|(?i).*<script>.*</script>.*)[^:\\]+$
Required: Yes
Response Syntax
{
"AccountId": "string",
"Action": {
"ActionId": "string",
"ActionThreshold": {
"ActionThresholdType": "string",
"ActionThresholdValue": number
},
"ActionType": "string",
"ApprovalModel": "string",
"BudgetName": "string",
"Definition": {
"IamActionDefinition": {
"Groups": [ "string" ],
"PolicyArn": "string",
"Roles": [ "string" ],
"Users": [ "string" ]
},
"ScpActionDefinition": {
"PolicyId": "string",
"TargetIds": [ "string" ]
},
"SsmActionDefinition": {
"ActionSubType": "string",
"InstanceIds": [ "string" ],
"Region": "string"
}
},
DescribeBudgetAction 576
AWS Billing and Cost Management API Reference
"ExecutionRoleArn": "string",
"NotificationType": "string",
"Status": "string",
"Subscribers": [
{
"Address": "string",
"SubscriptionType": "string"
}
]
},
"BudgetName": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
AccountId
Type: String
Pattern: \d{12}
Action
A string that represents the budget name. The ":" and "\" characters, and the "/action/"
substring, aren't allowed.
Type: String
Pattern: ^(?![^:\\]*/action/|(?i).*<script>.*</script>.*)[^:\\]+$
DescribeBudgetAction 577
AWS Billing and Cost Management API Reference
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
You are not authorized to use this operation with the given parameters.
An error on the server occurred during the processing of your request. Try again later.
An error on the client occurred. Typically, the cause is an invalid input value.
The number of API requests has exceeded the maximum allowed API request throttling limit for
the account.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
DescribeBudgetAction 578
AWS Billing and Cost Management API Reference
DescribeBudgetAction 579
AWS Billing and Cost Management API Reference
DescribeBudgetActionHistories
Service: AWS Budgets
Request Syntax
{
"AccountId": "string",
"ActionId": "string",
"BudgetName": "string",
"MaxResults": number,
"NextToken": "string",
"TimePeriod": {
"End": number,
"Start": number
}
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
AccountId
Type: String
Pattern: \d{12}
Required: Yes
ActionId
Type: String
DescribeBudgetActionHistories 580
AWS Billing and Cost Management API Reference
Pattern: ^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-
fA-F0-9]{12}$
Required: Yes
BudgetName
A string that represents the budget name. The ":" and "\" characters, and the "/action/"
substring, aren't allowed.
Type: String
Pattern: ^(?![^:\\]*/action/|(?i).*<script>.*</script>.*)[^:\\]+$
Required: Yes
MaxResults
An integer that represents how many entries a paginated response contains. The maximum is
100.
Type: Integer
Required: No
NextToken
A generic string.
Type: String
Pattern: .*
Required: No
TimePeriod
The period of time that's covered by a budget. The period has a start date and an end date. The
start date must come before the end date. There are no restrictions on the end date.
DescribeBudgetActionHistories 581
AWS Billing and Cost Management API Reference
Required: No
Response Syntax
{
"ActionHistories": [
{
"ActionHistoryDetails": {
"Action": {
"ActionId": "string",
"ActionThreshold": {
"ActionThresholdType": "string",
"ActionThresholdValue": number
},
"ActionType": "string",
"ApprovalModel": "string",
"BudgetName": "string",
"Definition": {
"IamActionDefinition": {
"Groups": [ "string" ],
"PolicyArn": "string",
"Roles": [ "string" ],
"Users": [ "string" ]
},
"ScpActionDefinition": {
"PolicyId": "string",
"TargetIds": [ "string" ]
},
"SsmActionDefinition": {
"ActionSubType": "string",
"InstanceIds": [ "string" ],
"Region": "string"
}
},
"ExecutionRoleArn": "string",
"NotificationType": "string",
"Status": "string",
"Subscribers": [
{
"Address": "string",
"SubscriptionType": "string"
DescribeBudgetActionHistories 582
AWS Billing and Cost Management API Reference
}
]
},
"Message": "string"
},
"EventType": "string",
"Status": "string",
"Timestamp": number
}
],
"NextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
ActionHistories
A generic string.
Type: String
Pattern: .*
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
You are not authorized to use this operation with the given parameters.
DescribeBudgetActionHistories 583
AWS Billing and Cost Management API Reference
An error on the server occurred during the processing of your request. Try again later.
An error on the client occurred. Typically, the cause is an invalid input value.
The number of API requests has exceeded the maximum allowed API request throttling limit for
the account.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
DescribeBudgetActionHistories 584
AWS Billing and Cost Management API Reference
DescribeBudgetActionHistories 585
AWS Billing and Cost Management API Reference
DescribeBudgetActionsForAccount
Service: AWS Budgets
Request Syntax
{
"AccountId": "string",
"MaxResults": number,
"NextToken": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
AccountId
Type: String
Pattern: \d{12}
Required: Yes
MaxResults
An integer that represents how many entries a paginated response contains. The maximum is
100.
Type: Integer
Required: No
NextToken
A generic string.
DescribeBudgetActionsForAccount 586
AWS Billing and Cost Management API Reference
Type: String
Pattern: .*
Required: No
Response Syntax
{
"Actions": [
{
"ActionId": "string",
"ActionThreshold": {
"ActionThresholdType": "string",
"ActionThresholdValue": number
},
"ActionType": "string",
"ApprovalModel": "string",
"BudgetName": "string",
"Definition": {
"IamActionDefinition": {
"Groups": [ "string" ],
"PolicyArn": "string",
"Roles": [ "string" ],
"Users": [ "string" ]
},
"ScpActionDefinition": {
"PolicyId": "string",
"TargetIds": [ "string" ]
},
"SsmActionDefinition": {
"ActionSubType": "string",
"InstanceIds": [ "string" ],
"Region": "string"
}
},
"ExecutionRoleArn": "string",
"NotificationType": "string",
"Status": "string",
"Subscribers": [
{
DescribeBudgetActionsForAccount 587
AWS Billing and Cost Management API Reference
"Address": "string",
"SubscriptionType": "string"
}
]
}
],
"NextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Actions
A generic string.
Type: String
Pattern: .*
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
You are not authorized to use this operation with the given parameters.
DescribeBudgetActionsForAccount 588
AWS Billing and Cost Management API Reference
InternalErrorException
An error on the server occurred during the processing of your request. Try again later.
An error on the client occurred. Typically, the cause is an invalid input value.
The number of API requests has exceeded the maximum allowed API request throttling limit for
the account.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
DescribeBudgetActionsForAccount 589
AWS Billing and Cost Management API Reference
DescribeBudgetActionsForBudget
Service: AWS Budgets
Request Syntax
{
"AccountId": "string",
"BudgetName": "string",
"MaxResults": number,
"NextToken": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
AccountId
Type: String
Pattern: \d{12}
Required: Yes
BudgetName
A string that represents the budget name. The ":" and "\" characters, and the "/action/"
substring, aren't allowed.
Type: String
Pattern: ^(?![^:\\]*/action/|(?i).*<script>.*</script>.*)[^:\\]+$
DescribeBudgetActionsForBudget 590
AWS Billing and Cost Management API Reference
Required: Yes
MaxResults
An integer that represents how many entries a paginated response contains. The maximum is
100.
Type: Integer
Required: No
NextToken
A generic string.
Type: String
Pattern: .*
Required: No
Response Syntax
{
"Actions": [
{
"ActionId": "string",
"ActionThreshold": {
"ActionThresholdType": "string",
"ActionThresholdValue": number
},
"ActionType": "string",
"ApprovalModel": "string",
"BudgetName": "string",
"Definition": {
"IamActionDefinition": {
"Groups": [ "string" ],
"PolicyArn": "string",
"Roles": [ "string" ],
"Users": [ "string" ]
DescribeBudgetActionsForBudget 591
AWS Billing and Cost Management API Reference
},
"ScpActionDefinition": {
"PolicyId": "string",
"TargetIds": [ "string" ]
},
"SsmActionDefinition": {
"ActionSubType": "string",
"InstanceIds": [ "string" ],
"Region": "string"
}
},
"ExecutionRoleArn": "string",
"NotificationType": "string",
"Status": "string",
"Subscribers": [
{
"Address": "string",
"SubscriptionType": "string"
}
]
}
],
"NextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Actions
A generic string.
Type: String
DescribeBudgetActionsForBudget 592
AWS Billing and Cost Management API Reference
Pattern: .*
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
You are not authorized to use this operation with the given parameters.
An error on the server occurred during the processing of your request. Try again later.
An error on the client occurred. Typically, the cause is an invalid input value.
The number of API requests has exceeded the maximum allowed API request throttling limit for
the account.
DescribeBudgetActionsForBudget 593
AWS Billing and Cost Management API Reference
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
DescribeBudgetActionsForBudget 594
AWS Billing and Cost Management API Reference
DescribeBudgetNotificationsForAccount
Service: AWS Budgets
Lists the budget names and notifications that are associated with an account.
Request Syntax
{
"AccountId": "string",
"MaxResults": number,
"NextToken": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
AccountId
Type: String
Pattern: \d{12}
Required: Yes
MaxResults
An integer that represents how many budgets a paginated response contains. The default is 50.
Type: Integer
Required: No
NextToken
A generic string.
DescribeBudgetNotificationsForAccount 595
AWS Billing and Cost Management API Reference
Type: String
Pattern: .*
Required: No
Response Syntax
{
"BudgetNotificationsForAccount": [
{
"BudgetName": "string",
"Notifications": [
{
"ComparisonOperator": "string",
"NotificationState": "string",
"NotificationType": "string",
"Threshold": number,
"ThresholdType": "string"
}
]
}
],
"NextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
BudgetNotificationsForAccount
DescribeBudgetNotificationsForAccount 596
AWS Billing and Cost Management API Reference
NextToken
A generic string.
Type: String
Pattern: .*
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
You are not authorized to use this operation with the given parameters.
An error on the server occurred during the processing of your request. Try again later.
An error on the client occurred. Typically, the cause is an invalid input value.
DescribeBudgetNotificationsForAccount 597
AWS Billing and Cost Management API Reference
The number of API requests has exceeded the maximum allowed API request throttling limit for
the account.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
DescribeBudgetNotificationsForAccount 598
AWS Billing and Cost Management API Reference
DescribeBudgetPerformanceHistory
Service: AWS Budgets
Describes the history for DAILY, MONTHLY, and QUARTERLY budgets. Budget history isn't available
for ANNUAL budgets.
Request Syntax
{
"AccountId": "string",
"BudgetName": "string",
"MaxResults": number,
"NextToken": "string",
"TimePeriod": {
"End": number,
"Start": number
}
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
AccountId
Type: String
Pattern: \d{12}
Required: Yes
BudgetName
A string that represents the budget name. The ":" and "\" characters, and the "/action/"
substring, aren't allowed.
DescribeBudgetPerformanceHistory 599
AWS Billing and Cost Management API Reference
Type: String
Pattern: ^(?![^:\\]*/action/|(?i).*<script>.*</script>.*)[^:\\]+$
Required: Yes
MaxResults
An integer that represents how many entries a paginated response contains. The maximum is
100.
Type: Integer
Required: No
NextToken
A generic string.
Type: String
Pattern: .*
Required: No
TimePeriod
Retrieves how often the budget went into an ALARM state for the specified time period.
Required: No
Response Syntax
{
"BudgetPerformanceHistory": {
DescribeBudgetPerformanceHistory 600
AWS Billing and Cost Management API Reference
"BudgetedAndActualAmountsList": [
{
"ActualAmount": {
"Amount": "string",
"Unit": "string"
},
"BudgetedAmount": {
"Amount": "string",
"Unit": "string"
},
"TimePeriod": {
"End": number,
"Start": number
}
}
],
"BudgetName": "string",
"BudgetType": "string",
"CostFilters": {
"string" : [ "string" ]
},
"CostTypes": {
"IncludeCredit": boolean,
"IncludeDiscount": boolean,
"IncludeOtherSubscription": boolean,
"IncludeRecurring": boolean,
"IncludeRefund": boolean,
"IncludeSubscription": boolean,
"IncludeSupport": boolean,
"IncludeTax": boolean,
"IncludeUpfront": boolean,
"UseAmortized": boolean,
"UseBlended": boolean
},
"TimeUnit": "string"
},
"NextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
DescribeBudgetPerformanceHistory 601
AWS Billing and Cost Management API Reference
BudgetPerformanceHistory
The history of how often the budget has gone into an ALARM state.
For DAILY budgets, the history saves the state of the budget for the last 60 days. For MONTHLY
budgets, the history saves the state of the budget for the current month plus the last 12
months. For QUARTERLY budgets, the history saves the state of the budget for the last four
quarters.
A generic string.
Type: String
Pattern: .*
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
You are not authorized to use this operation with the given parameters.
An error on the server occurred during the processing of your request. Try again later.
DescribeBudgetPerformanceHistory 602
AWS Billing and Cost Management API Reference
InvalidNextTokenException
An error on the client occurred. Typically, the cause is an invalid input value.
The number of API requests has exceeded the maximum allowed API request throttling limit for
the account.
Examples
Example
Sample Request
GET HTTP/1.1
Host: awsbudgets.<region>.<domain>
x-amz-Date: <Date>
Authorization: AWS4-HMAC-SHA256 Credential=<Credential>,
SignedHeaders=contenttype;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-
requestid,Signature=<Signature>
User-Agent: <UserAgentString>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Connection: Keep-Alive
X-Amz-Target: AWSBudgetServiceGateway.DescribeBudgetPerformanceHistory
{
"AccountId": "111122223333",
DescribeBudgetPerformanceHistory 603
AWS Billing and Cost Management API Reference
"Budget": "ExampleBudget"
}
Sample Response
{
"BudgetPerformanceHistory": {
"BudgetedAndActualAmountsList": [
{
"ActualAmount": {
"Amount": "50",
"Unit": "USD"
},
"BudgetedAmount": {
"Amount": "100",
"Unit": "USD"
},
"TimePeriod": {
"End": 1477958399,
"Start": 1477353600
}
}
],
"BudgetName": "ExampleBudget",
"BudgetType": "COST",
"CostFilters": {
"AZ" : [ "us-east-1" ]
},
"CostTypes": {
"IncludeCredit": true,
"IncludeDiscount": true,
"IncludeOtherSubscription": true,
"IncludeRecurring": true,
"IncludeRefund": true,
"IncludeSubscription": true,
"IncludeSupport": true,
"IncludeTax": true,
"IncludeUpfront": true,
"UseBlended": false
},
"TimeUnit": "MONTHLY"
}
}
DescribeBudgetPerformanceHistory 604
AWS Billing and Cost Management API Reference
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
DescribeBudgetPerformanceHistory 605
AWS Billing and Cost Management API Reference
DescribeBudgets
Service: AWS Budgets
Important
The Request Syntax section shows the BudgetLimit syntax. For PlannedBudgetLimits,
see the Examples section.
Request Syntax
{
"AccountId": "string",
"MaxResults": number,
"NextToken": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
AccountId
The accountId that is associated with the budgets that you want to describe.
Type: String
Pattern: \d{12}
Required: Yes
MaxResults
An integer that represents how many budgets a paginated response contains. The default is
100.
Type: Integer
DescribeBudgets 606
AWS Billing and Cost Management API Reference
Required: No
NextToken
The pagination token that you include in your request to indicate the next set of results that
you want to retrieve.
Type: String
Pattern: .*
Required: No
Response Syntax
{
"Budgets": [
{
"AutoAdjustData": {
"AutoAdjustType": "string",
"HistoricalOptions": {
"BudgetAdjustmentPeriod": number,
"LookBackAvailablePeriods": number
},
"LastAutoAdjustTime": number
},
"BudgetLimit": {
"Amount": "string",
"Unit": "string"
},
"BudgetName": "string",
"BudgetType": "string",
"CalculatedSpend": {
"ActualSpend": {
"Amount": "string",
"Unit": "string"
},
"ForecastedSpend": {
"Amount": "string",
"Unit": "string"
DescribeBudgets 607
AWS Billing and Cost Management API Reference
}
},
"CostFilters": {
"string" : [ "string" ]
},
"CostTypes": {
"IncludeCredit": boolean,
"IncludeDiscount": boolean,
"IncludeOtherSubscription": boolean,
"IncludeRecurring": boolean,
"IncludeRefund": boolean,
"IncludeSubscription": boolean,
"IncludeSupport": boolean,
"IncludeTax": boolean,
"IncludeUpfront": boolean,
"UseAmortized": boolean,
"UseBlended": boolean
},
"LastUpdatedTime": number,
"PlannedBudgetLimits": {
"string" : {
"Amount": "string",
"Unit": "string"
}
},
"TimePeriod": {
"End": number,
"Start": number
},
"TimeUnit": "string"
}
],
"NextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Budgets
A list of budgets.
DescribeBudgets 608
AWS Billing and Cost Management API Reference
The pagination token in the service response that indicates the next set of results that you can
retrieve.
Type: String
Pattern: .*
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
You are not authorized to use this operation with the given parameters.
An error on the server occurred during the processing of your request. Try again later.
An error on the client occurred. Typically, the cause is an invalid input value.
DescribeBudgets 609
AWS Billing and Cost Management API Reference
NotFoundException
The number of API requests has exceeded the maximum allowed API request throttling limit for
the account.
Examples
Example
{
"Budgets": [
{
"BudgetLimit": {
"Amount": "string",
"Unit": "string"
},
"PlannedBudgetLimits": {
“string": {
"Amount": "string",
"Unit": "string"
},
},
"BudgetName": "string",
"BudgetType": "string",
"CalculatedSpend": {
"ActualSpend": {
"Amount": "string",
"Unit": "string"
},
"ForecastedSpend": {
"Amount": "string",
"Unit": "string"
}
DescribeBudgets 610
AWS Billing and Cost Management API Reference
},
"CostFilters": {
"string" : [ "string" ]
},
"CostTypes": {
"IncludeCredit": boolean,
"IncludeDiscount": boolean,
"IncludeOtherSubscription": boolean,
"IncludeRecurring": boolean,
"IncludeRefund": boolean,
"IncludeSubscription": boolean,
"IncludeSupport": boolean,
"IncludeTax": boolean,
"IncludeUpfront": boolean,
"UseAmortized": boolean,
"UseBlended": boolean
},
"LastUpdatedTime": number,
"TimePeriod": {
"End": number,
"Start": number
},
"TimeUnit": "string"
}
],
"NextToken": "string"
}
Example
Sample Request
POST / HTTP/1.1
Host: awsbudgets.<region>.<domain>
x-amz-Date: <Date>
Authorization: AWS4-HMAC-SHA256 Credential=<Credential>,
SignedHeaders=contenttype;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-
requestid,Signature=<Signature>
User-Agent: <UserAgentString>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Connection: Keep-Alive
DescribeBudgets 611
AWS Billing and Cost Management API Reference
X-Amz-Target: AWSBudgetServiceGateway.DescribeBudgets
{
"AccountId": "111122223333",
"MaxResults": 20
}
Sample Response
{
"Budgets": [
{
"BudgetLimit": {
"Amount": "100",
"Unit": "USD"
},
"BudgetName": "Example Limit Fixed Budget ",
"BudgetType": "COST",
"CalculatedSpend": {
"ActualSpend": {
"Amount": "50",
"Unit": "USD"
},
"ForecastedSpend": {
"Amount": "100",
"Unit": "USD"
}
},
"CostFilters": {
"AZ" : [ "us-east-1" ]
},
"CostTypes": {
"IncludeCredit": true,
"IncludeDiscount": true,
"IncludeOtherSubscription": true,
"IncludeRecurring": true,
"IncludeRefund": true,
"IncludeSubscription": true,
"IncludeSupport": true,
"IncludeTax": true,
"IncludeUpfront": true,
"UseBlended": false
},
"TimePeriod": {
DescribeBudgets 612
AWS Billing and Cost Management API Reference
"Start": 1477353600,
"End": 1477958399
},
"TimeUnit": "MONTHLY"
},
{
"BudgetLimit": {
"Amount": "100",
"Unit": "USD"
},
"PlannedBudgetLimits":{
"1583020800": {
"Amount": "100",
"Unit": "USD"
},
"1564617600": {
"Amount": "200",
"Unit": "USD"
},
"1569888000": {
"Amount": "300",
"Unit": "USD"
},
"1556668800": {
"Amount": "400",
"Unit": "USD"
},
"1575158400": {
"Amount": "500",
"Unit": "USD"
},
"1580515200": {
"Amount": "200",
"Unit": "USD"
},
"1567296000": {
"Amount": "300",
"Unit": "USD"
},
"1554076800": {
"Amount": "100",
"Unit": "USD"
},
"1577836800": {
DescribeBudgets 613
AWS Billing and Cost Management API Reference
"Amount": "200",
"Unit": "USD"
},
"1561939200": {
"Amount": "100",
"Unit": "USD"
},
"1572566400": {
"Amount": "110",
"Unit": "USD"
},
"1559347200": {
"Amount": "120",
"Unit": "USD"
}
},
"BudgetName": "Example Planned Limits Budget",
"BudgetType": "COST",
"CalculatedSpend": {
"ActualSpend": {
"Amount": "50",
"Unit": "USD"
},
"ForecastedSpend": {
"Amount": "100",
"Unit": "USD"
}
},
"CostFilters": {
"AZ" : [ "us-east-1" ]
},
"CostTypes": {
"IncludeCredit": true,
"IncludeDiscount": true,
"IncludeOtherSubscription": true,
"IncludeRecurring": true,
"IncludeRefund": true,
"IncludeSubscription": true,
"IncludeSupport": true,
"IncludeTax": true,
"IncludeUpfront": true,
"UseBlended": false
},
"TimePeriod": {
DescribeBudgets 614
AWS Billing and Cost Management API Reference
"Start": 1477353600,
"End": 1477958399
},
"TimeUnit": "MONTHLY"
}
],
"NextToken": "exampleTokenString"
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
DescribeBudgets 615
AWS Billing and Cost Management API Reference
DescribeNotificationsForBudget
Service: AWS Budgets
Request Syntax
{
"AccountId": "string",
"BudgetName": "string",
"MaxResults": number,
"NextToken": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
AccountId
The accountId that is associated with the budget whose notifications you want descriptions
of.
Type: String
Pattern: \d{12}
Required: Yes
BudgetName
The name of the budget whose notifications you want descriptions of.
Type: String
Pattern: ^(?![^:\\]*/action/|(?i).*<script>.*</script>.*)[^:\\]+$
DescribeNotificationsForBudget 616
AWS Billing and Cost Management API Reference
Required: Yes
MaxResults
An optional integer that represents how many entries a paginated response contains.
Type: Integer
Required: No
NextToken
The pagination token that you include in your request to indicate the next set of results that
you want to retrieve.
Type: String
Pattern: .*
Required: No
Response Syntax
{
"NextToken": "string",
"Notifications": [
{
"ComparisonOperator": "string",
"NotificationState": "string",
"NotificationType": "string",
"Threshold": number,
"ThresholdType": "string"
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
DescribeNotificationsForBudget 617
AWS Billing and Cost Management API Reference
NextToken
The pagination token in the service response that indicates the next set of results that you can
retrieve.
Type: String
Pattern: .*
Notifications
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
You are not authorized to use this operation with the given parameters.
An error on the server occurred during the processing of your request. Try again later.
DescribeNotificationsForBudget 618
AWS Billing and Cost Management API Reference
InvalidParameterException
An error on the client occurred. Typically, the cause is an invalid input value.
The number of API requests has exceeded the maximum allowed API request throttling limit for
the account.
Examples
Example
Sample Request
POST / HTTP/1.1
Host: awsbudgets.<region>.<domain>
x-amz-Date: <Date>
Authorization: AWS4-HMAC-SHA256 Credential=<Credential>,
SignedHeaders=contenttype;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-
requestid,Signature=<Signature>
User-Agent: <UserAgentString>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Connection: Keep-Alive
X-Amz-Target: AWSBudgetServiceGateway.DescribeNotificationsForBudget
{
"AccountId": "111122223333",
"BudgetName": "Example Budget",
"MaxResults": 5
DescribeNotificationsForBudget 619
AWS Billing and Cost Management API Reference
Sample Response
{
"NextToken": "exampleTokenString",
"Notifications": [
{
"ComparisonOperator": "GREATER_THAN",
"NotificationType": "ACTUAL",
"Threshold": 80,
"ThresholdType": "PERCENTAGE"
}
]
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
DescribeNotificationsForBudget 620
AWS Billing and Cost Management API Reference
DescribeSubscribersForNotification
Service: AWS Budgets
Request Syntax
{
"AccountId": "string",
"BudgetName": "string",
"MaxResults": number,
"NextToken": "string",
"Notification": {
"ComparisonOperator": "string",
"NotificationState": "string",
"NotificationType": "string",
"Threshold": number,
"ThresholdType": "string"
}
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
AccountId
The accountId that is associated with the budget whose subscribers you want descriptions of.
Type: String
Pattern: \d{12}
Required: Yes
BudgetName
The name of the budget whose subscribers you want descriptions of.
DescribeSubscribersForNotification 621
AWS Billing and Cost Management API Reference
Type: String
Pattern: ^(?![^:\\]*/action/|(?i).*<script>.*</script>.*)[^:\\]+$
Required: Yes
MaxResults
An optional integer that represents how many entries a paginated response contains.
Type: Integer
Required: No
NextToken
The pagination token that you include in your request to indicate the next set of results that
you want to retrieve.
Type: String
Pattern: .*
Required: No
Notification
Required: Yes
Response Syntax
{
"NextToken": "string",
"Subscribers": [
{
DescribeSubscribersForNotification 622
AWS Billing and Cost Management API Reference
"Address": "string",
"SubscriptionType": "string"
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
NextToken
The pagination token in the service response that indicates the next set of results that you can
retrieve.
Type: String
Pattern: .*
Subscribers
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
You are not authorized to use this operation with the given parameters.
DescribeSubscribersForNotification 623
AWS Billing and Cost Management API Reference
An error on the server occurred during the processing of your request. Try again later.
An error on the client occurred. Typically, the cause is an invalid input value.
The number of API requests has exceeded the maximum allowed API request throttling limit for
the account.
Examples
Example
Sample Request
POST / HTTP/1.1
Host: awsbudgets.<region>.<domain>
x-amz-Date: <Date>
DescribeSubscribersForNotification 624
AWS Billing and Cost Management API Reference
Sample Response
{
"NextToken": "string",
"Subscribers": [
{
"Address": "[email protected]",
"SubscriptionType": "EMAIL"
}
]
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
DescribeSubscribersForNotification 625
AWS Billing and Cost Management API Reference
DescribeSubscribersForNotification 626
AWS Billing and Cost Management API Reference
ExecuteBudgetAction
Service: AWS Budgets
Request Syntax
{
"AccountId": "string",
"ActionId": "string",
"BudgetName": "string",
"ExecutionType": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
AccountId
Type: String
Pattern: \d{12}
Required: Yes
ActionId
Type: String
Pattern: ^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-
fA-F0-9]{12}$
Required: Yes
ExecuteBudgetAction 627
AWS Billing and Cost Management API Reference
BudgetName
A string that represents the budget name. The ":" and "\" characters, and the "/action/"
substring, aren't allowed.
Type: String
Pattern: ^(?![^:\\]*/action/|(?i).*<script>.*</script>.*)[^:\\]+$
Required: Yes
ExecutionType
Type: String
Required: Yes
Response Syntax
{
"AccountId": "string",
"ActionId": "string",
"BudgetName": "string",
"ExecutionType": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
AccountId
ExecuteBudgetAction 628
AWS Billing and Cost Management API Reference
Type: String
Pattern: \d{12}
ActionId
Type: String
Pattern: ^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-
fA-F0-9]{12}$
BudgetName
A string that represents the budget name. The ":" and "\" characters, and the "/action/"
substring, aren't allowed.
Type: String
Pattern: ^(?![^:\\]*/action/|(?i).*<script>.*</script>.*)[^:\\]+$
ExecutionType
Type: String
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
You are not authorized to use this operation with the given parameters.
ExecuteBudgetAction 629
AWS Billing and Cost Management API Reference
An error on the server occurred during the processing of your request. Try again later.
An error on the client occurred. Typically, the cause is an invalid input value.
The request was received and recognized by the server, but the server rejected that particular
method for the requested resource.
The number of API requests has exceeded the maximum allowed API request throttling limit for
the account.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ExecuteBudgetAction 630
AWS Billing and Cost Management API Reference
ExecuteBudgetAction 631
AWS Billing and Cost Management API Reference
ListTagsForResource
Service: AWS Budgets
Request Syntax
{
"ResourceARN": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
ResourceARN
Type: String
Required: Yes
Response Syntax
{
"ResourceTags": [
{
"Key": "string",
"Value": "string"
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
ListTagsForResource 632
AWS Billing and Cost Management API Reference
ResourceTags
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
You are not authorized to use this operation with the given parameters.
An error on the server occurred during the processing of your request. Try again later.
An error on the client occurred. Typically, the cause is an invalid input value.
The number of API requests has exceeded the maximum allowed API request throttling limit for
the account.
ListTagsForResource 633
AWS Billing and Cost Management API Reference
Examples
Example
Sample Request
POST / HTTP/1.1
Host: awsbudgets.<region>.<domain>
x-amz-Date: <Date>
Authorization: AWS4-HMAC-SHA256 Credential=<Credential>,
SignedHeaders=contenttype;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-
requestid,Signature=<Signature>
User-Agent: <UserAgentString>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Connection: Keep-Alive
X-Amz-Target: AWSBudgetServiceGateway.ListTagsForResource
{
"ResourceARN": "arn:aws:budgets::111122223333:budget/taggedBudgetName"
}
Example
Sample Response
{
"ResourceTags": [
{
"Key": "tagKey1",
"Value": "value1"
},
{
"Key": "tagKey2",
"Value": "value1"
}
]
}
ListTagsForResource 634
AWS Billing and Cost Management API Reference
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ListTagsForResource 635
AWS Billing and Cost Management API Reference
TagResource
Service: AWS Budgets
Request Syntax
{
"ResourceARN": "string",
"ResourceTags": [
{
"Key": "string",
"Value": "string"
}
]
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
ResourceARN
Type: String
Required: Yes
ResourceTags
Required: Yes
TagResource 636
AWS Billing and Cost Management API Reference
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
You are not authorized to use this operation with the given parameters.
An error on the server occurred during the processing of your request. Try again later.
An error on the client occurred. Typically, the cause is an invalid input value.
You've reached the limit on the number of tags you can associate with a resource.
The number of API requests has exceeded the maximum allowed API request throttling limit for
the account.
TagResource 637
AWS Billing and Cost Management API Reference
Examples
Example
Sample Request
POST / HTTP/1.1
Host: awsbudgets.<region>.<domain>
x-amz-Date: <Date>
Authorization: AWS4-HMAC-SHA256 Credential=<Credential>,
SignedHeaders=contenttype;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-
requestid,Signature=<Signature>
User-Agent: <UserAgentString>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Connection: Keep-Alive
X-Amz-Target: AWSBudgetServiceGateway.TagResource
{
"ResourceARN": "arn:aws:budgets::111122223333:budget/taggedBudgetName",
"ResourceTags": [
{
"Key": "tagKey1",
"Value": "value1"
},
{
"Key": "tagKey2",
"Value": "value1"
}
]
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
TagResource 638
AWS Billing and Cost Management API Reference
TagResource 639
AWS Billing and Cost Management API Reference
UntagResource
Service: AWS Budgets
Request Syntax
{
"ResourceARN": "string",
"ResourceTagKeys": [ "string" ]
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
ResourceARN
Type: String
Required: Yes
ResourceTagKeys
Required: Yes
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
UntagResource 640
AWS Billing and Cost Management API Reference
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
You are not authorized to use this operation with the given parameters.
An error on the server occurred during the processing of your request. Try again later.
An error on the client occurred. Typically, the cause is an invalid input value.
The number of API requests has exceeded the maximum allowed API request throttling limit for
the account.
Examples
Example
Sample Request
POST / HTTP/1.1
Host: awsbudgets.<region>.<domain>
UntagResource 641
AWS Billing and Cost Management API Reference
x-amz-Date: <Date>
Authorization: AWS4-HMAC-SHA256 Credential=<Credential>,
SignedHeaders=contenttype;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-
requestid,Signature=<Signature>
User-Agent: <UserAgentString>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Connection: Keep-Alive
X-Amz-Target: AWSBudgetServiceGateway.UntagResource
{
"ResourceARN": "arn:aws:budgets::111122223333:budget/taggedBudgetName",
"ResourceTagKeys": [ "tagKey1" ]
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
UntagResource 642
AWS Billing and Cost Management API Reference
UpdateBudget
Service: AWS Budgets
Updates a budget. You can change every part of a budget except for the budgetName and the
calculatedSpend. When you modify a budget, the calculatedSpend drops to zero until AWS
has new usage data to use for forecasting.
Important
Only one of BudgetLimit or PlannedBudgetLimits can be present in the syntax at
one time. Use the syntax that matches your case. The Request Syntax section shows the
BudgetLimit syntax. For PlannedBudgetLimits, see the Examples section.
Request Syntax
{
"AccountId": "string",
"NewBudget": {
"AutoAdjustData": {
"AutoAdjustType": "string",
"HistoricalOptions": {
"BudgetAdjustmentPeriod": number,
"LookBackAvailablePeriods": number
},
"LastAutoAdjustTime": number
},
"BudgetLimit": {
"Amount": "string",
"Unit": "string"
},
"BudgetName": "string",
"BudgetType": "string",
"CalculatedSpend": {
"ActualSpend": {
"Amount": "string",
"Unit": "string"
},
"ForecastedSpend": {
"Amount": "string",
"Unit": "string"
UpdateBudget 643
AWS Billing and Cost Management API Reference
}
},
"CostFilters": {
"string" : [ "string" ]
},
"CostTypes": {
"IncludeCredit": boolean,
"IncludeDiscount": boolean,
"IncludeOtherSubscription": boolean,
"IncludeRecurring": boolean,
"IncludeRefund": boolean,
"IncludeSubscription": boolean,
"IncludeSupport": boolean,
"IncludeTax": boolean,
"IncludeUpfront": boolean,
"UseAmortized": boolean,
"UseBlended": boolean
},
"LastUpdatedTime": number,
"PlannedBudgetLimits": {
"string" : {
"Amount": "string",
"Unit": "string"
}
},
"TimePeriod": {
"End": number,
"Start": number
},
"TimeUnit": "string"
}
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
AccountId
The accountId that is associated with the budget that you want to update.
Type: String
UpdateBudget 644
AWS Billing and Cost Management API Reference
Pattern: \d{12}
Required: Yes
NewBudget
Required: Yes
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
You are not authorized to use this operation with the given parameters.
An error on the server occurred during the processing of your request. Try again later.
An error on the client occurred. Typically, the cause is an invalid input value.
UpdateBudget 645
AWS Billing and Cost Management API Reference
ThrottlingException
The number of API requests has exceeded the maximum allowed API request throttling limit for
the account.
Examples
Example
{
"AccountId": "string",
"NewBudget": {
"PlannedBudgetLimits": {
“string": {
"Amount": "string",
"Unit": "string"
},
},
"BudgetName": "string",
"BudgetType": "string",
"CalculatedSpend": {
"ActualSpend": {
"Amount": "string",
"Unit": "string"
},
"ForecastedSpend": {
"Amount": "string",
"Unit": "string"
}
},
"CostFilters": {
"string" : [ "string" ]
},
"CostTypes": {
"IncludeCredit": boolean,
"IncludeDiscount": boolean,
"IncludeOtherSubscription": boolean,
"IncludeRecurring": boolean,
"IncludeRefund": boolean,
UpdateBudget 646
AWS Billing and Cost Management API Reference
"IncludeSubscription": boolean,
"IncludeSupport": boolean,
"IncludeTax": boolean,
"IncludeUpfront": boolean,
"UseAmortized": boolean,
"UseBlended": boolean
},
"LastUpdatedTime": number,
"TimePeriod": {
"End": number,
"Start": number
},
"TimeUnit": "string"
}
}
Example
The following is a sample request and response of the UpdateBudget operation using
BudgetLimit.
Sample Request
POST / HTTP/1.1
Host: awsbudgets.<region>.<domain>
x-amz-Date: <Date>
Authorization: AWS4-HMAC-SHA256 Credential=<Credential>,
SignedHeaders=contenttype;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-
requestid,Signature=<Signature>
User-Agent: <UserAgentString>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Connection: Keep-Alive
X-Amz-Target: AWSBudgetServiceGateway.UpdateBudget
{
"AccountId": "111122223333",
"NewBudget": {
"BudgetLimit": {
"Amount": "100",
"Unit": "USD"
},
"BudgetName": "Example Budget",
"BudgetType": "COST",
UpdateBudget 647
AWS Billing and Cost Management API Reference
"CostFilters": {
"AZ" : [ "us-east-1" ]
},
"CostTypes": {
"IncludeCredit": true,
"IncludeDiscount": true,
"IncludeOtherSubscription": true,
"IncludeRecurring": true,
"IncludeRefund": true,
"IncludeSubscription": true,
"IncludeSupport": true,
"IncludeTax": true,
"IncludeUpfront": true,
"UseBlended": false
},
"TimePeriod": {
"Start": 1477353600,
"End": 1477958399
},
"TimeUnit": "MONTHLY"
}
}
Example
The following is a sample request and response of the UpdateBudget operation using
PlannedBudgetLimits.
Sample Request
POST / HTTP/1.1
Host: awsbudgets.<region>.<domain>
x-amz-Date: <Date>
Authorization: AWS4-HMAC-SHA256 Credential=<Credential>,
SignedHeaders=contenttype;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-
requestid,Signature=<Signature>
User-Agent: <UserAgentString>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Connection: Keep-Alive
X-Amz-Target: AWSBudgetServiceGateway.UpdateBudget
{
"AccountId": "111122223333",
UpdateBudget 648
AWS Billing and Cost Management API Reference
"NewBudget": {
"PlannedBudgetLimits":{
"1583020800": {
"Amount": "100",
"Unit": "USD"
},
"1564617600": {
"Amount": "200",
"Unit": "USD"
},
"1569888000": {
"Amount": "300",
"Unit": "USD"
},
"1556668800": {
"Amount": "400",
"Unit": "USD"
},
"1575158400": {
"Amount": "500",
"Unit": "USD"
},
"1580515200": {
"Amount": "200",
"Unit": "USD"
},
"1567296000": {
"Amount": "300",
"Unit": "USD"
},
"1554076800": {
"Amount": "100",
"Unit": "USD"
},
"1577836800": {
"Amount": "200",
"Unit": "USD"
},
"1561939200": {
"Amount": "100",
"Unit": "USD"
},
"1572566400": {
"Amount": "110",
UpdateBudget 649
AWS Billing and Cost Management API Reference
"Unit": "USD"
},
"1559347200": {
"Amount": "120",
"Unit": "USD"
}
},
"BudgetName": "Example Budget",
"BudgetType": "COST",
"CostFilters": {
"AZ" : [ "us-east-1" ]
},
"CostTypes": {
"IncludeCredit": true,
"IncludeDiscount": true,
"IncludeOtherSubscription": true,
"IncludeRecurring": true,
"IncludeRefund": true,
"IncludeSubscription": true,
"IncludeSupport": true,
"IncludeTax": true,
"IncludeUpfront": true,
"UseBlended": false
},
"TimePeriod": {
"Start": 1477353600,
"End": 1477958399
},
"TimeUnit": "MONTHLY"
}
}
Sample Response
{
"AccountId": "111122223333",
"NewBudget": {
"BudgetLimit": {
"Amount": "200",
"Unit": "USD"
},
"BudgetName": "Example Budget",
"BudgetType": "COST",
UpdateBudget 650
AWS Billing and Cost Management API Reference
"CalculatedSpend": {
"ActualSpend": {
"Amount": "0",
"Unit": "USD"
},
"ForecastedSpend": {
"Amount": "0",
"Unit": "USD"
}
},
"CostFilters": {
"AZ" : [ "ap-south-1" ]
},
"CostTypes": {
"IncludeCredit": true,
"IncludeDiscount": false,
"IncludeOtherSubscription": true,
"IncludeRecurring": true,
"IncludeRefund": true,
"IncludeSubscription": true,
"IncludeSupport": true,
"IncludeTax": true,
"IncludeUpfront": true,
"UseBlended": false
},
"TimePeriod": {
"Start": 1477353600,
"End": 1477958399
},
"TimeUnit": "MONTHLY"
}
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
UpdateBudget 651
AWS Billing and Cost Management API Reference
UpdateBudget 652
AWS Billing and Cost Management API Reference
UpdateBudgetAction
Service: AWS Budgets
Request Syntax
{
"AccountId": "string",
"ActionId": "string",
"ActionThreshold": {
"ActionThresholdType": "string",
"ActionThresholdValue": number
},
"ApprovalModel": "string",
"BudgetName": "string",
"Definition": {
"IamActionDefinition": {
"Groups": [ "string" ],
"PolicyArn": "string",
"Roles": [ "string" ],
"Users": [ "string" ]
},
"ScpActionDefinition": {
"PolicyId": "string",
"TargetIds": [ "string" ]
},
"SsmActionDefinition": {
"ActionSubType": "string",
"InstanceIds": [ "string" ],
"Region": "string"
}
},
"ExecutionRoleArn": "string",
"NotificationType": "string",
"Subscribers": [
{
"Address": "string",
"SubscriptionType": "string"
}
]
}
UpdateBudgetAction 653
AWS Billing and Cost Management API Reference
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
AccountId
Type: String
Pattern: \d{12}
Required: Yes
ActionId
Type: String
Pattern: ^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-
fA-F0-9]{12}$
Required: Yes
ActionThreshold
Required: No
ApprovalModel
Type: String
Required: No
UpdateBudgetAction 654
AWS Billing and Cost Management API Reference
BudgetName
A string that represents the budget name. The ":" and "\" characters, and the "/action/"
substring, aren't allowed.
Type: String
Pattern: ^(?![^:\\]*/action/|(?i).*<script>.*</script>.*)[^:\\]+$
Required: Yes
Definition
Required: No
ExecutionRoleArn
The role passed for action execution and reversion. Roles and actions must be in the same
account.
Type: String
Pattern: ^arn:(aws|aws-cn|aws-us-gov|us-iso-east-1|us-isob-east-1):iam::
\d{12}:role(\u002F[\u0021-\u007F]+\u002F|\u002F)[\w+=,.@-]+$
Required: No
NotificationType
Type: String
Required: No
Subscribers
A list of subscribers.
UpdateBudgetAction 655
AWS Billing and Cost Management API Reference
Required: No
Response Syntax
{
"AccountId": "string",
"BudgetName": "string",
"NewAction": {
"ActionId": "string",
"ActionThreshold": {
"ActionThresholdType": "string",
"ActionThresholdValue": number
},
"ActionType": "string",
"ApprovalModel": "string",
"BudgetName": "string",
"Definition": {
"IamActionDefinition": {
"Groups": [ "string" ],
"PolicyArn": "string",
"Roles": [ "string" ],
"Users": [ "string" ]
},
"ScpActionDefinition": {
"PolicyId": "string",
"TargetIds": [ "string" ]
},
"SsmActionDefinition": {
"ActionSubType": "string",
"InstanceIds": [ "string" ],
"Region": "string"
}
},
"ExecutionRoleArn": "string",
"NotificationType": "string",
"Status": "string",
"Subscribers": [
{
"Address": "string",
UpdateBudgetAction 656
AWS Billing and Cost Management API Reference
"SubscriptionType": "string"
}
]
},
"OldAction": {
"ActionId": "string",
"ActionThreshold": {
"ActionThresholdType": "string",
"ActionThresholdValue": number
},
"ActionType": "string",
"ApprovalModel": "string",
"BudgetName": "string",
"Definition": {
"IamActionDefinition": {
"Groups": [ "string" ],
"PolicyArn": "string",
"Roles": [ "string" ],
"Users": [ "string" ]
},
"ScpActionDefinition": {
"PolicyId": "string",
"TargetIds": [ "string" ]
},
"SsmActionDefinition": {
"ActionSubType": "string",
"InstanceIds": [ "string" ],
"Region": "string"
}
},
"ExecutionRoleArn": "string",
"NotificationType": "string",
"Status": "string",
"Subscribers": [
{
"Address": "string",
"SubscriptionType": "string"
}
]
}
}
UpdateBudgetAction 657
AWS Billing and Cost Management API Reference
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
AccountId
Type: String
Pattern: \d{12}
BudgetName
A string that represents the budget name. The ":" and "\" characters, and the "/action/"
substring, aren't allowed.
Type: String
Pattern: ^(?![^:\\]*/action/|(?i).*<script>.*</script>.*)[^:\\]+$
NewAction
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
You are not authorized to use this operation with the given parameters.
UpdateBudgetAction 658
AWS Billing and Cost Management API Reference
An error on the server occurred during the processing of your request. Try again later.
An error on the client occurred. Typically, the cause is an invalid input value.
The request was received and recognized by the server, but the server rejected that particular
method for the requested resource.
The number of API requests has exceeded the maximum allowed API request throttling limit for
the account.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
UpdateBudgetAction 659
AWS Billing and Cost Management API Reference
UpdateBudgetAction 660
AWS Billing and Cost Management API Reference
UpdateNotification
Service: AWS Budgets
Updates a notification.
Request Syntax
{
"AccountId": "string",
"BudgetName": "string",
"NewNotification": {
"ComparisonOperator": "string",
"NotificationState": "string",
"NotificationType": "string",
"Threshold": number,
"ThresholdType": "string"
},
"OldNotification": {
"ComparisonOperator": "string",
"NotificationState": "string",
"NotificationType": "string",
"Threshold": number,
"ThresholdType": "string"
}
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
AccountId
The accountId that is associated with the budget whose notification you want to update.
Type: String
Pattern: \d{12}
Required: Yes
UpdateNotification 661
AWS Billing and Cost Management API Reference
BudgetName
Type: String
Pattern: ^(?![^:\\]*/action/|(?i).*<script>.*</script>.*)[^:\\]+$
Required: Yes
NewNotification
Required: Yes
OldNotification
Required: Yes
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
You are not authorized to use this operation with the given parameters.
The budget name already exists. Budget names must be unique within an account.
UpdateNotification 662
AWS Billing and Cost Management API Reference
An error on the server occurred during the processing of your request. Try again later.
An error on the client occurred. Typically, the cause is an invalid input value.
The number of API requests has exceeded the maximum allowed API request throttling limit for
the account.
Examples
Example
Sample Request
POST / HTTP/1.1
Host: awsbudgets.<region>.<domain>
x-amz-Date: <Date>
Authorization: AWS4-HMAC-SHA256 Credential=<Credential>,
SignedHeaders=contenttype;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-
requestid,Signature=<Signature>
User-Agent: <UserAgentString>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Connection: Keep-Alive
UpdateNotification 663
AWS Billing and Cost Management API Reference
X-Amz-Target: AWSBudgetServiceGateway.UpdateNotification
{
"AccountId": "111122223333",
"BudgetName": "Example Budget",
"NewNotification": {
"ComparisonOperator": "GREATER_THAN",
"NotificationType": "ACTUAL",
"Threshold": 80,
"ThresholdType": "PERCENTAGE"
}
},
"OldNotification": {
"ComparisonOperator": "GREATER_THAN",
"NotificationType": "ACTUAL",
"Threshold": 80,
"ThresholdType": "PERCENTAGE"
}
}
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
UpdateNotification 664
AWS Billing and Cost Management API Reference
UpdateSubscriber
Service: AWS Budgets
Updates a subscriber.
Request Syntax
{
"AccountId": "string",
"BudgetName": "string",
"NewSubscriber": {
"Address": "string",
"SubscriptionType": "string"
},
"Notification": {
"ComparisonOperator": "string",
"NotificationState": "string",
"NotificationType": "string",
"Threshold": number,
"ThresholdType": "string"
},
"OldSubscriber": {
"Address": "string",
"SubscriptionType": "string"
}
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
AccountId
The accountId that is associated with the budget whose subscriber you want to update.
Type: String
Pattern: \d{12}
UpdateSubscriber 665
AWS Billing and Cost Management API Reference
Required: Yes
BudgetName
Type: String
Pattern: ^(?![^:\\]*/action/|(?i).*<script>.*</script>.*)[^:\\]+$
Required: Yes
NewSubscriber
Required: Yes
Notification
Required: Yes
OldSubscriber
Required: Yes
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors.
UpdateSubscriber 666
AWS Billing and Cost Management API Reference
AccessDeniedException
You are not authorized to use this operation with the given parameters.
The budget name already exists. Budget names must be unique within an account.
An error on the server occurred during the processing of your request. Try again later.
An error on the client occurred. Typically, the cause is an invalid input value.
The number of API requests has exceeded the maximum allowed API request throttling limit for
the account.
Examples
Example
Sample Request
POST / HTTP/1.1
Host: awsbudgets.<region>.<domain>
UpdateSubscriber 667
AWS Billing and Cost Management API Reference
x-amz-Date: <Date>
Authorization: AWS4-HMAC-SHA256 Credential=<Credential>,
SignedHeaders=contenttype;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-
requestid,Signature=<Signature>
User-Agent: <UserAgentString>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Connection: Keep-Alive
X-Amz-Target: AWSBudgetServiceGateway.UpdateSubscriber
{
"AccountId": "111122223333",
"BudgetName": "Example Budget",
"Notification": {
"ComparisonOperator": "GREATER_THAN",
"NotificationType": "ACTUAL",
"Threshold": 80,
"ThresholdType": "PERCENTAGE"
},
"OldSubscriber": {
"Address": "[email protected]",
"SubscriptionType": "EMAIL"
},
"NewSubscriber": {
"Address": "[email protected]",
"SubscriptionType": "EMAIL"
}
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
UpdateSubscriber 668
AWS Billing and Cost Management API Reference
• GetPreferences
• GetRecommendation
• ListEnrollmentStatuses
• ListRecommendations
• ListRecommendationSummaries
• UpdateEnrollmentStatus
• UpdatePreferences
GetPreferences
Service: AWS Cost Optimization Hub
Returns a set of preferences for an account in order to add account-specific preferences into the
service. These preferences impact how the savings associated with recommendations are presented
—estimated savings after discounts or estimated savings before discounts, for example.
Response Syntax
{
"memberAccountDiscountVisibility": "string",
"savingsEstimationMode": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
memberAccountDiscountVisibility
Type: String
Type: String
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
You are not authorized to use this operation with the given parameters.
GetPreferences 670
AWS Billing and Cost Management API Reference
An error on the server occurred during the processing of your request. Try again later.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
GetPreferences 671
AWS Billing and Cost Management API Reference
GetRecommendation
Service: AWS Cost Optimization Hub
Returns both the current and recommended resource configuration and the estimated cost impact
for a recommendation.
Request Syntax
{
"recommendationId": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
recommendationId
Type: String
Required: Yes
Response Syntax
{
"accountId": "string",
"actionType": "string",
"costCalculationLookbackPeriodInDays": number,
"currencyCode": "string",
"currentResourceDetails": { ... },
"currentResourceType": "string",
"estimatedMonthlyCost": number,
"estimatedMonthlySavings": number,
"estimatedSavingsOverCostCalculationLookbackPeriod": number,
GetRecommendation 672
AWS Billing and Cost Management API Reference
"estimatedSavingsPercentage": number,
"implementationEffort": "string",
"lastRefreshTimestamp": number,
"recommendationId": "string",
"recommendationLookbackPeriodInDays": number,
"recommendedResourceDetails": { ... },
"recommendedResourceType": "string",
"region": "string",
"resourceArn": "string",
"resourceId": "string",
"restartNeeded": boolean,
"rollbackPossible": boolean,
"source": "string",
"tags": [
{
"key": "string",
"value": "string"
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
accountId
Type: String
actionType
Type: String
GetRecommendation 673
AWS Billing and Cost Management API Reference
Type: Integer
currencyCode
Type: String
currentResourceDetails
Note: This object is a Union. Only one member of this object can be specified or returned.
currentResourceType
Type: String
The estimated monthly cost of the current resource. For Reserved Instances and Savings Plans,
it refers to the cost for eligible usage.
Type: Double
estimatedMonthlySavings
Type: Double
estimatedSavingsOverCostCalculationLookbackPeriod
The estimated savings amount over the lookback period used to calculate cost impact for a
recommendation.
Type: Double
GetRecommendation 674
AWS Billing and Cost Management API Reference
estimatedSavingsPercentage
The estimated savings percentage relative to the total cost over the cost calculation lookback
period.
Type: Double
implementationEffort
Type: String
Type: Timestamp
recommendationId
Type: String
recommendationLookbackPeriodInDays
Type: Integer
recommendedResourceDetails
Note: This object is a Union. Only one member of this object can be specified or returned.
recommendedResourceType
Type: String
GetRecommendation 675
AWS Billing and Cost Management API Reference
Type: String
resourceArn
Type: String
resourceId
The unique identifier for the resource. This is the same as the Amazon Resource Name (ARN), if
available.
Type: String
restartNeeded
Type: Boolean
rollbackPossible
Type: Boolean
source
Type: String
A list of tags associated with the resource for which the recommendation exists.
GetRecommendation 676
AWS Billing and Cost Management API Reference
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
You are not authorized to use this operation with the given parameters.
An error on the server occurred during the processing of your request. Try again later.
The specified Amazon Resource Name (ARN) in the request doesn't exist.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
GetRecommendation 677
AWS Billing and Cost Management API Reference
GetRecommendation 678
AWS Billing and Cost Management API Reference
ListEnrollmentStatuses
Service: AWS Cost Optimization Hub
Retrieves the enrollment status for an account. It can also return the list of accounts that are
enrolled under the organization.
Request Syntax
{
"accountId": "string",
"includeOrganizationInfo": boolean,
"maxResults": number,
"nextToken": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
accountId
Type: String
Pattern: [0-9]{12}
Required: No
includeOrganizationInfo
Type: Boolean
Required: No
maxResults
The maximum number of objects that are returned for the request.
Type: Integer
ListEnrollmentStatuses 679
AWS Billing and Cost Management API Reference
Required: No
nextToken
Type: String
Required: No
Response Syntax
{
"includeMemberAccounts": boolean,
"items": [
{
"accountId": "string",
"createdTimestamp": number,
"lastUpdatedTimestamp": number,
"status": "string"
}
],
"nextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
includeMemberAccounts
The enrollment status of all member accounts in the organization if the account is the
management account or delegated administrator.
Type: Boolean
items
The enrollment status of a specific account ID, including creation and last updated timestamps.
ListEnrollmentStatuses 680
AWS Billing and Cost Management API Reference
Type: String
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
You are not authorized to use this operation with the given parameters.
An error on the server occurred during the processing of your request. Try again later.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ListEnrollmentStatuses 681
AWS Billing and Cost Management API Reference
ListEnrollmentStatuses 682
AWS Billing and Cost Management API Reference
ListRecommendations
Service: AWS Cost Optimization Hub
Request Syntax
{
"filter": {
"accountIds": [ "string" ],
"actionTypes": [ "string" ],
"implementationEfforts": [ "string" ],
"recommendationIds": [ "string" ],
"regions": [ "string" ],
"resourceArns": [ "string" ],
"resourceIds": [ "string" ],
"resourceTypes": [ "string" ],
"restartNeeded": boolean,
"rollbackPossible": boolean,
"tags": [
{
"key": "string",
"value": "string"
}
]
},
"includeAllRecommendations": boolean,
"maxResults": number,
"nextToken": "string",
"orderBy": {
"dimension": "string",
"order": "string"
}
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
ListRecommendations 683
AWS Billing and Cost Management API Reference
filter
Required: No
includeAllRecommendations
Type: Boolean
Required: No
maxResults
The maximum number of recommendations that are returned for the request.
Type: Integer
Required: No
nextToken
Type: String
Required: No
orderBy
Required: No
Response Syntax
ListRecommendations 684
AWS Billing and Cost Management API Reference
"items": [
{
"accountId": "string",
"actionType": "string",
"currencyCode": "string",
"currentResourceSummary": "string",
"currentResourceType": "string",
"estimatedMonthlyCost": number,
"estimatedMonthlySavings": number,
"estimatedSavingsPercentage": number,
"implementationEffort": "string",
"lastRefreshTimestamp": number,
"recommendationId": "string",
"recommendationLookbackPeriodInDays": number,
"recommendedResourceSummary": "string",
"recommendedResourceType": "string",
"region": "string",
"resourceArn": "string",
"resourceId": "string",
"restartNeeded": boolean,
"rollbackPossible": boolean,
"source": "string",
"tags": [
{
"key": "string",
"value": "string"
}
]
}
],
"nextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
items
ListRecommendations 685
AWS Billing and Cost Management API Reference
nextToken
Type: String
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
You are not authorized to use this operation with the given parameters.
An error on the server occurred during the processing of your request. Try again later.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ListRecommendations 686
AWS Billing and Cost Management API Reference
ListRecommendations 687
AWS Billing and Cost Management API Reference
ListRecommendationSummaries
Service: AWS Cost Optimization Hub
Returns a concise representation of savings estimates for resources. Also returns de-duped savings
across different types of recommendations.
Note
The following filters are not supported for this API: recommendationIds,
resourceArns, and resourceIds.
Request Syntax
{
"filter": {
"accountIds": [ "string" ],
"actionTypes": [ "string" ],
"implementationEfforts": [ "string" ],
"recommendationIds": [ "string" ],
"regions": [ "string" ],
"resourceArns": [ "string" ],
"resourceIds": [ "string" ],
"resourceTypes": [ "string" ],
"restartNeeded": boolean,
"rollbackPossible": boolean,
"tags": [
{
"key": "string",
"value": "string"
}
]
},
"groupBy": "string",
"maxResults": number,
"metrics": [ "string" ],
"nextToken": "string"
}
ListRecommendationSummaries 688
AWS Billing and Cost Management API Reference
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
filter
Describes a filter that returns a more specific list of recommendations. Filters recommendations
by different dimensions.
Required: No
groupBy
Type: String
Required: Yes
maxResults
Type: Integer
Required: No
metrics
Additional metrics to be returned for the request. The only valid value is savingsPercentage.
Required: No
ListRecommendationSummaries 689
AWS Billing and Cost Management API Reference
nextToken
Type: String
Required: No
Response Syntax
{
"currencyCode": "string",
"estimatedTotalDedupedSavings": number,
"groupBy": "string",
"items": [
{
"estimatedMonthlySavings": number,
"group": "string",
"recommendationCount": number
}
],
"metrics": {
"savingsPercentage": "string"
},
"nextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
currencyCode
Type: String
estimatedTotalDedupedSavings
ListRecommendationSummaries 690
AWS Billing and Cost Management API Reference
Type: Double
groupBy
Type: String
items
The results or descriptions for the additional metrics, based on whether the metrics were or
were not requested.
Type: String
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
You are not authorized to use this operation with the given parameters.
An error on the server occurred during the processing of your request. Try again later.
ListRecommendationSummaries 691
AWS Billing and Cost Management API Reference
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ListRecommendationSummaries 692
AWS Billing and Cost Management API Reference
UpdateEnrollmentStatus
Service: AWS Cost Optimization Hub
Updates the enrollment (opt in and opt out) status of an account to the Cost Optimization Hub
service.
You must have the appropriate permissions to opt in to Cost Optimization Hub and to view its
recommendations. When you opt in, Cost Optimization Hub automatically creates a service-linked
role in your account to access its data.
Request Syntax
{
"includeMemberAccounts": boolean,
"status": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
includeMemberAccounts
Indicates whether to enroll member accounts of the organization if the account is the
management account or delegated administrator.
Type: Boolean
Required: No
status
Type: String
UpdateEnrollmentStatus 693
AWS Billing and Cost Management API Reference
Required: Yes
Response Syntax
{
"status": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
status
Type: String
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
You are not authorized to use this operation with the given parameters.
An error on the server occurred during the processing of your request. Try again later.
UpdateEnrollmentStatus 694
AWS Billing and Cost Management API Reference
ValidationException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
UpdateEnrollmentStatus 695
AWS Billing and Cost Management API Reference
UpdatePreferences
Service: AWS Cost Optimization Hub
Updates a set of preferences for an account in order to add account-specific preferences into
the service. These preferences impact how the savings associated with recommendations are
presented.
Request Syntax
{
"memberAccountDiscountVisibility": "string",
"savingsEstimationMode": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
memberAccountDiscountVisibility
Type: String
Required: No
savingsEstimationMode
Type: String
Required: No
Response Syntax
UpdatePreferences 696
AWS Billing and Cost Management API Reference
"memberAccountDiscountVisibility": "string",
"savingsEstimationMode": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
memberAccountDiscountVisibility
Type: String
Type: String
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
You are not authorized to use this operation with the given parameters.
An error on the server occurred during the processing of your request. Try again later.
UpdatePreferences 697
AWS Billing and Cost Management API Reference
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
• DeleteReportDefinition
• DescribeReportDefinitions
• ListTagsForResource
• ModifyReportDefinition
• PutReportDefinition
• TagResource
• UntagResource
DeleteReportDefinition
Service: AWS Cost and Usage Report
Deletes the specified report. Any tags associated with the report are also deleted.
Request Syntax
{
"ReportName": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
ReportName
The name of the report that you want to delete. The name must be unique, is case sensitive,
and can't include spaces.
Type: String
Pattern: [0-9A-Za-z!\-_.*\'()]+
Required: Yes
Response Syntax
{
"ResponseMessage": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
DeleteReportDefinition 699
AWS Billing and Cost Management API Reference
ResponseMessage
Type: String
Errors
For information about the errors that are common to all actions, see Common Errors.
InternalErrorException
An error on the server occurred during the processing of your request. Try again later.
Examples
Sample Request
POST / HTTP/1.1
Host: api.cur.<region>.<domain>
x-amz-Date: <Date>
Authorization: AWS4-HMAC-SHA256 Credential=<Credential>,
SignedHeaders=contenttype;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-
requestid,Signature=<Signature>
User-Agent: <UserAgentString>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Connection: Keep-Alive
X-Amz-Target: AWSOrigamiServiceGateway.DeleteReportDefinition
{
DeleteReportDefinition 700
AWS Billing and Cost Management API Reference
"ReportName": "ExampleReport"
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
DeleteReportDefinition 701
AWS Billing and Cost Management API Reference
DescribeReportDefinitions
Service: AWS Cost and Usage Report
Lists the AWS Cost and Usage Report available to this account.
Request Syntax
{
"MaxResults": number,
"NextToken": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
MaxResults
The maximum number of results that AWS returns for the operation.
Type: Integer
Required: No
NextToken
A generic string.
Type: String
Pattern: [A-Za-z0-9_\.\-=]*
Required: No
Response Syntax
DescribeReportDefinitions 702
AWS Billing and Cost Management API Reference
"NextToken": "string",
"ReportDefinitions": [
{
"AdditionalArtifacts": [ "string" ],
"AdditionalSchemaElements": [ "string" ],
"BillingViewArn": "string",
"Compression": "string",
"Format": "string",
"RefreshClosedReports": boolean,
"ReportName": "string",
"ReportStatus": {
"lastDelivery": "string",
"lastStatus": "string"
},
"ReportVersioning": "string",
"S3Bucket": "string",
"S3Prefix": "string",
"S3Region": "string",
"TimeUnit": "string"
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
NextToken
A generic string.
Type: String
Pattern: [A-Za-z0-9_\.\-=]*
ReportDefinitions
DescribeReportDefinitions 703
AWS Billing and Cost Management API Reference
Errors
For information about the errors that are common to all actions, see Common Errors.
InternalErrorException
An error on the server occurred during the processing of your request. Try again later.
Examples
Sample Request
POST / HTTP/1.1
Host: api.cur.<region>.<domain>
x-amz-Date: <Date>
Authorization: AWS4-HMAC-SHA256 Credential=<Credential>,
SignedHeaders=contenttype;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-
requestid,Signature=<Signature>
User-Agent: <UserAgentString>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Connection: Keep-Alive
X-Amz-Target: AWSOrigamiServiceGateway.DescribeReportDefinitions
{
"MaxResults": 5
}
Sample Response
HTTP/1.1 200 OK
x-amzn-RequestId: <RequestId>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Date: <Date>
{
DescribeReportDefinitions 704
AWS Billing and Cost Management API Reference
"ReportDefinitions": [
{
"AdditionalArtifacts": ["QUICKSIGHT"],
"AdditionalSchemaElements": ["RESOURCES"],
"Compression": "GZIP",
"Format": "textORcsv",
"ReportName": "ExampleReport",
"S3Bucket": "example-s3-bucket",
"S3Prefix": "exampleprefix",
"S3Region": "us-east-1",
"TimeUnit": "HOURLY"
},
{
"AdditionalArtifacts": ["QUICKSIGHT"],
"AdditionalSchemaElements": ["RESOURCES"],
"Compression": "GZIP",
"Format": "textORcsv",
"ReportName": "ExampleReport2",
"S3Bucket": "example-s3-bucket",
"S3Prefix": "exampleprefix",
"S3Region": "us-east-1",
"TimeUnit": "HOURLY"
"ReportStatus": {
"lastDelivery": "20191102T054923Z",
"lastStatus": "SUCCESS"
}
}
]
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
DescribeReportDefinitions 705
AWS Billing and Cost Management API Reference
DescribeReportDefinitions 706
AWS Billing and Cost Management API Reference
ListTagsForResource
Service: AWS Cost and Usage Report
Request Syntax
{
"ReportName": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
ReportName
The report name of the report definition that tags are to be returned for.
Type: String
Pattern: [0-9A-Za-z!\-_.*\'()]+
Required: Yes
Response Syntax
{
"Tags": [
{
"Key": "string",
"Value": "string"
}
]
}
ListTagsForResource 707
AWS Billing and Cost Management API Reference
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Tags
Errors
For information about the errors that are common to all actions, see Common Errors.
InternalErrorException
An error on the server occurred during the processing of your request. Try again later.
Examples
ListTagsForResource 708
AWS Billing and Cost Management API Reference
Sample Request
POST / HTTP/1.1
Host: api.cur.<region>.<domain>
x-amz-Date: <Date>
Authorization: AWS4-HMAC-SHA256 Credential=<Credential>,
SignedHeaders=contenttype;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-
requestid,Signature=<Signature>
User-Agent: <UserAgentString>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Connection: Keep-Alive
X-Amz-Target: AWSOrigamiServiceGateway.ListTagsForResource
{
"ReportName": "ExampleReport",
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ListTagsForResource 709
AWS Billing and Cost Management API Reference
ModifyReportDefinition
Service: AWS Cost and Usage Report
Request Syntax
{
"ReportDefinition": {
"AdditionalArtifacts": [ "string" ],
"AdditionalSchemaElements": [ "string" ],
"BillingViewArn": "string",
"Compression": "string",
"Format": "string",
"RefreshClosedReports": boolean,
"ReportName": "string",
"ReportStatus": {
"lastDelivery": "string",
"lastStatus": "string"
},
"ReportVersioning": "string",
"S3Bucket": "string",
"S3Prefix": "string",
"S3Region": "string",
"TimeUnit": "string"
},
"ReportName": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
ReportDefinition
The definition of AWS Cost and Usage Report. You can specify the report name, time unit,
report format, compression format, S3 bucket, additional artifacts, and schema elements in the
definition.
ModifyReportDefinition 710
AWS Billing and Cost Management API Reference
Required: Yes
ReportName
The name of the report that you want to create. The name must be unique, is case sensitive,
and can't include spaces.
Type: String
Pattern: [0-9A-Za-z!\-_.*\'()]+
Required: Yes
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors.
InternalErrorException
An error on the server occurred during the processing of your request. Try again later.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ModifyReportDefinition 711
AWS Billing and Cost Management API Reference
ModifyReportDefinition 712
AWS Billing and Cost Management API Reference
PutReportDefinition
Service: AWS Cost and Usage Report
Request Syntax
{
"ReportDefinition": {
"AdditionalArtifacts": [ "string" ],
"AdditionalSchemaElements": [ "string" ],
"BillingViewArn": "string",
"Compression": "string",
"Format": "string",
"RefreshClosedReports": boolean,
"ReportName": "string",
"ReportStatus": {
"lastDelivery": "string",
"lastStatus": "string"
},
"ReportVersioning": "string",
"S3Bucket": "string",
"S3Prefix": "string",
"S3Region": "string",
"TimeUnit": "string"
},
"Tags": [
{
"Key": "string",
"Value": "string"
}
]
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
PutReportDefinition 713
AWS Billing and Cost Management API Reference
ReportDefinition
Represents the output of the PutReportDefinition operation. The content consists of the
detailed metadata and data file information.
Required: Yes
Tags
Required: No
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors.
DuplicateReportNameException
A report with the specified name already exists in the account. Specify a different report name.
An error on the server occurred during the processing of your request. Try again later.
This account already has five reports defined. To define a new report, you must delete an
existing report.
PutReportDefinition 714
AWS Billing and Cost Management API Reference
ResourceNotFoundException
Examples
Sample Request
POST / HTTP/1.1
Host: api.cur.<region>.<domain>
x-amz-Date: <Date>
Authorization: AWS4-HMAC-SHA256 Credential=<Credential>,
SignedHeaders=contenttype;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-
requestid,Signature=<Signature>
User-Agent: <UserAgentString>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Connection: Keep-Alive
X-Amz-Target: AWSOrigamiServiceGateway.PutReportDefinition
{
"ReportDefinition": {
"ReportName": "ExampleReport",
"TimeUnit": "DAILY",
"Format": "textORcsv",
"Compression": "ZIP",
"AdditionalSchemaElements": [
"RESOURCES"
],
"S3Bucket": "example-s3-bucket",
"S3Prefix": "exampleprefix",
"S3Region": "us-east-1",
PutReportDefinition 715
AWS Billing and Cost Management API Reference
"AdditionalArtifacts": [
"REDSHIFT",
"QUICKSIGHT"
},
"Tags": [
{
"Key": "key-1",
"Value": "value-1"
}
]
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
PutReportDefinition 716
AWS Billing and Cost Management API Reference
TagResource
Service: AWS Cost and Usage Report
Request Syntax
{
"ReportName": "string",
"Tags": [
{
"Key": "string",
"Value": "string"
}
]
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
ReportName
The report name of the report definition that tags are to be associated with.
Type: String
Pattern: [0-9A-Za-z!\-_.*\'()]+
Required: Yes
Tags
TagResource 717
AWS Billing and Cost Management API Reference
Required: Yes
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors.
InternalErrorException
An error on the server occurred during the processing of your request. Try again later.
Examples
Sample Request
POST / HTTP/1.1
Host: api.cur.<region>.<domain>
x-amz-Date: <Date>
Authorization: AWS4-HMAC-SHA256 Credential=<Credential>,
SignedHeaders=contenttype;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-
requestid,Signature=<Signature>
User-Agent: <UserAgentString>
TagResource 718
AWS Billing and Cost Management API Reference
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Connection: Keep-Alive
X-Amz-Target: AWSOrigamiServiceGateway.TagResource
{
"ReportName": "ExampleReport",
"Tags": [
{
"Key": "key-1",
"Value": "value-1"
}
]
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
TagResource 719
AWS Billing and Cost Management API Reference
UntagResource
Service: AWS Cost and Usage Report
Request Syntax
{
"ReportName": "string",
"TagKeys": [ "string" ]
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
ReportName
The report name of the report definition that tags are to be disassociated from.
Type: String
Pattern: [0-9A-Za-z!\-_.*\'()]+
Required: Yes
TagKeys
Pattern: .*
Required: Yes
UntagResource 720
AWS Billing and Cost Management API Reference
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors.
InternalErrorException
An error on the server occurred during the processing of your request. Try again later.
Examples
Sample Request
POST / HTTP/1.1
Host: api.cur.<region>.<domain>
x-amz-Date: <Date>
Authorization: AWS4-HMAC-SHA256 Credential=<Credential>,
SignedHeaders=contenttype;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-
requestid,Signature=<Signature>
User-Agent: <UserAgentString>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Connection: Keep-Alive
UntagResource 721
AWS Billing and Cost Management API Reference
X-Amz-Target: AWSOrigamiServiceGateway.UntagResource
{
"ReportName": "ExampleReport",
"TagKeys": ["tag-1", "tag-2"]
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
• GetFreeTierUsage
GetFreeTierUsage
Service: AWS Free Tier
Returns a list of all Free Tier usage objects that match your filters.
Request Syntax
{
"filter": {
"And": [
"Expression"
],
"Dimensions": {
"Key": "string",
"MatchOptions": [ "string" ],
"Values": [ "string" ]
},
"Not": "Expression",
"Or": [
"Expression"
]
},
"maxResults": number,
"nextToken": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
filter
An expression that specifies the conditions that you want each FreeTierUsage object to meet.
Required: No
maxResults
The maximum number of results to return in the response. MaxResults means that there can
be up to the specified number of values, but there might be fewer results based on your filters.
GetFreeTierUsage 723
AWS Billing and Cost Management API Reference
Type: Integer
Required: No
nextToken
The pagination token that indicates the next set of results to retrieve.
Type: String
Pattern: ^[\S\s]*$
Required: No
Response Syntax
{
"freeTierUsages": [
{
"actualUsageAmount": number,
"description": "string",
"forecastedUsageAmount": number,
"freeTierType": "string",
"limit": number,
"operation": "string",
"region": "string",
"service": "string",
"unit": "string",
"usageType": "string"
}
],
"nextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
GetFreeTierUsage 724
AWS Billing and Cost Management API Reference
freeTierUsages
The list of Free Tier usage objects that meet your filter expression.
The pagination token that indicates the next set of results to retrieve.
Type: String
Pattern: ^[\S\s]*$
Errors
For information about the errors that are common to all actions, see Common Errors.
InternalServerException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
GetFreeTierUsage 725
AWS Billing and Cost Management API Reference
AWS Invoicing
The following actions are supported by AWS Invoicing:
• BatchGetInvoiceProfile
• CreateInvoiceUnit
• DeleteInvoiceUnit
• GetInvoiceUnit
• ListInvoiceUnits
• ListTagsForResource
• TagResource
• UntagResource
• UpdateInvoiceUnit
BatchGetInvoiceProfile
Service: AWS Invoicing
This gets the invoice profile associated with a set of accounts. The accounts must be linked
accounts under the requester management account organization.
Request Syntax
{
"AccountIds": [ "string" ]
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
AccountIds
Retrieves the corresponding invoice profile data for these account IDs.
Pattern: \d{12}
Required: Yes
Response Syntax
{
"Profiles": [
{
"AccountId": "string",
"Issuer": "string",
"ReceiverAddress": {
"AddressLine1": "string",
"AddressLine2": "string",
"AddressLine3": "string",
"City": "string",
BatchGetInvoiceProfile 727
AWS Billing and Cost Management API Reference
"CompanyName": "string",
"CountryCode": "string",
"DistrictOrCounty": "string",
"PostalCode": "string",
"StateOrRegion": "string"
},
"ReceiverEmail": "string",
"ReceiverName": "string",
"TaxRegistrationNumber": "string"
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Profiles
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
BatchGetInvoiceProfile 728
AWS Billing and Cost Management API Reference
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
BatchGetInvoiceProfile 729
AWS Billing and Cost Management API Reference
CreateInvoiceUnit
Service: AWS Invoicing
Request Syntax
{
"Description": "string",
"InvoiceReceiver": "string",
"Name": "string",
"ResourceTags": [
{
"Key": "string",
"Value": "string"
}
],
"Rule": {
"LinkedAccounts": [ "string" ]
},
"TaxInheritanceDisabled": boolean
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
Description
Type: String
Pattern: [\S\s]*
Required: No
CreateInvoiceUnit 730
AWS Billing and Cost Management API Reference
InvoiceReceiver
The AWS account ID chosen to be the receiver of an invoice unit. All invoices generated for that
invoice unit will be sent to this account ID.
Type: String
Pattern: \d{12}
Required: Yes
Name
The unique name of the invoice unit that is shown on the generated invoice. This can't be
changed once it is set. To change this name, you must delete the invoice unit recreate.
Type: String
Required: Yes
ResourceTags
Required: No
Rule
Required: Yes
TaxInheritanceDisabled
Whether the invoice unit based tax inheritance is/ should be enabled or disabled.
CreateInvoiceUnit 731
AWS Billing and Cost Management API Reference
Type: Boolean
Required: No
Response Syntax
{
"InvoiceUnitArn": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
InvoiceUnitArn
The ARN to identify an invoice unit. This information can't be modified or deleted.
Type: String
Pattern: arn:aws[-a-z0-9]*:[a-z0-9]+:[-a-z0-9]*:[0-9]{12}:[-a-zA-Z0-9/:_]+
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
CreateInvoiceUnit 732
AWS Billing and Cost Management API Reference
ThrottlingException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
CreateInvoiceUnit 733
AWS Billing and Cost Management API Reference
DeleteInvoiceUnit
Service: AWS Invoicing
This deletes an invoice unit with the provided invoice unit ARN.
Request Syntax
{
"InvoiceUnitArn": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
InvoiceUnitArn
The ARN to identify an invoice unit. This information can't be modified or deleted.
Type: String
Pattern: arn:aws[-a-z0-9]*:[a-z0-9]+:[-a-z0-9]*:[0-9]{12}:[-a-zA-Z0-9/:_]+
Required: Yes
Response Syntax
{
"InvoiceUnitArn": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
DeleteInvoiceUnit 734
AWS Billing and Cost Management API Reference
InvoiceUnitArn
The ARN to identify an invoice unit. This information can't be modified or deleted.
Type: String
Pattern: arn:aws[-a-z0-9]*:[a-z0-9]+:[-a-z0-9]*:[0-9]{12}:[-a-zA-Z0-9/:_]+
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
DeleteInvoiceUnit 735
AWS Billing and Cost Management API Reference
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
DeleteInvoiceUnit 736
AWS Billing and Cost Management API Reference
GetInvoiceUnit
Service: AWS Invoicing
Request Syntax
{
"AsOf": number,
"InvoiceUnitArn": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
AsOf
The state of an invoice unit at a specified time. You can see legacy invoice units that are
currently deleted if the AsOf time is set to before it was deleted. If an AsOf is not provided, the
default value is the current time.
Type: Timestamp
Required: No
InvoiceUnitArn
The ARN to identify an invoice unit. This information can't be modified or deleted.
Type: String
Pattern: arn:aws[-a-z0-9]*:[a-z0-9]+:[-a-z0-9]*:[0-9]{12}:[-a-zA-Z0-9/:_]+
Required: Yes
Response Syntax
GetInvoiceUnit 737
AWS Billing and Cost Management API Reference
"Description": "string",
"InvoiceReceiver": "string",
"InvoiceUnitArn": "string",
"LastModified": number,
"Name": "string",
"Rule": {
"LinkedAccounts": [ "string" ]
},
"TaxInheritanceDisabled": boolean
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Description
Type: String
Pattern: [\S\s]*
InvoiceReceiver
The AWS account ID chosen to be the receiver of an invoice unit. All invoices generated for that
invoice unit will be sent to this account ID.
Type: String
Pattern: \d{12}
InvoiceUnitArn
The ARN to identify an invoice unit. This information can't be modified or deleted.
Type: String
Pattern: arn:aws[-a-z0-9]*:[a-z0-9]+:[-a-z0-9]*:[0-9]{12}:[-a-zA-Z0-9/:_]+
GetInvoiceUnit 738
AWS Billing and Cost Management API Reference
LastModified
The most recent date the invoice unit response was updated.
Type: Timestamp
Name
The unique name of the invoice unit that is shown on the generated invoice.
Type: String
This is used to categorize the invoice unit. Values are AWS account IDs. Currently, the only
supported rule is LINKED_ACCOUNT.
Whether the invoice unit based tax inheritance is/ should be enabled or disabled.
Type: Boolean
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
GetInvoiceUnit 739
AWS Billing and Cost Management API Reference
ResourceNotFoundException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
GetInvoiceUnit 740
AWS Billing and Cost Management API Reference
ListInvoiceUnits
Service: AWS Invoicing
This fetches a list of all invoice unit definitions for a given account, as of the provided AsOf date.
Request Syntax
{
"AsOf": number,
"Filters": {
"Accounts": [ "string" ],
"InvoiceReceivers": [ "string" ],
"Names": [ "string" ]
},
"MaxResults": number,
"NextToken": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
AsOf
The state of an invoice unit at a specified time. You can see legacy invoice units that are
currently deleted if the AsOf time is set to before it was deleted. If an AsOf is not provided, the
default value is the current time.
Type: Timestamp
Required: No
Filters
An optional input to the list API. If multiple filters are specified, the returned list will
be a configuration that match all of the provided filters. Supported filter types are
InvoiceReceivers, Names, and Accounts.
Required: No
ListInvoiceUnits 741
AWS Billing and Cost Management API Reference
MaxResults
Type: Integer
Required: No
NextToken
The next token used to indicate where the returned list should start from.
Type: String
Pattern: [\S\s]*
Required: No
Response Syntax
{
"InvoiceUnits": [
{
"Description": "string",
"InvoiceReceiver": "string",
"InvoiceUnitArn": "string",
"LastModified": number,
"Name": "string",
"Rule": {
"LinkedAccounts": [ "string" ]
},
"TaxInheritanceDisabled": boolean
}
],
"NextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
ListInvoiceUnits 742
AWS Billing and Cost Management API Reference
InvoiceUnits
An invoice unit is a set of mutually exclusive accounts that correspond to your business entity.
The next token used to indicate where the returned list should start from.
Type: String
Pattern: [\S\s]*
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
ListInvoiceUnits 743
AWS Billing and Cost Management API Reference
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ListInvoiceUnits 744
AWS Billing and Cost Management API Reference
ListTagsForResource
Service: AWS Invoicing
Request Syntax
{
"ResourceArn": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
ResourceArn
Type: String
Pattern: arn:aws[-a-z0-9]*:(invoicing)::[0-9]{12}:[-a-zA-Z0-9/:_]+
Required: Yes
Response Syntax
{
"ResourceTags": [
{
"Key": "string",
"Value": "string"
}
]
}
ListTagsForResource 745
AWS Billing and Cost Management API Reference
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
ResourceTags
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
ListTagsForResource 746
AWS Billing and Cost Management API Reference
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ListTagsForResource 747
AWS Billing and Cost Management API Reference
TagResource
Service: AWS Invoicing
Request Syntax
{
"ResourceArn": "string",
"ResourceTags": [
{
"Key": "string",
"Value": "string"
}
]
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
ResourceArn
Type: String
Pattern: arn:aws[-a-z0-9]*:(invoicing)::[0-9]{12}:[-a-zA-Z0-9/:_]+
Required: Yes
ResourceTags
TagResource 748
AWS Billing and Cost Management API Reference
Required: Yes
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
The request was rejected because it attempted to create resources beyond the current AWS
account limits. The error message describes the limit exceeded.
TagResource 749
AWS Billing and Cost Management API Reference
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
TagResource 750
AWS Billing and Cost Management API Reference
UntagResource
Service: AWS Invoicing
Request Syntax
{
"ResourceArn": "string",
"ResourceTagKeys": [ "string" ]
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
ResourceArn
Type: String
Pattern: arn:aws[-a-z0-9]*:(invoicing)::[0-9]{12}:[-a-zA-Z0-9/:_]+
Required: Yes
ResourceTagKeys
Required: Yes
UntagResource 751
AWS Billing and Cost Management API Reference
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
UntagResource 752
AWS Billing and Cost Management API Reference
UntagResource 753
AWS Billing and Cost Management API Reference
UpdateInvoiceUnit
Service: AWS Invoicing
You can update the invoice unit configuration at any time, and AWS will use the latest
configuration at the end of the month.
Request Syntax
{
"Description": "string",
"InvoiceUnitArn": "string",
"Rule": {
"LinkedAccounts": [ "string" ]
},
"TaxInheritanceDisabled": boolean
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
Description
The assigned description for an invoice unit. This information can't be modified or deleted.
Type: String
Pattern: [\S\s]*
Required: No
InvoiceUnitArn
The ARN to identify an invoice unit. This information can't be modified or deleted.
Type: String
Pattern: arn:aws[-a-z0-9]*:[a-z0-9]+:[-a-z0-9]*:[0-9]{12}:[-a-zA-Z0-9/:_]+
UpdateInvoiceUnit 754
AWS Billing and Cost Management API Reference
Required: Yes
Rule
Required: No
TaxInheritanceDisabled
Whether the invoice unit based tax inheritance is/ should be enabled or disabled.
Type: Boolean
Required: No
Response Syntax
{
"InvoiceUnitArn": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
InvoiceUnitArn
The ARN to identify an invoice unit. This information can't be modified or deleted.
Type: String
Pattern: arn:aws[-a-z0-9]*:[a-z0-9]+:[-a-z0-9]*:[0-9]{12}:[-a-zA-Z0-9/:_]+
Errors
For information about the errors that are common to all actions, see Common Errors.
UpdateInvoiceUnit 755
AWS Billing and Cost Management API Reference
AccessDeniedException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
UpdateInvoiceUnit 756
AWS Billing and Cost Management API Reference
• DescribeServices
• GetAttributeValues
• GetPriceListFileUrl
• GetProducts
• ListPriceLists
DescribeServices
Service: AWS Price List
Returns the metadata for one service or a list of the metadata for all services. Use this without a
service code to get the service codes for all services. Use it with a service code, such as AmazonEC2,
to get information specific to that service, such as the attribute names available for that service.
For example, some of the attribute names available for EC2 are volumeType, maxIopsVolume,
operation, locationType, and instanceCapacity10xlarge.
Request Syntax
{
"FormatVersion": "string",
"MaxResults": number,
"NextToken": "string",
"ServiceCode": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
FormatVersion
Type: String
Required: No
MaxResults
The maximum number of results that you want returned in the response.
Type: Integer
Required: No
DescribeServices 758
AWS Billing and Cost Management API Reference
NextToken
The pagination token that indicates the next set of results that you want to retrieve.
Type: String
Required: No
ServiceCode
The code for the service whose information you want to retrieve, such as AmazonEC2. You
can use the ServiceCode to filter the results in a GetProducts call. To retrieve a list of all
services, leave this blank.
Type: String
Required: No
Response Syntax
{
"FormatVersion": "string",
"NextToken": "string",
"Services": [
{
"AttributeNames": [ "string" ],
"ServiceCode": "string"
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
FormatVersion
Type: String
DescribeServices 759
AWS Billing and Cost Management API Reference
NextToken
Type: String
Services
Errors
For information about the errors that are common to all actions, see Common Errors.
ExpiredNextTokenException
An error on the server occurred during the processing of your request. Try again later.
DescribeServices 760
AWS Billing and Cost Management API Reference
ThrottlingException
Examples
Sample Request
POST / HTTP/1.1
Host: api.pricing.<region>.<domain>
x-amz-Date: <Date>
Authorization: AWS4-HMAC-SHA256 Credential=<Credential>,
SignedHeaders=contenttype;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-
requestid,Signature=<Signature>
User-Agent: <UserAgentString>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Connection: Keep-Alive
X-Amz-Target: AWSPriceListService.DescribeServices
{
"ServiceCode": "AmazonEC2",
"FormatVersion": "aws_v1",
"NextToken": null,
"MaxResults": 1
}
Sample Response
HTTP/1.1 200 OK
x-amzn-RequestId: <RequestId>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Date: <Date>
{
"FormatVersion": "aws_v1",
"NextToken": "abcdefg123",
DescribeServices 761
AWS Billing and Cost Management API Reference
"Services": [
{
"AttributeNames": [
"volumeType",
"maxIopsvolume",
"instanceCapacity10xlarge",
"locationType",
"operation"
],
"ServiceCode": "AmazonEC2"
}
]
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
DescribeServices 762
AWS Billing and Cost Management API Reference
GetAttributeValues
Service: AWS Price List
Returns a list of attribute values. Attributes are similar to the details in a Price List API offer file.
For a list of available attributes, see Offer File Definitions in the AWS Billing and Cost Management
User Guide.
Request Syntax
{
"AttributeName": "string",
"MaxResults": number,
"NextToken": "string",
"ServiceCode": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
AttributeName
The name of the attribute that you want to retrieve the values for, such as volumeType.
Type: String
Required: Yes
MaxResults
Type: Integer
Required: No
NextToken
The pagination token that indicates the next set of results that you want to retrieve.
GetAttributeValues 763
AWS Billing and Cost Management API Reference
Type: String
Required: No
ServiceCode
The service code for the service whose attributes you want to retrieve. For example, if you want
the retrieve an EC2 attribute, use AmazonEC2.
Type: String
Required: Yes
Response Syntax
{
"AttributeValues": [
{
"Value": "string"
}
],
"NextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
AttributeValues
The list of values for an attribute. For example, Throughput Optimized HDD and
Provisioned IOPS are two available values for the AmazonEC2 volumeType.
The pagination token that indicates the next set of results to retrieve.
Type: String
GetAttributeValues 764
AWS Billing and Cost Management API Reference
Errors
For information about the errors that are common to all actions, see Common Errors.
ExpiredNextTokenException
An error on the server occurred during the processing of your request. Try again later.
Examples
GetAttributeValues 765
AWS Billing and Cost Management API Reference
Sample Request
POST / HTTP/1.1
Host: api.pricing.<region>.<domain>
x-amz-Date: <Date>
Authorization: AWS4-HMAC-SHA256 Credential=<Credential>,
SignedHeaders=contenttype;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-
requestid,Signature=<Signature>
User-Agent: <UserAgentString>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Connection: Keep-Alive
X-Amz-Target: AWSPriceListService.GetAttributeValues
{
"ServiceCode": "AmazonEC2",
"AttributeName": "volumeType",
"NextToken": null,
"MaxResults": 2
}
Sample Response
HTTP/1.1 200 OK
x-amzn-RequestId: <RequestId>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Date: <Date>
{
"AttributeValues": [
{
"Value": "Throughput Optimized HDD"
},
{
"Value": "Provisioned IOPS"
}
],
"NextToken":
"GpgauTGIY7LGezucl5LV0w==:7GzYJ0nw0DBTJ2J66EoTIIynE6O1uXwQtTRqioJzQadBnDVgHPzI1en4BUQnPCLpzeBk
+Z/9/cTw9GldnPOHN98+FdmJP7wKU3QQpQ8MQr5KOeBkIsAqvAQYdL0DkL7tHwPtE5iCEByAmg9gcC/
yBU1vAOsf7R3VaNN4M5jMDv3woSWqASSIlBVB6tgW78YL22KhssoItM/jWW+aP6Jqtq4mldxp/ct6DWAl
+xLFwHU/CbketimPPXyqHF3/UXDw=="
}
GetAttributeValues 766
AWS Billing and Cost Management API Reference
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
GetAttributeValues 767
AWS Billing and Cost Management API Reference
GetPriceListFileUrl
Service: AWS Price List
This feature is in preview release and is subject to change. Your use of AWS Price List API is
subject to the Beta Service Participation terms of the AWS Service Terms (Section 1.10).
This returns the URL that you can retrieve your Price List file from. This URL is based on the
PriceListArn and FileFormat that you retrieve from the ListPriceLists response.
Request Syntax
{
"FileFormat": "string",
"PriceListArn": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
FileFormat
The format that you want to retrieve your Price List files in. The FileFormat can be obtained
from the ListPriceLists response.
Type: String
Required: Yes
PriceListArn
The unique identifier that maps to where your Price List files are located. PriceListArn can
be obtained from the ListPriceLists response.
Type: String
GetPriceListFileUrl 768
AWS Billing and Cost Management API Reference
Pattern: arn:[A-Za-z0-9][-.A-Za-z0-9]{0,62}:pricing:::price-list/[A-Za-
z0-9+_/.-]{1,1023}
Required: Yes
Response Syntax
{
"Url": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Url
Type: String
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
An error on the server occurred during the processing of your request. Try again later.
GetPriceListFileUrl 769
AWS Billing and Cost Management API Reference
Examples
Sample Request
POST / HTTP/1.1
Host: api.pricing.<region>.<domain>
x-amz-Date: <Date>Authorization: AWS4-HMAC-SHA256 Credential=<Credential>,
SignedHeaders=contenttype;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-
requestid,Signature=<Signature>User-Agent: <UserAgentString>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>Connection: Keep-Alive
X-Amz-Target: AWSPriceListService.GetPriceListFileUrl{
"PriceListArn": "arn:aws:pricing:::price-list/aws/AmazonEC2/USD/20220603151047/us-
east-1",
"FileFormat": "json"
}
Sample Response
HTTP/1.1 200 OK
GetPriceListFileUrl 770
AWS Billing and Cost Management API Reference
x-amzn-RequestId: <RequestId>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Date: <Date>
{
"Url": "https://pricing.us-east-1.amazonaws.com/offers/v1.0/aws/
AmazonEC2/20220603151047/us-east-1/index.json"
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
GetPriceListFileUrl 771
AWS Billing and Cost Management API Reference
GetProducts
Service: AWS Price List
Request Syntax
{
"Filters": [
{
"Field": "string",
"Type": "string",
"Value": "string"
}
],
"FormatVersion": "string",
"MaxResults": number,
"NextToken": "string",
"ServiceCode": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
Filters
The list of filters that limit the returned products. only products that match all filters are
returned.
Required: No
FormatVersion
Type: String
GetProducts 772
AWS Billing and Cost Management API Reference
Required: No
MaxResults
Type: Integer
Required: No
NextToken
The pagination token that indicates the next set of results that you want to retrieve.
Type: String
Required: No
ServiceCode
The code for the service whose products you want to retrieve.
Type: String
Required: Yes
Response Syntax
{
"FormatVersion": "string",
"NextToken": "string",
"PriceList": [ "string" ]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
FormatVersion
GetProducts 773
AWS Billing and Cost Management API Reference
Type: String
NextToken
The pagination token that indicates the next set of results to retrieve.
Type: String
PriceList
The list of products that match your filters. The list contains both the product metadata and the
price information.
Errors
For information about the errors that are common to all actions, see Common Errors.
ExpiredNextTokenException
An error on the server occurred during the processing of your request. Try again later.
GetProducts 774
AWS Billing and Cost Management API Reference
Examples
Sample Request
POST / HTTP/1.1
Host: api.pricing.<region>.<domain>
x-amz-Date: <Date>
Authorization: AWS4-HMAC-SHA256 Credential=<Credential>,
SignedHeaders=contenttype;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-
requestid,Signature=<Signature>
User-Agent: <UserAgentString>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Connection: Keep-Alive
X-Amz-Target: AWSPriceListService.GetProducts
{
"Filters": [
{
"Type": "TERM_MATCH",
"Field": "ServiceCode",
"Value": "AmazonEC2"
},
{
"Type": "TERM_MATCH",
"Field": "volumeType",
"Value": "Provisioned IOPS"
}
],
"FormatVersion": "aws_v1",
"NextToken": null,
"MaxResults": 1,
GetProducts 775
AWS Billing and Cost Management API Reference
"ServiceCode":"AmazonEC2"
}
Sample Response
HTTP/1.1 200 OK
x-amzn-RequestId: <RequestId>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Date: <Date>
{
"FormatVersion": "aws_v1",
"NextToken": "57r3UcqRjDujbzWfHF7Ciw==:ywSmZsD3mtpQmQLQ5XfOsIMkYybSj
+vAT+kGmwMFq+K9DGmIoJkz7lunVeamiOPgthdWSO2a7YKojCO+zY4dJmuNl2QvbNhXs
+AJ2Ufn7xGmJncNI2TsEuAsVCUfTAvAQNcwwamtk6XuZ4YdNnooV62FjkV3ZAn40d9+wAxV7+FImvhUHi/
+f8afgZdGh2zPUlH8jlV9uUtj0oHp8+DhPUuHXh+WBII1E/aoKpPSm3c=",
"PriceList": [
"{\"product\":{\"productFamily\":\"Storage\",\"attributes\":{\"storageMedia
\":\"SSD-backed\",\"maxThroughputvolume\":\"320 MB/sec\",\"volumeType\":\"Provisioned
IOPS\",\"maxIopsvolume\":\"20000\",\"servicecode\":\"AmazonEC2\",\"usagetype\":
\"CAN1-EBS:VolumeUsage.piops\",\"locationType\":\"AWS Region\",\"location\":\"Canada
(Central)\",\"servicename\":\"Amazon Elastic Compute Cloud\",\"maxVolumeSize
\":\"16 TiB\",\"operation\":\"\"},\"sku\":\"WQGC34PB2AWS8R4U\"},\"serviceCode
\":\"AmazonEC2\",\"terms\":{\"OnDemand\":{\"WQGC34PB2AWS8R4U.JRTCKXETXF\":
{\"priceDimensions\":{\"WQGC34PB2AWS8R4U.JRTCKXETXF.6YS6EN2CT7\":{\"unit\":\"GB-Mo
\",\"endRange\":\"Inf\",\"description\":\"$0.138 per GB-month of Provisioned IOPS
SSD (io1) provisioned storage - Canada (Central)\",\"appliesTo\":[],\"rateCode
\":\"WQGC34PB2AWS8R4U.JRTCKXETXF.6YS6EN2CT7\",\"beginRange\":\"0\",\"pricePerUnit
\":{\"USD\":\"0.1380000000\"}}},\"sku\":\"WQGC34PB2AWS8R4U\",\"effectiveDate\":
\"2017-08-01T00:00:00Z\",\"offerTermCode\":\"JRTCKXETXF\",\"termAttributes\":{}}}},
\"version\":\"20170901182201\",\"publicationDate\":\"2017-09-01T18:22:01Z\"}"
]
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
GetProducts 776
AWS Billing and Cost Management API Reference
GetProducts 777
AWS Billing and Cost Management API Reference
ListPriceLists
Service: AWS Price List
This feature is in preview release and is subject to change. Your use of AWS Price List API is
subject to the Beta Service Participation terms of the AWS Service Terms (Section 1.10).
This returns a list of Price List references that the requester if authorized to view, given a
ServiceCode, CurrencyCode, and an EffectiveDate. Use without a RegionCode filter to list
Price List references from all available AWS Regions. Use with a RegionCode filter to get the Price
List reference that's specific to a specific AWS Region. You can use the PriceListArn from the
response to get your preferred Price List files through the GetPriceListFileUrl API.
Request Syntax
{
"CurrencyCode": "string",
"EffectiveDate": number,
"MaxResults": number,
"NextToken": "string",
"RegionCode": "string",
"ServiceCode": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
CurrencyCode
The three alphabetical character ISO-4217 currency code that the Price List files are
denominated in.
Type: String
Pattern: [A-Z]{3}
Required: Yes
EffectiveDate
The date that the Price List file prices are effective from.
ListPriceLists 778
AWS Billing and Cost Management API Reference
Type: Timestamp
Required: Yes
MaxResults
Type: Integer
Required: No
NextToken
The pagination token that indicates the next set of results that you want to retrieve.
Type: String
Required: No
RegionCode
This is used to filter the Price List by AWS Region. For example, to get the price list only for
the US East (N. Virginia) Region, use us-east-1. If nothing is specified, you retrieve
price lists for all applicable Regions. The available RegionCode list can be retrieved from
GetAttributeValues API.
Type: String
Required: No
ServiceCode
The service code or the Savings Plan service code for the attributes that you want to retrieve.
For example, to get the list of applicable Amazon EC2 price lists, use AmazonEC2. For a
full list of service codes containing On-Demand and Reserved Instance (RI) pricing, use the
DescribeServices API.
To retrieve the Reserved Instance and Compute Savings Plan price lists, use
ComputeSavingsPlans.
ListPriceLists 779
AWS Billing and Cost Management API Reference
Type: String
Required: Yes
Response Syntax
{
"NextToken": "string",
"PriceLists": [
{
"CurrencyCode": "string",
"FileFormats": [ "string" ],
"PriceListArn": "string",
"RegionCode": "string"
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
NextToken
The pagination token that indicates the next set of results to retrieve.
Type: String
PriceLists
Errors
For information about the errors that are common to all actions, see Common Errors.
ListPriceLists 780
AWS Billing and Cost Management API Reference
AccessDeniedException
An error on the server occurred during the processing of your request. Try again later.
ListPriceLists 781
AWS Billing and Cost Management API Reference
Examples
Sample Request
POST / HTTP/1.1
Host: api.pricing.<region>.<domain>
x-amz-Date: <Date>Authorization: AWS4-HMAC-SHA256 Credential=<Credential>,
SignedHeaders=contenttype;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-
requestid,Signature=<Signature>User-Agent: <UserAgentString>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>Connection: Keep-Alive
X-Amz-Target: AWSPriceListService.ListPriceLists{
"ServiceCode": "AmazonEC2",
"EffectiveDate": 1651363200,
"CurrencyCode": "USD",
"RegionCode": "us-east-1",
"NextToken": null,
"MaxResults": 10
}
Sample Response
HTTP/1.1 200 OK
x-amzn-RequestId: <RequestId>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Date: <Date>
{
"PriceLists": [
{
"PriceListArn": "arn:aws:pricing:::price-list/aws/AmazonEC2/
USD/20220603151047/us-east-1",
"RegionCode": "us-east-1",
"CurrencyCode": "USD",
"FileFormats": [
"json",
"csv"
]
}
ListPriceLists 782
AWS Billing and Cost Management API Reference
],
"NextToken": "abcdefg123"
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
Tax Settings
The following actions are supported by Tax Settings:
• BatchDeleteTaxRegistration
• BatchGetTaxExemptions
• BatchPutTaxRegistration
• DeleteSupplementalTaxRegistration
• DeleteTaxRegistration
• GetTaxExemptionTypes
• GetTaxInheritance
• GetTaxRegistration
• GetTaxRegistrationDocument
• ListSupplementalTaxRegistrations
• ListTaxExemptions
• ListTaxRegistrations
• PutSupplementalTaxRegistration
• PutTaxExemption
• PutTaxInheritance
• PutTaxRegistration
BatchDeleteTaxRegistration
Service: Tax Settings
Deletes tax registration for multiple accounts in batch. This can be used to delete tax registrations
for up to five accounts in one batch.
Note
This API operation can't be used to delete your tax registration in Brazil. Use the Payment
preferences page in the AWS Billing and Cost Management console instead.
Request Syntax
{
"accountIds": [ "string" ]
}
Request Body
accountIds
Pattern: ^\d+$
BatchDeleteTaxRegistration 785
AWS Billing and Cost Management API Reference
Required: Yes
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"errors": [
{
"accountId": "string",
"code": "string",
"message": "string"
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
errors
The list of errors for the accounts the TRN information could not be deleted for.
Errors
For information about the errors that are common to all actions, see Common Errors.
ConflictException
The exception when the input is creating conflict with the given state.
The exception thrown when an unexpected error occurs when processing a request.
BatchDeleteTaxRegistration 786
AWS Billing and Cost Management API Reference
The exception when the input doesn't pass validation for at least one of the input parameters.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
BatchDeleteTaxRegistration 787
AWS Billing and Cost Management API Reference
BatchGetTaxExemptions
Service: Tax Settings
Get the active tax exemptions for a given list of accounts. The IAM action is tax:GetExemptions.
Request Syntax
{
"accountIds": [ "string" ]
}
Request Body
accountIds
Pattern: ^\d+$
Required: Yes
Response Syntax
HTTP/1.1 200
Content-type: application/json
BatchGetTaxExemptions 788
AWS Billing and Cost Management API Reference
{
"failedAccounts": [ "string" ],
"taxExemptionDetailsMap": {
"string" : {
"heritageObtainedDetails": boolean,
"heritageObtainedParentEntity": "string",
"heritageObtainedReason": "string",
"taxExemptions": [
{
"authority": {
"country": "string",
"state": "string"
},
"effectiveDate": number,
"expirationDate": number,
"status": "string",
"systemEffectiveDate": number,
"taxExemptionType": {
"applicableJurisdictions": [
{
"country": "string",
"state": "string"
}
],
"description": "string",
"displayName": "string"
}
}
]
}
}
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
failedAccounts
BatchGetTaxExemptions 789
AWS Billing and Cost Management API Reference
Pattern: ^\d+$
taxExemptionDetailsMap
The tax exemption details map of accountId and tax exemption details.
Errors
For information about the errors that are common to all actions, see Common Errors.
InternalServerException
The exception thrown when an unexpected error occurs when processing a request.
The exception thrown when the input doesn't have a resource associated to it.
The exception when the input doesn't pass validation for at least one of the input parameters.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
BatchGetTaxExemptions 790
AWS Billing and Cost Management API Reference
BatchGetTaxExemptions 791
AWS Billing and Cost Management API Reference
BatchPutTaxRegistration
Service: Tax Settings
Adds or updates tax registration for multiple accounts in batch. This can be used to add or update
tax registrations for up to five accounts in one batch. You can't set a TRN if there's a pending TRN.
You'll need to delete the pending TRN first.
To call this API operation for specific countries, see the following country-specific requirements.
Bangladesh
• You must specify the tax registration certificate document in the taxRegistrationDocuments
field of the VerificationDetails object.
Brazil
• You must complete the tax registration process in the Payment preferences page in the AWS
Billing and Cost Management console. After your TRN and billing address are verified, you can
call this API operation.
• For AWS accounts created through AWS Organizations, you can call this API operation when you
don't have a billing address.
Georgia
Kenya
• If the personType is Physical Person, you must specify the tax registration certificate
document in the taxRegistrationDocuments field of the VerificationDetails object.
Malaysia
BatchPutTaxRegistration 792
AWS Billing and Cost Management API Reference
• RegistrationType valid values are NRIC for individual, and TIN and sales and service tax (SST)
for Business.
• For individual, you can specify the taxInformationNumber in MalaysiaAdditionalInfo
with NRIC type, and a valid MyKad or NRIC number.
• For business, you must specify a businessRegistrationNumber in
MalaysiaAdditionalInfo with a TIN type and tax identification number.
• For business resellers, you must specify a businessRegistrationNumber and
taxInformationNumber in MalaysiaAdditionalInfo with a sales and service tax (SST) type
and a valid SST number.
• For business resellers with service codes, you must specify businessRegistrationNumber,
taxInformationNumber, and distinct serviceTaxCodes in MalaysiaAdditionalInfo
with a SST type and valid sales and service tax (SST) number. By using this API operation, AWS
registers your self-declaration that you’re an authorized business reseller registered with the
Royal Malaysia Customs Department (RMCD), and have a valid SST number.
• AWS reserves the right to seek additional information and/or take other actions to support your
self-declaration as appropriate.
• AWS is currently registered under the following service tax codes. You must include at least
one of the service tax codes in the service tax code strings to declare yourself as an authorized
registered business reseller.
Consultancy - 9907061674
IT service - 9907101676
Nepal
Saudi Arabia
BatchPutTaxRegistration 793
AWS Billing and Cost Management API Reference
South Korea
• For the address object, use Korean characters for addressLine1, addressLine2 city,
postalCode, and stateOrRegion.
Spain
• If the registrationType is Local, you must specify the tax registration certificate document
in the taxRegistrationDocuments field of the VerificationDetails object.
Turkey
• Specify the taxOffice. If your sector is Individual, don't enter this value.
• (Optional) Specify the kepEmailId. If your sector is Individual, don't enter this value.
• Note: In the Tax Settings page of the AWS Billing console, Government appears as Public
institutions
• If your sector is Business and you're subject to KDV tax, you must specify your industry in the
industries field.
Ukraine
BatchPutTaxRegistration 794
AWS Billing and Cost Management API Reference
Request Syntax
{
"accountIds": [ "string" ],
"taxRegistrationEntry": {
"additionalTaxInformation": {
"canadaAdditionalInfo": {
"canadaQuebecSalesTaxNumber": "string",
"canadaRetailSalesTaxNumber": "string",
"isResellerAccount": boolean,
"provincialSalesTaxId": "string"
},
"egyptAdditionalInfo": {
"uniqueIdentificationNumber": "string",
"uniqueIdentificationNumberExpirationDate": "string"
},
"estoniaAdditionalInfo": {
"registryCommercialCode": "string"
},
"georgiaAdditionalInfo": {
"personType": "string"
},
"greeceAdditionalInfo": {
"contractingAuthorityCode": "string"
},
"israelAdditionalInfo": {
"customerType": "string",
"dealerType": "string"
},
"italyAdditionalInfo": {
"cigNumber": "string",
"cupNumber": "string",
"sdiAccountId": "string",
"taxCode": "string"
},
"kenyaAdditionalInfo": {
"personType": "string"
},
"malaysiaAdditionalInfo": {
"businessRegistrationNumber": "string",
BatchPutTaxRegistration 795
AWS Billing and Cost Management API Reference
"serviceTaxCodes": [ "string" ],
"taxInformationNumber": "string"
},
"polandAdditionalInfo": {
"individualRegistrationNumber": "string",
"isGroupVatEnabled": boolean
},
"romaniaAdditionalInfo": {
"taxRegistrationNumberType": "string"
},
"saudiArabiaAdditionalInfo": {
"taxRegistrationNumberType": "string"
},
"southKoreaAdditionalInfo": {
"businessRepresentativeName": "string",
"itemOfBusiness": "string",
"lineOfBusiness": "string"
},
"spainAdditionalInfo": {
"registrationType": "string"
},
"turkeyAdditionalInfo": {
"industries": "string",
"kepEmailId": "string",
"secondaryTaxId": "string",
"taxOffice": "string"
},
"ukraineAdditionalInfo": {
"ukraineTrnType": "string"
},
"vietnamAdditionalInfo": {
"electronicTransactionCodeNumber": "string",
"enterpriseIdentificationNumber": "string",
"paymentVoucherNumber": "string",
"paymentVoucherNumberDate": "string"
}
},
"certifiedEmailId": "string",
"legalAddress": {
"addressLine1": "string",
"addressLine2": "string",
"addressLine3": "string",
"city": "string",
"countryCode": "string",
BatchPutTaxRegistration 796
AWS Billing and Cost Management API Reference
"districtOrCounty": "string",
"postalCode": "string",
"stateOrRegion": "string"
},
"legalName": "string",
"registrationId": "string",
"registrationType": "string",
"sector": "string",
"verificationDetails": {
"dateOfBirth": "string",
"taxRegistrationDocuments": [
{
"file": {
"fileContent": blob,
"fileName": "string"
},
"s3Location": {
"bucket": "string",
"key": "string"
}
}
]
}
}
}
Request Body
accountIds
BatchPutTaxRegistration 797
AWS Billing and Cost Management API Reference
Pattern: ^\d+$
Required: Yes
taxRegistrationEntry
Your TRN information that will be stored to the accounts mentioned in putEntries.
Required: Yes
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"errors": [
{
"accountId": "string",
"code": "string",
"message": "string"
}
],
"status": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
errors
List of errors for the accounts the TRN information could not be added or updated to.
The status of your TRN stored in the system after processing. Based on the validation occurring
on the TRN, the status can be Verified, Pending or Rejected.
BatchPutTaxRegistration 798
AWS Billing and Cost Management API Reference
Type: String
Errors
For information about the errors that are common to all actions, see Common Errors.
ConflictException
The exception when the input is creating conflict with the given state.
The exception thrown when an unexpected error occurs when processing a request.
The exception when the input doesn't pass validation for at least one of the input parameters.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
BatchPutTaxRegistration 799
AWS Billing and Cost Management API Reference
BatchPutTaxRegistration 800
AWS Billing and Cost Management API Reference
DeleteSupplementalTaxRegistration
Service: Tax Settings
Request Syntax
{
"authorityId": "string"
}
Request Body
authorityId
The unique authority Id for the supplemental TRN information that needs to be deleted.
Type: String
Pattern: ^[\s\S]*$
Required: Yes
Response Syntax
HTTP/1.1 200
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
DeleteSupplementalTaxRegistration 801
AWS Billing and Cost Management API Reference
Errors
For information about the errors that are common to all actions, see Common Errors.
ConflictException
The exception when the input is creating conflict with the given state.
The exception thrown when an unexpected error occurs when processing a request.
The exception thrown when the input doesn't have a resource associated to it.
The exception when the input doesn't pass validation for at least one of the input parameters.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
DeleteSupplementalTaxRegistration 802
AWS Billing and Cost Management API Reference
DeleteSupplementalTaxRegistration 803
AWS Billing and Cost Management API Reference
DeleteTaxRegistration
Service: Tax Settings
Note
This API operation can't be used to delete your tax registration in Brazil. Use the Payment
preferences page in the AWS Billing and Cost Management console instead.
Request Syntax
{
"accountId": "string"
}
Request Body
accountId
Unique account identifier for the TRN information that needs to be deleted. If this isn't passed,
the account ID corresponding to the credentials of the API caller will be used for this parameter.
Type: String
Pattern: ^\d+$
Required: No
DeleteTaxRegistration 804
AWS Billing and Cost Management API Reference
Response Syntax
HTTP/1.1 200
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors.
ConflictException
The exception when the input is creating conflict with the given state.
The exception thrown when an unexpected error occurs when processing a request.
The exception thrown when the input doesn't have a resource associated to it.
The exception when the input doesn't pass validation for at least one of the input parameters.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
DeleteTaxRegistration 805
AWS Billing and Cost Management API Reference
DeleteTaxRegistration 806
AWS Billing and Cost Management API Reference
GetTaxExemptionTypes
Service: Tax Settings
Request Syntax
Request Body
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"taxExemptionTypes": [
{
"applicableJurisdictions": [
{
"country": "string",
"state": "string"
}
],
"description": "string",
"displayName": "string"
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
GetTaxExemptionTypes 807
AWS Billing and Cost Management API Reference
taxExemptionTypes
Errors
For information about the errors that are common to all actions, see Common Errors.
InternalServerException
The exception thrown when an unexpected error occurs when processing a request.
The exception thrown when the input doesn't have a resource associated to it.
The exception when the input doesn't pass validation for at least one of the input parameters.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
GetTaxExemptionTypes 808
AWS Billing and Cost Management API Reference
GetTaxExemptionTypes 809
AWS Billing and Cost Management API Reference
GetTaxInheritance
Service: Tax Settings
Request Syntax
Request Body
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"heritageStatus": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
heritageStatus
Type: String
GetTaxInheritance 810
AWS Billing and Cost Management API Reference
Errors
For information about the errors that are common to all actions, see Common Errors.
InternalServerException
The exception thrown when an unexpected error occurs when processing a request.
The exception thrown when the input doesn't have a resource associated to it.
The exception when the input doesn't pass validation for at least one of the input parameters.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
GetTaxInheritance 811
AWS Billing and Cost Management API Reference
GetTaxRegistration
Service: Tax Settings
Request Syntax
{
"accountId": "string"
}
Request Body
accountId
Type: String
Pattern: ^\d+$
Required: No
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"taxRegistration": {
"additionalTaxInformation": {
GetTaxRegistration 812
AWS Billing and Cost Management API Reference
"brazilAdditionalInfo": {
"ccmCode": "string",
"legalNatureCode": "string"
},
"canadaAdditionalInfo": {
"canadaQuebecSalesTaxNumber": "string",
"canadaRetailSalesTaxNumber": "string",
"isResellerAccount": boolean,
"provincialSalesTaxId": "string"
},
"egyptAdditionalInfo": {
"uniqueIdentificationNumber": "string",
"uniqueIdentificationNumberExpirationDate": "string"
},
"estoniaAdditionalInfo": {
"registryCommercialCode": "string"
},
"georgiaAdditionalInfo": {
"personType": "string"
},
"greeceAdditionalInfo": {
"contractingAuthorityCode": "string"
},
"indiaAdditionalInfo": {
"pan": "string"
},
"israelAdditionalInfo": {
"customerType": "string",
"dealerType": "string"
},
"italyAdditionalInfo": {
"cigNumber": "string",
"cupNumber": "string",
"sdiAccountId": "string",
"taxCode": "string"
},
"kenyaAdditionalInfo": {
"personType": "string"
},
"malaysiaAdditionalInfo": {
"businessRegistrationNumber": "string",
"serviceTaxCodes": [ "string" ],
"taxInformationNumber": "string"
},
GetTaxRegistration 813
AWS Billing and Cost Management API Reference
"polandAdditionalInfo": {
"individualRegistrationNumber": "string",
"isGroupVatEnabled": boolean
},
"romaniaAdditionalInfo": {
"taxRegistrationNumberType": "string"
},
"saudiArabiaAdditionalInfo": {
"taxRegistrationNumberType": "string"
},
"southKoreaAdditionalInfo": {
"businessRepresentativeName": "string",
"itemOfBusiness": "string",
"lineOfBusiness": "string"
},
"spainAdditionalInfo": {
"registrationType": "string"
},
"turkeyAdditionalInfo": {
"industries": "string",
"kepEmailId": "string",
"secondaryTaxId": "string",
"taxOffice": "string"
},
"ukraineAdditionalInfo": {
"ukraineTrnType": "string"
},
"vietnamAdditionalInfo": {
"electronicTransactionCodeNumber": "string",
"enterpriseIdentificationNumber": "string",
"paymentVoucherNumber": "string",
"paymentVoucherNumberDate": "string"
}
},
"certifiedEmailId": "string",
"legalAddress": {
"addressLine1": "string",
"addressLine2": "string",
"addressLine3": "string",
"city": "string",
"countryCode": "string",
"districtOrCounty": "string",
"postalCode": "string",
"stateOrRegion": "string"
GetTaxRegistration 814
AWS Billing and Cost Management API Reference
},
"legalName": "string",
"registrationId": "string",
"registrationType": "string",
"sector": "string",
"status": "string",
"taxDocumentMetadatas": [
{
"taxDocumentAccessToken": "string",
"taxDocumentName": "string"
}
]
}
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
taxRegistration
Errors
For information about the errors that are common to all actions, see Common Errors.
InternalServerException
The exception thrown when an unexpected error occurs when processing a request.
The exception thrown when the input doesn't have a resource associated to it.
GetTaxRegistration 815
AWS Billing and Cost Management API Reference
ValidationException
The exception when the input doesn't pass validation for at least one of the input parameters.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
GetTaxRegistration 816
AWS Billing and Cost Management API Reference
GetTaxRegistrationDocument
Service: Tax Settings
Downloads your tax documents to the Amazon S3 bucket that you specify in your request.
Request Syntax
{
"destinationS3Location": {
"bucket": "string",
"prefix": "string"
},
"taxDocumentMetadata": {
"taxDocumentAccessToken": "string",
"taxDocumentName": "string"
}
}
Request Body
destinationS3Location
The Amazon S3 bucket that you specify to download your tax documents to.
Required: No
taxDocumentMetadata
Required: Yes
GetTaxRegistrationDocument 817
AWS Billing and Cost Management API Reference
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"destinationFilePath": "string",
"presignedS3Url": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
destinationFilePath
The file path of the Amazon S3 bucket where you want to download your tax document to.
Type: String
Pattern: ^[\s\S]*$
presignedS3Url
Type: String
Pattern: ^https.*\S.*$
Errors
For information about the errors that are common to all actions, see Common Errors.
InternalServerException
The exception thrown when an unexpected error occurs when processing a request.
GetTaxRegistrationDocument 818
AWS Billing and Cost Management API Reference
ValidationException
The exception when the input doesn't pass validation for at least one of the input parameters.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
GetTaxRegistrationDocument 819
AWS Billing and Cost Management API Reference
ListSupplementalTaxRegistrations
Service: Tax Settings
Request Syntax
{
"maxResults": number,
"nextToken": "string"
}
Request Body
maxResults
Type: Integer
Required: No
nextToken
Type: String
Pattern: ^[-A-Za-z0-9_+\=\/]+$
Required: No
ListSupplementalTaxRegistrations 820
AWS Billing and Cost Management API Reference
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"nextToken": "string",
"taxRegistrations": [
{
"address": {
"addressLine1": "string",
"addressLine2": "string",
"addressLine3": "string",
"city": "string",
"countryCode": "string",
"districtOrCounty": "string",
"postalCode": "string",
"stateOrRegion": "string"
},
"authorityId": "string",
"legalName": "string",
"registrationId": "string",
"registrationType": "string",
"status": "string"
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
nextToken
Type: String
Pattern: ^[-A-Za-z0-9_+\=\/]+$
ListSupplementalTaxRegistrations 821
AWS Billing and Cost Management API Reference
taxRegistrations
Errors
For information about the errors that are common to all actions, see Common Errors.
InternalServerException
The exception thrown when an unexpected error occurs when processing a request.
The exception thrown when the input doesn't have a resource associated to it.
The exception when the input doesn't pass validation for at least one of the input parameters.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ListSupplementalTaxRegistrations 822
AWS Billing and Cost Management API Reference
ListSupplementalTaxRegistrations 823
AWS Billing and Cost Management API Reference
ListTaxExemptions
Service: Tax Settings
Retrieves the tax exemption of accounts listed in a consolidated billing family. The IAM action is
tax:GetExemptions.
Request Syntax
{
"maxResults": number,
"nextToken": "string"
}
Request Body
maxResults
Type: Integer
Required: No
nextToken
Type: String
Pattern: ^[-A-Za-z0-9_+\=\/]+$
Required: No
ListTaxExemptions 824
AWS Billing and Cost Management API Reference
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"nextToken": "string",
"taxExemptionDetailsMap": {
"string" : {
"heritageObtainedDetails": boolean,
"heritageObtainedParentEntity": "string",
"heritageObtainedReason": "string",
"taxExemptions": [
{
"authority": {
"country": "string",
"state": "string"
},
"effectiveDate": number,
"expirationDate": number,
"status": "string",
"systemEffectiveDate": number,
"taxExemptionType": {
"applicableJurisdictions": [
{
"country": "string",
"state": "string"
}
],
"description": "string",
"displayName": "string"
}
}
]
}
}
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
ListTaxExemptions 825
AWS Billing and Cost Management API Reference
nextToken
Type: String
Pattern: ^[-A-Za-z0-9_+\=\/]+$
taxExemptionDetailsMap
The tax exemption details map of accountId and tax exemption details.
Errors
For information about the errors that are common to all actions, see Common Errors.
InternalServerException
The exception thrown when an unexpected error occurs when processing a request.
The exception thrown when the input doesn't have a resource associated to it.
The exception when the input doesn't pass validation for at least one of the input parameters.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ListTaxExemptions 826
AWS Billing and Cost Management API Reference
ListTaxExemptions 827
AWS Billing and Cost Management API Reference
ListTaxRegistrations
Service: Tax Settings
Retrieves the tax registration of accounts listed in a consolidated billing family. This can be used to
retrieve up to 100 accounts' tax registrations in one call (default 50).
Request Syntax
{
"maxResults": number,
"nextToken": "string"
}
Request Body
maxResults
Type: Integer
Required: No
nextToken
Type: String
Pattern: ^[-A-Za-z0-9_+\=\/]+$
Required: No
ListTaxRegistrations 828
AWS Billing and Cost Management API Reference
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"accountDetails": [
{
"accountId": "string",
"accountMetaData": {
"accountName": "string",
"address": {
"addressLine1": "string",
"addressLine2": "string",
"addressLine3": "string",
"city": "string",
"countryCode": "string",
"districtOrCounty": "string",
"postalCode": "string",
"stateOrRegion": "string"
},
"addressRoleMap": {
"string" : {
"countryCode": "string",
"stateOrRegion": "string"
}
},
"addressType": "string",
"seller": "string"
},
"taxInheritanceDetails": {
"inheritanceObtainedReason": "string",
"parentEntityId": "string"
},
"taxRegistration": {
"additionalTaxInformation": {
"brazilAdditionalInfo": {
"ccmCode": "string",
"legalNatureCode": "string"
},
"canadaAdditionalInfo": {
"canadaQuebecSalesTaxNumber": "string",
"canadaRetailSalesTaxNumber": "string",
ListTaxRegistrations 829
AWS Billing and Cost Management API Reference
"isResellerAccount": boolean,
"provincialSalesTaxId": "string"
},
"egyptAdditionalInfo": {
"uniqueIdentificationNumber": "string",
"uniqueIdentificationNumberExpirationDate": "string"
},
"estoniaAdditionalInfo": {
"registryCommercialCode": "string"
},
"georgiaAdditionalInfo": {
"personType": "string"
},
"greeceAdditionalInfo": {
"contractingAuthorityCode": "string"
},
"indiaAdditionalInfo": {
"pan": "string"
},
"israelAdditionalInfo": {
"customerType": "string",
"dealerType": "string"
},
"italyAdditionalInfo": {
"cigNumber": "string",
"cupNumber": "string",
"sdiAccountId": "string",
"taxCode": "string"
},
"kenyaAdditionalInfo": {
"personType": "string"
},
"malaysiaAdditionalInfo": {
"businessRegistrationNumber": "string",
"serviceTaxCodes": [ "string" ],
"taxInformationNumber": "string"
},
"polandAdditionalInfo": {
"individualRegistrationNumber": "string",
"isGroupVatEnabled": boolean
},
"romaniaAdditionalInfo": {
"taxRegistrationNumberType": "string"
},
ListTaxRegistrations 830
AWS Billing and Cost Management API Reference
"saudiArabiaAdditionalInfo": {
"taxRegistrationNumberType": "string"
},
"southKoreaAdditionalInfo": {
"businessRepresentativeName": "string",
"itemOfBusiness": "string",
"lineOfBusiness": "string"
},
"spainAdditionalInfo": {
"registrationType": "string"
},
"turkeyAdditionalInfo": {
"industries": "string",
"kepEmailId": "string",
"secondaryTaxId": "string",
"taxOffice": "string"
},
"ukraineAdditionalInfo": {
"ukraineTrnType": "string"
},
"vietnamAdditionalInfo": {
"electronicTransactionCodeNumber": "string",
"enterpriseIdentificationNumber": "string",
"paymentVoucherNumber": "string",
"paymentVoucherNumberDate": "string"
}
},
"certifiedEmailId": "string",
"jurisdiction": {
"countryCode": "string",
"stateOrRegion": "string"
},
"legalName": "string",
"registrationId": "string",
"registrationType": "string",
"sector": "string",
"status": "string",
"taxDocumentMetadatas": [
{
"taxDocumentAccessToken": "string",
"taxDocumentName": "string"
}
]
}
ListTaxRegistrations 831
AWS Billing and Cost Management API Reference
}
],
"nextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
accountDetails
The list of account details. This contains account Ids and TRN Information for each of the linked
accounts.
Type: String
Pattern: ^[-A-Za-z0-9_+\=\/]+$
Errors
For information about the errors that are common to all actions, see Common Errors.
InternalServerException
The exception thrown when an unexpected error occurs when processing a request.
The exception thrown when the input doesn't have a resource associated to it.
ListTaxRegistrations 832
AWS Billing and Cost Management API Reference
ValidationException
The exception when the input doesn't pass validation for at least one of the input parameters.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ListTaxRegistrations 833
AWS Billing and Cost Management API Reference
PutSupplementalTaxRegistration
Service: Tax Settings
Request Syntax
{
"taxRegistrationEntry": {
"address": {
"addressLine1": "string",
"addressLine2": "string",
"addressLine3": "string",
"city": "string",
"countryCode": "string",
"districtOrCounty": "string",
"postalCode": "string",
"stateOrRegion": "string"
},
"legalName": "string",
"registrationId": "string",
"registrationType": "string"
}
}
Request Body
taxRegistrationEntry
The supplemental TRN information that will be stored for the caller account ID.
Required: Yes
PutSupplementalTaxRegistration 834
AWS Billing and Cost Management API Reference
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"authorityId": "string",
"status": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
authorityId
Unique authority ID for the supplemental TRN information that was stored.
Type: String
Pattern: ^[\s\S]*$
status
The status of the supplemental TRN stored in the system after processing. Based on the
validation occurring on the TRN, the status can be Verified, Pending, Rejected, or
Deleted.
Type: String
Errors
For information about the errors that are common to all actions, see Common Errors.
ConflictException
The exception when the input is creating conflict with the given state.
PutSupplementalTaxRegistration 835
AWS Billing and Cost Management API Reference
The exception thrown when an unexpected error occurs when processing a request.
The exception when the input doesn't pass validation for at least one of the input parameters.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
PutSupplementalTaxRegistration 836
AWS Billing and Cost Management API Reference
PutTaxExemption
Service: Tax Settings
Adds the tax exemption for a single account or all accounts listed in a consolidated billing family.
The IAM action is tax:UpdateExemptions.
Request Syntax
{
"accountIds": [ "string" ],
"authority": {
"country": "string",
"state": "string"
},
"exemptionCertificate": {
"documentFile": blob,
"documentName": "string"
},
"exemptionType": "string"
}
Request Body
accountIds
PutTaxExemption 837
AWS Billing and Cost Management API Reference
Pattern: ^\d+$
Required: Yes
authority
Required: Yes
exemptionCertificate
Required: Yes
exemptionType
The exemption type. Use the supported tax exemption type description.
Type: String
Pattern: ^[\s\S]*$
Required: Yes
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"caseId": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
PutTaxExemption 838
AWS Billing and Cost Management API Reference
caseId
Type: String
Pattern: ^[\s\S]*$
Errors
For information about the errors that are common to all actions, see Common Errors.
AccessDeniedException
You've exceeded the Support case creation limit for your account.
The exception thrown when an unexpected error occurs when processing a request.
The exception thrown when the input doesn't have a resource associated to it.
PutTaxExemption 839
AWS Billing and Cost Management API Reference
ValidationException
The exception when the input doesn't pass validation for at least one of the input parameters.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
PutTaxExemption 840
AWS Billing and Cost Management API Reference
PutTaxInheritance
Service: Tax Settings
Request Syntax
{
"heritageStatus": "string"
}
Request Body
heritageStatus
Type: String
Required: No
Response Syntax
HTTP/1.1 200
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
PutTaxInheritance 841
AWS Billing and Cost Management API Reference
Errors
For information about the errors that are common to all actions, see Common Errors.
ConflictException
The exception when the input is creating conflict with the given state.
The exception thrown when an unexpected error occurs when processing a request.
The exception thrown when the input doesn't have a resource associated to it.
The exception when the input doesn't pass validation for at least one of the input parameters.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
PutTaxInheritance 842
AWS Billing and Cost Management API Reference
PutTaxInheritance 843
AWS Billing and Cost Management API Reference
PutTaxRegistration
Service: Tax Settings
Adds or updates tax registration for a single account. You can't set a TRN if there's a pending TRN.
You'll need to delete the pending TRN first.
To call this API operation for specific countries, see the following country-specific requirements.
Bangladesh
• You must specify the tax registration certificate document in the taxRegistrationDocuments
field of the VerificationDetails object.
Brazil
• You must complete the tax registration process in the Payment preferences page in the AWS
Billing and Cost Management console. After your TRN and billing address are verified, you can
call this API operation.
• For AWS accounts created through AWS Organizations, you can call this API operation when you
don't have a billing address.
Georgia
Kenya
Malaysia
PutTaxRegistration 844
AWS Billing and Cost Management API Reference
Consultancy - 9907061674
IT service - 9907101676
Nepal
Saudi Arabia
South Korea
PutTaxRegistration 845
AWS Billing and Cost Management API Reference
• You must specify the tax registration certificate document in the taxRegistrationDocuments
field of the VerificationDetails object.
• For the address object, use Korean characters for addressLine1, addressLine2 city,
postalCode, and stateOrRegion.
Spain
• If the registrationType is Local, you must specify the tax registration certificate document
in the taxRegistrationDocuments field of the VerificationDetails object.
Turkey
• Specify the taxOffice. If your sector is Individual, don't enter this value.
• (Optional) Specify the kepEmailId. If your sector is Individual, don't enter this value.
• Note: In the Tax Settings page of the AWS Billing console, Government appears as Public
institutions
• If your sector is Business and you're subject to KDV tax, you must specify your industry in the
industries field.
Ukraine
PutTaxRegistration 846
AWS Billing and Cost Management API Reference
Request Syntax
{
"accountId": "string",
"taxRegistrationEntry": {
"additionalTaxInformation": {
"canadaAdditionalInfo": {
"canadaQuebecSalesTaxNumber": "string",
"canadaRetailSalesTaxNumber": "string",
"isResellerAccount": boolean,
"provincialSalesTaxId": "string"
},
"egyptAdditionalInfo": {
"uniqueIdentificationNumber": "string",
"uniqueIdentificationNumberExpirationDate": "string"
},
"estoniaAdditionalInfo": {
"registryCommercialCode": "string"
},
"georgiaAdditionalInfo": {
"personType": "string"
},
"greeceAdditionalInfo": {
"contractingAuthorityCode": "string"
},
"israelAdditionalInfo": {
"customerType": "string",
"dealerType": "string"
},
"italyAdditionalInfo": {
"cigNumber": "string",
"cupNumber": "string",
"sdiAccountId": "string",
"taxCode": "string"
},
"kenyaAdditionalInfo": {
"personType": "string"
},
"malaysiaAdditionalInfo": {
"businessRegistrationNumber": "string",
PutTaxRegistration 847
AWS Billing and Cost Management API Reference
"serviceTaxCodes": [ "string" ],
"taxInformationNumber": "string"
},
"polandAdditionalInfo": {
"individualRegistrationNumber": "string",
"isGroupVatEnabled": boolean
},
"romaniaAdditionalInfo": {
"taxRegistrationNumberType": "string"
},
"saudiArabiaAdditionalInfo": {
"taxRegistrationNumberType": "string"
},
"southKoreaAdditionalInfo": {
"businessRepresentativeName": "string",
"itemOfBusiness": "string",
"lineOfBusiness": "string"
},
"spainAdditionalInfo": {
"registrationType": "string"
},
"turkeyAdditionalInfo": {
"industries": "string",
"kepEmailId": "string",
"secondaryTaxId": "string",
"taxOffice": "string"
},
"ukraineAdditionalInfo": {
"ukraineTrnType": "string"
},
"vietnamAdditionalInfo": {
"electronicTransactionCodeNumber": "string",
"enterpriseIdentificationNumber": "string",
"paymentVoucherNumber": "string",
"paymentVoucherNumberDate": "string"
}
},
"certifiedEmailId": "string",
"legalAddress": {
"addressLine1": "string",
"addressLine2": "string",
"addressLine3": "string",
"city": "string",
"countryCode": "string",
PutTaxRegistration 848
AWS Billing and Cost Management API Reference
"districtOrCounty": "string",
"postalCode": "string",
"stateOrRegion": "string"
},
"legalName": "string",
"registrationId": "string",
"registrationType": "string",
"sector": "string",
"verificationDetails": {
"dateOfBirth": "string",
"taxRegistrationDocuments": [
{
"file": {
"fileContent": blob,
"fileName": "string"
},
"s3Location": {
"bucket": "string",
"key": "string"
}
}
]
}
}
}
Request Body
accountId
Type: String
Pattern: ^\d+$
PutTaxRegistration 849
AWS Billing and Cost Management API Reference
Required: No
taxRegistrationEntry
Your TRN information that will be stored to the account mentioned in accountId.
Required: Yes
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"status": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
status
The status of your TRN stored in the system after processing. Based on the validation occurring
on the TRN, the status can be Verified, Pending or Rejected.
Type: String
Errors
For information about the errors that are common to all actions, see Common Errors.
ConflictException
The exception when the input is creating conflict with the given state.
PutTaxRegistration 850
AWS Billing and Cost Management API Reference
The exception thrown when an unexpected error occurs when processing a request.
The exception when the input doesn't pass validation for at least one of the input parameters.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
PutTaxRegistration 851
AWS Billing and Cost Management API Reference
Data Types
The following data types are supported by AWS Cost Explorer:
• AnalysisDetails
• AnalysisSummary
• Anomaly
• AnomalyDateInterval
• AnomalyMonitor
• AnomalyScore
• AnomalySubscription
• CommitmentPurchaseAnalysisConfiguration
• CostAllocationTag
• CostAllocationTagBackfillRequest
• CostAllocationTagStatusEntry
• CostCategory
• CostCategoryInheritedValueDimension
• CostCategoryProcessingStatus
• CostCategoryReference
• CostCategoryRule
• CostCategorySplitChargeRule
• CostCategorySplitChargeRuleParameter
• CostCategoryValues
• Coverage
• CoverageByTime
• CoverageCost
• CoverageHours
• CoverageNormalizedUnits
• CurrentInstance
• DateInterval
852
AWS Billing and Cost Management API Reference
• DimensionValues
• DimensionValuesWithAttributes
• DiskResourceUtilization
• DynamoDBCapacityDetails
• EBSResourceUtilization
• EC2InstanceDetails
• EC2ResourceDetails
• EC2ResourceUtilization
• EC2Specification
• ElastiCacheInstanceDetails
• ESInstanceDetails
• Expression
• ForecastResult
• GenerationSummary
• Group
• GroupDefinition
• Impact
• InstanceDetails
• MemoryDBInstanceDetails
• MetricValue
• ModifyRecommendationDetail
• NetworkResourceUtilization
• RDSInstanceDetails
• RecommendationDetailData
• RecommendationDetailHourlyMetrics
• RedshiftInstanceDetails
• ReservationAggregates
• ReservationCoverageGroup
• ReservationPurchaseRecommendation
• ReservationPurchaseRecommendationDetail
853
AWS Billing and Cost Management API Reference
• ReservationPurchaseRecommendationMetadata
• ReservationPurchaseRecommendationSummary
• ReservationUtilizationGroup
• ReservedCapacityDetails
• ResourceDetails
• ResourceTag
• ResourceUtilization
• ResultByTime
• RightsizingRecommendation
• RightsizingRecommendationConfiguration
• RightsizingRecommendationMetadata
• RightsizingRecommendationSummary
• RootCause
• RootCauseImpact
• SavingsPlans
• SavingsPlansAmortizedCommitment
• SavingsPlansCoverage
• SavingsPlansCoverageData
• SavingsPlansDetails
• SavingsPlansPurchaseAnalysisConfiguration
• SavingsPlansPurchaseAnalysisDetails
• SavingsPlansPurchaseRecommendation
• SavingsPlansPurchaseRecommendationDetail
• SavingsPlansPurchaseRecommendationMetadata
• SavingsPlansPurchaseRecommendationSummary
• SavingsPlansSavings
• SavingsPlansUtilization
• SavingsPlansUtilizationAggregates
• SavingsPlansUtilizationByTime
• SavingsPlansUtilizationDetail
854
AWS Billing and Cost Management API Reference
• ServiceSpecification
• SortDefinition
• Subscriber
• TagValues
• TargetInstance
• TerminateRecommendationDetail
• TotalImpactFilter
• UpdateCostAllocationTagsStatusError
• UtilizationByTime
• Column
• DataQuery
• DestinationConfigurations
• ExecutionReference
• ExecutionStatus
• Export
• ExportReference
• ExportStatus
• RefreshCadence
• ResourceTag
• S3Destination
• S3OutputConfigurations
• Table
• TablePropertyDescription
• ValidationExceptionField
• AddReservedInstanceAction
855
AWS Billing and Cost Management API Reference
• AddSavingsPlanAction
• BatchCreateBillScenarioCommitmentModificationEntry
• BatchCreateBillScenarioCommitmentModificationError
• BatchCreateBillScenarioCommitmentModificationItem
• BatchCreateBillScenarioUsageModificationEntry
• BatchCreateBillScenarioUsageModificationError
• BatchCreateBillScenarioUsageModificationItem
• BatchCreateWorkloadEstimateUsageEntry
• BatchCreateWorkloadEstimateUsageError
• BatchCreateWorkloadEstimateUsageItem
• BatchDeleteBillScenarioCommitmentModificationError
• BatchDeleteBillScenarioUsageModificationError
• BatchDeleteWorkloadEstimateUsageError
• BatchUpdateBillScenarioCommitmentModificationEntry
• BatchUpdateBillScenarioCommitmentModificationError
• BatchUpdateBillScenarioUsageModificationEntry
• BatchUpdateBillScenarioUsageModificationError
• BatchUpdateWorkloadEstimateUsageEntry
• BatchUpdateWorkloadEstimateUsageError
• BillEstimateCommitmentSummary
• BillEstimateCostSummary
• BillEstimateInputCommitmentModificationSummary
• BillEstimateInputUsageModificationSummary
• BillEstimateLineItemSummary
• BillEstimateSummary
• BillInterval
• BillScenarioCommitmentModificationAction
• BillScenarioCommitmentModificationItem
• BillScenarioSummary
• BillScenarioUsageModificationItem
856
AWS Billing and Cost Management API Reference
• CostAmount
• CostDifference
• Expression
• ExpressionFilter
• FilterTimestamp
• HistoricalUsageEntity
• ListBillEstimateLineItemsFilter
• ListBillEstimatesFilter
• ListBillScenariosFilter
• ListUsageFilter
• ListWorkloadEstimatesFilter
• NegateReservedInstanceAction
• NegateSavingsPlanAction
• UsageAmount
• UsageQuantity
• UsageQuantityResult
• ValidationExceptionField
• WorkloadEstimateSummary
• WorkloadEstimateUsageItem
• WorkloadEstimateUsageQuantity
• ActiveTimeRange
• BillingViewElement
• BillingViewListElement
• DimensionValues
• Expression
• ResourceTag
• TagValues
• ValidationExceptionField
857
AWS Billing and Cost Management API Reference
• Action
• ActionHistory
• ActionHistoryDetails
• ActionThreshold
• AutoAdjustData
• Budget
• BudgetedAndActualAmounts
• BudgetNotificationsForAccount
• BudgetPerformanceHistory
• CalculatedSpend
• CostTypes
• Definition
• HistoricalOptions
• IamActionDefinition
• Notification
• NotificationWithSubscribers
• ResourceTag
• ScpActionDefinition
• Spend
• SsmActionDefinition
• Subscriber
• TimePeriod
The following data types are supported by AWS Cost Optimization Hub:
• AccountEnrollmentStatus
• BlockStoragePerformanceConfiguration
• ComputeConfiguration
• ComputeSavingsPlans
• ComputeSavingsPlansConfiguration
858
AWS Billing and Cost Management API Reference
• DbInstanceConfiguration
• EbsVolume
• EbsVolumeConfiguration
• Ec2AutoScalingGroup
• Ec2AutoScalingGroupConfiguration
• Ec2Instance
• Ec2InstanceConfiguration
• Ec2InstanceSavingsPlans
• Ec2InstanceSavingsPlansConfiguration
• Ec2ReservedInstances
• Ec2ReservedInstancesConfiguration
• EcsService
• EcsServiceConfiguration
• ElastiCacheReservedInstances
• ElastiCacheReservedInstancesConfiguration
• EstimatedDiscounts
• Filter
• InstanceConfiguration
• LambdaFunction
• LambdaFunctionConfiguration
• MixedInstanceConfiguration
• OpenSearchReservedInstances
• OpenSearchReservedInstancesConfiguration
• OrderBy
• RdsDbInstance
• RdsDbInstanceConfiguration
• RdsDbInstanceStorage
• RdsDbInstanceStorageConfiguration
• RdsReservedInstances
• RdsReservedInstancesConfiguration
859
AWS Billing and Cost Management API Reference
• Recommendation
• RecommendationSummary
• RedshiftReservedInstances
• RedshiftReservedInstancesConfiguration
• ReservedInstancesCostCalculation
• ReservedInstancesPricing
• ResourceCostCalculation
• ResourceDetails
• ResourcePricing
• SageMakerSavingsPlans
• SageMakerSavingsPlansConfiguration
• SavingsPlansCostCalculation
• SavingsPlansPricing
• StorageConfiguration
• SummaryMetricsResult
• Tag
• Usage
• ValidationExceptionDetail
The following data types are supported by AWS Cost and Usage Report:
• ReportDefinition
• ReportStatus
• Tag
• DimensionValues
• Expression
• FreeTierUsage
860
AWS Billing and Cost Management API Reference
• Filters
• InvoiceProfile
• InvoiceUnit
• InvoiceUnitRule
• ReceiverAddress
• ResourceTag
• ValidationExceptionField
• AttributeValue
• Filter
• PriceList
• Service
• AccountDetails
• AccountMetaData
• AdditionalInfoRequest
• AdditionalInfoResponse
• Address
• Authority
• BatchDeleteTaxRegistrationError
• BatchPutTaxRegistrationError
• BrazilAdditionalInfo
• CanadaAdditionalInfo
• DestinationS3Location
• EgyptAdditionalInfo
• EstoniaAdditionalInfo
• ExemptionCertificate
• GeorgiaAdditionalInfo
861
AWS Billing and Cost Management API Reference
• GreeceAdditionalInfo
• IndiaAdditionalInfo
• IsraelAdditionalInfo
• ItalyAdditionalInfo
• Jurisdiction
• KenyaAdditionalInfo
• MalaysiaAdditionalInfo
• PolandAdditionalInfo
• RomaniaAdditionalInfo
• SaudiArabiaAdditionalInfo
• SourceS3Location
• SouthKoreaAdditionalInfo
• SpainAdditionalInfo
• SupplementalTaxRegistration
• SupplementalTaxRegistrationEntry
• TaxDocumentMetadata
• TaxExemption
• TaxExemptionDetails
• TaxExemptionType
• TaxInheritanceDetails
• TaxRegistration
• TaxRegistrationDocFile
• TaxRegistrationDocument
• TaxRegistrationEntry
• TaxRegistrationWithJurisdiction
• TurkeyAdditionalInfo
• UkraineAdditionalInfo
• ValidationExceptionField
• VerificationDetails
• VietnamAdditionalInfo
862
AWS Billing and Cost Management API Reference
• AnalysisDetails
• AnalysisSummary
• Anomaly
• AnomalyDateInterval
• AnomalyMonitor
• AnomalyScore
• AnomalySubscription
• CommitmentPurchaseAnalysisConfiguration
• CostAllocationTag
• CostAllocationTagBackfillRequest
• CostAllocationTagStatusEntry
• CostCategory
• CostCategoryInheritedValueDimension
• CostCategoryProcessingStatus
• CostCategoryReference
• CostCategoryRule
• CostCategorySplitChargeRule
• CostCategorySplitChargeRuleParameter
• CostCategoryValues
• Coverage
• CoverageByTime
• CoverageCost
• CoverageHours
• CoverageNormalizedUnits
• CurrentInstance
• DateInterval
• DimensionValues
• DimensionValuesWithAttributes
• DiskResourceUtilization
• DynamoDBCapacityDetails
• EBSResourceUtilization
• EC2InstanceDetails
• EC2ResourceDetails
• EC2ResourceUtilization
• EC2Specification
• ElastiCacheInstanceDetails
• ESInstanceDetails
• Expression
• ForecastResult
• GenerationSummary
• Group
• GroupDefinition
• Impact
• InstanceDetails
• MemoryDBInstanceDetails
• MetricValue
• ModifyRecommendationDetail
• NetworkResourceUtilization
• RDSInstanceDetails
• RecommendationDetailData
• RecommendationDetailHourlyMetrics
• RedshiftInstanceDetails
• ReservationAggregates
• ReservationCoverageGroup
• ReservationPurchaseRecommendation
• ReservationPurchaseRecommendationDetail
• ReservationPurchaseRecommendationMetadata
• ReservationPurchaseRecommendationSummary
• ReservationUtilizationGroup
• ReservedCapacityDetails
• ResourceDetails
• ResourceTag
• ResourceUtilization
• ResultByTime
• RightsizingRecommendation
• RightsizingRecommendationConfiguration
• RightsizingRecommendationMetadata
• RightsizingRecommendationSummary
• RootCause
• RootCauseImpact
• SavingsPlans
• SavingsPlansAmortizedCommitment
• SavingsPlansCoverage
• SavingsPlansCoverageData
• SavingsPlansDetails
• SavingsPlansPurchaseAnalysisConfiguration
• SavingsPlansPurchaseAnalysisDetails
• SavingsPlansPurchaseRecommendation
• SavingsPlansPurchaseRecommendationDetail
• SavingsPlansPurchaseRecommendationMetadata
• SavingsPlansPurchaseRecommendationSummary
• SavingsPlansSavings
• SavingsPlansUtilization
• SavingsPlansUtilizationAggregates
• SavingsPlansUtilizationByTime
• SavingsPlansUtilizationDetail
• ServiceSpecification
• SortDefinition
• Subscriber
• TagValues
• TargetInstance
• TerminateRecommendationDetail
• TotalImpactFilter
• UpdateCostAllocationTagsStatusError
• UtilizationByTime
AnalysisDetails
Service: AWS Cost Explorer
Contents
SavingsPlansPurchaseAnalysisDetails
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
AnalysisDetails 867
AWS Billing and Cost Management API Reference
AnalysisSummary
Service: AWS Cost Explorer
Contents
AnalysisCompletionTime
Type: String
Pattern: ^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(([+-]\d\d:\d\d)|Z)$
Required: No
AnalysisId
Type: String
Pattern: ^[\S\s]{8}-[\S\s]{4}-[\S\s]{4}-[\S\s]{4}-[\S\s]{12}$
Required: No
AnalysisStartedTime
Type: String
Pattern: ^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(([+-]\d\d:\d\d)|Z)$
Required: No
AnalysisStatus
AnalysisSummary 868
AWS Billing and Cost Management API Reference
Type: String
Required: No
CommitmentPurchaseAnalysisConfiguration
Required: No
ErrorCode
Type: String
Required: No
EstimatedCompletionTime
Type: String
Pattern: ^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(([+-]\d\d:\d\d)|Z)$
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
AnalysisSummary 869
AWS Billing and Cost Management API Reference
AnalysisSummary 870
AWS Billing and Cost Management API Reference
Anomaly
Service: AWS Cost Explorer
An unusual cost pattern. This consists of the detailed metadata and the current status of the
anomaly object.
Contents
AnomalyId
Type: String
Pattern: [\S\s]*
Required: Yes
AnomalyScore
Required: Yes
Impact
Required: Yes
MonitorArn
The Amazon Resource Name (ARN) for the cost monitor that generated this anomaly.
Type: String
Pattern: [\S\s]*
Anomaly 871
AWS Billing and Cost Management API Reference
Required: Yes
AnomalyEndDate
Type: String
Pattern: (\d{4}-\d{2}-\d{2})(T\d{2}:\d{2}:\d{2}Z)?
Required: No
AnomalyStartDate
Type: String
Pattern: (\d{4}-\d{2}-\d{2})(T\d{2}:\d{2}:\d{2}Z)?
Required: No
DimensionValue
The dimension for the anomaly (for example, an AWS service in a service monitor).
Type: String
Pattern: [\S\s]*
Required: No
Feedback
Type: String
Required: No
Anomaly 872
AWS Billing and Cost Management API Reference
RootCauses
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
Anomaly 873
AWS Billing and Cost Management API Reference
AnomalyDateInterval
Service: AWS Cost Explorer
Contents
StartDate
Type: String
Pattern: (\d{4}-\d{2}-\d{2})(T\d{2}:\d{2}:\d{2}Z)?
Required: Yes
EndDate
Type: String
Pattern: (\d{4}-\d{2}-\d{2})(T\d{2}:\d{2}:\d{2}Z)?
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
AnomalyDateInterval 874
AWS Billing and Cost Management API Reference
AnomalyMonitor
Service: AWS Cost Explorer
This object continuously inspects your account's cost data for anomalies. It's based on
MonitorType and MonitorSpecification. The content consists of detailed metadata and the
current status of the monitor object.
Contents
MonitorName
Type: String
Pattern: [\S\s]*
Required: Yes
MonitorType
Type: String
Required: Yes
CreationDate
Type: String
Pattern: (\d{4}-\d{2}-\d{2})(T\d{2}:\d{2}:\d{2}Z)?
Required: No
DimensionalValueCount
AnomalyMonitor 875
AWS Billing and Cost Management API Reference
Type: Integer
Required: No
LastEvaluatedDate
Type: String
Pattern: (\d{4}-\d{2}-\d{2})(T\d{2}:\d{2}:\d{2}Z)?
Required: No
LastUpdatedDate
Type: String
Pattern: (\d{4}-\d{2}-\d{2})(T\d{2}:\d{2}:\d{2}Z)?
Required: No
MonitorArn
Type: String
Pattern: [\S\s]*
Required: No
MonitorDimension
Type: String
AnomalyMonitor 876
AWS Billing and Cost Management API Reference
Required: No
MonitorSpecification
Not all Expression types are supported in each API. Refer to the documentation for each
specific API to see what is supported.
AnomalyMonitor 877
AWS Billing and Cost Management API Reference
Note
Because each Expression can have only one operator, the service returns an
error if more than one is specified. The following example shows an Expression
object that creates an error: { "And": [ ... ], "Dimensions": { "Key":
"USAGE_TYPE", "Values": [ "DataTransfer" ] } }
The following is an example of the corresponding error message: "Expression has
more than one roots. Only one root operator is allowed for each
expression: And, Or, Not, Dimensions, Tags, CostCategories"
Note
For the GetRightsizingRecommendation action, a combination of OR and NOT isn't
supported. OR isn't supported between different dimensions, or dimensions and tags.
NOT operators aren't supported. Dimensions are also limited to LINKED_ACCOUNT,
REGION, or RIGHTSIZING_TYPE.
For the GetReservationPurchaseRecommendation action, only NOT is supported.
AND and OR aren't supported. Dimensions are limited to LINKED_ACCOUNT.
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
AnomalyMonitor 878
AWS Billing and Cost Management API Reference
AnomalyMonitor 879
AWS Billing and Cost Management API Reference
AnomalyScore
Service: AWS Cost Explorer
Quantifies the anomaly. The higher score means that it's more anomalous.
Contents
CurrentScore
Type: Double
Required: Yes
MaxScore
Type: Double
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
AnomalyScore 880
AWS Billing and Cost Management API Reference
AnomalySubscription
Service: AWS Cost Explorer
You can specify the frequency of the alerts and the subscribers to notify.
Anomaly subscriptions can be associated with one or more AnomalyMonitor resources, and they
only send notifications about anomalies detected by those associated monitors. You can also
configure a threshold to further control which anomalies are included in the notifications.
Anomalies that don’t exceed the chosen threshold and therefore don’t trigger notifications from an
anomaly subscription will still be available on the console and from the GetAnomalies API.
Contents
Frequency
The frequency that anomaly notifications are sent. Notifications are sent either over email (for
DAILY and WEEKLY frequencies) or SNS (for IMMEDIATE frequency). For more information, see
Creating an Amazon SNS topic for anomaly notifications.
Type: String
Required: Yes
MonitorArnList
Pattern: arn:aws[-a-z0-9]*:[a-z0-9]+:[-a-z0-9]*:[0-9]{12}:[-a-zA-Z0-9/:_]+
Required: Yes
Subscribers
AnomalySubscription 881
AWS Billing and Cost Management API Reference
Required: Yes
SubscriptionName
Type: String
Pattern: [\S\s]*
Required: Yes
AccountId
Type: String
Pattern: [\S\s]*
Required: No
SubscriptionArn
Type: String
Pattern: [\S\s]*
Required: No
Threshold
(deprecated)
An absolute dollar value that must be exceeded by the anomaly's total impact (see Impact for
more details) for an anomaly notification to be generated.
AnomalySubscription 882
AWS Billing and Cost Management API Reference
This field has been deprecated. To specify a threshold, use ThresholdExpression. Continued use
of Threshold will be treated as shorthand syntax for a ThresholdExpression.
One of Threshold or ThresholdExpression is required for this resource. You cannot specify both.
Type: Double
Required: No
ThresholdExpression
An Expression object used to specify the anomalies that you want to generate alerts
for. This supports dimensions and nested expressions. The supported dimensions are
ANOMALY_TOTAL_IMPACT_ABSOLUTE and ANOMALY_TOTAL_IMPACT_PERCENTAGE,
corresponding to an anomaly’s TotalImpact and TotalImpactPercentage, respectively (see
Impact for more details). The supported nested expression types are AND and OR. The match
option GREATER_THAN_OR_EQUAL is required. Values must be numbers between 0 and
10,000,000,000 in string format.
One of Threshold or ThresholdExpression is required for this resource. You cannot specify both.
AnomalySubscription 883
AWS Billing and Cost Management API Reference
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
AnomalySubscription 884
AWS Billing and Cost Management API Reference
CommitmentPurchaseAnalysisConfiguration
Service: AWS Cost Explorer
Contents
SavingsPlansPurchaseAnalysisConfiguration
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
CommitmentPurchaseAnalysisConfiguration 885
AWS Billing and Cost Management API Reference
CostAllocationTag
Service: AWS Cost Explorer
The cost allocation tag structure. This includes detailed metadata for the CostAllocationTag
object.
Contents
Status
Type: String
Required: Yes
TagKey
Type: String
Pattern: [\S\s]*
Required: Yes
Type
The type of cost allocation tag. You can use AWSGenerated or UserDefined type tags.
AWSGenerated type tags are tags that AWS defines and applies to support AWS resources for
cost allocation purposes. UserDefined type tags are tags that you define, create, and apply to
resources.
Type: String
Required: Yes
CostAllocationTag 886
AWS Billing and Cost Management API Reference
LastUpdatedDate
The last date that the tag was either activated or deactivated.
Type: String
Pattern: ^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(([+-]\d\d:\d\d)|Z)$
Required: No
LastUsedDate
The last month that the tag was used on an AWS resource.
Type: String
Pattern: ^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(([+-]\d\d:\d\d)|Z)$
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
CostAllocationTag 887
AWS Billing and Cost Management API Reference
CostAllocationTagBackfillRequest
Service: AWS Cost Explorer
The cost allocation tag backfill request structure that contains metadata and details of a certain
backfill.
Contents
BackfillFrom
Type: String
Pattern: ^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(([+-]\d\d:\d\d)|Z)$
Required: No
BackfillStatus
Type: String
Required: No
CompletedAt
Type: String
Pattern: ^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(([+-]\d\d:\d\d)|Z)$
Required: No
LastUpdatedAt
CostAllocationTagBackfillRequest 888
AWS Billing and Cost Management API Reference
Type: String
Pattern: ^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(([+-]\d\d:\d\d)|Z)$
Required: No
RequestedAt
Type: String
Pattern: ^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(([+-]\d\d:\d\d)|Z)$
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
CostAllocationTagBackfillRequest 889
AWS Billing and Cost Management API Reference
CostAllocationTagStatusEntry
Service: AWS Cost Explorer
The cost allocation tag status. The status of a key can either be active or inactive.
Contents
Status
Type: String
Required: Yes
TagKey
Type: String
Pattern: [\S\s]*
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
CostAllocationTagStatusEntry 890
AWS Billing and Cost Management API Reference
CostCategory
Service: AWS Cost Explorer
The structure of Cost Categories. This includes detailed metadata and the set of rules for the
CostCategory object.
Contents
CostCategoryArn
Type: String
Pattern: arn:aws[-a-z0-9]*:[a-z0-9]+:[-a-z0-9]*:[0-9]{12}:[-a-zA-Z0-9/:_]+
Required: Yes
EffectiveStart
Type: String
Pattern: ^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(([+-]\d\d:\d\d)|Z)$
Required: Yes
Name
Type: String
Required: Yes
CostCategory 891
AWS Billing and Cost Management API Reference
Rules
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.
Required: Yes
RuleVersion
Type: String
Required: Yes
DefaultValue
Type: String
Required: No
EffectiveEnd
Type: String
Pattern: ^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(([+-]\d\d:\d\d)|Z)$
Required: No
CostCategory 892
AWS Billing and Cost Management API Reference
ProcessingStatus
The list of processing statuses for Cost Management products for a specific cost category.
Required: No
SplitChargeRules
The split charge rules that are used to allocate your charges between your Cost Category values.
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
CostCategory 893
AWS Billing and Cost Management API Reference
CostCategoryInheritedValueDimension
Service: AWS Cost Explorer
When you create or update a cost category, you can define the CostCategoryRule
rule type as INHERITED_VALUE. This rule type adds the flexibility to define a rule that
dynamically inherits the cost category value from the dimension value that's defined by
CostCategoryInheritedValueDimension. For example, suppose that you want to dynamically
group costs that are 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.
Contents
DimensionKey
Type: String
Pattern: [\S\s]*
Required: No
DimensionName
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.
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
CostCategoryInheritedValueDimension 894
AWS Billing and Cost Management API Reference
CostCategoryInheritedValueDimension 895
AWS Billing and Cost Management API Reference
CostCategoryProcessingStatus
Service: AWS Cost Explorer
The list of processing statuses for Cost Management products for a specific cost category.
Contents
Component
Type: String
Required: No
Status
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
CostCategoryProcessingStatus 896
AWS Billing and Cost Management API Reference
CostCategoryReference
Service: AWS Cost Explorer
A reference to a Cost Category containing only enough information to identify the Cost Category.
You can use this information to retrieve the full Cost Category information using
DescribeCostCategory.
Contents
CostCategoryArn
Type: String
Pattern: arn:aws[-a-z0-9]*:[a-z0-9]+:[-a-z0-9]*:[0-9]{12}:[-a-zA-Z0-9/:_]+
Required: No
DefaultValue
Type: String
Required: No
EffectiveEnd
Type: String
Pattern: ^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(([+-]\d\d:\d\d)|Z)$
Required: No
CostCategoryReference 897
AWS Billing and Cost Management API Reference
EffectiveStart
Type: String
Pattern: ^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(([+-]\d\d:\d\d)|Z)$
Required: No
Name
Type: String
Required: No
NumberOfRules
The number of rules that are associated with a specific Cost Category.
Type: Integer
Required: No
ProcessingStatus
The list of processing statuses for Cost Management products for a specific cost category.
Required: No
Values
CostCategoryReference 898
AWS Billing and Cost Management API Reference
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
CostCategoryReference 899
AWS Billing and Cost Management API Reference
CostCategoryRule
Service: AWS Cost Explorer
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.
Contents
InheritedValue
The value the line item is categorized as if the line item contains the matched dimension.
Required: No
Rule
An Expression object used to categorize costs. This supports dimensions, tags, and nested
expressions. Currently the only dimensions supported are LINKED_ACCOUNT, SERVICE_CODE,
RECORD_TYPE, LINKED_ACCOUNT_NAME, REGION, and USAGE_TYPE.
RECORD_TYPE is a dimension used for Cost Explorer APIs, and is also supported for Cost
Category expressions. This dimension uses different terms, depending on whether you're using
the console or API/JSON editor. For a detailed comparison, see Term Comparisons in the AWS
Billing and Cost Management User Guide.
Required: No
Type
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.
Type: String
CostCategoryRule 900
AWS Billing and Cost Management API Reference
Required: No
Value
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
CostCategoryRule 901
AWS Billing and Cost Management API Reference
CostCategorySplitChargeRule
Service: AWS Cost Explorer
Use the split charge rule to split the cost of one Cost Category value across several other target
values.
Contents
Method
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.
Type: String
Required: Yes
Source
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.
Type: String
Pattern: [\S\s]*
Required: Yes
Targets
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.
CostCategorySplitChargeRule 902
AWS Billing and Cost Management API Reference
Pattern: [\S\s]*
Required: Yes
Parameters
The parameters for a split charge method. This is only required for the FIXED method.
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
CostCategorySplitChargeRule 903
AWS Billing and Cost Management API Reference
CostCategorySplitChargeRuleParameter
Service: AWS Cost Explorer
Contents
Type
Type: String
Required: Yes
Values
Pattern: [\S\s]*
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
CostCategorySplitChargeRuleParameter 904
AWS Billing and Cost Management API Reference
CostCategoryValues
Service: AWS Cost Explorer
If Values and Key are not specified, the ABSENT MatchOption is applied to all Cost Categories.
That is, it filters on resources that aren't mapped to any Cost Categories.
If Values is provided and Key isn't specified, the ABSENT MatchOption is applied to the Cost
Categories Key only. That is, it filters on resources without the given Cost Categories key.
Contents
Key
Type: String
Required: No
MatchOptions
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.
Required: No
Values
CostCategoryValues 905
AWS Billing and Cost Management API Reference
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:
CostCategoryValues 906
AWS Billing and Cost Management API Reference
Coverage
Service: AWS Cost Explorer
Contents
CoverageCost
Required: No
CoverageHours
Required: No
CoverageNormalizedUnits
The amount of instance usage that the reservation covered, in normalized units.
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
Coverage 907
AWS Billing and Cost Management API Reference
CoverageByTime
Service: AWS Cost Explorer
Contents
Groups
Required: No
TimePeriod
Required: No
Total
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
CoverageByTime 908
AWS Billing and Cost Management API Reference
CoverageCost
Service: AWS Cost Explorer
Contents
OnDemandCost
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
CoverageCost 909
AWS Billing and Cost Management API Reference
CoverageHours
Service: AWS Cost Explorer
Contents
CoverageHoursPercentage
Type: String
Required: No
OnDemandHours
Type: String
Required: No
ReservedHours
Type: String
Required: No
TotalRunningHours
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
CoverageHours 910
AWS Billing and Cost Management API Reference
CoverageHours 911
AWS Billing and Cost Management API Reference
CoverageNormalizedUnits
Service: AWS Cost Explorer
The amount of instance usage, in normalized units. You can use normalized units to see your EC2
usage for multiple sizes of instances in a uniform way. For example, suppose that you run an xlarge
instance and a 2xlarge instance. If you run both instances for the same amount of time, the 2xlarge
instance uses twice as much of your reservation as the xlarge instance, even though both instances
show only one instance-hour. When you use normalized units instead of instance-hours, the xlarge
instance used 8 normalized units, and the 2xlarge instance used 16 normalized units.
For more information, see Modifying Reserved Instances in the Amazon Elastic Compute Cloud User
Guide for Linux Instances.
Contents
CoverageNormalizedUnitsPercentage
The percentage of your used instance normalized units that a reservation covers.
Type: String
Required: No
OnDemandNormalizedUnits
The number of normalized units that are covered by On-Demand Instances instead of a
reservation.
Type: String
Required: No
ReservedNormalizedUnits
Type: String
Required: No
TotalRunningNormalizedUnits
CoverageNormalizedUnits 912
AWS Billing and Cost Management API Reference
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
CoverageNormalizedUnits 913
AWS Billing and Cost Management API Reference
CurrentInstance
Service: AWS Cost Explorer
Contents
CurrencyCode
The currency code that AWS used to calculate the costs for this instance.
Type: String
Pattern: [\S\s]*
Required: No
InstanceName
The name that you given an instance. This field shows as blank if you haven't given the instance
a name.
Type: String
Pattern: [\S\s]*
Required: No
MonthlyCost
Type: String
Pattern: [\S\s]*
Required: No
CurrentInstance 914
AWS Billing and Cost Management API Reference
OnDemandHoursInLookbackPeriod
The number of hours during the lookback period that's billed at On-Demand rates.
Type: String
Pattern: [\S\s]*
Required: No
ReservationCoveredHoursInLookbackPeriod
The number of hours during the lookback period that's covered by reservations.
Type: String
Pattern: [\S\s]*
Required: No
ResourceDetails
Required: No
ResourceId
Type: String
Pattern: [\S\s]*
Required: No
ResourceUtilization
CurrentInstance 915
AWS Billing and Cost Management API Reference
Required: No
SavingsPlansCoveredHoursInLookbackPeriod
The number of hours during the lookback period that's covered by Savings Plans.
Type: String
Pattern: [\S\s]*
Required: No
Tags
Required: No
TotalRunningHoursInLookbackPeriod
The total number of hours that the instance ran during the lookback period.
Type: String
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:
CurrentInstance 916
AWS Billing and Cost Management API Reference
CurrentInstance 917
AWS Billing and Cost Management API Reference
DateInterval
Service: AWS Cost Explorer
Contents
End
The end of the time period. The end date is exclusive. For example, if end is 2017-05-01, AWS
retrieves cost and usage data from the start date up to, but not including, 2017-05-01.
Type: String
Pattern: (\d{4}-\d{2}-\d{2})(T\d{2}:\d{2}:\d{2}Z)?
Required: Yes
Start
The beginning of the time period. The start date is inclusive. For example, if start is
2017-01-01, AWS 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.
Type: String
Pattern: (\d{4}-\d{2}-\d{2})(T\d{2}:\d{2}:\d{2}Z)?
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
DateInterval 918
AWS Billing and Cost Management API Reference
DateInterval 919
AWS Billing and Cost Management API Reference
DimensionValues
Service: AWS Cost Explorer
The metadata that you can use to filter and group your results. You can use
GetDimensionValues to find specific values.
Contents
Key
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.
Type: String
Required: No
MatchOptions
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.
DimensionValues 920
AWS Billing and Cost Management API Reference
Required: No
Values
The metadata values that you can use to filter and group your results. You can use
GetDimensionValues to find specific values.
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:
DimensionValues 921
AWS Billing and Cost Management API Reference
DimensionValuesWithAttributes
Service: AWS Cost Explorer
The metadata of a specific type that you can use to filter and group your results. You can use
GetDimensionValues to find specific values.
Contents
Attributes
Required: No
Value
Type: String
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:
DimensionValuesWithAttributes 922
AWS Billing and Cost Management API Reference
DiskResourceUtilization
Service: AWS Cost Explorer
The field that contains a list of disk (local storage) metrics that are associated with the current
instance.
Contents
DiskReadBytesPerSecond
Type: String
Pattern: [\S\s]*
Required: No
DiskReadOpsPerSecond
Type: String
Pattern: [\S\s]*
Required: No
DiskWriteBytesPerSecond
Type: String
Pattern: [\S\s]*
Required: No
DiskResourceUtilization 923
AWS Billing and Cost Management API Reference
DiskWriteOpsPerSecond
Type: String
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:
DiskResourceUtilization 924
AWS Billing and Cost Management API Reference
DynamoDBCapacityDetails
Service: AWS Cost Explorer
Contents
CapacityUnits
Type: String
Pattern: [\S\s]*
Required: No
Region
Type: String
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:
DynamoDBCapacityDetails 925
AWS Billing and Cost Management API Reference
EBSResourceUtilization
Service: AWS Cost Explorer
The EBS field that contains a list of EBS metrics that are associated with the current instance.
Contents
EbsReadBytesPerSecond
Type: String
Pattern: [\S\s]*
Required: No
EbsReadOpsPerSecond
Type: String
Pattern: [\S\s]*
Required: No
EbsWriteBytesPerSecond
Type: String
Pattern: [\S\s]*
Required: No
EbsWriteOpsPerSecond
EBSResourceUtilization 926
AWS Billing and Cost Management API Reference
Type: String
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:
EBSResourceUtilization 927
AWS Billing and Cost Management API Reference
EC2InstanceDetails
Service: AWS Cost Explorer
Details about the Amazon EC2 reservations that AWS recommends that you purchase.
Contents
AvailabilityZone
Type: String
Pattern: [\S\s]*
Required: No
CurrentGeneration
Type: Boolean
Required: No
Family
Type: String
Pattern: [\S\s]*
Required: No
InstanceType
Type: String
EC2InstanceDetails 928
AWS Billing and Cost Management API Reference
Pattern: [\S\s]*
Required: No
Platform
The platform of the recommended reservation. The platform is the specific combination of
operating system, license model, and software on an instance.
Type: String
Pattern: [\S\s]*
Required: No
Region
Type: String
Pattern: [\S\s]*
Required: No
SizeFlexEligible
Type: Boolean
Required: No
Tenancy
Type: String
EC2InstanceDetails 929
AWS Billing and Cost Management API Reference
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:
EC2InstanceDetails 930
AWS Billing and Cost Management API Reference
EC2ResourceDetails
Service: AWS Cost Explorer
Contents
HourlyOnDemandRate
Type: String
Pattern: [\S\s]*
Required: No
InstanceType
Type: String
Pattern: [\S\s]*
Required: No
Memory
Type: String
Pattern: [\S\s]*
Required: No
NetworkPerformance
EC2ResourceDetails 931
AWS Billing and Cost Management API Reference
Type: String
Pattern: [\S\s]*
Required: No
Platform
The platform of the AWS instance. The platform is the specific combination of operating
system, license model, and software on an instance.
Type: String
Pattern: [\S\s]*
Required: No
Region
Type: String
Pattern: [\S\s]*
Required: No
Sku
Type: String
Pattern: [\S\s]*
Required: No
EC2ResourceDetails 932
AWS Billing and Cost Management API Reference
Storage
The disk storage of the AWS instance. This doesn't include EBS storage.
Type: String
Pattern: [\S\s]*
Required: No
Vcpu
Type: String
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:
EC2ResourceDetails 933
AWS Billing and Cost Management API Reference
EC2ResourceUtilization
Service: AWS Cost Explorer
Contents
DiskResourceUtilization
The field that contains a list of disk (local storage) metrics that are associated with the current
instance.
Required: No
EBSResourceUtilization
The EBS field that contains a list of EBS metrics that are associated with the current instance.
Required: No
MaxCpuUtilizationPercentage
Type: String
Pattern: [\S\s]*
Required: No
MaxMemoryUtilizationPercentage
Type: String
Pattern: [\S\s]*
EC2ResourceUtilization 934
AWS Billing and Cost Management API Reference
Required: No
MaxStorageUtilizationPercentage
The maximum observed or expected storage utilization of the instance. This doesn't include EBS
storage.
Type: String
Pattern: [\S\s]*
Required: No
NetworkResourceUtilization
The network field that contains a list of network metrics that are associated with the current
instance.
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
EC2ResourceUtilization 935
AWS Billing and Cost Management API Reference
EC2Specification
Service: AWS Cost Explorer
The Amazon EC2 hardware specifications that you want AWS to provide recommendations for.
Contents
OfferingClass
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
EC2Specification 936
AWS Billing and Cost Management API Reference
ElastiCacheInstanceDetails
Service: AWS Cost Explorer
Details about the Amazon ElastiCache reservations that AWS recommends that you purchase.
Contents
CurrentGeneration
Type: Boolean
Required: No
Family
Type: String
Pattern: [\S\s]*
Required: No
NodeType
Type: String
Pattern: [\S\s]*
Required: No
ProductDescription
Type: String
ElastiCacheInstanceDetails 937
AWS Billing and Cost Management API Reference
Pattern: [\S\s]*
Required: No
Region
Type: String
Pattern: [\S\s]*
Required: No
SizeFlexEligible
Type: Boolean
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ElastiCacheInstanceDetails 938
AWS Billing and Cost Management API Reference
ESInstanceDetails
Service: AWS Cost Explorer
Details about the Amazon OpenSearch Service reservations that AWS recommends that you
purchase.
Contents
CurrentGeneration
Type: Boolean
Required: No
InstanceClass
Type: String
Pattern: [\S\s]*
Required: No
InstanceSize
Type: String
Pattern: [\S\s]*
Required: No
Region
Type: String
ESInstanceDetails 939
AWS Billing and Cost Management API Reference
Pattern: [\S\s]*
Required: No
SizeFlexEligible
Type: Boolean
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ESInstanceDetails 940
AWS Billing and Cost Management API Reference
Expression
Service: AWS Cost Explorer
Not all Expression types are supported in each API. Refer to the documentation for each specific
API to see what is supported.
• There are three types of simple dimension values: CostCategories, Tags, and Dimensions.
• Specify the CostCategories field to define a filter that acts on Cost Categories.
• Specify the Tags field to define a filter that acts on Cost Allocation Tags.
• Specify the Dimensions field to define a filter that acts on the DimensionValues.
• For each filter type, you can set the dimension name and values for the filters that you plan to
use.
• As shown in the previous example, lists of dimension values are combined with OR when
applying the filter.
• You can also set different match options to further control how the filter behaves. Not all
APIs support match options. Refer to the documentation for each specific API to see what is
supported.
• For example, you can filter for linked account names that start with "a".
• You can use multiple Expression types and the logical operators AND/OR/NOT to create a list
of one or more Expression objects. By doing this, you can filter by more advanced options.
Expression 941
AWS Billing and Cost Management API Reference
Note
Because each Expression can have only one operator, the service returns an
error if more than one is specified. The following example shows an Expression
object that creates an error: { "And": [ ... ], "Dimensions": { "Key":
"USAGE_TYPE", "Values": [ "DataTransfer" ] } }
The following is an example of the corresponding error message: "Expression has
more than one roots. Only one root operator is allowed for each
expression: And, Or, Not, Dimensions, Tags, CostCategories"
Note
For the GetRightsizingRecommendation action, a combination of OR and NOT isn't
supported. OR isn't supported between different dimensions, or dimensions and tags. NOT
operators aren't supported. Dimensions are also limited to LINKED_ACCOUNT, REGION, or
RIGHTSIZING_TYPE.
For the GetReservationPurchaseRecommendation action, only NOT is supported. AND
and OR aren't supported. Dimensions are limited to LINKED_ACCOUNT.
Contents
And
Required: No
Expression 942
AWS Billing and Cost Management API Reference
CostCategories
Required: No
Dimensions
Required: No
Not
Required: No
Or
Required: No
Tags
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
Expression 943
AWS Billing and Cost Management API Reference
Expression 944
AWS Billing and Cost Management API Reference
ForecastResult
Service: AWS Cost Explorer
Contents
MeanValue
Type: String
Pattern: [\S\s]*
Required: No
PredictionIntervalLowerBound
Type: String
Pattern: [\S\s]*
Required: No
PredictionIntervalUpperBound
Type: String
Pattern: [\S\s]*
Required: No
TimePeriod
ForecastResult 945
AWS Billing and Cost Management API Reference
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ForecastResult 946
AWS Billing and Cost Management API Reference
GenerationSummary
Service: AWS Cost Explorer
Contents
EstimatedCompletionTime
Indicates the estimated time for when the recommendation generation will complete.
Type: String
Pattern: ^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(([+-]\d\d:\d\d)|Z)$
Required: No
GenerationCompletionTime
Type: String
Pattern: ^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(([+-]\d\d:\d\d)|Z)$
Required: No
GenerationStartedTime
Type: String
Pattern: ^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(([+-]\d\d:\d\d)|Z)$
Required: No
GenerationStatus
GenerationSummary 947
AWS Billing and Cost Management API Reference
Type: String
Required: No
RecommendationId
Type: String
Pattern: ^[\S\s]{8}-[\S\s]{4}-[\S\s]{4}-[\S\s]{4}-[\S\s]{12}$
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
GenerationSummary 948
AWS Billing and Cost Management API Reference
Group
Service: AWS Cost Explorer
Contents
Keys
Required: No
Metrics
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
Group 949
AWS Billing and Cost Management API Reference
GroupDefinition
Service: AWS Cost Explorer
Represents a group when you specify a group by criteria or in the response to a query with a
specific grouping.
Contents
Key
Type: String
Pattern: [\S\s]*
Required: No
Type
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
GroupDefinition 950
AWS Billing and Cost Management API Reference
Impact
Service: AWS Cost Explorer
Contents
MaxImpact
Type: Double
Required: Yes
TotalActualSpend
The cumulative dollar amount that was actually spent during the anomaly.
Type: Double
Required: No
TotalExpectedSpend
The cumulative dollar amount that was expected to be spent during the anomaly. It is
calculated using advanced machine learning models to determine the typical spending pattern
based on historical data for a customer.
Type: Double
Required: No
TotalImpact
The cumulative dollar difference between the total actual spend and total expected spend. It is
calculated as TotalActualSpend - TotalExpectedSpend.
Type: Double
Required: No
Impact 951
AWS Billing and Cost Management API Reference
TotalImpactPercentage
The cumulative percentage difference between the total actual spend and total expected
spend. It is calculated as (TotalImpact / TotalExpectedSpend) * 100. When
TotalExpectedSpend is zero, this field is omitted. Expected spend can be zero in situations
such as when you start to use a service for the first time.
Type: Double
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
Impact 952
AWS Billing and Cost Management API Reference
InstanceDetails
Service: AWS Cost Explorer
Details about the reservations that AWS recommends that you purchase.
Contents
EC2InstanceDetails
The Amazon EC2 reservations that AWS recommends that you purchase.
Required: No
ElastiCacheInstanceDetails
Required: No
ESInstanceDetails
The Amazon OpenSearch Service reservations that AWS recommends that you purchase.
Required: No
MemoryDBInstanceDetails
Required: No
RDSInstanceDetails
The Amazon RDS reservations that AWS recommends that you purchase.
Required: No
InstanceDetails 953
AWS Billing and Cost Management API Reference
RedshiftInstanceDetails
The Amazon Redshift reservations that AWS recommends that you purchase.
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
InstanceDetails 954
AWS Billing and Cost Management API Reference
MemoryDBInstanceDetails
Service: AWS Cost Explorer
Details about the MemoryDB reservations that AWS recommends that you purchase.
Contents
CurrentGeneration
Type: Boolean
Required: No
Family
Type: String
Pattern: [\S\s]*
Required: No
NodeType
Type: String
Pattern: [\S\s]*
Required: No
Region
Type: String
MemoryDBInstanceDetails 955
AWS Billing and Cost Management API Reference
Pattern: [\S\s]*
Required: No
SizeFlexEligible
Type: Boolean
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
MemoryDBInstanceDetails 956
AWS Billing and Cost Management API Reference
MetricValue
Service: AWS Cost Explorer
Contents
Amount
Type: String
Required: No
Unit
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
MetricValue 957
AWS Billing and Cost Management API Reference
ModifyRecommendationDetail
Service: AWS Cost Explorer
Contents
TargetInstances
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ModifyRecommendationDetail 958
AWS Billing and Cost Management API Reference
NetworkResourceUtilization
Service: AWS Cost Explorer
The network field that contains a list of network metrics that are associated with the current
instance.
Contents
NetworkInBytesPerSecond
The network inbound throughput utilization measured in Bytes per second (Bps).
Type: String
Pattern: [\S\s]*
Required: No
NetworkOutBytesPerSecond
The network outbound throughput utilization measured in Bytes per second (Bps).
Type: String
Pattern: [\S\s]*
Required: No
NetworkPacketsInPerSecond
The network inbound packets that are measured in packets per second.
Type: String
Pattern: [\S\s]*
Required: No
NetworkResourceUtilization 959
AWS Billing and Cost Management API Reference
NetworkPacketsOutPerSecond
The network outbound packets that are measured in packets per second.
Type: String
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:
NetworkResourceUtilization 960
AWS Billing and Cost Management API Reference
RDSInstanceDetails
Service: AWS Cost Explorer
Details about the Amazon RDS reservations that AWS recommends that you purchase.
Contents
CurrentGeneration
Type: Boolean
Required: No
DatabaseEdition
Type: String
Pattern: [\S\s]*
Required: No
DatabaseEngine
Type: String
Pattern: [\S\s]*
Required: No
DeploymentOption
Type: String
RDSInstanceDetails 961
AWS Billing and Cost Management API Reference
Pattern: [\S\s]*
Required: No
Family
Type: String
Pattern: [\S\s]*
Required: No
InstanceType
Type: String
Pattern: [\S\s]*
Required: No
LicenseModel
Type: String
Pattern: [\S\s]*
Required: No
Region
Type: String
RDSInstanceDetails 962
AWS Billing and Cost Management API Reference
Pattern: [\S\s]*
Required: No
SizeFlexEligible
Type: Boolean
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
RDSInstanceDetails 963
AWS Billing and Cost Management API Reference
RecommendationDetailData
Service: AWS Cost Explorer
Contents
AccountId
Type: String
Pattern: [\S\s]*
Required: No
AccountScope
The account scope that you want your recommendations for. AWS calculates recommendations
including the management account and member accounts if the value is set to PAYER. If the
value is LINKED, recommendations are calculated for individual member accounts only.
Type: String
Required: No
CurrencyCode
The currency code that AWS used to generate the recommendation and present potential
savings.
Type: String
Pattern: [\S\s]*
Required: No
RecommendationDetailData 964
AWS Billing and Cost Management API Reference
CurrentAverageCoverage
Type: String
Pattern: [\S\s]*
Required: No
CurrentAverageHourlyOnDemandSpend
The average value of hourly On-Demand spend over the lookback period of the applicable
usage type.
Type: String
Pattern: [\S\s]*
Required: No
CurrentMaximumHourlyOnDemandSpend
The highest value of hourly On-Demand spend over the lookback period of the applicable
usage type.
Type: String
Pattern: [\S\s]*
Required: No
CurrentMinimumHourlyOnDemandSpend
The lowest value of hourly On-Demand spend over the lookback period of the applicable usage
type.
Type: String
RecommendationDetailData 965
AWS Billing and Cost Management API Reference
Pattern: [\S\s]*
Required: No
EstimatedAverageCoverage
Type: String
Pattern: [\S\s]*
Required: No
EstimatedAverageUtilization
Type: String
Pattern: [\S\s]*
Required: No
EstimatedMonthlySavingsAmount
The estimated monthly savings amount based on the recommended Savings Plan.
Type: String
Pattern: [\S\s]*
Required: No
EstimatedOnDemandCost
The remaining On-Demand cost estimated to not be covered by the recommended Savings
Plan, over the length of the lookback period.
RecommendationDetailData 966
AWS Billing and Cost Management API Reference
Type: String
Pattern: [\S\s]*
Required: No
EstimatedOnDemandCostWithCurrentCommitment
The estimated On-Demand costs you expect with no additional commitment, based on your
usage of the selected time period and the Savings Plan you own.
Type: String
Pattern: [\S\s]*
Required: No
EstimatedROI
The estimated return on investment that's based on the recommended Savings Plan that you
purchased. This is calculated as estimatedSavingsAmount/estimatedSPCost*100.
Type: String
Pattern: [\S\s]*
Required: No
EstimatedSavingsAmount
The estimated savings amount that's based on the recommended Savings Plan over the length
of the lookback period.
Type: String
Pattern: [\S\s]*
RecommendationDetailData 967
AWS Billing and Cost Management API Reference
Required: No
EstimatedSavingsPercentage
The estimated savings percentage relative to the total cost of applicable On-Demand usage
over the lookback period.
Type: String
Pattern: [\S\s]*
Required: No
EstimatedSPCost
The cost of the recommended Savings Plan over the length of the lookback period.
Type: String
Pattern: [\S\s]*
Required: No
ExistingHourlyCommitment
Type: String
Pattern: [\S\s]*
Required: No
GenerationTimestamp
The period of time that you want the usage and costs for.
Type: String
RecommendationDetailData 968
AWS Billing and Cost Management API Reference
Pattern: ^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(([+-]\d\d:\d\d)|Z)$
Required: No
HourlyCommitmentToPurchase
The recommended hourly commitment level for the Savings Plan type and the configuration
that's based on the usage during the lookback period.
Type: String
Pattern: [\S\s]*
Required: No
InstanceFamily
Type: String
Pattern: [\S\s]*
Required: No
LatestUsageTimestamp
The period of time that you want the usage and costs for.
Type: String
Pattern: ^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(([+-]\d\d:\d\d)|Z)$
Required: No
LookbackPeriodInDays
How many days of previous usage that AWS considers when making this recommendation.
Type: String
RecommendationDetailData 969
AWS Billing and Cost Management API Reference
Required: No
MetricsOverLookbackPeriod
The related hourly cost, coverage, and utilization metrics over the lookback period.
Required: No
OfferingId
The unique ID that's used to distinguish Savings Plans from one another.
Type: String
Pattern: [\S\s]*
Required: No
PaymentOption
The payment option for the commitment (for example, All Upfront or No Upfront).
Type: String
Required: No
Region
Type: String
Pattern: [\S\s]*
Required: No
RecommendationDetailData 970
AWS Billing and Cost Management API Reference
SavingsPlansType
Type: String
Required: No
TermInYears
Type: String
Required: No
UpfrontCost
The upfront cost of the recommended Savings Plan, based on the selected payment option.
Type: String
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:
RecommendationDetailData 971
AWS Billing and Cost Management API Reference
RecommendationDetailHourlyMetrics
Service: AWS Cost Explorer
Contains the hourly metrics for the given recommendation over the lookback period.
Contents
CurrentCoverage
The current amount of Savings Plans eligible usage that the Savings Plan covered.
Type: String
Pattern: [\S\s]*
Required: No
EstimatedCoverage
Type: String
Pattern: [\S\s]*
Required: No
EstimatedNewCommitmentUtilization
Type: String
Pattern: [\S\s]*
Required: No
EstimatedOnDemandCost
The remaining On-Demand cost estimated to not be covered by the recommended Savings
Plan, over the length of the lookback period.
RecommendationDetailHourlyMetrics 972
AWS Billing and Cost Management API Reference
Type: String
Pattern: [\S\s]*
Required: No
StartTime
The period of time that you want the usage and costs for.
Type: String
Pattern: ^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(([+-]\d\d:\d\d)|Z)$
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
RecommendationDetailHourlyMetrics 973
AWS Billing and Cost Management API Reference
RedshiftInstanceDetails
Service: AWS Cost Explorer
Details about the Amazon Redshift reservations that AWS recommends that you purchase.
Contents
CurrentGeneration
Type: Boolean
Required: No
Family
Type: String
Pattern: [\S\s]*
Required: No
NodeType
Type: String
Pattern: [\S\s]*
Required: No
Region
Type: String
RedshiftInstanceDetails 974
AWS Billing and Cost Management API Reference
Pattern: [\S\s]*
Required: No
SizeFlexEligible
Type: Boolean
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
RedshiftInstanceDetails 975
AWS Billing and Cost Management API Reference
ReservationAggregates
Service: AWS Cost Explorer
Contents
AmortizedRecurringFee
The monthly cost of your reservation. It's amortized over the reservation period.
Type: String
Required: No
AmortizedUpfrontFee
The upfront cost of your reservation. It's amortized over the reservation period.
Type: String
Required: No
NetRISavings
How much you saved due to purchasing and utilizing reservation. AWS calculates this by
subtracting TotalAmortizedFee from OnDemandCostOfRIHoursUsed.
Type: String
Required: No
OnDemandCostOfRIHoursUsed
Type: String
Required: No
PurchasedHours
Type: String
Required: No
ReservationAggregates 976
AWS Billing and Cost Management API Reference
PurchasedUnits
The number of Amazon EC2 reservation hours that you purchased. It's converted to normalized
units. Normalized units are available only for Amazon EC2 usage after November 11, 2017.
Type: String
Required: No
RealizedSavings
Type: String
Required: No
RICostForUnusedHours
Type: String
Required: No
TotalActualHours
Type: String
Required: No
TotalActualUnits
The total number of Amazon EC2 reservation hours that you used. It's converted to normalized
units. Normalized units are available only for Amazon EC2 usage after November 11, 2017.
Type: String
Required: No
TotalAmortizedFee
The total cost of your reservation. It's amortized over the reservation period.
Type: String
ReservationAggregates 977
AWS Billing and Cost Management API Reference
Required: No
TotalPotentialRISavings
How much you might save if you use your entire reservation.
Type: String
Required: No
UnrealizedSavings
Type: String
Required: No
UnusedHours
Type: String
Required: No
UnusedUnits
The number of Amazon EC2 reservation hours that you didn't use. It's converted to normalized
units. Normalized units are available only for Amazon EC2 usage after November 11, 2017.
Type: String
Required: No
UtilizationPercentage
Type: String
Required: No
UtilizationPercentageInUnits
The percentage of Amazon EC2 reservation time that you used. It's converted to normalized
units. Normalized units are available only for Amazon EC2 usage after November 11, 2017.
ReservationAggregates 978
AWS Billing and Cost Management API Reference
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ReservationAggregates 979
AWS Billing and Cost Management API Reference
ReservationCoverageGroup
Service: AWS Cost Explorer
Contents
Attributes
Required: No
Coverage
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ReservationCoverageGroup 980
AWS Billing and Cost Management API Reference
ReservationPurchaseRecommendation
Service: AWS Cost Explorer
Contents
AccountScope
The account scope that AWS recommends that you purchase this instance for. For example, you
can purchase this reservation for an entire organization in AWS Organizations.
Type: String
Required: No
LookbackPeriodInDays
How many days of previous usage that AWS considers when making this recommendation.
Type: String
Required: No
PaymentOption
The payment option for the reservation (for example, AllUpfront or NoUpfront).
Type: String
Required: No
RecommendationDetails
ReservationPurchaseRecommendation 981
AWS Billing and Cost Management API Reference
Required: No
RecommendationSummary
Required: No
ServiceSpecification
Hardware specifications for the service that you want recommendations for.
Required: No
TermInYears
The term of the reservation that you want recommendations for, in years.
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ReservationPurchaseRecommendation 982
AWS Billing and Cost Management API Reference
ReservationPurchaseRecommendationDetail
Service: AWS Cost Explorer
Contents
AccountId
Type: String
Pattern: [\S\s]*
Required: No
AverageNormalizedUnitsUsedPerHour
The average number of normalized units that you used in an hour during the historical period.
AWS uses this to calculate your recommended reservation purchases.
Type: String
Pattern: [\S\s]*
Required: No
AverageNumberOfCapacityUnitsUsedPerHour
The average number of provisioned capacity units that you used in an hour during the historical
period. AWS uses this to calculate your recommended reservation purchases.
Type: String
Pattern: [\S\s]*
Required: No
ReservationPurchaseRecommendationDetail 983
AWS Billing and Cost Management API Reference
AverageNumberOfInstancesUsedPerHour
The average number of instances that you used in an hour during the historical period. AWS
uses this to calculate your recommended reservation purchases.
Type: String
Pattern: [\S\s]*
Required: No
AverageUtilization
The average utilization of your instances. AWS uses this to calculate your recommended
reservation purchases.
Type: String
Pattern: [\S\s]*
Required: No
CurrencyCode
The currency code that AWS used to calculate the costs for this instance.
Type: String
Pattern: [\S\s]*
Required: No
EstimatedBreakEvenInMonths
How long AWS estimates that it takes for this instance to start saving you money, in months.
Type: String
ReservationPurchaseRecommendationDetail 984
AWS Billing and Cost Management API Reference
Pattern: [\S\s]*
Required: No
EstimatedMonthlyOnDemandCost
How much AWS estimates that you spend on On-Demand Instances in a month.
Type: String
Pattern: [\S\s]*
Required: No
EstimatedMonthlySavingsAmount
How much AWS estimates that this specific recommendation might save you in a month.
Type: String
Pattern: [\S\s]*
Required: No
EstimatedMonthlySavingsPercentage
How much AWS estimates that this specific recommendation might save you in a month, as a
percentage of your overall costs.
Type: String
Pattern: [\S\s]*
Required: No
EstimatedReservationCostForLookbackPeriod
How much AWS estimates that you might spend for all usage during the specified historical
period if you had a reservation.
ReservationPurchaseRecommendationDetail 985
AWS Billing and Cost Management API Reference
Type: String
Pattern: [\S\s]*
Required: No
InstanceDetails
Details about the reservations that AWS recommends that you purchase.
Required: No
MaximumNormalizedUnitsUsedPerHour
The maximum number of normalized units that you used in an hour during the historical period.
AWS uses this to calculate your recommended reservation purchases.
Type: String
Pattern: [\S\s]*
Required: No
MaximumNumberOfCapacityUnitsUsedPerHour
The maximum number of provisioned capacity units that you used in an hour during the
historical period. AWS uses this to calculate your recommended reservation purchases.
Type: String
Pattern: [\S\s]*
Required: No
MaximumNumberOfInstancesUsedPerHour
The maximum number of instances that you used in an hour during the historical period. AWS
uses this to calculate your recommended reservation purchases.
ReservationPurchaseRecommendationDetail 986
AWS Billing and Cost Management API Reference
Type: String
Pattern: [\S\s]*
Required: No
MinimumNormalizedUnitsUsedPerHour
The minimum number of normalized units that you used in an hour during the historical period.
AWS uses this to calculate your recommended reservation purchases.
Type: String
Pattern: [\S\s]*
Required: No
MinimumNumberOfCapacityUnitsUsedPerHour
The minimum number of provisioned capacity units that you used in an hour during the
historical period. AWS uses this to calculate your recommended reservation purchases.
Type: String
Pattern: [\S\s]*
Required: No
MinimumNumberOfInstancesUsedPerHour
The minimum number of instances that you used in an hour during the historical period. AWS
uses this to calculate your recommended reservation purchases.
Type: String
Pattern: [\S\s]*
Required: No
ReservationPurchaseRecommendationDetail 987
AWS Billing and Cost Management API Reference
RecommendedNormalizedUnitsToPurchase
The number of normalized units that AWS recommends that you purchase.
Type: String
Pattern: [\S\s]*
Required: No
RecommendedNumberOfCapacityUnitsToPurchase
The number of reserved capacity units that AWS recommends that you purchase.
Type: String
Pattern: [\S\s]*
Required: No
RecommendedNumberOfInstancesToPurchase
Type: String
Pattern: [\S\s]*
Required: No
RecurringStandardMonthlyCost
Type: String
Pattern: [\S\s]*
ReservationPurchaseRecommendationDetail 988
AWS Billing and Cost Management API Reference
Required: No
ReservedCapacityDetails
Details about the reservations that AWS recommends that you purchase.
Required: No
UpfrontCost
Type: String
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:
ReservationPurchaseRecommendationDetail 989
AWS Billing and Cost Management API Reference
ReservationPurchaseRecommendationMetadata
Service: AWS Cost Explorer
Information about a recommendation, such as the timestamp for when AWS made a specific
recommendation.
Contents
AdditionalMetadata
Type: String
Pattern: [\S\s]*
Required: No
GenerationTimestamp
Type: String
Pattern: [\S\s]*
Required: No
RecommendationId
Type: String
Pattern: [\S\s]*
Required: No
ReservationPurchaseRecommendationMetadata 990
AWS Billing and Cost Management API Reference
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ReservationPurchaseRecommendationMetadata 991
AWS Billing and Cost Management API Reference
ReservationPurchaseRecommendationSummary
Service: AWS Cost Explorer
A summary about this recommendation, such as the currency code, the amount that AWS
estimates that you could save, and the total amount of reservation to purchase.
Contents
CurrencyCode
Type: String
Pattern: [\S\s]*
Required: No
TotalEstimatedMonthlySavingsAmount
The total amount that AWS estimates that this recommendation could save you in a month.
Type: String
Pattern: [\S\s]*
Required: No
TotalEstimatedMonthlySavingsPercentage
The total amount that AWS estimates that this recommendation could save you in a month, as a
percentage of your costs.
Type: String
Pattern: [\S\s]*
Required: No
ReservationPurchaseRecommendationSummary 992
AWS Billing and Cost Management API Reference
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ReservationPurchaseRecommendationSummary 993
AWS Billing and Cost Management API Reference
ReservationUtilizationGroup
Service: AWS Cost Explorer
Contents
Attributes
Required: No
Key
Type: String
Required: No
Utilization
Required: No
Value
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ReservationUtilizationGroup 994
AWS Billing and Cost Management API Reference
ReservationUtilizationGroup 995
AWS Billing and Cost Management API Reference
ReservedCapacityDetails
Service: AWS Cost Explorer
Details about the reservations that AWS recommends that you purchase.
Contents
DynamoDBCapacityDetails
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ReservedCapacityDetails 996
AWS Billing and Cost Management API Reference
ResourceDetails
Service: AWS Cost Explorer
Contents
EC2ResourceDetails
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ResourceDetails 997
AWS Billing and Cost Management API Reference
ResourceTag
Service: AWS Cost Explorer
Note
Tagging is supported only for the following Cost Explorer resource types:
AnomalyMonitor, AnomalySubscription, CostCategory.
Contents
Key
Type: String
Pattern: ^([\p{L}\p{Z}\p{N}_.:/=+\-@]*)$
Required: Yes
Value
Type: String
Pattern: ^([\p{L}\p{Z}\p{N}_.:/=+\-@]*)$
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ResourceTag 998
AWS Billing and Cost Management API Reference
ResourceTag 999
AWS Billing and Cost Management API Reference
ResourceUtilization
Service: AWS Cost Explorer
Contents
EC2ResourceUtilization
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ResourceUtilization 1000
AWS Billing and Cost Management API Reference
ResultByTime
Service: AWS Cost Explorer
Contents
Estimated
Type: Boolean
Required: No
Groups
Required: No
TimePeriod
Required: No
Total
The total amount of cost or usage accrued during the time period.
Required: No
ResultByTime 1001
AWS Billing and Cost Management API Reference
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ResultByTime 1002
AWS Billing and Cost Management API Reference
RightsizingRecommendation
Service: AWS Cost Explorer
Contents
AccountId
Type: String
Pattern: [\S\s]*
Required: No
CurrentInstance
Required: No
FindingReasonCodes
The list of possible reasons why the recommendation is generated, such as under- or over-
utilization of specific metrics (for example, CPU, Memory, Network).
RightsizingRecommendation 1003
AWS Billing and Cost Management API Reference
Required: No
ModifyRecommendationDetail
Required: No
RightsizingType
Type: String
Required: No
TerminateRecommendationDetail
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
RightsizingRecommendation 1004
AWS Billing and Cost Management API Reference
RightsizingRecommendationConfiguration
Service: AWS Cost Explorer
Contents
BenefitsConsidered
The option to consider RI or Savings Plans discount benefits in your savings calculation. The
default value is TRUE.
Type: Boolean
Required: Yes
RecommendationTarget
The option to see recommendations within the same instance family or recommendations for
instances across other families. The default value is SAME_INSTANCE_FAMILY.
Type: String
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
RightsizingRecommendationConfiguration 1005
AWS Billing and Cost Management API Reference
RightsizingRecommendationMetadata
Service: AWS Cost Explorer
Contents
AdditionalMetadata
Type: String
Pattern: [\S\s]*
Required: No
GenerationTimestamp
Type: String
Pattern: [\S\s]*
Required: No
LookbackPeriodInDays
The number of days of previous usage that AWS considers when making the recommendation.
Type: String
Required: No
RecommendationId
RightsizingRecommendationMetadata 1006
AWS Billing and Cost Management API Reference
Type: String
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:
RightsizingRecommendationMetadata 1007
AWS Billing and Cost Management API Reference
RightsizingRecommendationSummary
Service: AWS Cost Explorer
Contents
EstimatedTotalMonthlySavingsAmount
Type: String
Pattern: [\S\s]*
Required: No
SavingsCurrencyCode
Type: String
Pattern: [\S\s]*
Required: No
SavingsPercentage
The savings percentage based on the recommended modifications. It's relative to the total On-
Demand costs that are associated with these instances.
Type: String
Pattern: [\S\s]*
Required: No
RightsizingRecommendationSummary 1008
AWS Billing and Cost Management API Reference
TotalRecommendationCount
Type: String
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:
RightsizingRecommendationSummary 1009
AWS Billing and Cost Management API Reference
RootCause
Service: AWS Cost Explorer
The combination of AWS service, linked account, linked account name, Region, and usage type
where a cost anomaly is observed, along with the dollar and percentage amount of the anomaly
impact. The linked account name will only be available when the account name can be identified.
Contents
Impact
Required: No
LinkedAccount
The member account value that's associated with the cost anomaly.
Type: String
Pattern: [\S\s]*
Required: No
LinkedAccountName
The member account name value that's associated with the cost anomaly.
Type: String
Pattern: [\S\s]*
Required: No
Region
RootCause 1010
AWS Billing and Cost Management API Reference
Type: String
Pattern: [\S\s]*
Required: No
Service
The AWS service name that's associated with the cost anomaly.
Type: String
Pattern: [\S\s]*
Required: No
UsageType
Type: String
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:
RootCause 1011
AWS Billing and Cost Management API Reference
RootCauseImpact
Service: AWS Cost Explorer
Contents
Contribution
The dollar amount that this root cause contributed to the anomaly's TotalImpact.
Type: Double
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
RootCauseImpact 1012
AWS Billing and Cost Management API Reference
SavingsPlans
Service: AWS Cost Explorer
Contents
InstanceFamily
Type: String
Pattern: [\S\s]*
Required: No
OfferingId
The unique ID that's used to distinguish Savings Plans commitments from one another.
Type: String
Pattern: [\S\s]*
Required: No
PaymentOption
Type: String
Required: No
Region
SavingsPlans 1013
AWS Billing and Cost Management API Reference
Type: String
Pattern: [\S\s]*
Required: No
SavingsPlansCommitment
Type: Double
Required: No
SavingsPlansType
Type: String
Required: No
TermInYears
The term that you want the Savings Plans commitment for.
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
SavingsPlans 1014
AWS Billing and Cost Management API Reference
SavingsPlans 1015
AWS Billing and Cost Management API Reference
SavingsPlansAmortizedCommitment
Service: AWS Cost Explorer
The amortized amount of Savings Plans purchased in a specific account during a specific time
interval.
Contents
AmortizedRecurringCommitment
The amortized amount of your Savings Plans commitment that was purchased with either a
Partial or a NoUpfront.
Type: String
Pattern: [\S\s]*
Required: No
AmortizedUpfrontCommitment
The amortized amount of your Savings Plans commitment that was purchased with an
Upfront or PartialUpfront Savings Plans.
Type: String
Pattern: [\S\s]*
Required: No
TotalAmortizedCommitment
The total amortized amount of your Savings Plans commitment, regardless of your Savings
Plans purchase method.
Type: String
Pattern: [\S\s]*
SavingsPlansAmortizedCommitment 1016
AWS Billing and Cost Management API Reference
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
SavingsPlansAmortizedCommitment 1017
AWS Billing and Cost Management API Reference
SavingsPlansCoverage
Service: AWS Cost Explorer
The amount of Savings Plans eligible usage that's covered by Savings Plans. All calculations
consider the On-Demand equivalent of your Savings Plans usage.
Contents
Attributes
Required: No
Coverage
The amount of Savings Plans eligible usage that the Savings Plans covered.
Required: No
TimePeriod
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
SavingsPlansCoverage 1018
AWS Billing and Cost Management API Reference
SavingsPlansCoverageData
Service: AWS Cost Explorer
Specific coverage percentage, On-Demand costs, and spend covered by Savings Plans, and total
Savings Plans costs for an account.
Contents
CoveragePercentage
The percentage of your existing Savings Plans covered usage, divided by all of your eligible
Savings Plans usage in an account (or set of accounts).
Type: String
Pattern: [\S\s]*
Required: No
OnDemandCost
Type: String
Pattern: [\S\s]*
Required: No
SpendCoveredBySavingsPlans
Type: String
Pattern: [\S\s]*
Required: No
SavingsPlansCoverageData 1019
AWS Billing and Cost Management API Reference
TotalCost
The total cost of your AWS usage, regardless of your purchase option.
Type: String
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:
SavingsPlansCoverageData 1020
AWS Billing and Cost Management API Reference
SavingsPlansDetails
Service: AWS Cost Explorer
Contents
InstanceFamily
Type: String
Pattern: [\S\s]*
Required: No
OfferingId
The unique ID that's used to distinguish Savings Plans from one another.
Type: String
Pattern: [\S\s]*
Required: No
Region
A collection of AWS resources in a geographic area. Each AWS Region is isolated and
independent of the other Regions.
Type: String
Pattern: [\S\s]*
Required: No
SavingsPlansDetails 1021
AWS Billing and Cost Management API Reference
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
SavingsPlansDetails 1022
AWS Billing and Cost Management API Reference
SavingsPlansPurchaseAnalysisConfiguration
Service: AWS Cost Explorer
Contents
AnalysisType
Type: String
Required: Yes
LookBackTimePeriod
Required: Yes
SavingsPlansToAdd
Required: Yes
AccountId
Type: String
Pattern: [0-9]{12}
SavingsPlansPurchaseAnalysisConfiguration 1023
AWS Billing and Cost Management API Reference
Required: No
AccountScope
Type: String
Required: No
SavingsPlansToExclude
Pattern: ^[\S\s]{8}-[\S\s]{4}-[\S\s]{4}-[\S\s]{4}-[\S\s]{12}$
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
SavingsPlansPurchaseAnalysisConfiguration 1024
AWS Billing and Cost Management API Reference
SavingsPlansPurchaseAnalysisDetails
Service: AWS Cost Explorer
Contents
AdditionalMetadata
Type: String
Pattern: [\S\s]*
Required: No
CurrencyCode
Type: String
Pattern: [\S\s]*
Required: No
CurrentAverageCoverage
Type: String
Pattern: [\S\s]*
Required: No
CurrentAverageHourlyOnDemandSpend
The average value of hourly On-Demand spend over the lookback period.
SavingsPlansPurchaseAnalysisDetails 1025
AWS Billing and Cost Management API Reference
Type: String
Pattern: [\S\s]*
Required: No
CurrentMaximumHourlyOnDemandSpend
The highest value of hourly On-Demand spend over the lookback period.
Type: String
Pattern: [\S\s]*
Required: No
CurrentMinimumHourlyOnDemandSpend
The lowest value of hourly On-Demand spend over the lookback period.
Type: String
Pattern: [\S\s]*
Required: No
CurrentOnDemandSpend
Type: String
Pattern: [\S\s]*
Required: No
EstimatedAverageCoverage
SavingsPlansPurchaseAnalysisDetails 1026
AWS Billing and Cost Management API Reference
Type: String
Pattern: [\S\s]*
Required: No
EstimatedAverageUtilization
Type: String
Pattern: [\S\s]*
Required: No
EstimatedCommitmentCost
The estimated cost of the Savings Plan over the length of the lookback period.
Type: String
Pattern: [\S\s]*
Required: No
EstimatedMonthlySavingsAmount
Type: String
Pattern: [\S\s]*
Required: No
EstimatedOnDemandCost
The remaining On-Demand cost estimated to not be covered by the Savings Plan over the
length of the lookback period.
SavingsPlansPurchaseAnalysisDetails 1027
AWS Billing and Cost Management API Reference
Type: String
Pattern: [\S\s]*
Required: No
EstimatedOnDemandCostWithCurrentCommitment
The estimated On-Demand cost you expect with no additional commitment based on your
usage of the selected time period and the Savings Plan you own.
Type: String
Pattern: [\S\s]*
Required: No
EstimatedROI
The estimated return on investment that's based on the Savings Plan and estimated savings.
This is calculated as estimatedSavingsAmount/estimatedSPCost*100.
Type: String
Pattern: [\S\s]*
Required: No
EstimatedSavingsAmount
The estimated savings amount that's based on the Savings Plan over the length of the lookback
period.
Type: String
Pattern: [\S\s]*
Required: No
SavingsPlansPurchaseAnalysisDetails 1028
AWS Billing and Cost Management API Reference
EstimatedSavingsPercentage
The estimated savings percentage relative to the total cost over the cost calculation lookback
period.
Type: String
Pattern: [\S\s]*
Required: No
ExistingHourlyCommitment
Type: String
Pattern: [\S\s]*
Required: No
HourlyCommitmentToPurchase
Type: String
Pattern: [\S\s]*
Required: No
LatestUsageTimestamp
The date and time of the last hour that went into the analysis.
Type: String
Pattern: [\S\s]*
SavingsPlansPurchaseAnalysisDetails 1029
AWS Billing and Cost Management API Reference
Required: No
LookbackPeriodInHours
Type: String
Pattern: [\S\s]*
Required: No
MetricsOverLookbackPeriod
The related hourly cost, coverage, and utilization metrics over the lookback period.
Required: No
UpfrontCost
The upfront cost of the Savings Plan based on the selected payment option.
Type: String
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:
SavingsPlansPurchaseAnalysisDetails 1030
AWS Billing and Cost Management API Reference
SavingsPlansPurchaseRecommendation
Service: AWS Cost Explorer
Contains your request parameters, Savings Plan Recommendations Summary, and Details.
Contents
AccountScope
The account scope that you want your recommendations for. Amazon Web Services calculates
recommendations that include the management account and member accounts if the value is
set to PAYER. If the value is LINKED, recommendations are calculated for individual member
accounts only.
Type: String
Required: No
LookbackPeriodInDays
Type: String
Required: No
PaymentOption
Type: String
Required: No
SavingsPlansPurchaseRecommendationDetails
Details for the Savings Plans that we recommend that you purchase to cover existing Savings
Plans eligible workloads.
SavingsPlansPurchaseRecommendation 1031
AWS Billing and Cost Management API Reference
Required: No
SavingsPlansPurchaseRecommendationSummary
Required: No
SavingsPlansType
Type: String
Required: No
TermInYears
The Savings Plans recommendation term in years. It's used to generate the recommendation.
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
SavingsPlansPurchaseRecommendation 1032
AWS Billing and Cost Management API Reference
SavingsPlansPurchaseRecommendationDetail
Service: AWS Cost Explorer
Contents
AccountId
Type: String
Pattern: [\S\s]*
Required: No
CurrencyCode
The currency code that AWS used to generate the recommendations and present potential
savings.
Type: String
Pattern: [\S\s]*
Required: No
CurrentAverageHourlyOnDemandSpend
The average value of hourly On-Demand spend over the lookback period of the applicable
usage type.
Type: String
Pattern: [\S\s]*
Required: No
SavingsPlansPurchaseRecommendationDetail 1033
AWS Billing and Cost Management API Reference
CurrentMaximumHourlyOnDemandSpend
The highest value of hourly On-Demand spend over the lookback period of the applicable
usage type.
Type: String
Pattern: [\S\s]*
Required: No
CurrentMinimumHourlyOnDemandSpend
The lowest value of hourly On-Demand spend over the lookback period of the applicable usage
type.
Type: String
Pattern: [\S\s]*
Required: No
EstimatedAverageUtilization
Type: String
Pattern: [\S\s]*
Required: No
EstimatedMonthlySavingsAmount
The estimated monthly savings amount based on the recommended Savings Plans.
Type: String
Pattern: [\S\s]*
SavingsPlansPurchaseRecommendationDetail 1034
AWS Billing and Cost Management API Reference
Required: No
EstimatedOnDemandCost
The remaining On-Demand cost estimated to not be covered by the recommended Savings
Plans, over the length of the lookback period.
Type: String
Pattern: [\S\s]*
Required: No
EstimatedOnDemandCostWithCurrentCommitment
The estimated On-Demand costs you expect with no additional commitment, based on your
usage of the selected time period and the Savings Plans you own.
Type: String
Pattern: [\S\s]*
Required: No
EstimatedROI
The estimated return on investment that's based on the recommended Savings Plans that you
purchased. This is calculated as estimatedSavingsAmount/ estimatedSPCost*100.
Type: String
Pattern: [\S\s]*
Required: No
EstimatedSavingsAmount
The estimated savings amount that's based on the recommended Savings Plans over the length
of the lookback period.
SavingsPlansPurchaseRecommendationDetail 1035
AWS Billing and Cost Management API Reference
Type: String
Pattern: [\S\s]*
Required: No
EstimatedSavingsPercentage
The estimated savings percentage relative to the total cost of applicable On-Demand usage
over the lookback period.
Type: String
Pattern: [\S\s]*
Required: No
EstimatedSPCost
The cost of the recommended Savings Plans over the length of the lookback period.
Type: String
Pattern: [\S\s]*
Required: No
HourlyCommitmentToPurchase
The recommended hourly commitment level for the Savings Plans type and the configuration
that's based on the usage during the lookback period.
Type: String
Pattern: [\S\s]*
Required: No
SavingsPlansPurchaseRecommendationDetail 1036
AWS Billing and Cost Management API Reference
RecommendationDetailId
Type: String
Pattern: ^[\S\s]{8}-[\S\s]{4}-[\S\s]{4}-[\S\s]{4}-[\S\s]{12}$
Required: No
SavingsPlansDetails
Required: No
UpfrontCost
The upfront cost of the recommended Savings Plans, based on the selected payment option.
Type: String
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:
SavingsPlansPurchaseRecommendationDetail 1037
AWS Billing and Cost Management API Reference
SavingsPlansPurchaseRecommendationMetadata
Service: AWS Cost Explorer
Contents
AdditionalMetadata
Type: String
Pattern: [\S\s]*
Required: No
GenerationTimestamp
Type: String
Pattern: [\S\s]*
Required: No
RecommendationId
Type: String
Pattern: [\S\s]*
Required: No
SavingsPlansPurchaseRecommendationMetadata 1038
AWS Billing and Cost Management API Reference
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
SavingsPlansPurchaseRecommendationMetadata 1039
AWS Billing and Cost Management API Reference
SavingsPlansPurchaseRecommendationSummary
Service: AWS Cost Explorer
Contents
CurrencyCode
The currency code that AWS used to generate the recommendations and present potential
savings.
Type: String
Pattern: [\S\s]*
Required: No
CurrentOnDemandSpend
The current total on demand spend of the applicable usage types over the lookback period.
Type: String
Pattern: [\S\s]*
Required: No
DailyCommitmentToPurchase
Type: String
Pattern: [\S\s]*
Required: No
SavingsPlansPurchaseRecommendationSummary 1040
AWS Billing and Cost Management API Reference
EstimatedMonthlySavingsAmount
The estimated monthly savings amount that's based on the recommended Savings Plans
purchase.
Type: String
Pattern: [\S\s]*
Required: No
EstimatedOnDemandCostWithCurrentCommitment
The estimated On-Demand costs you expect with no additional commitment. It's based on your
usage of the selected time period and the Savings Plans you own.
Type: String
Pattern: [\S\s]*
Required: No
EstimatedROI
The estimated return on investment that's based on the recommended Savings Plans and
estimated savings.
Type: String
Pattern: [\S\s]*
Required: No
EstimatedSavingsAmount
The estimated total savings over the lookback period, based on the purchase of the
recommended Savings Plans.
Type: String
SavingsPlansPurchaseRecommendationSummary 1041
AWS Billing and Cost Management API Reference
Pattern: [\S\s]*
Required: No
EstimatedSavingsPercentage
The estimated savings relative to the total cost of On-Demand usage, over the lookback period.
This is calculated as estimatedSavingsAmount/ CurrentOnDemandSpend*100.
Type: String
Pattern: [\S\s]*
Required: No
EstimatedTotalCost
The estimated total cost of the usage after purchasing the recommended Savings Plans. This is
a sum of the cost of Savings Plans during this term, and the remaining On-Demand usage.
Type: String
Pattern: [\S\s]*
Required: No
HourlyCommitmentToPurchase
Type: String
Pattern: [\S\s]*
Required: No
TotalRecommendationCount
The aggregate number of Savings Plans recommendations that exist for your account.
SavingsPlansPurchaseRecommendationSummary 1042
AWS Billing and Cost Management API Reference
Type: String
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:
SavingsPlansPurchaseRecommendationSummary 1043
AWS Billing and Cost Management API Reference
SavingsPlansSavings
Service: AWS Cost Explorer
The amount of savings that you're accumulating, against the public On-Demand rate of the usage
accrued in an account.
Contents
NetSavings
The savings amount that you're accumulating for the usage that's covered by a Savings Plans,
when compared to the On-Demand equivalent of the same usage.
Type: String
Pattern: [\S\s]*
Required: No
OnDemandCostEquivalent
How much the amount that the usage would have cost if it was accrued at the On-Demand rate.
Type: String
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:
SavingsPlansSavings 1044
AWS Billing and Cost Management API Reference
SavingsPlansSavings 1045
AWS Billing and Cost Management API Reference
SavingsPlansUtilization
Service: AWS Cost Explorer
The measurement of how well you're using your existing Savings Plans.
Contents
TotalCommitment
The total amount of Savings Plans commitment that's been purchased in an account (or set of
accounts).
Type: String
Pattern: [\S\s]*
Required: No
UnusedCommitment
The amount of your Savings Plans commitment that wasn't consumed from Savings Plans
eligible usage in a specific period.
Type: String
Pattern: [\S\s]*
Required: No
UsedCommitment
The amount of your Savings Plans commitment that was consumed from Savings Plans eligible
usage in a specific period.
Type: String
Pattern: [\S\s]*
SavingsPlansUtilization 1046
AWS Billing and Cost Management API Reference
Required: No
UtilizationPercentage
The amount of UsedCommitment divided by the TotalCommitment for your Savings Plans.
Type: String
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:
SavingsPlansUtilization 1047
AWS Billing and Cost Management API Reference
SavingsPlansUtilizationAggregates
Service: AWS Cost Explorer
Contents
Utilization
A ratio of your effectiveness of using existing Savings Plans to apply to workloads that are
Savings Plans eligible.
Required: Yes
AmortizedCommitment
The total amortized commitment for a Savings Plans. This includes the sum of the upfront and
recurring Savings Plans fees.
Required: No
Savings
The amount that's saved by using existing Savings Plans. Savings returns both net savings from
Savings Plans and also the onDemandCostEquivalent of the Savings Plans when considering
the utilization rate.
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
SavingsPlansUtilizationAggregates 1048
AWS Billing and Cost Management API Reference
SavingsPlansUtilizationAggregates 1049
AWS Billing and Cost Management API Reference
SavingsPlansUtilizationByTime
Service: AWS Cost Explorer
Contents
TimePeriod
Required: Yes
Utilization
A ratio of your effectiveness of using existing Savings Plans to apply to workloads that are
Savings Plans eligible.
Required: Yes
AmortizedCommitment
The total amortized commitment for a Savings Plans. This includes the sum of the upfront and
recurring Savings Plans fees.
Required: No
Savings
The amount that's saved by using existing Savings Plans. Savings returns both net savings from
Savings Plans and also the onDemandCostEquivalent of the Savings Plans when considering
the utilization rate.
Required: No
SavingsPlansUtilizationByTime 1050
AWS Billing and Cost Management API Reference
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
SavingsPlansUtilizationByTime 1051
AWS Billing and Cost Management API Reference
SavingsPlansUtilizationDetail
Service: AWS Cost Explorer
A single daily or monthly Savings Plans utilization rate and details for your account. A management
account in an organization have access to member accounts. You can use GetDimensionValues
to determine the possible dimension values.
Contents
AmortizedCommitment
The total amortized commitment for a Savings Plans. Includes the sum of the upfront and
recurring Savings Plans fees.
Required: No
Attributes
Required: No
Savings
The amount saved by using existing Savings Plans. Savings returns both net savings from
savings plans and also the onDemandCostEquivalent of the Savings Plans when considering
the utilization rate.
Required: No
SavingsPlanArn
The unique Amazon Resource Name (ARN) for a particular Savings Plan.
Type: String
Required: No
SavingsPlansUtilizationDetail 1052
AWS Billing and Cost Management API Reference
Utilization
A ratio of your effectiveness of using existing Savings Plans to apply to workloads that are
Savings Plans eligible.
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
SavingsPlansUtilizationDetail 1053
AWS Billing and Cost Management API Reference
ServiceSpecification
Service: AWS Cost Explorer
Hardware specifications for the service that you want recommendations for.
Contents
EC2Specification
The Amazon EC2 hardware specifications that you want AWS to provide recommendations for.
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ServiceSpecification 1054
AWS Billing and Cost Management API Reference
SortDefinition
Service: AWS Cost Explorer
Contents
Key
Type: String
Pattern: [\S\s]*
Required: Yes
SortOrder
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
SortDefinition 1055
AWS Billing and Cost Management API Reference
Subscriber
Service: AWS Cost Explorer
Contents
Address
The email address or SNS Amazon Resource Name (ARN). This depends on the Type.
Type: String
Pattern: (^[a-zA-Z0-9.!#$%&'*+=?^_‘{|}~-]+@[a-zA-Z0-9_-]+(\.[a-zA-
Z0-9_-]+)+$)|(^arn:(aws[a-zA-Z-]*):sns:[a-zA-Z0-9-]+:[0-9]{12}:[a-zA-
Z0-9_-]+(\.fifo)?$)
Required: No
Status
Type: String
Required: No
Type
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
Subscriber 1056
AWS Billing and Cost Management API Reference
Subscriber 1057
AWS Billing and Cost Management API Reference
TagValues
Service: AWS Cost Explorer
If Values and Key aren't specified, the ABSENT MatchOption is applied to all tags. That is, it's
filtered on resources with no tags.
If Key is provided and Values isn't specified, the ABSENT MatchOption is applied to the tag Key
only. That is, it's filtered on resources without the given tag key.
Contents
Key
Type: String
Pattern: [\S\s]*
Required: No
MatchOptions
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.
Required: No
Values
TagValues 1058
AWS Billing and Cost Management API Reference
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:
TagValues 1059
AWS Billing and Cost Management API Reference
TargetInstance
Service: AWS Cost Explorer
Contents
CurrencyCode
The currency code that AWS used to calculate the costs for this instance.
Type: String
Pattern: [\S\s]*
Required: No
DefaultTargetInstance
Type: Boolean
Required: No
EstimatedMonthlyCost
Type: String
Pattern: [\S\s]*
Required: No
EstimatedMonthlySavings
Type: String
TargetInstance 1060
AWS Billing and Cost Management API Reference
Pattern: [\S\s]*
Required: No
ExpectedResourceUtilization
Required: No
PlatformDifferences
Explains the actions that you might need to take to successfully migrate your workloads from
the current instance type to the recommended instance type.
Required: No
ResourceDetails
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
TargetInstance 1061
AWS Billing and Cost Management API Reference
TerminateRecommendationDetail
Service: AWS Cost Explorer
Contents
CurrencyCode
The currency code that AWS used to calculate the costs for this instance.
Type: String
Pattern: [\S\s]*
Required: No
EstimatedMonthlySavings
Type: String
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:
TerminateRecommendationDetail 1062
AWS Billing and Cost Management API Reference
TotalImpactFilter
Service: AWS Cost Explorer
Contents
NumericOperator
Type: String
Required: Yes
StartValue
Type: Double
Required: Yes
EndValue
Type: Double
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
TotalImpactFilter 1063
AWS Billing and Cost Management API Reference
TotalImpactFilter 1064
AWS Billing and Cost Management API Reference
UpdateCostAllocationTagsStatusError
Service: AWS Cost Explorer
Gives a detailed description of the result of an action. It's on each cost allocation tag entry in the
request.
Contents
Code
Type: String
Pattern: [\S\s]*
Required: No
Message
Type: String
Required: No
TagKey
Type: String
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:
UpdateCostAllocationTagsStatusError 1065
AWS Billing and Cost Management API Reference
UpdateCostAllocationTagsStatusError 1066
AWS Billing and Cost Management API Reference
UtilizationByTime
Service: AWS Cost Explorer
Contents
Groups
Required: No
TimePeriod
Required: No
Total
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
UtilizationByTime 1067
AWS Billing and Cost Management API Reference
• Column
• DataQuery
• DestinationConfigurations
• ExecutionReference
• ExecutionStatus
• Export
• ExportReference
• ExportStatus
• RefreshCadence
• ResourceTag
• S3Destination
• S3OutputConfigurations
• Table
• TablePropertyDescription
• ValidationExceptionField
Column
Service: AWS Data Exports
Includes basic information for a data column such as its description, name, and type.
Contents
Description
Type: String
Pattern: ^[\S\s]*$
Required: No
Name
Type: String
Pattern: ^[\S\s]*$
Required: No
Type
Type: String
Pattern: ^[\S\s]*$
Required: No
Column 1069
AWS Billing and Cost Management API Reference
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
Column 1070
AWS Billing and Cost Management API Reference
DataQuery
Service: AWS Data Exports
The SQL query of column selections and row filters from the data table you want.
Contents
QueryStatement
Type: String
Pattern: ^[\S\s]*$
Required: Yes
TableConfigurations
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
DataQuery 1071
AWS Billing and Cost Management API Reference
DataQuery 1072
AWS Billing and Cost Management API Reference
DestinationConfigurations
Service: AWS Data Exports
Contents
S3Destination
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
DestinationConfigurations 1073
AWS Billing and Cost Management API Reference
ExecutionReference
Service: AWS Data Exports
Contents
ExecutionId
Type: String
Pattern: ^[\S\s]*$
Required: Yes
ExecutionStatus
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ExecutionReference 1074
AWS Billing and Cost Management API Reference
ExecutionStatus
Service: AWS Data Exports
Contents
CompletedAt
Type: Timestamp
Required: No
CreatedAt
Type: Timestamp
Required: No
LastUpdatedAt
Type: Timestamp
Required: No
StatusCode
Type: String
Required: No
StatusReason
ExecutionStatus 1075
AWS Billing and Cost Management API Reference
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ExecutionStatus 1076
AWS Billing and Cost Management API Reference
Export
Service: AWS Data Exports
Contents
DataQuery
Required: Yes
DestinationConfigurations
Required: Yes
Name
Type: String
Pattern: ^[0-9A-Za-z!\-_.*\'()]+$
Required: Yes
RefreshCadence
Required: Yes
Description
Export 1077
AWS Billing and Cost Management API Reference
Type: String
Pattern: ^[\S\s]*$
Required: No
ExportArn
Type: String
Pattern: ^arn:aws[-a-z0-9]*:[-a-z0-9]+:[-a-z0-9]*:[0-9]{12}:[-a-zA-
Z0-9/:_]+$
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
Export 1078
AWS Billing and Cost Management API Reference
ExportReference
Service: AWS Data Exports
Contents
ExportArn
Type: String
Pattern: ^arn:aws[-a-z0-9]*:[-a-z0-9]+:[-a-z0-9]*:[0-9]{12}:[-a-zA-
Z0-9/:_]+$
Required: Yes
ExportName
Type: String
Pattern: ^[0-9A-Za-z!\-_.*\'()]+$
Required: Yes
ExportStatus
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ExportReference 1079
AWS Billing and Cost Management API Reference
ExportReference 1080
AWS Billing and Cost Management API Reference
ExportStatus
Service: AWS Data Exports
Contents
CreatedAt
Type: Timestamp
Required: No
LastRefreshedAt
Type: Timestamp
Required: No
LastUpdatedAt
Type: Timestamp
Required: No
StatusCode
Type: String
Required: No
StatusReason
Type: String
ExportStatus 1081
AWS Billing and Cost Management API Reference
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ExportStatus 1082
AWS Billing and Cost Management API Reference
RefreshCadence
Service: AWS Data Exports
The cadence for AWS to update the data export in your S3 bucket.
Contents
Frequency
The frequency that data exports are updated. The export refreshes each time the source data
updates, up to three times daily.
Type: String
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
RefreshCadence 1083
AWS Billing and Cost Management API Reference
ResourceTag
Service: AWS Data Exports
Contents
Key
Type: String
Required: Yes
Value
Type: String
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ResourceTag 1084
AWS Billing and Cost Management API Reference
S3Destination
Service: AWS Data Exports
Describes the destination Amazon Simple Storage Service (Amazon S3) bucket name and object
keys of a data exports file.
Contents
S3Bucket
The name of the Amazon S3 bucket used as the destination of a data export file.
Type: String
Pattern: ^[\S\s]*$
Required: Yes
S3OutputConfigurations
Required: Yes
S3Prefix
The S3 path prefix you want prepended to the name of your data export.
Type: String
Pattern: ^[\S\s]*$
Required: Yes
S3Region
Type: String
S3Destination 1085
AWS Billing and Cost Management API Reference
Pattern: ^[\S\s]*$
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
S3Destination 1086
AWS Billing and Cost Management API Reference
S3OutputConfigurations
Service: AWS Data Exports
The compression type, file format, and overwrite preference for the data export.
Contents
Compression
Type: String
Required: Yes
Format
Type: String
Required: Yes
OutputType
Type: String
Required: Yes
Overwrite
The rule to follow when generating a version of the data export file. You have the choice
to overwrite the previous version or to be delivered in addition to the previous versions.
Overwriting exports can save on Amazon S3 storage costs. Creating new export versions allows
you to track the changes in cost and usage data over time.
Type: String
S3OutputConfigurations 1087
AWS Billing and Cost Management API Reference
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
S3OutputConfigurations 1088
AWS Billing and Cost Management API Reference
Table
Service: AWS Data Exports
Contents
Description
Type: String
Pattern: ^[\S\s]*$
Required: No
TableName
Type: String
Pattern: ^[\S\s]*$
Required: No
TableProperties
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
Table 1089
AWS Billing and Cost Management API Reference
Table 1090
AWS Billing and Cost Management API Reference
TablePropertyDescription
Service: AWS Data Exports
Contents
DefaultValue
Type: String
Pattern: ^[\S\s]*$
Required: No
Description
Type: String
Pattern: ^[\S\s]*$
Required: No
Name
Type: String
Pattern: ^[\S\s]*$
Required: No
ValidValues
TablePropertyDescription 1091
AWS Billing and Cost Management API Reference
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:
TablePropertyDescription 1092
AWS Billing and Cost Management API Reference
ValidationExceptionField
Service: AWS Data Exports
The input failed to meet the constraints specified by the AWS service in a specified field.
Contents
Message
Type: String
Pattern: ^[\S\s]*$
Required: Yes
Name
Type: String
Pattern: ^[\S\s]*$
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ValidationExceptionField 1093
AWS Billing and Cost Management API Reference
• AddReservedInstanceAction
• AddSavingsPlanAction
• BatchCreateBillScenarioCommitmentModificationEntry
• BatchCreateBillScenarioCommitmentModificationError
• BatchCreateBillScenarioCommitmentModificationItem
• BatchCreateBillScenarioUsageModificationEntry
• BatchCreateBillScenarioUsageModificationError
• BatchCreateBillScenarioUsageModificationItem
• BatchCreateWorkloadEstimateUsageEntry
• BatchCreateWorkloadEstimateUsageError
• BatchCreateWorkloadEstimateUsageItem
• BatchDeleteBillScenarioCommitmentModificationError
• BatchDeleteBillScenarioUsageModificationError
• BatchDeleteWorkloadEstimateUsageError
• BatchUpdateBillScenarioCommitmentModificationEntry
• BatchUpdateBillScenarioCommitmentModificationError
• BatchUpdateBillScenarioUsageModificationEntry
• BatchUpdateBillScenarioUsageModificationError
• BatchUpdateWorkloadEstimateUsageEntry
• BatchUpdateWorkloadEstimateUsageError
• BillEstimateCommitmentSummary
• BillEstimateCostSummary
• BillEstimateInputCommitmentModificationSummary
• BillEstimateInputUsageModificationSummary
• BillEstimateLineItemSummary
• BillEstimateSummary
• BillInterval
• BillScenarioCommitmentModificationAction
• BillScenarioCommitmentModificationItem
• BillScenarioSummary
• BillScenarioUsageModificationItem
• CostAmount
• CostDifference
• Expression
• ExpressionFilter
• FilterTimestamp
• HistoricalUsageEntity
• ListBillEstimateLineItemsFilter
• ListBillEstimatesFilter
• ListBillScenariosFilter
• ListUsageFilter
• ListWorkloadEstimatesFilter
• NegateReservedInstanceAction
• NegateSavingsPlanAction
• UsageAmount
• UsageQuantity
• UsageQuantityResult
• ValidationExceptionField
• WorkloadEstimateSummary
• WorkloadEstimateUsageItem
• WorkloadEstimateUsageQuantity
AddReservedInstanceAction
Service: AWS Pricing Calculator
Contents
instanceCount
Type: Integer
Required: No
reservedInstancesOfferingId
The ID of the Reserved Instance offering to add. For more information, see
DescribeReservedInstancesOfferings.
Type: String
Pattern: [a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
AddReservedInstanceAction 1096
AWS Billing and Cost Management API Reference
AddSavingsPlanAction
Service: AWS Pricing Calculator
Contents
commitment
The hourly commitment, in the same currency of the savingsPlanOfferingId. This is a value
between 0.001 and 1 million. You cannot specify more than five digits after the decimal point.
Type: Double
Required: No
savingsPlanOfferingId
The ID of the Savings Plan offering to add. For more information, see
DescribeSavingsPlansOfferings.
Type: String
Pattern: [a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
AddSavingsPlanAction 1097
AWS Billing and Cost Management API Reference
BatchCreateBillScenarioCommitmentModificationEntry
Service: AWS Pricing Calculator
Represents an entry object in the batch operation to create bill scenario commitment
modifications.
Contents
commitmentAction
The specific commitment action to be taken (e.g., adding a Reserved Instance or Savings Plan).
Note: This object is a Union. Only one member of this object can be specified or returned.
Required: Yes
key
A unique identifier for this entry in the batch operation. This can be any valid string. This key is
useful to identify errors associated with any commitment entry as any error is returned with this
key.
Type: String
Pattern: [a-zA-Z0-9]*
Required: Yes
usageAccountId
Type: String
Pattern: \d{12}
Required: Yes
BatchCreateBillScenarioCommitmentModificationEntry 1098
AWS Billing and Cost Management API Reference
group
Type: String
Pattern: [a-zA-Z0-9-]*
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
BatchCreateBillScenarioCommitmentModificationEntry 1099
AWS Billing and Cost Management API Reference
BatchCreateBillScenarioCommitmentModificationError
Service: AWS Pricing Calculator
Represents an error that occurred during a batch create operation for bill scenario commitment
modifications.
Contents
errorCode
Type: String
Required: No
errorMessage
Type: String
Required: No
key
Type: String
Pattern: [a-zA-Z0-9]*
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
BatchCreateBillScenarioCommitmentModificationError 1100
AWS Billing and Cost Management API Reference
BatchCreateBillScenarioCommitmentModificationError 1101
AWS Billing and Cost Management API Reference
BatchCreateBillScenarioCommitmentModificationItem
Service: AWS Pricing Calculator
Represents a successfully created item in a batch operation for bill scenario commitment
modifications.
Contents
commitmentAction
Note: This object is a Union. Only one member of this object can be specified or returned.
Required: No
group
Type: String
Pattern: [a-zA-Z0-9-]*
Required: No
id
Type: String
Pattern: [a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}
Required: No
key
The key of the successfully created entry. This can be any valid string. This key is useful to
identify errors associated with any commitment entry as any error is returned with this key.
BatchCreateBillScenarioCommitmentModificationItem 1102
AWS Billing and Cost Management API Reference
Type: String
Pattern: [a-zA-Z0-9]*
Required: No
usageAccountId
Type: String
Pattern: \d{12}
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
BatchCreateBillScenarioCommitmentModificationItem 1103
AWS Billing and Cost Management API Reference
BatchCreateBillScenarioUsageModificationEntry
Service: AWS Pricing Calculator
Contents
key
A unique identifier for this entry in the batch operation. This can be any valid string. This key is
useful to identify errors associated with any usage entry as any error is returned with this key.
Type: String
Pattern: [a-zA-Z0-9]*
Required: Yes
operation
The specific operation associated with this usage modification. Describes the specific AWS
operation that this usage line models. For example, RunInstances indicates the operation of
an Amazon EC2 instance.
Type: String
Required: Yes
serviceCode
The AWS service code for this usage modification. This identifies the specific AWS service to the
customer as a unique short abbreviation. For example, AmazonEC2 and AWSKMS.
Type: String
BatchCreateBillScenarioUsageModificationEntry 1104
AWS Billing and Cost Management API Reference
Required: Yes
usageAccountId
Type: String
Pattern: \d{12}
Required: Yes
usageType
Type: String
Required: Yes
amounts
The amount of usage you want to create for the service use you are modeling.
Required: No
availabilityZone
Type: String
Required: No
BatchCreateBillScenarioUsageModificationEntry 1105
AWS Billing and Cost Management API Reference
group
Type: String
Pattern: [a-zA-Z0-9-]*
Required: No
historicalUsage
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
BatchCreateBillScenarioUsageModificationEntry 1106
AWS Billing and Cost Management API Reference
BatchCreateBillScenarioUsageModificationError
Service: AWS Pricing Calculator
Represents an error that occurred during a batch create operation for bill scenario usage
modifications.
Contents
errorCode
Type: String
Required: No
errorMessage
Type: String
Required: No
key
Type: String
Pattern: [a-zA-Z0-9]*
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
BatchCreateBillScenarioUsageModificationError 1107
AWS Billing and Cost Management API Reference
BatchCreateBillScenarioUsageModificationError 1108
AWS Billing and Cost Management API Reference
BatchCreateBillScenarioUsageModificationItem
Service: AWS Pricing Calculator
Represents a successfully created item in a batch operation for bill scenario usage modifications.
Contents
operation
Type: String
Required: Yes
serviceCode
Type: String
Required: Yes
usageType
Type: String
Required: Yes
availabilityZone
BatchCreateBillScenarioUsageModificationItem 1109
AWS Billing and Cost Management API Reference
Type: String
Required: No
group
Type: String
Pattern: [a-zA-Z0-9-]*
Required: No
historicalUsage
Required: No
id
Type: String
Pattern: [a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}
Required: No
key
Type: String
BatchCreateBillScenarioUsageModificationItem 1110
AWS Billing and Cost Management API Reference
Pattern: [a-zA-Z0-9]*
Required: No
location
Type: String
Required: No
quantities
Required: No
usageAccountId
Type: String
Pattern: \d{12}
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
BatchCreateBillScenarioUsageModificationItem 1111
AWS Billing and Cost Management API Reference
BatchCreateWorkloadEstimateUsageEntry
Service: AWS Pricing Calculator
Contents
amount
Type: Double
Required: Yes
key
Type: String
Pattern: [a-zA-Z0-9]*
Required: Yes
operation
Type: String
Required: Yes
serviceCode
Type: String
BatchCreateWorkloadEstimateUsageEntry 1112
AWS Billing and Cost Management API Reference
Required: Yes
usageAccountId
Type: String
Pattern: \d{12}
Required: Yes
usageType
Type: String
Required: Yes
group
Type: String
Pattern: [a-zA-Z0-9-]*
Required: No
historicalUsage
BatchCreateWorkloadEstimateUsageEntry 1113
AWS Billing and Cost Management API Reference
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
BatchCreateWorkloadEstimateUsageEntry 1114
AWS Billing and Cost Management API Reference
BatchCreateWorkloadEstimateUsageError
Service: AWS Pricing Calculator
Represents an error that occurred during a batch create operation for workload estimate usage.
Contents
errorCode
Type: String
Required: No
errorMessage
Type: String
Required: No
key
Type: String
Pattern: [a-zA-Z0-9]*
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
BatchCreateWorkloadEstimateUsageError 1115
AWS Billing and Cost Management API Reference
BatchCreateWorkloadEstimateUsageError 1116
AWS Billing and Cost Management API Reference
BatchCreateWorkloadEstimateUsageItem
Service: AWS Pricing Calculator
Represents a successfully created item in a batch operation for workload estimate usage.
Contents
operation
Type: String
Required: Yes
serviceCode
Type: String
Required: Yes
usageType
Type: String
Required: Yes
cost
BatchCreateWorkloadEstimateUsageItem 1117
AWS Billing and Cost Management API Reference
Type: Double
Required: No
currency
Type: String
Required: No
group
Type: String
Pattern: [a-zA-Z0-9-]*
Required: No
historicalUsage
Required: No
id
Type: String
Pattern: [a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}
Required: No
BatchCreateWorkloadEstimateUsageItem 1118
AWS Billing and Cost Management API Reference
key
Type: String
Pattern: [a-zA-Z0-9]*
Required: No
location
Type: String
Required: No
quantity
Required: No
status
Type: String
Required: No
usageAccountId
Type: String
Pattern: \d{12}
BatchCreateWorkloadEstimateUsageItem 1119
AWS Billing and Cost Management API Reference
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
BatchCreateWorkloadEstimateUsageItem 1120
AWS Billing and Cost Management API Reference
BatchDeleteBillScenarioCommitmentModificationError
Service: AWS Pricing Calculator
Contents
errorCode
Type: String
Required: No
errorMessage
Type: String
Required: No
id
Type: String
Pattern: [a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
BatchDeleteBillScenarioCommitmentModificationError 1121
AWS Billing and Cost Management API Reference
BatchDeleteBillScenarioCommitmentModificationError 1122
AWS Billing and Cost Management API Reference
BatchDeleteBillScenarioUsageModificationError
Service: AWS Pricing Calculator
Contents
errorCode
Type: String
Required: No
errorMessage
Type: String
Required: No
id
Type: String
Pattern: [a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
BatchDeleteBillScenarioUsageModificationError 1123
AWS Billing and Cost Management API Reference
BatchDeleteBillScenarioUsageModificationError 1124
AWS Billing and Cost Management API Reference
BatchDeleteWorkloadEstimateUsageError
Service: AWS Pricing Calculator
Contents
errorCode
Type: String
Required: No
errorMessage
Type: String
Required: No
id
Type: String
Pattern: [a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
BatchDeleteWorkloadEstimateUsageError 1125
AWS Billing and Cost Management API Reference
BatchDeleteWorkloadEstimateUsageError 1126
AWS Billing and Cost Management API Reference
BatchUpdateBillScenarioCommitmentModificationEntry
Service: AWS Pricing Calculator
Contents
id
Type: String
Pattern: [a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}
Required: Yes
group
Type: String
Pattern: [a-zA-Z0-9-]*
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
BatchUpdateBillScenarioCommitmentModificationEntry 1127
AWS Billing and Cost Management API Reference
BatchUpdateBillScenarioCommitmentModificationError
Service: AWS Pricing Calculator
Contents
errorCode
Type: String
Required: No
errorMessage
Type: String
Required: No
id
Type: String
Pattern: [a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
BatchUpdateBillScenarioCommitmentModificationError 1128
AWS Billing and Cost Management API Reference
BatchUpdateBillScenarioCommitmentModificationError 1129
AWS Billing and Cost Management API Reference
BatchUpdateBillScenarioUsageModificationEntry
Service: AWS Pricing Calculator
Contents
id
Type: String
Pattern: [a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}
Required: Yes
amounts
Required: No
group
Type: String
Pattern: [a-zA-Z0-9-]*
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
BatchUpdateBillScenarioUsageModificationEntry 1130
AWS Billing and Cost Management API Reference
BatchUpdateBillScenarioUsageModificationEntry 1131
AWS Billing and Cost Management API Reference
BatchUpdateBillScenarioUsageModificationError
Service: AWS Pricing Calculator
Contents
errorCode
Type: String
Required: No
errorMessage
Type: String
Required: No
id
Type: String
Pattern: [a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
BatchUpdateBillScenarioUsageModificationError 1132
AWS Billing and Cost Management API Reference
BatchUpdateBillScenarioUsageModificationError 1133
AWS Billing and Cost Management API Reference
BatchUpdateWorkloadEstimateUsageEntry
Service: AWS Pricing Calculator
Contents
id
Type: String
Pattern: [a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}
Required: Yes
amount
Type: Double
Required: No
group
Type: String
Pattern: [a-zA-Z0-9-]*
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
BatchUpdateWorkloadEstimateUsageEntry 1134
AWS Billing and Cost Management API Reference
BatchUpdateWorkloadEstimateUsageEntry 1135
AWS Billing and Cost Management API Reference
BatchUpdateWorkloadEstimateUsageError
Service: AWS Pricing Calculator
Contents
errorCode
Type: String
Required: No
errorMessage
Type: String
Required: No
id
Type: String
Pattern: [a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
BatchUpdateWorkloadEstimateUsageError 1136
AWS Billing and Cost Management API Reference
BatchUpdateWorkloadEstimateUsageError 1137
AWS Billing and Cost Management API Reference
BillEstimateCommitmentSummary
Service: AWS Pricing Calculator
Contents
id
Type: String
Pattern: [a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}
Required: No
monthlyPayment
Required: No
offeringId
Type: String
Pattern: [a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}
Required: No
paymentOption
The payment option chosen for this commitment (e.g., All Upfront, Partial Upfront, No
Upfront).
Type: String
BillEstimateCommitmentSummary 1138
AWS Billing and Cost Management API Reference
Required: No
purchaseAgreementType
Type: String
Required: No
region
Type: String
Required: No
termLength
Type: String
Required: No
upfrontPayment
Required: No
usageAccountId
Type: String
Pattern: \d{12}
Required: No
BillEstimateCommitmentSummary 1139
AWS Billing and Cost Management API Reference
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
BillEstimateCommitmentSummary 1140
AWS Billing and Cost Management API Reference
BillEstimateCostSummary
Service: AWS Pricing Calculator
Contents
serviceCostDifferences
Required: No
totalCostDifference
The total difference in cost between the estimated and historical costs.
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
BillEstimateCostSummary 1141
AWS Billing and Cost Management API Reference
BillEstimateInputCommitmentModificationSummary
Service: AWS Pricing Calculator
Contents
commitmentAction
Note: This object is a Union. Only one member of this object can be specified or returned.
Required: No
group
Type: String
Pattern: [a-zA-Z0-9-]*
Required: No
id
Type: String
Pattern: [a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}
Required: No
usageAccountId
BillEstimateInputCommitmentModificationSummary 1142
AWS Billing and Cost Management API Reference
Type: String
Pattern: \d{12}
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
BillEstimateInputCommitmentModificationSummary 1143
AWS Billing and Cost Management API Reference
BillEstimateInputUsageModificationSummary
Service: AWS Pricing Calculator
Contents
operation
Type: String
Required: Yes
serviceCode
Type: String
Required: Yes
usageType
Type: String
Required: Yes
availabilityZone
BillEstimateInputUsageModificationSummary 1144
AWS Billing and Cost Management API Reference
Type: String
Required: No
group
Type: String
Pattern: [a-zA-Z0-9-]*
Required: No
historicalUsage
Required: No
id
Type: String
Pattern: [a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}
Required: No
location
Type: String
Required: No
BillEstimateInputUsageModificationSummary 1145
AWS Billing and Cost Management API Reference
quantities
Required: No
usageAccountId
Type: String
Pattern: \d{12}
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
BillEstimateInputUsageModificationSummary 1146
AWS Billing and Cost Management API Reference
BillEstimateLineItemSummary
Service: AWS Pricing Calculator
Contents
operation
Type: String
Required: Yes
serviceCode
Type: String
Required: Yes
usageType
Type: String
Required: Yes
availabilityZone
BillEstimateLineItemSummary 1147
AWS Billing and Cost Management API Reference
Type: String
Required: No
estimatedCost
Required: No
estimatedUsageQuantity
Required: No
historicalCost
Required: No
historicalUsageQuantity
Required: No
id
Type: String
BillEstimateLineItemSummary 1148
AWS Billing and Cost Management API Reference
Pattern: [a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}
Required: No
lineItemId
Type: String
Required: No
lineItemType
Type: String
Required: No
location
Type: String
Required: No
payerAccountId
Type: String
Pattern: \d{12}
Required: No
savingsPlanArns
The Amazon Resource Names (ARNs) of any Savings Plans applied to this line item.
Required: No
BillEstimateLineItemSummary 1149
AWS Billing and Cost Management API Reference
usageAccountId
The AWS account ID associated with the usage for this line item.
Type: String
Pattern: \d{12}
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
BillEstimateLineItemSummary 1150
AWS Billing and Cost Management API Reference
BillEstimateSummary
Service: AWS Pricing Calculator
Contents
id
Type: String
Pattern: [a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}
Required: Yes
billInterval
Required: No
createdAt
Type: Timestamp
Required: No
expiresAt
Type: Timestamp
Required: No
name
BillEstimateSummary 1151
AWS Billing and Cost Management API Reference
Type: String
Pattern: [a-zA-Z0-9-]+
Required: No
status
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
BillEstimateSummary 1152
AWS Billing and Cost Management API Reference
BillInterval
Service: AWS Pricing Calculator
Contents
end
Type: Timestamp
Required: No
start
Type: Timestamp
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
BillInterval 1153
AWS Billing and Cost Management API Reference
BillScenarioCommitmentModificationAction
Service: AWS Pricing Calculator
Contents
Important
This data type is a UNION, so only one of the following members can be specified when
used or returned.
addReservedInstanceAction
Required: No
addSavingsPlanAction
Required: No
negateReservedInstanceAction
Required: No
negateSavingsPlanAction
Required: No
BillScenarioCommitmentModificationAction 1154
AWS Billing and Cost Management API Reference
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
BillScenarioCommitmentModificationAction 1155
AWS Billing and Cost Management API Reference
BillScenarioCommitmentModificationItem
Service: AWS Pricing Calculator
Contents
commitmentAction
Note: This object is a Union. Only one member of this object can be specified or returned.
Required: No
group
Type: String
Pattern: [a-zA-Z0-9-]*
Required: No
id
Type: String
Pattern: [a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}
Required: No
usageAccountId
BillScenarioCommitmentModificationItem 1156
AWS Billing and Cost Management API Reference
Type: String
Pattern: \d{12}
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
BillScenarioCommitmentModificationItem 1157
AWS Billing and Cost Management API Reference
BillScenarioSummary
Service: AWS Pricing Calculator
Contents
id
Type: String
Pattern: [a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}
Required: Yes
billInterval
Required: No
createdAt
Type: Timestamp
Required: No
expiresAt
Type: Timestamp
Required: No
failureMessage
BillScenarioSummary 1158
AWS Billing and Cost Management API Reference
Type: String
Required: No
name
Type: String
Pattern: [a-zA-Z0-9-]+
Required: No
status
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
BillScenarioSummary 1159
AWS Billing and Cost Management API Reference
BillScenarioUsageModificationItem
Service: AWS Pricing Calculator
Contents
operation
Type: String
Required: Yes
serviceCode
Type: String
Required: Yes
usageType
Type: String
Required: Yes
availabilityZone
BillScenarioUsageModificationItem 1160
AWS Billing and Cost Management API Reference
Type: String
Required: No
group
Type: String
Pattern: [a-zA-Z0-9-]*
Required: No
historicalUsage
Required: No
id
Type: String
Pattern: [a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}
Required: No
location
Type: String
Required: No
BillScenarioUsageModificationItem 1161
AWS Billing and Cost Management API Reference
quantities
Required: No
usageAccountId
Type: String
Pattern: \d{12}
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
BillScenarioUsageModificationItem 1162
AWS Billing and Cost Management API Reference
CostAmount
Service: AWS Pricing Calculator
Contents
amount
Type: Double
Required: No
currency
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
CostAmount 1163
AWS Billing and Cost Management API Reference
CostDifference
Service: AWS Pricing Calculator
Contents
estimatedCost
Required: No
historicalCost
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
CostDifference 1164
AWS Billing and Cost Management API Reference
Expression
Service: AWS Pricing Calculator
Contents
and
Required: No
costCategories
Required: No
dimensions
Required: No
not
An expression to be negated.
Required: No
or
Required: No
Expression 1165
AWS Billing and Cost Management API Reference
tags
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
Expression 1166
AWS Billing and Cost Management API Reference
ExpressionFilter
Service: AWS Pricing Calculator
Contents
key
Type: String
Required: No
matchOptions
Required: No
values
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ExpressionFilter 1167
AWS Billing and Cost Management API Reference
FilterTimestamp
Service: AWS Pricing Calculator
Contents
afterTimestamp
Type: Timestamp
Required: No
beforeTimestamp
Type: Timestamp
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
FilterTimestamp 1168
AWS Billing and Cost Management API Reference
HistoricalUsageEntity
Service: AWS Pricing Calculator
Contents
billInterval
Required: Yes
filterExpression
Required: Yes
operation
Type: String
Required: Yes
serviceCode
Type: String
HistoricalUsageEntity 1169
AWS Billing and Cost Management API Reference
Required: Yes
usageAccountId
Type: String
Pattern: \d{12}
Required: Yes
usageType
Type: String
Required: Yes
location
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
HistoricalUsageEntity 1170
AWS Billing and Cost Management API Reference
ListBillEstimateLineItemsFilter
Service: AWS Pricing Calculator
Contents
name
Type: String
Required: Yes
values
Required: Yes
matchOption
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ListBillEstimateLineItemsFilter 1171
AWS Billing and Cost Management API Reference
ListBillEstimateLineItemsFilter 1172
AWS Billing and Cost Management API Reference
ListBillEstimatesFilter
Service: AWS Pricing Calculator
Contents
name
Type: String
Required: Yes
values
Required: Yes
matchOption
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ListBillEstimatesFilter 1173
AWS Billing and Cost Management API Reference
ListBillEstimatesFilter 1174
AWS Billing and Cost Management API Reference
ListBillScenariosFilter
Service: AWS Pricing Calculator
Contents
name
Type: String
Required: Yes
values
Required: Yes
matchOption
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ListBillScenariosFilter 1175
AWS Billing and Cost Management API Reference
ListBillScenariosFilter 1176
AWS Billing and Cost Management API Reference
ListUsageFilter
Service: AWS Pricing Calculator
Contents
name
Type: String
Required: Yes
values
Required: Yes
matchOption
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ListUsageFilter 1177
AWS Billing and Cost Management API Reference
ListUsageFilter 1178
AWS Billing and Cost Management API Reference
ListWorkloadEstimatesFilter
Service: AWS Pricing Calculator
Contents
name
Type: String
Required: Yes
values
Required: Yes
matchOption
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ListWorkloadEstimatesFilter 1179
AWS Billing and Cost Management API Reference
ListWorkloadEstimatesFilter 1180
AWS Billing and Cost Management API Reference
NegateReservedInstanceAction
Service: AWS Pricing Calculator
Contents
reservedInstancesId
Type: String
Pattern: [a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
NegateReservedInstanceAction 1181
AWS Billing and Cost Management API Reference
NegateSavingsPlanAction
Service: AWS Pricing Calculator
Contents
savingsPlanId
Type: String
Pattern: [a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
NegateSavingsPlanAction 1182
AWS Billing and Cost Management API Reference
UsageAmount
Service: AWS Pricing Calculator
Contents
amount
Type: Double
Required: Yes
startHour
Type: Timestamp
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
UsageAmount 1183
AWS Billing and Cost Management API Reference
UsageQuantity
Service: AWS Pricing Calculator
Contents
amount
Type: Double
Required: No
startHour
Type: Timestamp
Required: No
unit
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
UsageQuantity 1184
AWS Billing and Cost Management API Reference
UsageQuantityResult
Service: AWS Pricing Calculator
Contents
amount
Type: Double
Required: No
unit
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
UsageQuantityResult 1185
AWS Billing and Cost Management API Reference
ValidationExceptionField
Service: AWS Pricing Calculator
Contents
message
Type: String
Required: Yes
name
Type: String
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ValidationExceptionField 1186
AWS Billing and Cost Management API Reference
WorkloadEstimateSummary
Service: AWS Pricing Calculator
Contents
id
Type: String
Pattern: [a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}
Required: Yes
costCurrency
Type: String
Required: No
createdAt
Type: Timestamp
Required: No
expiresAt
Type: Timestamp
Required: No
WorkloadEstimateSummary 1187
AWS Billing and Cost Management API Reference
failureMessage
Type: String
Required: No
name
Type: String
Pattern: [a-zA-Z0-9-]+
Required: No
rateTimestamp
Type: Timestamp
Required: No
rateType
Type: String
Required: No
status
Type: String
Required: No
WorkloadEstimateSummary 1188
AWS Billing and Cost Management API Reference
totalCost
Type: Double
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
WorkloadEstimateSummary 1189
AWS Billing and Cost Management API Reference
WorkloadEstimateUsageItem
Service: AWS Pricing Calculator
Contents
operation
Type: String
Required: Yes
serviceCode
Type: String
Required: Yes
usageType
Type: String
Required: Yes
cost
WorkloadEstimateUsageItem 1190
AWS Billing and Cost Management API Reference
Type: Double
Required: No
currency
Type: String
Required: No
group
Type: String
Pattern: [a-zA-Z0-9-]*
Required: No
historicalUsage
Required: No
id
Type: String
Pattern: [a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}
Required: No
WorkloadEstimateUsageItem 1191
AWS Billing and Cost Management API Reference
location
Type: String
Required: No
quantity
Required: No
status
Type: String
Required: No
usageAccountId
Type: String
Pattern: \d{12}
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
WorkloadEstimateUsageItem 1192
AWS Billing and Cost Management API Reference
WorkloadEstimateUsageItem 1193
AWS Billing and Cost Management API Reference
WorkloadEstimateUsageQuantity
Service: AWS Pricing Calculator
Contents
amount
Type: Double
Required: No
unit
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
AWS Billing
The following data types are supported by AWS Billing:
• ActiveTimeRange
• BillingViewElement
• BillingViewListElement
WorkloadEstimateUsageQuantity 1194
AWS Billing and Cost Management API Reference
• DimensionValues
• Expression
• ResourceTag
• TagValues
• ValidationExceptionField
ActiveTimeRange
Service: AWS Billing
Contents
activeAfterInclusive
Type: Timestamp
Required: Yes
activeBeforeInclusive
Type: Timestamp
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ActiveTimeRange 1196
AWS Billing and Cost Management API Reference
BillingViewElement
Service: AWS Billing
Contents
arn
The Amazon Resource Name (ARN) that can be used to uniquely identify the billing view.
Type: String
Pattern: arn:aws[a-z-]*:(billing)::[0-9]{12}:billingview/[a-zA-Z0-9/:_\+=\.
\-@]{0,59}[a-zA-Z0-9]
Required: No
billingViewType
Type: String
Required: No
createdAt
Type: Timestamp
Required: No
dataFilterExpression
Required: No
description
BillingViewElement 1197
AWS Billing and Cost Management API Reference
Type: String
Pattern: ([ a-zA-Z0-9_\+=\.\-@]+)?
Required: No
name
Type: String
Pattern: [ a-zA-Z0-9_\+=\.\-@]+
Required: No
ownerAccountId
Type: String
Pattern: [0-9]{12}
Required: No
updatedAt
Type: Timestamp
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
BillingViewElement 1198
AWS Billing and Cost Management API Reference
BillingViewElement 1199
AWS Billing and Cost Management API Reference
BillingViewListElement
Service: AWS Billing
Contents
arn
The Amazon Resource Name (ARN) that can be used to uniquely identify the billing view.
Type: String
Pattern: arn:aws[a-z-]*:(billing)::[0-9]{12}:billingview/[a-zA-Z0-9/:_\+=\.
\-@]{0,59}[a-zA-Z0-9]
Required: No
billingViewType
Type: String
Required: No
description
Type: String
Pattern: ([ a-zA-Z0-9_\+=\.\-@]+)?
Required: No
name
Type: String
BillingViewListElement 1200
AWS Billing and Cost Management API Reference
Pattern: [ a-zA-Z0-9_\+=\.\-@]+
Required: No
ownerAccountId
Type: String
Pattern: [0-9]{12}
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
BillingViewListElement 1201
AWS Billing and Cost Management API Reference
DimensionValues
Service: AWS Billing
The metadata that you can use to filter and group your results.
Contents
key
The names of the metadata types that you can use to filter and group your results.
Type: String
Required: Yes
values
The metadata values that you can use to filter and group your results.
Pattern: [\S\s]*
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
DimensionValues 1202
AWS Billing and Cost Management API Reference
Expression
Service: AWS Billing
Contents
dimensions
Required: No
tags
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
Expression 1203
AWS Billing and Cost Management API Reference
ResourceTag
Service: AWS Billing
Contents
key
Type: String
Required: Yes
value
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ResourceTag 1204
AWS Billing and Cost Management API Reference
TagValues
Service: AWS Billing
Contents
key
Type: String
Pattern: [\S\s]*
Required: Yes
values
Pattern: [\S\s]*
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
TagValues 1205
AWS Billing and Cost Management API Reference
TagValues 1206
AWS Billing and Cost Management API Reference
ValidationExceptionField
Service: AWS Billing
Contents
message
Type: String
Required: Yes
name
Type: String
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
AWS Budgets
The following data types are supported by AWS Budgets:
• Action
ValidationExceptionField 1207
AWS Billing and Cost Management API Reference
• ActionHistory
• ActionHistoryDetails
• ActionThreshold
• AutoAdjustData
• Budget
• BudgetedAndActualAmounts
• BudgetNotificationsForAccount
• BudgetPerformanceHistory
• CalculatedSpend
• CostTypes
• Definition
• HistoricalOptions
• IamActionDefinition
• Notification
• NotificationWithSubscribers
• ResourceTag
• ScpActionDefinition
• Spend
• SsmActionDefinition
• Subscriber
• TimePeriod
Action
Service: AWS Budgets
Contents
ActionId
Type: String
Pattern: ^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-
fA-F0-9]{12}$
Required: Yes
ActionThreshold
Required: Yes
ActionType
The type of action. This defines the type of tasks that can be carried out by this action. This
field also determines the format for definition.
Type: String
Required: Yes
ApprovalModel
Type: String
Action 1209
AWS Billing and Cost Management API Reference
Required: Yes
BudgetName
A string that represents the budget name. The ":" and "\" characters, and the "/action/"
substring, aren't allowed.
Type: String
Pattern: ^(?![^:\\]*/action/|(?i).*<script>.*</script>.*)[^:\\]+$
Required: Yes
Definition
Required: Yes
ExecutionRoleArn
The role passed for action execution and reversion. Roles and actions must be in the same
account.
Type: String
Pattern: ^arn:(aws|aws-cn|aws-us-gov|us-iso-east-1|us-isob-east-1):iam::
\d{12}:role(\u002F[\u0021-\u007F]+\u002F|\u002F)[\w+=,.@-]+$
Required: Yes
NotificationType
Type: String
Action 1210
AWS Billing and Cost Management API Reference
Required: Yes
Status
Type: String
Required: Yes
Subscribers
A list of subscribers.
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
Action 1211
AWS Billing and Cost Management API Reference
ActionHistory
Service: AWS Budgets
Contents
ActionHistoryDetails
Required: Yes
EventType
This distinguishes between whether the events are triggered by the user or are generated by
the system.
Type: String
Required: Yes
Status
Type: String
Required: Yes
Timestamp
Type: Timestamp
ActionHistory 1212
AWS Billing and Cost Management API Reference
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ActionHistory 1213
AWS Billing and Cost Management API Reference
ActionHistoryDetails
Service: AWS Budgets
Contents
Action
Required: Yes
Message
A generic string.
Type: String
Pattern: .*
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ActionHistoryDetails 1214
AWS Billing and Cost Management API Reference
ActionThreshold
Service: AWS Budgets
Contents
ActionThresholdType
Type: String
Required: Yes
ActionThresholdValue
Type: Double
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ActionThreshold 1215
AWS Billing and Cost Management API Reference
AutoAdjustData
Service: AWS Budgets
The parameters that determine the budget amount for an auto-adjusting budget.
Contents
AutoAdjustType
The string that defines whether your budget auto-adjusts based on historical or forecasted
data.
Type: String
Required: Yes
HistoricalOptions
The parameters that define or describe the historical data that your auto-adjusting budget is
based on.
Required: No
LastAutoAdjustTime
Type: Timestamp
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
AutoAdjustData 1216
AWS Billing and Cost Management API Reference
AutoAdjustData 1217
AWS Billing and Cost Management API Reference
Budget
Service: AWS Budgets
Represents the output of the CreateBudget operation. The content consists of the detailed
metadata and data file information, and the current status of the budget object.
arn:aws:budgets::AccountId:budget/budgetName
Contents
BudgetName
The name of a budget. The name must be unique within an account. The : and \ characters,
and the "/action/" substring, aren't allowed in BudgetName.
Type: String
Pattern: ^(?![^:\\]*/action/|(?i).*<script>.*</script>.*)[^:\\]+$
Required: Yes
BudgetType
Specifies whether this budget tracks costs, usage, RI utilization, RI coverage, Savings Plans
utilization, or Savings Plans coverage.
Type: String
Required: Yes
TimeUnit
The length of time until a budget resets the actual and forecasted spend.
Type: String
Budget 1218
AWS Billing and Cost Management API Reference
Required: Yes
AutoAdjustData
The parameters that determine the budget amount for an auto-adjusting budget.
Required: No
BudgetLimit
The total amount of cost, usage, RI utilization, RI coverage, Savings Plans utilization, or Savings
Plans coverage that you want to track with your budget.
BudgetLimit is required for cost or usage budgets, but optional for RI or Savings Plans
utilization or coverage budgets. RI and Savings Plans utilization or coverage budgets default
to 100. This is the only valid value for RI or Savings Plans utilization or coverage budgets. You
can't use BudgetLimit with PlannedBudgetLimits for CreateBudget and UpdateBudget
actions.
Required: No
CalculatedSpend
The actual and forecasted cost or usage that the budget tracks.
Required: No
CostFilters
The cost filters, such as Region, Service, LinkedAccount, Tag, or CostCategory, that are
applied to a budget.
AWS Budgets supports the following services as a Service filter for RI budgets:
• Amazon EC2
• Amazon Redshift
• Amazon Relational Database Service
• Amazon ElastiCache
• Amazon OpenSearch Service
Budget 1219
AWS Billing and Cost Management API Reference
Key Pattern: .*
Pattern: [\S\s]*
Required: No
CostTypes
Required: No
LastUpdatedTime
Type: Timestamp
Required: No
PlannedBudgetLimits
PlannedBudgetLimits is available for cost or usage budget and supports both monthly and
quarterly TimeUnit.
For monthly budgets, provide 12 months of PlannedBudgetLimits values. This must start
from the current month and include the next 11 months. The key is the start of the month, UTC
in epoch seconds.
Budget 1220
AWS Billing and Cost Management API Reference
If the planned budget expires before 12 months for monthly or four quarters for quarterly,
provide the PlannedBudgetLimits values only for the remaining periods.
If the budget begins at a date in the future, provide PlannedBudgetLimits values from the
start date of the budget.
After all of the BudgetLimit values in PlannedBudgetLimits are used, the budget
continues to use the last limit as the BudgetLimit. At that point, the planned budget provides
the same experience as a fixed budget.
Key Pattern: .*
Required: No
TimePeriod
The period of time that's covered by a budget. You setthe start date and end date. The start
date must come before the end date. The end date must come before 06/15/87 00:00 UTC.
If you create your budget and don't specify a start date, AWS defaults to the start of your
chosen time period (DAILY, MONTHLY, QUARTERLY, or ANNUALLY). For example, if you created
your budget on January 24, 2018, chose DAILY, and didn't set a start date, AWS set your start
date to 01/24/18 00:00 UTC. If you chose MONTHLY, AWS set your start date to 01/01/18
00:00 UTC. If you didn't specify an end date, AWS set your end date to 06/15/87 00:00
UTC. The defaults are the same for the AWS Billing and Cost Management console and the API.
After the end date, AWS deletes the budget and all the associated notifications and subscribers.
Budget 1221
AWS Billing and Cost Management API Reference
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
Budget 1222
AWS Billing and Cost Management API Reference
BudgetedAndActualAmounts
Service: AWS Budgets
The amount of cost or usage that you created the budget for, compared to your actual costs or
usage.
Contents
ActualAmount
Required: No
BudgetedAmount
The amount of cost or usage that you created the budget for.
Required: No
TimePeriod
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
BudgetedAndActualAmounts 1223
AWS Billing and Cost Management API Reference
BudgetNotificationsForAccount
Service: AWS Budgets
Contents
BudgetName
A string that represents the budget name. The ":" and "\" characters, and the "/action/"
substring, aren't allowed.
Type: String
Pattern: ^(?![^:\\]*/action/|(?i).*<script>.*</script>.*)[^:\\]+$
Required: No
Notifications
A list of notifications.
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
BudgetNotificationsForAccount 1224
AWS Billing and Cost Management API Reference
BudgetPerformanceHistory
Service: AWS Budgets
A history of the state of a budget at the end of the budget's specified time period.
Contents
BudgetedAndActualAmountsList
A list of amounts of cost or usage that you created budgets for, which are compared to your
actual costs or usage.
Required: No
BudgetName
A string that represents the budget name. The ":" and "\" characters, and the "/action/"
substring, aren't allowed.
Type: String
Pattern: ^(?![^:\\]*/action/|(?i).*<script>.*</script>.*)[^:\\]+$
Required: No
BudgetType
Type: String
Required: No
BudgetPerformanceHistory 1225
AWS Billing and Cost Management API Reference
CostFilters
The history of the cost filters for a budget during the specified time period.
Key Pattern: .*
Pattern: [\S\s]*
Required: No
CostTypes
The history of the cost types for a budget during the specified time period.
Required: No
TimeUnit
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
BudgetPerformanceHistory 1226
AWS Billing and Cost Management API Reference
CalculatedSpend
Service: AWS Budgets
The spend objects that are associated with this budget. The actualSpend tracks how much you've
used, cost, usage, RI units, or Savings Plans units and the forecastedSpend tracks how much that
you're predicted to spend based on your historical usage profile.
For example, if it's the 20th of the month and you have spent 50 dollars on Amazon EC2, your
actualSpend is 50 USD, and your forecastedSpend is 75 USD.
Contents
ActualSpend
The amount of cost, usage, RI units, or Savings Plans units that you used.
Required: Yes
ForecastedSpend
The amount of cost, usage, RI units, or Savings Plans units that you're forecasted to use.
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
CalculatedSpend 1227
AWS Billing and Cost Management API Reference
CostTypes
Service: AWS Budgets
The types of cost that are included in a COST budget, such as tax and subscriptions.
Contents
IncludeCredit
Type: Boolean
Required: No
IncludeDiscount
Type: Boolean
Required: No
IncludeOtherSubscription
Type: Boolean
Required: No
IncludeRecurring
CostTypes 1228
AWS Billing and Cost Management API Reference
Type: Boolean
Required: No
IncludeRefund
Type: Boolean
Required: No
IncludeSubscription
Type: Boolean
Required: No
IncludeSupport
Type: Boolean
Required: No
IncludeTax
Type: Boolean
Required: No
IncludeUpfront
CostTypes 1229
AWS Billing and Cost Management API Reference
Type: Boolean
Required: No
UseAmortized
Type: Boolean
Required: No
UseBlended
Type: Boolean
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
CostTypes 1230
AWS Billing and Cost Management API Reference
Definition
Service: AWS Budgets
Contents
IamActionDefinition
The AWS Identity and Access Management (IAM) action definition details.
Required: No
ScpActionDefinition
Required: No
SsmActionDefinition
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
Definition 1231
AWS Billing and Cost Management API Reference
HistoricalOptions
Service: AWS Budgets
The parameters that define or describe the historical data that your auto-adjusting budget is based
on.
Contents
BudgetAdjustmentPeriod
The number of budget periods included in the moving-average calculation that determines your
auto-adjusted budget amount. The maximum value depends on the TimeUnit granularity of
the budget:
• For the DAILY granularity, the maximum value is 60.
• For the MONTHLY granularity, the maximum value is 12.
• For the QUARTERLY granularity, the maximum value is 4.
• For the ANNUALLY granularity, the maximum value is 1.
Type: Integer
Required: Yes
LookBackAvailablePeriods
The integer that describes how many budget periods in your BudgetAdjustmentPeriod are
included in the calculation of your current BudgetLimit. If the first budget period in your
BudgetAdjustmentPeriod has no cost data, then that budget period isn’t included in the
average that determines your budget limit.
For example, if you set BudgetAdjustmentPeriod as 4 quarters, but your account had no cost
data in the first quarter, then only the last three quarters are included in the calculation. In this
scenario, LookBackAvailablePeriods returns 3.
You can’t set your own LookBackAvailablePeriods. The value is automatically calculated
from the BudgetAdjustmentPeriod and your historical cost data.
Type: Integer
HistoricalOptions 1232
AWS Billing and Cost Management API Reference
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
HistoricalOptions 1233
AWS Billing and Cost Management API Reference
IamActionDefinition
Service: AWS Budgets
The AWS Identity and Access Management (IAM) action definition details.
Contents
PolicyArn
Type: String
Pattern: ^arn:(aws|aws-cn|aws-us-gov|us-iso-east-1|us-isob-east-1):iam::
(\d{12}|aws):policy(\u002F[\u0021-\u007F]+\u002F|\u002F)[\w+=,.@-]+$
Required: Yes
Groups
Pattern: ^([\u0021-\u007F]+\u002F)?[\w+=,.@-]+$
Required: No
Roles
Pattern: ^([\u0021-\u007F]+\u002F)?[\w+=,.@-]+$
IamActionDefinition 1234
AWS Billing and Cost Management API Reference
Required: No
Users
Pattern: ^([\u0021-\u007F]+\u002F)?[\w+=,.@-]+$
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
IamActionDefinition 1235
AWS Billing and Cost Management API Reference
Notification
Service: AWS Budgets
A notification that's associated with a budget. A budget can have up to ten notifications.
Each notification must have at least one subscriber. A notification can have one SNS subscriber and
up to 10 email subscribers, for a total of 11 subscribers.
For example, if you have a budget for 200 dollars and you want to be notified when you go over
160 dollars, create a notification with the following parameters:
• A notificationType of ACTUAL
• A thresholdType of PERCENTAGE
• A comparisonOperator of GREATER_THAN
• A notification threshold of 80
Contents
ComparisonOperator
Type: String
Required: Yes
NotificationType
Specifies whether the notification is for how much you have spent (ACTUAL) or for how much
that you're forecasted to spend (FORECASTED).
Type: String
Required: Yes
Notification 1236
AWS Billing and Cost Management API Reference
Threshold
The threshold that's associated with a notification. Thresholds are always a percentage, and
many customers find value being alerted between 50% - 200% of the budgeted amount. The
maximum limit for your threshold is 1,000,000% above the budgeted amount.
Type: Double
Required: Yes
NotificationState
Specifies whether this notification is in alarm. If a budget notification is in the ALARM state, you
passed the set threshold for the budget.
Type: String
Required: No
ThresholdType
The type of threshold for a notification. For ABSOLUTE_VALUE thresholds, AWS notifies you
when you go over or are forecasted to go over your total cost threshold. For PERCENTAGE
thresholds, AWS notifies you when you go over or are forecasted to go over a certain
percentage of your forecasted spend. For example, if you have a budget for 200 dollars and you
have a PERCENTAGE threshold of 80%, AWS notifies you when you go over 160 dollars.
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
Notification 1237
AWS Billing and Cost Management API Reference
Notification 1238
AWS Billing and Cost Management API Reference
NotificationWithSubscribers
Service: AWS Budgets
A notification with subscribers. A notification can have one SNS subscriber and up to 10 email
subscribers, for a total of 11 subscribers.
Contents
Notification
Required: Yes
Subscribers
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
NotificationWithSubscribers 1239
AWS Billing and Cost Management API Reference
ResourceTag
Service: AWS Budgets
Contents
Key
Type: String
Required: Yes
Value
Type: String
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ResourceTag 1240
AWS Billing and Cost Management API Reference
ScpActionDefinition
Service: AWS Budgets
Contents
PolicyId
Type: String
Pattern: ^p-[0-9a-zA-Z_]{8,128}$
Required: Yes
TargetIds
Pattern: ^(ou-[0-9a-z]{4,32}-[a-z0-9]{8,32}$)|(\d{12})
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ScpActionDefinition 1241
AWS Billing and Cost Management API Reference
ScpActionDefinition 1242
AWS Billing and Cost Management API Reference
Spend
Service: AWS Budgets
Cost example: A Spend for 3 USD of costs has the following parameters:
• An Amount of 3
• A Unit of USD
• An Amount of 3
• A Unit of GB
Contents
Amount
The cost or usage amount that's associated with a budget forecast, actual spend, or budget
threshold.
Type: String
Pattern: ([0-9]*\.)?[0-9]+
Required: Yes
Unit
The unit of measurement that's used for the budget forecast, actual spend, or budget threshold.
Type: String
Pattern: .*
Required: Yes
Spend 1243
AWS Billing and Cost Management API Reference
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
Spend 1244
AWS Billing and Cost Management API Reference
SsmActionDefinition
Service: AWS Budgets
Contents
ActionSubType
Type: String
Required: Yes
InstanceIds
Pattern: ^i-(\w{8}|\w{17})$|^[a-zA-Z]([\w-]{0,61}\w)?$
Required: Yes
Region
Type: String
Pattern: ^\w{2}-\w+(-\w+)?-\d$
Required: Yes
SsmActionDefinition 1245
AWS Billing and Cost Management API Reference
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
SsmActionDefinition 1246
AWS Billing and Cost Management API Reference
Subscriber
Service: AWS Budgets
The subscriber to a budget notification. The subscriber consists of a subscription type and either an
Amazon SNS topic or an email address.
• A subscriptionType of EMAIL
• An address of [email protected]
Contents
Address
The address that AWS sends budget notifications to, either an SNS topic or an email.
When you create a subscriber, the value of Address can't contain line breaks.
Type: String
Required: Yes
SubscriptionType
Type: String
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
Subscriber 1247
AWS Billing and Cost Management API Reference
Subscriber 1248
AWS Billing and Cost Management API Reference
TimePeriod
Service: AWS Budgets
The period of time that's covered by a budget. The period has a start date and an end date. The
start date must come before the end date. There are no restrictions on the end date.
Contents
End
The end date for a budget. If you didn't specify an end date, AWS set your end date to
06/15/87 00:00 UTC. The defaults are the same for the AWS Billing and Cost Management
console and the API.
After the end date, AWS deletes the budget and all the associated notifications and subscribers.
You can change your end date with the UpdateBudget operation.
Type: Timestamp
Required: No
Start
The start date for a budget. If you created your budget and didn't specify a start date, AWS
defaults to the start of your chosen time period (DAILY, MONTHLY, QUARTERLY, or ANNUALLY).
For example, if you created your budget on January 24, 2018, chose DAILY, and didn't set a
start date, AWS set your start date to 01/24/18 00:00 UTC. If you chose MONTHLY, AWS set
your start date to 01/01/18 00:00 UTC. The defaults are the same for the AWS Billing and
Cost Management console and the API.
You can change your start date with the UpdateBudget operation.
Type: Timestamp
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
TimePeriod 1249
AWS Billing and Cost Management API Reference
• AccountEnrollmentStatus
• BlockStoragePerformanceConfiguration
• ComputeConfiguration
• ComputeSavingsPlans
• ComputeSavingsPlansConfiguration
• DbInstanceConfiguration
• EbsVolume
• EbsVolumeConfiguration
• Ec2AutoScalingGroup
• Ec2AutoScalingGroupConfiguration
• Ec2Instance
• Ec2InstanceConfiguration
• Ec2InstanceSavingsPlans
• Ec2InstanceSavingsPlansConfiguration
• Ec2ReservedInstances
• Ec2ReservedInstancesConfiguration
• EcsService
• EcsServiceConfiguration
• ElastiCacheReservedInstances
• ElastiCacheReservedInstancesConfiguration
• EstimatedDiscounts
• Filter
• InstanceConfiguration
• LambdaFunction
• LambdaFunctionConfiguration
• MixedInstanceConfiguration
• OpenSearchReservedInstances
• OpenSearchReservedInstancesConfiguration
• OrderBy
• RdsDbInstance
• RdsDbInstanceConfiguration
• RdsDbInstanceStorage
• RdsDbInstanceStorageConfiguration
• RdsReservedInstances
• RdsReservedInstancesConfiguration
• Recommendation
• RecommendationSummary
• RedshiftReservedInstances
• RedshiftReservedInstancesConfiguration
• ReservedInstancesCostCalculation
• ReservedInstancesPricing
• ResourceCostCalculation
• ResourceDetails
• ResourcePricing
• SageMakerSavingsPlans
• SageMakerSavingsPlansConfiguration
• SavingsPlansCostCalculation
• SavingsPlansPricing
• StorageConfiguration
• SummaryMetricsResult
• Tag
• Usage
• ValidationExceptionDetail
AccountEnrollmentStatus
Service: AWS Cost Optimization Hub
Describes the enrollment status of an organization's member accounts in Cost Optimization Hub.
Contents
accountId
Type: String
Pattern: [0-9]{12}
Required: No
createdTimestamp
Type: Timestamp
Required: No
lastUpdatedTimestamp
The time when the account enrollment status was last updated.
Type: Timestamp
Required: No
status
Type: String
Required: No
AccountEnrollmentStatus 1253
AWS Billing and Cost Management API Reference
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
AccountEnrollmentStatus 1254
AWS Billing and Cost Management API Reference
BlockStoragePerformanceConfiguration
Service: AWS Cost Optimization Hub
Describes the Amazon Elastic Block Store performance configuration of the current and
recommended resource configuration for a recommendation.
Contents
iops
Type: Double
Required: No
throughput
Type: Double
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
BlockStoragePerformanceConfiguration 1255
AWS Billing and Cost Management API Reference
ComputeConfiguration
Service: AWS Cost Optimization Hub
Describes the performance configuration for compute services such as Amazon EC2, Lambda, and
ECS.
Contents
architecture
Type: String
Required: No
memorySizeInMB
Type: Integer
Required: No
platform
The platform of the resource. The platform is the specific combination of operating system,
license model, and software on an instance.
Type: String
Required: No
vCpu
Type: Double
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ComputeConfiguration 1256
AWS Billing and Cost Management API Reference
ComputeConfiguration 1257
AWS Billing and Cost Management API Reference
ComputeSavingsPlans
Service: AWS Cost Optimization Hub
Contents
configuration
Required: No
costCalculation
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ComputeSavingsPlans 1258
AWS Billing and Cost Management API Reference
ComputeSavingsPlansConfiguration
Service: AWS Cost Optimization Hub
Contents
accountScope
The account scope that you want your recommendations for. AWS calculates recommendations
including the management account and member accounts if the value is set to PAYER. If the
value is LINKED, recommendations are calculated for individual member accounts only.
Type: String
Required: No
hourlyCommitment
Type: String
Required: No
paymentOption
Type: String
Required: No
term
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ComputeSavingsPlansConfiguration 1259
AWS Billing and Cost Management API Reference
ComputeSavingsPlansConfiguration 1260
AWS Billing and Cost Management API Reference
DbInstanceConfiguration
Service: AWS Cost Optimization Hub
Contents
dbInstanceClass
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
DbInstanceConfiguration 1261
AWS Billing and Cost Management API Reference
EbsVolume
Service: AWS Cost Optimization Hub
Describes the Amazon Elastic Block Store volume configuration of the current and recommended
resource configuration for a recommendation.
Contents
configuration
The Amazon Elastic Block Store volume configuration used for recommendations.
Required: No
costCalculation
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
EbsVolume 1262
AWS Billing and Cost Management API Reference
EbsVolumeConfiguration
Service: AWS Cost Optimization Hub
The Amazon Elastic Block Store volume configuration used for recommendations.
Contents
attachmentState
Type: String
Required: No
performance
Required: No
storage
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
EbsVolumeConfiguration 1263
AWS Billing and Cost Management API Reference
Ec2AutoScalingGroup
Service: AWS Cost Optimization Hub
Contents
configuration
Required: No
costCalculation
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
Ec2AutoScalingGroup 1264
AWS Billing and Cost Management API Reference
Ec2AutoScalingGroupConfiguration
Service: AWS Cost Optimization Hub
Contents
allocationStrategy
The strategy used for allocating instances, based on a predefined priority order or based on the
lowest available price.
Type: String
Required: No
instance
Details about the instance for the EC2 Auto Scaling group with a single instance type.
Required: No
mixedInstances
A list of instance types for an EC2 Auto Scaling group with mixed instance types.
Required: No
type
The type of EC2 Auto Scaling group, showing whether it consists of a single instance type or
mixed instance types.
Type: String
Required: No
Ec2AutoScalingGroupConfiguration 1265
AWS Billing and Cost Management API Reference
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
Ec2AutoScalingGroupConfiguration 1266
AWS Billing and Cost Management API Reference
Ec2Instance
Service: AWS Cost Optimization Hub
Describes the EC2 instance configuration of the current and recommended resource configuration
for a recommendation.
Contents
configuration
Required: No
costCalculation
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
Ec2Instance 1267
AWS Billing and Cost Management API Reference
Ec2InstanceConfiguration
Service: AWS Cost Optimization Hub
Contents
instance
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
Ec2InstanceConfiguration 1268
AWS Billing and Cost Management API Reference
Ec2InstanceSavingsPlans
Service: AWS Cost Optimization Hub
Contents
configuration
Required: No
costCalculation
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
Ec2InstanceSavingsPlans 1269
AWS Billing and Cost Management API Reference
Ec2InstanceSavingsPlansConfiguration
Service: AWS Cost Optimization Hub
Contents
accountScope
Type: String
Required: No
hourlyCommitment
Type: String
Required: No
instanceFamily
Type: String
Required: No
paymentOption
Type: String
Required: No
savingsPlansRegion
Type: String
Required: No
Ec2InstanceSavingsPlansConfiguration 1270
AWS Billing and Cost Management API Reference
term
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
Ec2InstanceSavingsPlansConfiguration 1271
AWS Billing and Cost Management API Reference
Ec2ReservedInstances
Service: AWS Cost Optimization Hub
Contents
configuration
Required: No
costCalculation
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
Ec2ReservedInstances 1272
AWS Billing and Cost Management API Reference
Ec2ReservedInstancesConfiguration
Service: AWS Cost Optimization Hub
Contents
accountScope
Type: String
Required: No
currentGeneration
Type: String
Required: No
instanceFamily
Type: String
Required: No
instanceType
Type: String
Required: No
monthlyRecurringCost
Type: String
Required: No
Ec2ReservedInstancesConfiguration 1273
AWS Billing and Cost Management API Reference
normalizedUnitsToPurchase
The number of normalized units that AWS recommends that you purchase.
Type: String
Required: No
numberOfInstancesToPurchase
Type: String
Required: No
offeringClass
Type: String
Required: No
paymentOption
Type: String
Required: No
platform
The platform of the recommended reservation. The platform is the specific combination of
operating system, license model, and software on an instance.
Type: String
Required: No
reservedInstancesRegion
Type: String
Ec2ReservedInstancesConfiguration 1274
AWS Billing and Cost Management API Reference
Required: No
service
Type: String
Required: No
sizeFlexEligible
Type: Boolean
Required: No
tenancy
Type: String
Required: No
term
Type: String
Required: No
upfrontCost
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
Ec2ReservedInstancesConfiguration 1275
AWS Billing and Cost Management API Reference
Ec2ReservedInstancesConfiguration 1276
AWS Billing and Cost Management API Reference
EcsService
Service: AWS Cost Optimization Hub
Contents
configuration
Required: No
costCalculation
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
EcsService 1277
AWS Billing and Cost Management API Reference
EcsServiceConfiguration
Service: AWS Cost Optimization Hub
Contents
compute
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
EcsServiceConfiguration 1278
AWS Billing and Cost Management API Reference
ElastiCacheReservedInstances
Service: AWS Cost Optimization Hub
Contents
configuration
Required: No
costCalculation
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ElastiCacheReservedInstances 1279
AWS Billing and Cost Management API Reference
ElastiCacheReservedInstancesConfiguration
Service: AWS Cost Optimization Hub
Contents
accountScope
Type: String
Required: No
currentGeneration
Type: String
Required: No
instanceFamily
Type: String
Required: No
instanceType
Type: String
Required: No
monthlyRecurringCost
Type: String
Required: No
ElastiCacheReservedInstancesConfiguration 1280
AWS Billing and Cost Management API Reference
normalizedUnitsToPurchase
The number of normalized units that AWS recommends that you purchase.
Type: String
Required: No
numberOfInstancesToPurchase
Type: String
Required: No
paymentOption
Type: String
Required: No
reservedInstancesRegion
Type: String
Required: No
service
Type: String
Required: No
sizeFlexEligible
Type: Boolean
Required: No
ElastiCacheReservedInstancesConfiguration 1281
AWS Billing and Cost Management API Reference
term
Type: String
Required: No
upfrontCost
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ElastiCacheReservedInstancesConfiguration 1282
AWS Billing and Cost Management API Reference
EstimatedDiscounts
Service: AWS Cost Optimization Hub
Estimated discount details of the current and recommended resource configuration for a
recommendation.
Contents
otherDiscount
Estimated other discounts include all discounts that are not itemized. Itemized discounts
include reservedInstanceDiscount and savingsPlansDiscount.
Type: Double
Required: No
reservedInstancesDiscount
Type: Double
Required: No
savingsPlansDiscount
Type: Double
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
EstimatedDiscounts 1283
AWS Billing and Cost Management API Reference
Filter
Service: AWS Cost Optimization Hub
Describes a filter that returns a more specific list of recommendations. Filters recommendations by
different dimensions.
Contents
accountIds
Pattern: [0-9]{12}
Required: No
actionTypes
Required: No
implementationEfforts
Required: No
Filter 1284
AWS Billing and Cost Management API Reference
recommendationIds
Required: No
regions
Required: No
resourceArns
Required: No
resourceIds
Required: No
resourceTypes
Filter 1285
AWS Billing and Cost Management API Reference
Required: No
restartNeeded
Type: Boolean
Required: No
rollbackPossible
Type: Boolean
Required: No
tags
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
Filter 1286
AWS Billing and Cost Management API Reference
Filter 1287
AWS Billing and Cost Management API Reference
InstanceConfiguration
Service: AWS Cost Optimization Hub
Contents
type
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
InstanceConfiguration 1288
AWS Billing and Cost Management API Reference
LambdaFunction
Service: AWS Cost Optimization Hub
Contents
configuration
Required: No
costCalculation
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
LambdaFunction 1289
AWS Billing and Cost Management API Reference
LambdaFunctionConfiguration
Service: AWS Cost Optimization Hub
Contents
compute
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
LambdaFunctionConfiguration 1290
AWS Billing and Cost Management API Reference
MixedInstanceConfiguration
Service: AWS Cost Optimization Hub
The configuration for the EC2 Auto Scaling group with mixed instance types.
Contents
type
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
MixedInstanceConfiguration 1291
AWS Billing and Cost Management API Reference
OpenSearchReservedInstances
Service: AWS Cost Optimization Hub
Contents
configuration
Required: No
costCalculation
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
OpenSearchReservedInstances 1292
AWS Billing and Cost Management API Reference
OpenSearchReservedInstancesConfiguration
Service: AWS Cost Optimization Hub
Contents
accountScope
Type: String
Required: No
currentGeneration
Type: String
Required: No
instanceType
Type: String
Required: No
monthlyRecurringCost
Type: String
Required: No
normalizedUnitsToPurchase
The number of normalized units that AWS recommends that you purchase.
Type: String
Required: No
OpenSearchReservedInstancesConfiguration 1293
AWS Billing and Cost Management API Reference
numberOfInstancesToPurchase
Type: String
Required: No
paymentOption
Type: String
Required: No
reservedInstancesRegion
Type: String
Required: No
service
Type: String
Required: No
sizeFlexEligible
Type: Boolean
Required: No
term
Type: String
Required: No
OpenSearchReservedInstancesConfiguration 1294
AWS Billing and Cost Management API Reference
upfrontCost
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
OpenSearchReservedInstancesConfiguration 1295
AWS Billing and Cost Management API Reference
OrderBy
Service: AWS Cost Optimization Hub
Contents
dimension
Type: String
Required: No
order
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
OrderBy 1296
AWS Billing and Cost Management API Reference
RdsDbInstance
Service: AWS Cost Optimization Hub
Contents
configuration
Required: No
costCalculation
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
RdsDbInstance 1297
AWS Billing and Cost Management API Reference
RdsDbInstanceConfiguration
Service: AWS Cost Optimization Hub
Contents
instance
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
RdsDbInstanceConfiguration 1298
AWS Billing and Cost Management API Reference
RdsDbInstanceStorage
Service: AWS Cost Optimization Hub
Contents
configuration
Required: No
costCalculation
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
RdsDbInstanceStorage 1299
AWS Billing and Cost Management API Reference
RdsDbInstanceStorageConfiguration
Service: AWS Cost Optimization Hub
Contents
allocatedStorageInGb
Type: Double
Required: No
iops
The amount of Provisioned IOPS (input/output operations per second) to be initially allocated
for the DB instance.
Type: Double
Required: No
storageThroughput
Type: Double
Required: No
storageType
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
RdsDbInstanceStorageConfiguration 1300
AWS Billing and Cost Management API Reference
RdsDbInstanceStorageConfiguration 1301
AWS Billing and Cost Management API Reference
RdsReservedInstances
Service: AWS Cost Optimization Hub
Contents
configuration
Required: No
costCalculation
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
RdsReservedInstances 1302
AWS Billing and Cost Management API Reference
RdsReservedInstancesConfiguration
Service: AWS Cost Optimization Hub
Contents
accountScope
Type: String
Required: No
currentGeneration
Type: String
Required: No
databaseEdition
Type: String
Required: No
databaseEngine
Type: String
Required: No
deploymentOption
Type: String
RdsReservedInstancesConfiguration 1303
AWS Billing and Cost Management API Reference
Required: No
instanceFamily
Type: String
Required: No
instanceType
Type: String
Required: No
licenseModel
Type: String
Required: No
monthlyRecurringCost
Type: String
Required: No
normalizedUnitsToPurchase
The number of normalized units that AWS recommends that you purchase.
Type: String
Required: No
numberOfInstancesToPurchase
Type: String
RdsReservedInstancesConfiguration 1304
AWS Billing and Cost Management API Reference
Required: No
paymentOption
Type: String
Required: No
reservedInstancesRegion
Type: String
Required: No
service
Type: String
Required: No
sizeFlexEligible
Type: Boolean
Required: No
term
Type: String
Required: No
upfrontCost
Type: String
RdsReservedInstancesConfiguration 1305
AWS Billing and Cost Management API Reference
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
RdsReservedInstancesConfiguration 1306
AWS Billing and Cost Management API Reference
Recommendation
Service: AWS Cost Optimization Hub
Describes a recommendation.
Contents
accountId
Type: String
Required: No
actionType
Type: String
Required: No
currencyCode
Type: String
Required: No
currentResourceSummary
Type: String
Required: No
currentResourceType
Type: String
Required: No
Recommendation 1307
AWS Billing and Cost Management API Reference
estimatedMonthlyCost
The estimated monthly cost of the current resource. For Reserved Instances and Savings Plans,
it refers to the cost for eligible usage.
Type: Double
Required: No
estimatedMonthlySavings
Type: Double
Required: No
estimatedSavingsPercentage
The estimated savings percentage relative to the total cost over the cost calculation lookback
period.
Type: Double
Required: No
implementationEffort
Type: String
Required: No
lastRefreshTimestamp
Type: Timestamp
Required: No
recommendationId
Type: String
Recommendation 1308
AWS Billing and Cost Management API Reference
Required: No
recommendationLookbackPeriodInDays
Type: Integer
Required: No
recommendedResourceSummary
Type: String
Required: No
recommendedResourceType
Type: String
Required: No
region
Type: String
Required: No
resourceArn
Type: String
Required: No
resourceId
Type: String
Recommendation 1309
AWS Billing and Cost Management API Reference
Required: No
restartNeeded
Type: Boolean
Required: No
rollbackPossible
Type: Boolean
Required: No
source
Type: String
Required: No
tags
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
Recommendation 1310
AWS Billing and Cost Management API Reference
Recommendation 1311
AWS Billing and Cost Management API Reference
RecommendationSummary
Service: AWS Cost Optimization Hub
The summary of rightsizing recommendations, including de-duped savings from all types of
recommendations.
Contents
estimatedMonthlySavings
Type: Double
Required: No
group
Type: String
Required: No
recommendationCount
Type: Integer
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
RecommendationSummary 1312
AWS Billing and Cost Management API Reference
RedshiftReservedInstances
Service: AWS Cost Optimization Hub
Contents
configuration
Required: No
costCalculation
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
RedshiftReservedInstances 1313
AWS Billing and Cost Management API Reference
RedshiftReservedInstancesConfiguration
Service: AWS Cost Optimization Hub
Contents
accountScope
Type: String
Required: No
currentGeneration
Type: String
Required: No
instanceFamily
Type: String
Required: No
instanceType
Type: String
Required: No
monthlyRecurringCost
Type: String
Required: No
RedshiftReservedInstancesConfiguration 1314
AWS Billing and Cost Management API Reference
normalizedUnitsToPurchase
The number of normalized units that AWS recommends that you purchase.
Type: String
Required: No
numberOfInstancesToPurchase
Type: String
Required: No
paymentOption
Type: String
Required: No
reservedInstancesRegion
Type: String
Required: No
service
Type: String
Required: No
sizeFlexEligible
Type: Boolean
Required: No
RedshiftReservedInstancesConfiguration 1315
AWS Billing and Cost Management API Reference
term
Type: String
Required: No
upfrontCost
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
RedshiftReservedInstancesConfiguration 1316
AWS Billing and Cost Management API Reference
ReservedInstancesCostCalculation
Service: AWS Cost Optimization Hub
Contents
pricing
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ReservedInstancesCostCalculation 1317
AWS Billing and Cost Management API Reference
ReservedInstancesPricing
Service: AWS Cost Optimization Hub
Contents
estimatedMonthlyAmortizedReservationCost
The estimated cost of your recurring monthly fees for the recommended reserved instance
across the month.
Type: Double
Required: No
estimatedOnDemandCost
The remaining On-Demand cost estimated to not be covered by the recommended reserved
instance, over the length of the lookback period.
Type: Double
Required: No
monthlyReservationEligibleCost
Type: Double
Required: No
savingsPercentage
The savings percentage relative to the total On-Demand costs that are associated with this
instance.
Type: Double
Required: No
ReservedInstancesPricing 1318
AWS Billing and Cost Management API Reference
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ReservedInstancesPricing 1319
AWS Billing and Cost Management API Reference
ResourceCostCalculation
Service: AWS Cost Optimization Hub
Contents
pricing
Required: No
usages
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ResourceCostCalculation 1320
AWS Billing and Cost Management API Reference
ResourceDetails
Service: AWS Cost Optimization Hub
Contents
Important
This data type is a UNION, so only one of the following members can be specified when
used or returned.
computeSavingsPlans
Required: No
ebsVolume
Required: No
ec2AutoScalingGroup
Required: No
ec2Instance
Required: No
ResourceDetails 1321
AWS Billing and Cost Management API Reference
ec2InstanceSavingsPlans
Required: No
ec2ReservedInstances
Required: No
ecsService
Required: No
elastiCacheReservedInstances
Required: No
lambdaFunction
Required: No
openSearchReservedInstances
Required: No
ResourceDetails 1322
AWS Billing and Cost Management API Reference
rdsDbInstance
Required: No
rdsDbInstanceStorage
Required: No
rdsReservedInstances
Required: No
redshiftReservedInstances
Required: No
sageMakerSavingsPlans
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ResourceDetails 1323
AWS Billing and Cost Management API Reference
ResourceDetails 1324
AWS Billing and Cost Management API Reference
ResourcePricing
Service: AWS Cost Optimization Hub
Contents
estimatedCostAfterDiscounts
The savings estimate incorporating all discounts with AWS, such as Reserved Instances and
Savings Plans.
Type: Double
Required: No
estimatedCostBeforeDiscounts
The savings estimate using AWS public pricing without incorporating any discounts.
Type: Double
Required: No
estimatedDiscounts
Required: No
estimatedNetUnusedAmortizedCommitments
Type: Double
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ResourcePricing 1325
AWS Billing and Cost Management API Reference
ResourcePricing 1326
AWS Billing and Cost Management API Reference
SageMakerSavingsPlans
Service: AWS Cost Optimization Hub
Contents
configuration
Required: No
costCalculation
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
SageMakerSavingsPlans 1327
AWS Billing and Cost Management API Reference
SageMakerSavingsPlansConfiguration
Service: AWS Cost Optimization Hub
Contents
accountScope
Type: String
Required: No
hourlyCommitment
Type: String
Required: No
paymentOption
Type: String
Required: No
term
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
SageMakerSavingsPlansConfiguration 1328
AWS Billing and Cost Management API Reference
SageMakerSavingsPlansConfiguration 1329
AWS Billing and Cost Management API Reference
SavingsPlansCostCalculation
Service: AWS Cost Optimization Hub
Contents
pricing
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
SavingsPlansCostCalculation 1330
AWS Billing and Cost Management API Reference
SavingsPlansPricing
Service: AWS Cost Optimization Hub
Contents
estimatedMonthlyCommitment
Type: Double
Required: No
estimatedOnDemandCost
Estimated On-Demand cost you will pay after buying the Savings Plan.
Type: Double
Required: No
monthlySavingsPlansEligibleCost
Type: Double
Required: No
savingsPercentage
Estimated savings as a percentage of your overall costs after buying the Savings Plan.
Type: Double
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
SavingsPlansPricing 1331
AWS Billing and Cost Management API Reference
SavingsPlansPricing 1332
AWS Billing and Cost Management API Reference
StorageConfiguration
Service: AWS Cost Optimization Hub
Contents
sizeInGb
Type: Double
Required: No
type
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
StorageConfiguration 1333
AWS Billing and Cost Management API Reference
SummaryMetricsResult
Service: AWS Cost Optimization Hub
The results or descriptions for the additional metrics, based on whether the metrics were or were
not requested.
Contents
savingsPercentage
The savings percentage based on your AWS spend over the past 30 days.
Note
Savings percentage is only supported when filtering by Region, account ID, or tags.
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
SummaryMetricsResult 1334
AWS Billing and Cost Management API Reference
Tag
Service: AWS Cost Optimization Hub
Contents
key
Type: String
Required: No
value
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
Tag 1335
AWS Billing and Cost Management API Reference
Usage
Service: AWS Cost Optimization Hub
Contents
operation
Type: String
Required: No
productCode
Type: String
Required: No
unit
Type: String
Required: No
usageAmount
Type: Double
Required: No
usageType
Type: String
Required: No
Usage 1336
AWS Billing and Cost Management API Reference
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
Usage 1337
AWS Billing and Cost Management API Reference
ValidationExceptionDetail
Service: AWS Cost Optimization Hub
The input failed to meet the constraints specified by the AWS service in a specified field.
Contents
fieldName
Type: String
Required: Yes
message
Type: String
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
• ReportDefinition
• ReportStatus
• Tag
ValidationExceptionDetail 1338
AWS Billing and Cost Management API Reference
ReportDefinition
Service: AWS Cost and Usage Report
The definition of AWS Cost and Usage Report. You can specify the report name, time unit, report
format, compression format, S3 bucket, additional artifacts, and schema elements in the definition.
Contents
AdditionalSchemaElements
A list of strings that indicate additional content that AWS includes in the report, such as
individual resource IDs.
Required: Yes
Compression
If you choose Parquet for the Compression, you must also specify Parquet for the Format
parameter.
If you choose ZIP or GZIP for the Compression, you must specify textORcsv for the Format
parameter.
Type: String
Required: Yes
Format
If you choose Parquet for the Format, you must also specify Parquet for the Compression
parameter.
ReportDefinition 1340
AWS Billing and Cost Management API Reference
If you choose textORcsv for the Format, you must specify ZIP or GZIP for the Compression
parameter.
Type: String
Required: Yes
ReportName
The name of the report that you want to create. The name must be unique, is case sensitive,
and can't include spaces.
Type: String
Pattern: [0-9A-Za-z!\-_.*\'()]+
Required: Yes
S3Bucket
The S3 bucket where AWS delivers the report. The S3 bucket must be owned by the AWS
account that was used to create the report.
Type: String
Pattern: [A-Za-z0-9_\.\-]+
Required: Yes
S3Prefix
The prefix that AWS adds to the report name when AWS delivers the report. Your prefix can't
include spaces.
Type: String
Pattern: [0-9A-Za-z!\-_.*\'()/]*
ReportDefinition 1341
AWS Billing and Cost Management API Reference
Required: Yes
S3Region
The region of the S3 bucket that AWS delivers the report into.
Type: String
Required: Yes
TimeUnit
Type: String
Required: Yes
AdditionalArtifacts
A list of manifests that you want AWS to create for this report.
Required: No
BillingViewArn
The Amazon resource name of the billing view. The BillingViewArn is needed to create AWS
Cost and Usage Report for each billing group maintained in the AWS Billing Conductor service.
The BillingViewArn for a billing group can be constructed as: arn:aws:billing::payer-
account-id:billingview/billing-group-primary-account-id or retrieved by calling
the ListBillingViews API.
ReportDefinition 1342
AWS Billing and Cost Management API Reference
Type: String
Pattern: (arn:aws(-cn)?:billing::[0-9]{12}:billingview/)?[a-zA-Z0-9_\+=\.\-
@].{1,30}
Required: No
RefreshClosedReports
Whether you want AWS to update your reports after they have been finalized if AWS detects
charges related to previous months. These charges can include refunds, credits, or support fees.
Type: Boolean
Required: No
ReportStatus
Required: No
ReportVersioning
Whether you want AWS to overwrite the previous version of each report or to deliver the report
in addition to the previous versions.
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ReportDefinition 1343
AWS Billing and Cost Management API Reference
ReportDefinition 1344
AWS Billing and Cost Management API Reference
ReportStatus
Service: AWS Cost and Usage Report
A two element dictionary with a lastDelivery and lastStatus key whose values describe the
date and status of the last delivered report for a particular report definition.
Contents
lastDelivery
Type: String
Pattern: [0-9]{8}[T][0-9]{6}([Z]|[+-][0-9]{4})
Required: No
lastStatus
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ReportStatus 1345
AWS Billing and Cost Management API Reference
Tag
Service: AWS Cost and Usage Report
Describes a tag. A tag is a key-value pair. You can add up to 50 tags to a report definition.
Contents
Key
The key of the tag. Tag keys are case sensitive. Each report definition can only have up to one
tag with the same key. If you try to add an existing tag with the same key, the existing tag value
will be updated to the new value.
Type: String
Pattern: .*
Required: Yes
Value
The value of the tag. Tag values are case-sensitive. This can be an empty string.
Type: String
Pattern: .*
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
Tag 1346
AWS Billing and Cost Management API Reference
• DimensionValues
• Expression
• FreeTierUsage
DimensionValues
Service: AWS Free Tier
Contains the specifications for the filters to use for your request.
Contents
Key
Type: String
Required: Yes
MatchOptions
The match options that you can use to filter your results. You can specify only one of these
values in the array.
Required: Yes
Values
The metadata values you can specify to filter upon, so that the results all match at least one of
the specified values.
Pattern: ^[ a-zA-Z0-9\-\:\.\_\/\,\$\(\)]*$
Required: Yes
DimensionValues 1348
AWS Billing and Cost Management API Reference
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
DimensionValues 1349
AWS Billing and Cost Management API Reference
Expression
Service: AWS Free Tier
For simple dimension values, you can set the dimension name, values, and match type for the filters
that you plan to use.
As shown in the previous example, lists of dimension values are combined with OR when you apply
the filter.
For complex expressions with logical operators, you can have nested expressions to use the logical
operators and specify advanced filtering.
In the following Contents, you must specify exactly one of the following root operators.
Expression 1350
AWS Billing and Cost Management API Reference
Contents
And
Return results that match all Expressions that you specified in the array.
Required: No
Dimensions
The specific dimension, values, and match type to filter objects with.
Required: No
Not
Return results that don’t match the Expression that you specified.
Required: No
Or
Return results that match any of the Expressions that you specified. in the array.
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
Expression 1351
AWS Billing and Cost Management API Reference
FreeTierUsage
Service: AWS Free Tier
Consists of a AWS Free Tier offer’s metadata and your data usage for the offer.
Contents
actualUsageAmount
Describes the actual usage accrued month-to-day (MTD) that you've used so far.
Type: Double
Required: No
description
Type: String
Pattern: ^[\S\s]*$
Required: No
forecastedUsageAmount
Describes the forecasted usage by the month that you're expected to use.
Type: Double
Required: No
freeTierType
Describes the type of the Free Tier offer. For example, the offer can be "12 Months Free",
"Always Free", and "Free Trial".
Type: String
Pattern: ^[\S\s]*$
FreeTierUsage 1352
AWS Billing and Cost Management API Reference
Required: No
limit
Type: Double
Required: No
operation
Describes usageType more granularly with the specific AWS service API operation. For
example, this can be the RunInstances API operation for Amazon Elastic Compute Cloud.
Type: String
Pattern: ^[\S\s]*$
Required: No
region
Type: String
Pattern: ^[\S\s]*$
Required: No
service
The name of the AWS service providing the Free Tier offer. For example, this can be Amazon
Elastic Compute Cloud.
Type: String
Pattern: ^[\S\s]*$
FreeTierUsage 1353
AWS Billing and Cost Management API Reference
Required: No
unit
Type: String
Pattern: ^[\S\s]*$
Required: No
usageType
Describes the usage details of the offer. For example, this might be Global-
BoxUsage:freetrial.
Type: String
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:
AWS Invoicing
The following data types are supported by AWS Invoicing:
• Filters
• InvoiceProfile
• InvoiceUnit
• InvoiceUnitRule
• ReceiverAddress
• ResourceTag
• ValidationExceptionField
Filters
Service: AWS Invoicing
An optional input to the list API. If multiple filters are specified, the returned list will
be a configuration that match all of the provided filters. Supported filter types are
InvoiceReceivers, Names, and Accounts.
Contents
Accounts
You can specify a list of AWS account IDs inside filters to return invoice units that match only
the specified accounts. If multiple accounts are provided, the result is an OR condition (match
any) of the specified accounts. The specified account IDs are matched with either the receiver or
the linked accounts in the rules.
Pattern: \d{12}
Required: No
InvoiceReceivers
You can specify a list of AWS account IDs inside filters to return invoice units that match only
the specified accounts. If multiple accounts are provided, the result is an OR condition (match
any) of the specified accounts. This filter only matches the specified accounts on the invoice
receivers of the invoice units.
Pattern: \d{12}
Required: No
Names
An optional input to the list API. You can specify a list of invoice unit names inside filters to
return invoice units that match only the specified invoice unit names. If multiple names are
provided, the result is an OR condition (match any) of the specified invoice unit names.
Filters 1356
AWS Billing and Cost Management API Reference
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
Filters 1357
AWS Billing and Cost Management API Reference
InvoiceProfile
Service: AWS Invoicing
Contents
AccountId
Type: String
Pattern: \d{12}
Required: No
Issuer
Type: String
Pattern: \S+
Required: No
ReceiverAddress
Required: No
ReceiverEmail
Type: String
InvoiceProfile 1358
AWS Billing and Cost Management API Reference
Pattern: \S+
Required: No
ReceiverName
Type: String
Pattern: \S+
Required: No
TaxRegistrationNumber
Type: String
Pattern: \S+
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
InvoiceProfile 1359
AWS Billing and Cost Management API Reference
InvoiceUnit
Service: AWS Invoicing
An invoice unit is a set of mutually exclusive accounts that correspond to your business entity.
Invoice units allow you separate AWS account costs and configures your invoice for each business
entity going forward.
Contents
Description
The assigned description for an invoice unit. This information can't be modified or deleted.
Type: String
Pattern: [\S\s]*
Required: No
InvoiceReceiver
Type: String
Pattern: \d{12}
Required: No
InvoiceUnitArn
Type: String
Pattern: arn:aws[-a-z0-9]*:[a-z0-9]+:[-a-z0-9]*:[0-9]{12}:[-a-zA-Z0-9/:_]+
Required: No
InvoiceUnit 1360
AWS Billing and Cost Management API Reference
LastModified
The last time the invoice unit was updated. This is important to determine the version of invoice
unit configuration used to create the invoices. Any invoice created after this modified time will
use this invoice unit configuration.
Type: Timestamp
Required: No
Name
Type: String
Required: No
Rule
Required: No
TaxInheritanceDisabled
Whether the invoice unit based tax inheritance is/ should be enabled or disabled.
Type: Boolean
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
InvoiceUnit 1361
AWS Billing and Cost Management API Reference
InvoiceUnit 1362
AWS Billing and Cost Management API Reference
InvoiceUnitRule
Service: AWS Invoicing
This is used to categorize the invoice unit. Values are AWS account IDs. Currently, the only
supported rule is LINKED_ACCOUNT.
Contents
LinkedAccounts
The list of LINKED_ACCOUNT IDs where charges are included within the invoice unit.
Pattern: \d{12}
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
InvoiceUnitRule 1363
AWS Billing and Cost Management API Reference
ReceiverAddress
Service: AWS Invoicing
Contents
AddressLine1
Type: String
Pattern: \S+
Required: No
AddressLine2
Type: String
Pattern: \S+
Required: No
AddressLine3
Type: String
Pattern: \S+
Required: No
City
ReceiverAddress 1364
AWS Billing and Cost Management API Reference
Type: String
Pattern: \S+
Required: No
CompanyName
Type: String
Pattern: \S+
Required: No
CountryCode
Type: String
Pattern: \S+
Required: No
DistrictOrCounty
Type: String
Pattern: \S+
Required: No
PostalCode
ReceiverAddress 1365
AWS Billing and Cost Management API Reference
Type: String
Pattern: \S+
Required: No
StateOrRegion
Type: String
Pattern: \S+
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ReceiverAddress 1366
AWS Billing and Cost Management API Reference
ResourceTag
Service: AWS Invoicing
Contents
Key
Type: String
Required: Yes
Value
Type: String
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ResourceTag 1367
AWS Billing and Cost Management API Reference
ValidationExceptionField
Service: AWS Invoicing
Contents
message
Type: String
Pattern: \S+
Required: Yes
name
Type: String
Pattern: \S+
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ValidationExceptionField 1368
AWS Billing and Cost Management API Reference
• AttributeValue
• Filter
• PriceList
• Service
AttributeValue
Service: AWS Price List
The values of a given attribute, such as Throughput Optimized HDD or Provisioned IOPS for
the Amazon EC2 volumeType attribute.
Contents
Value
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
AttributeValue 1370
AWS Billing and Cost Management API Reference
Filter
Service: AWS Price List
Contents
Field
The product metadata field that you want to filter on. You can filter by just the service code to
see all products for a specific service, filter by just the attribute name to see a specific attribute
for multiple services, or use both a service code and an attribute name to retrieve only products
that match both fields.
For example, you can filter by the AmazonEC2 service code and the volumeType attribute
name to get the prices for only Amazon EC2 volumes.
Type: String
Required: Yes
Type
Valid values are: TERM_MATCH. TERM_MATCH returns only products that match both the given
filter field and the given value.
Type: String
Required: Yes
Value
The service code or attribute value that you want to filter by. If you're filtering by service code
this is the actual service code, such as AmazonEC2. If you're filtering by attribute name, this
is the attribute value that you want the returned products to match, such as a Provisioned
IOPS volume.
Filter 1371
AWS Billing and Cost Management API Reference
Type: String
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
Filter 1372
AWS Billing and Cost Management API Reference
PriceList
Service: AWS Price List
This feature is in preview release and is subject to change. Your use of AWS Price List API is
subject to the Beta Service Participation terms of the AWS Service Terms (Section 1.10).
This is the type of price list references that match your request.
Contents
CurrencyCode
The three alphabetical character ISO-4217 currency code the Price List files are denominated in.
Type: String
Pattern: [A-Z]{3}
Required: No
FileFormats
The format you want to retrieve your Price List files. The FileFormat can be obtained from the
ListPriceList response.
Required: No
PriceListArn
The unique identifier that maps to where your Price List files are located. PriceListArn can
be obtained from the ListPriceList response.
Type: String
Pattern: arn:[A-Za-z0-9][-.A-Za-z0-9]{0,62}:pricing:::price-list/[A-Za-
z0-9+_/.-]{1,1023}
Required: No
PriceList 1373
AWS Billing and Cost Management API Reference
RegionCode
This is used to filter the Price List by AWS Region. For example, to get the price list only for
the US East (N. Virginia) Region, use us-east-1. If nothing is specified, you retrieve
price lists for all applicable Regions. The available RegionCode list can be retrieved from
GetAttributeValues API.
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
PriceList 1374
AWS Billing and Cost Management API Reference
Service
Service: AWS Price List
The metadata for a service, such as the service code and available attribute names.
Contents
ServiceCode
Type: String
Required: Yes
AttributeNames
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
Tax Settings
The following data types are supported by Tax Settings:
• AccountDetails
• AccountMetaData
• AdditionalInfoRequest
Service 1375
AWS Billing and Cost Management API Reference
• AdditionalInfoResponse
• Address
• Authority
• BatchDeleteTaxRegistrationError
• BatchPutTaxRegistrationError
• BrazilAdditionalInfo
• CanadaAdditionalInfo
• DestinationS3Location
• EgyptAdditionalInfo
• EstoniaAdditionalInfo
• ExemptionCertificate
• GeorgiaAdditionalInfo
• GreeceAdditionalInfo
• IndiaAdditionalInfo
• IsraelAdditionalInfo
• ItalyAdditionalInfo
• Jurisdiction
• KenyaAdditionalInfo
• MalaysiaAdditionalInfo
• PolandAdditionalInfo
• RomaniaAdditionalInfo
• SaudiArabiaAdditionalInfo
• SourceS3Location
• SouthKoreaAdditionalInfo
• SpainAdditionalInfo
• SupplementalTaxRegistration
• SupplementalTaxRegistrationEntry
• TaxDocumentMetadata
• TaxExemption
• TaxExemptionDetails
• TaxExemptionType
• TaxInheritanceDetails
• TaxRegistration
• TaxRegistrationDocFile
• TaxRegistrationDocument
• TaxRegistrationEntry
• TaxRegistrationWithJurisdiction
• TurkeyAdditionalInfo
• UkraineAdditionalInfo
• ValidationExceptionField
• VerificationDetails
• VietnamAdditionalInfo
AccountDetails
Service: Tax Settings
Contents
accountId
Type: String
Pattern: ^\d+$
Required: No
accountMetaData
Required: No
taxInheritanceDetails
Required: No
taxRegistration
Your TRN information. Instead of having full legal address, here TRN information will have
jurisdiction details (for example, country code and state/region/province if applicable).
Required: No
AccountDetails 1378
AWS Billing and Cost Management API Reference
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
AccountDetails 1379
AWS Billing and Cost Management API Reference
AccountMetaData
Service: Tax Settings
Contents
accountName
Type: String
Pattern: ^[\s\S]*$
Required: No
address
Required: No
addressRoleMap
Address roles associated with the account containing country code information.
Required: No
addressType
Type: String
Required: No
AccountMetaData 1380
AWS Billing and Cost Management API Reference
seller
Type: String
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:
AccountMetaData 1381
AWS Billing and Cost Management API Reference
AdditionalInfoRequest
Service: Tax Settings
Additional tax information associated with your tax registration number (TRN). Depending on the
TRN for a specific country, you might need to specify this information when you set your TRN.
You can only specify one of the following parameters and the value can't be empty.
Note
The parameter that you specify must match the country for the TRN, if available. For
example, if you set a TRN in Canada for specific provinces, you must also specify the
canadaAdditionalInfo parameter.
Contents
canadaAdditionalInfo
Required: No
egyptAdditionalInfo
Required: No
estoniaAdditionalInfo
Required: No
georgiaAdditionalInfo
AdditionalInfoRequest 1382
AWS Billing and Cost Management API Reference
Required: No
greeceAdditionalInfo
Required: No
israelAdditionalInfo
Required: No
italyAdditionalInfo
Required: No
kenyaAdditionalInfo
Required: No
malaysiaAdditionalInfo
Required: No
polandAdditionalInfo
AdditionalInfoRequest 1383
AWS Billing and Cost Management API Reference
Required: No
romaniaAdditionalInfo
Required: No
saudiArabiaAdditionalInfo
Required: No
southKoreaAdditionalInfo
Required: No
spainAdditionalInfo
Required: No
turkeyAdditionalInfo
Required: No
ukraineAdditionalInfo
AdditionalInfoRequest 1384
AWS Billing and Cost Management API Reference
Required: No
vietnamAdditionalInfo
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
AdditionalInfoRequest 1385
AWS Billing and Cost Management API Reference
AdditionalInfoResponse
Service: Tax Settings
Additional tax information associated with your TRN. The Tax Settings API returns country-specific
information in the response when any additional information is present with your TRN for the
following countries.
Contents
brazilAdditionalInfo
Additional tax information associated with your TRN in Brazil. The Tax Settings API returns
this information in your response when any additional information is present with your TRN in
Brazil.
Required: No
canadaAdditionalInfo
Required: No
egyptAdditionalInfo
Required: No
estoniaAdditionalInfo
Required: No
georgiaAdditionalInfo
AdditionalInfoResponse 1386
AWS Billing and Cost Management API Reference
Required: No
greeceAdditionalInfo
Required: No
indiaAdditionalInfo
Required: No
israelAdditionalInfo
Required: No
italyAdditionalInfo
Required: No
kenyaAdditionalInfo
Required: No
malaysiaAdditionalInfo
AdditionalInfoResponse 1387
AWS Billing and Cost Management API Reference
Required: No
polandAdditionalInfo
Required: No
romaniaAdditionalInfo
Required: No
saudiArabiaAdditionalInfo
Required: No
southKoreaAdditionalInfo
Required: No
spainAdditionalInfo
Required: No
turkeyAdditionalInfo
AdditionalInfoResponse 1388
AWS Billing and Cost Management API Reference
Required: No
ukraineAdditionalInfo
Required: No
vietnamAdditionalInfo
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
AdditionalInfoResponse 1389
AWS Billing and Cost Management API Reference
Address
Service: Tax Settings
Contents
addressLine1
Type: String
Pattern: ^(?!\s*$)[\s\S]+$
Required: Yes
city
Type: String
Pattern: ^(?!\s*$)[\s\S]+$
Required: Yes
countryCode
The country code for the country that the address is in.
Type: String
Pattern: ^[a-zA-Z]+$
Required: Yes
postalCode
Address 1390
AWS Billing and Cost Management API Reference
Type: String
Pattern: ^(?!\s*$)[\s\S]+$
Required: Yes
addressLine2
Type: String
Pattern: ^(?!\s*$)[\s\S]+$
Required: No
addressLine3
The third line of the address, if applicable. Currently, the Tax Settings API accepts the
addressLine3 parameter only for Saudi Arabia. When you specify a TRN in Saudi Arabia, you
must enter the addressLine3 and specify the building number for the address. For example,
you might enter 1234.
Type: String
Pattern: ^(?!\s*$)[\s\S]+$
Required: No
districtOrCounty
Note
For addresses in Brazil, this parameter uses the name of the neighborhood. When you
set a TRN in Brazil, use districtOrCounty for the neighborhood name.
Address 1391
AWS Billing and Cost Management API Reference
Type: String
Pattern: ^(?!\s*$)[\s\S]+$
Required: No
stateOrRegion
The state, region, or province that the address is located. This field is only required for Canada,
India, United Arab Emirates, Romania, and Brazil (CPF). It is optional for all other countries.
If this is required for tax settings, use the same name as shown on the Tax Settings page.
Type: String
Pattern: ^(?!\s*$)[\s\S]+$
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
Address 1392
AWS Billing and Cost Management API Reference
Authority
Service: Tax Settings
Contents
country
The country code for the country that the address is in.
Type: String
Pattern: ^[a-zA-Z]+$
Required: Yes
state
Type: String
Pattern: ^(?!\s*$)[\s\S]+$
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
Authority 1393
AWS Billing and Cost Management API Reference
BatchDeleteTaxRegistrationError
Service: Tax Settings
Contents
accountId
The unique account identifier for the account whose tax registration couldn't be deleted during
the BatchDeleteTaxRegistration operation.
Type: String
Pattern: ^\d+$
Required: Yes
message
Type: String
Pattern: ^[\s\S]*$
Required: Yes
code
Type: String
Pattern: ^[\s\S]*$
Required: No
BatchDeleteTaxRegistrationError 1394
AWS Billing and Cost Management API Reference
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
BatchDeleteTaxRegistrationError 1395
AWS Billing and Cost Management API Reference
BatchPutTaxRegistrationError
Service: Tax Settings
Contents
accountId
The unique account identifier for the account that the tax registration couldn't be added, or
updated during the BatchPutTaxRegistration operation.
Type: String
Pattern: ^\d+$
Required: Yes
message
Type: String
Pattern: ^[\s\S]*$
Required: Yes
code
Type: String
Pattern: ^[\s\S]*$
Required: No
BatchPutTaxRegistrationError 1396
AWS Billing and Cost Management API Reference
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
BatchPutTaxRegistrationError 1397
AWS Billing and Cost Management API Reference
BrazilAdditionalInfo
Service: Tax Settings
Contents
ccmCode
The Cadastro de Contribuintes Mobiliários (CCM) code for your TRN in Brazil. This only applies
for a CNPJ tax type for the São Paulo municipality.
Type: String
Pattern: ^\d+$
Required: No
legalNatureCode
Legal nature of business, based on your TRN in Brazil. This only applies for a CNPJ tax type.
Type: String
Pattern: ^\d+$
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
BrazilAdditionalInfo 1398
AWS Billing and Cost Management API Reference
CanadaAdditionalInfo
Service: Tax Settings
Contents
canadaQuebecSalesTaxNumber
The Quebec Sales Tax ID number. Leave blank if you do not have a Quebec Sales Tax ID number.
Type: String
Pattern: ^([0-9]{10})(TQ[0-9]{4})?$
Required: No
canadaRetailSalesTaxNumber
Manitoba Retail Sales Tax ID number. Customers purchasing AWS services for resale in Manitoba
must provide a valid Retail Sales Tax ID number for Manitoba. Leave this blank if you do not
have a Retail Sales Tax ID number in Manitoba or are not purchasing AWS services for resale.
Type: String
Pattern: ^([0-9]{6}-[0-9]{1})$
Required: No
isResellerAccount
The value for this parameter must be true if the provincialSalesTaxId value is provided
for a TRN in British Columbia, Saskatchewan, or Manitoba provinces.
To claim a provincial sales tax (PST) and retail sales tax (RST) reseller exemption, you must
confirm that purchases from this account were made for resale. Otherwise, remove the PST or
RST number from the provincialSalesTaxId parameter from your request.
Type: Boolean
Required: No
provincialSalesTaxId
The provincial sales tax ID for your TRN in Canada. This parameter can represent the following:
CanadaAdditionalInfo 1399
AWS Billing and Cost Management API Reference
• Provincial sales tax ID number for British Columbia and Saskatchewan provinces
• Manitoba retail sales tax ID number for Manitoba province
• Quebec sales tax ID number for Quebec province
The Tax Setting API only accepts this parameter if the TRN is specified for the previous
provinces. For other provinces, the Tax Settings API doesn't accept this parameter.
Type: String
Pattern: ^([0-9A-Z/-]+)$
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
CanadaAdditionalInfo 1400
AWS Billing and Cost Management API Reference
DestinationS3Location
Service: Tax Settings
The location of the Amazon S3 bucket that you specify to download your tax documents to.
Contents
bucket
The name of your Amazon S3 bucket that you specify to download your tax documents to.
Type: String
Pattern: ^(?=^.{3,63}$)(?!^(\d+\.)+\d+$)(^(([a-z0-9]|[a-z0-9][a-z0-9\-]*[a-
z0-9])\.)*([a-z0-9]|[a-z0-9][a-z0-9\-]*[a-z0-9])$)$
Required: Yes
prefix
The Amazon S3 object prefix that you specify for your tax document file.
Type: String
Pattern: ^.*\S.*$
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
DestinationS3Location 1401
AWS Billing and Cost Management API Reference
EgyptAdditionalInfo
Service: Tax Settings
Contents
uniqueIdentificationNumber
Type: String
Pattern: ^[a-zA-Z0-9]{39}$
Required: No
uniqueIdentificationNumberExpirationDate
The expiration date of the unique identification number provided by the Egypt Tax Authority.
Type: String
Pattern: ^(\d{4}-(0[0-9]|1[0-2])-([0-2][0-9]|3[0-1]))$
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
EgyptAdditionalInfo 1402
AWS Billing and Cost Management API Reference
EstoniaAdditionalInfo
Service: Tax Settings
Contents
registryCommercialCode
Registry commercial code (RCC) for your TRN in Estonia. This value is an eight-numeric string,
such as 12345678.
Type: String
Pattern: ^\d+$
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
EstoniaAdditionalInfo 1403
AWS Billing and Cost Management API Reference
ExemptionCertificate
Service: Tax Settings
Contents
documentFile
Required: Yes
documentName
Type: String
Pattern: ^([A-Za-z0-9-_.]+).(pdf|jpg|png)$
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ExemptionCertificate 1404
AWS Billing and Cost Management API Reference
GeorgiaAdditionalInfo
Service: Tax Settings
Contents
personType
Type: String
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
GeorgiaAdditionalInfo 1405
AWS Billing and Cost Management API Reference
GreeceAdditionalInfo
Service: Tax Settings
Contents
contractingAuthorityCode
Type: String
Pattern: ^\d{4}\.[A-Z]\d{5}\.\d{4}$
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
GreeceAdditionalInfo 1406
AWS Billing and Cost Management API Reference
IndiaAdditionalInfo
Service: Tax Settings
Contents
pan
Type: String
Pattern: ^[A-Z]{5}[0-9]{4}[A-Z]{1}$
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
IndiaAdditionalInfo 1407
AWS Billing and Cost Management API Reference
IsraelAdditionalInfo
Service: Tax Settings
Contents
customerType
Customer type for your TRN in Israel. The value can be Business or Individual. Use
Businessfor entities such as not-for-profit and financial institutions.
Type: String
Required: Yes
dealerType
Dealer type for your TRN in Israel. If you're not a local authorized dealer with an Israeli VAT ID,
specify your tax identification number so that AWS can send you a compliant tax invoice.
Type: String
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
IsraelAdditionalInfo 1408
AWS Billing and Cost Management API Reference
ItalyAdditionalInfo
Service: Tax Settings
Contents
cigNumber
Type: String
Pattern: ^([0-9A-Z]{1,15})$
Required: No
cupNumber
Additional tax information to specify for a TRN in Italy. This is managed by the Interministerial
Committee for Economic Planning (CIPE) which characterizes every public investment project
(Individual Project Code).
Type: String
Pattern: ^([0-9A-Z]{1,15})$
Required: No
sdiAccountId
Additional tax information to specify for a TRN in Italy. Use CodiceDestinatario to receive your
invoices via web service (API) or FTP.
Type: String
Pattern: ^[0-9A-Z]{6,7}$
Required: No
taxCode
List of service tax codes for your TRN in Italy. You can use your customer tax code as part of a
VAT Group.
ItalyAdditionalInfo 1409
AWS Billing and Cost Management API Reference
Type: String
Pattern: ^([0-9]{11}|[A-Z]{6}[0-9]{2}[A-Z][0-9]{2}[A-Z][0-9]{3}[A-Z])$
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ItalyAdditionalInfo 1410
AWS Billing and Cost Management API Reference
Jurisdiction
Service: Tax Settings
The jurisdiction details of the TRN information of the customers. This doesn't contain full legal
address, and contains only country code and state/region/province.
Contents
countryCode
Type: String
Pattern: ^[a-zA-Z]+$
Required: Yes
stateOrRegion
The state, region, or province associated with the country of the jurisdiction, if applicable.
Type: String
Pattern: ^(?!\s*$)[\s\S]+$
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
Jurisdiction 1411
AWS Billing and Cost Management API Reference
KenyaAdditionalInfo
Service: Tax Settings
Contents
personType
Type: String
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
KenyaAdditionalInfo 1412
AWS Billing and Cost Management API Reference
MalaysiaAdditionalInfo
Service: Tax Settings
Contents
businessRegistrationNumber
For business resellers with service codes, you must specify businessRegistrationNumber,
taxInformationNumber, and distinct serviceTaxCodes in MalaysiaAdditionalInfo
with a SST type and valid sales and service tax (SST) number. By using this API operation, AWS
registers your self-declaration that you’re an authorized business reseller registered with the
Royal Malaysia Customs Department (RMCD), and have a valid SST number.
Type: String
Pattern: ^[0-9]{12}$
Required: No
serviceTaxCodes
Required: No
MalaysiaAdditionalInfo 1413
AWS Billing and Cost Management API Reference
taxInformationNumber
For business resellers with service codes, you must specify businessRegistrationNumber,
taxInformationNumber, and distinct serviceTaxCodes in MalaysiaAdditionalInfo
with a SST type and valid sales and service tax (SST) number. By using this API operation, AWS
registers your self-declaration that you’re an authorized business reseller registered with the
Royal Malaysia Customs Department (RMCD), and have a valid SST number.
Type: String
Pattern: ^[A-Z]{1,2}[0-9]{1,11}$
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
MalaysiaAdditionalInfo 1414
AWS Billing and Cost Management API Reference
PolandAdditionalInfo
Service: Tax Settings
Contents
individualRegistrationNumber
The individual tax registration number (NIP). Individual NIP is valid for other taxes excluding
VAT purposes.
Type: String
Pattern: ^([0-9]{10})$
Required: No
isGroupVatEnabled
True if your business is a member of a VAT group with a NIP active for VAT purposes. Otherwise,
this is false.
Type: Boolean
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
PolandAdditionalInfo 1415
AWS Billing and Cost Management API Reference
RomaniaAdditionalInfo
Service: Tax Settings
Contents
taxRegistrationNumberType
Type: String
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
RomaniaAdditionalInfo 1416
AWS Billing and Cost Management API Reference
SaudiArabiaAdditionalInfo
Service: Tax Settings
Contents
taxRegistrationNumberType
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
SaudiArabiaAdditionalInfo 1417
AWS Billing and Cost Management API Reference
SourceS3Location
Service: Tax Settings
The Amazon S3 bucket in your account where your tax document is located.
Contents
bucket
The name of your Amazon S3 bucket that your tax document is located.
Type: String
Pattern: ^(?=^.{3,63}$)(?!^(\d+\.)+\d+$)(^(([a-z0-9]|[a-z0-9][a-z0-9\-]*[a-
z0-9])\.)*([a-z0-9]|[a-z0-9][a-z0-9\-]*[a-z0-9])$)$
Required: Yes
key
Type: String
Pattern: ^.*\S.*$
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
SourceS3Location 1418
AWS Billing and Cost Management API Reference
SouthKoreaAdditionalInfo
Service: Tax Settings
Contents
businessRepresentativeName
The business legal name based on the most recently uploaded tax registration certificate.
Type: String
Required: Yes
itemOfBusiness
Item of business based on the most recently uploaded tax registration certificate.
Type: String
Required: Yes
lineOfBusiness
Line of business based on the most recently uploaded tax registration certificate.
Type: String
Required: Yes
SouthKoreaAdditionalInfo 1419
AWS Billing and Cost Management API Reference
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
SouthKoreaAdditionalInfo 1420
AWS Billing and Cost Management API Reference
SpainAdditionalInfo
Service: Tax Settings
Contents
registrationType
Type: String
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
SpainAdditionalInfo 1421
AWS Billing and Cost Management API Reference
SupplementalTaxRegistration
Service: Tax Settings
Contents
address
Required: Yes
authorityId
Type: String
Pattern: ^[\s\S]*$
Required: Yes
legalName
Type: String
Pattern: ^(?!\s*$)[\s\S]+$
Required: Yes
registrationId
Type: String
SupplementalTaxRegistration 1422
AWS Billing and Cost Management API Reference
Pattern: ^(?!\s*$)[\s\S]+$
Required: Yes
registrationType
Type: String
Required: Yes
status
Type: String
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
SupplementalTaxRegistration 1423
AWS Billing and Cost Management API Reference
SupplementalTaxRegistrationEntry
Service: Tax Settings
The supplemental TRN information to provide when adding or updating a supplemental TRN.
Contents
address
Required: Yes
legalName
Type: String
Pattern: ^(?!\s*$)[\s\S]+$
Required: Yes
registrationId
Type: String
Pattern: ^(?!\s*$)[\s\S]+$
Required: Yes
registrationType
Type: String
SupplementalTaxRegistrationEntry 1424
AWS Billing and Cost Management API Reference
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
SupplementalTaxRegistrationEntry 1425
AWS Billing and Cost Management API Reference
TaxDocumentMetadata
Service: Tax Settings
Contents
taxDocumentAccessToken
The tax document access token, which contains information that the Tax Settings API uses to
locate the tax document.
Note
If you update your tax registration, the existing taxDocumentAccessToken
won't be valid. To get the latest token, call the GetTaxRegistration or
ListTaxRegistrations API operation. This token is valid for 24 hours.
Type: String
Pattern: ^[\s\S]*$
Required: Yes
taxDocumentName
Type: String
Pattern: ^[\s\S]*$
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
TaxDocumentMetadata 1426
AWS Billing and Cost Management API Reference
TaxDocumentMetadata 1427
AWS Billing and Cost Management API Reference
TaxExemption
Service: Tax Settings
Contents
authority
Required: Yes
taxExemptionType
Required: Yes
effectiveDate
Type: Timestamp
Required: No
expirationDate
Type: Timestamp
Required: No
status
Type: String
TaxExemption 1428
AWS Billing and Cost Management API Reference
Required: No
systemEffectiveDate
Type: Timestamp
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
TaxExemption 1429
AWS Billing and Cost Management API Reference
TaxExemptionDetails
Service: Tax Settings
Contents
heritageObtainedDetails
The indicator if the tax exemption is inherited from the consolidated billing family management
account.
Type: Boolean
Required: No
heritageObtainedParentEntity
The consolidated billing family management account the tax exemption inherited from.
Type: String
Pattern: ^[\s\S]*$
Required: No
heritageObtainedReason
Type: String
Pattern: ^[\s\S]*$
Required: No
taxExemptions
Tax exemptions.
TaxExemptionDetails 1430
AWS Billing and Cost Management API Reference
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
TaxExemptionDetails 1431
AWS Billing and Cost Management API Reference
TaxExemptionType
Service: Tax Settings
Contents
applicableJurisdictions
Required: No
description
Type: String
Pattern: ^[\s\S]*$
Required: No
displayName
Type: String
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:
TaxExemptionType 1432
AWS Billing and Cost Management API Reference
TaxExemptionType 1433
AWS Billing and Cost Management API Reference
TaxInheritanceDetails
Service: Tax Settings
Contents
inheritanceObtainedReason
Type: String
Pattern: ^[\s\S]*$
Required: No
parentEntityId
Type: String
Pattern: ^\d+$
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
TaxInheritanceDetails 1434
AWS Billing and Cost Management API Reference
TaxRegistration
Service: Tax Settings
Contents
legalAddress
Required: Yes
legalName
Type: String
Pattern: ^(?!\s*$)[\s\S]+$
Required: Yes
registrationId
Type: String
Pattern: ^(?!\s*$)[\s\S]+$
Required: Yes
registrationType
Type: String
TaxRegistration 1435
AWS Billing and Cost Management API Reference
Required: Yes
status
The status of your TRN. This can be either Verified, Pending, Deleted, or Rejected.
Type: String
Required: Yes
additionalTaxInformation
Required: No
certifiedEmailId
Type: String
Pattern: ^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,20}$
Required: No
sector
The industry that describes your business. For business-to-business (B2B) customers, specify
Business. For business-to-consumer (B2C) customers, specify Individual. For business-to-
government (B2G), specify Government. Note that certain values may not applicable for the
request country. Please refer to country specific information in API document.
Type: String
Required: No
taxDocumentMetadatas
TaxRegistration 1436
AWS Billing and Cost Management API Reference
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
TaxRegistration 1437
AWS Billing and Cost Management API Reference
TaxRegistrationDocFile
Service: Tax Settings
Contents
fileContent
Required: Yes
fileName
Type: String
Pattern: ^[\s\S]*$
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
TaxRegistrationDocFile 1438
AWS Billing and Cost Management API Reference
TaxRegistrationDocument
Service: Tax Settings
Contents
file
Required: No
s3Location
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
TaxRegistrationDocument 1439
AWS Billing and Cost Management API Reference
TaxRegistrationEntry
Service: Tax Settings
The TRN information you provide when you add a new TRN, or update.
Contents
registrationId
Type: String
Pattern: ^(?!\s*$)[\s\S]+$
Required: Yes
registrationType
Type: String
Required: Yes
additionalTaxInformation
Additional tax information associated with your TRN. You only need to specify this parameter if
AWS collects any additional information for your country within AdditionalInfoRequest.
Required: No
certifiedEmailId
Type: String
Pattern: ^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,20}$
TaxRegistrationEntry 1440
AWS Billing and Cost Management API Reference
Required: No
legalAddress
Note
If you're setting a TRN in Brazil for the CNPJ tax type, you don't need to specify the legal
address.
For TRNs in other countries and for CPF tax types Brazil, you must specify the legal
address.
Required: No
legalName
Note
If you're setting a TRN in Brazil, you don't need to specify the legal name. For TRNs in
other countries, you must specify the legal name.
Type: String
Pattern: ^(?!\s*$)[\s\S]+$
Required: No
sector
The industry that describes your business. For business-to-business (B2B) customers, specify
Business. For business-to-consumer (B2C) customers, specify Individual. For business-to-
government (B2G), specify Government.Note that certain values may not applicable for the
request country. Please refer to country specific information in API document.
TaxRegistrationEntry 1441
AWS Billing and Cost Management API Reference
Type: String
Required: No
verificationDetails
Additional details needed to verify your TRN information in Brazil. You only need to specify this
parameter when you set a TRN in Brazil that is the CPF tax type.
Note
Don't specify this parameter to set a TRN in Brazil of the CNPJ tax type or to set a TRN
for another country.
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
TaxRegistrationEntry 1442
AWS Billing and Cost Management API Reference
TaxRegistrationWithJurisdiction
Service: Tax Settings
Your TRN information with jurisdiction details. This doesn't contain the full legal address associated
with the TRN information.
Contents
jurisdiction
Required: Yes
legalName
Type: String
Pattern: ^(?!\s*$)[\s\S]+$
Required: Yes
registrationId
Type: String
Pattern: ^(?!\s*$)[\s\S]+$
Required: Yes
registrationType
The type of your tax registration. This can be either VAT or GST.
Type: String
TaxRegistrationWithJurisdiction 1443
AWS Billing and Cost Management API Reference
Required: Yes
status
The status of your TRN. This can be either Verified, Pending, Deleted, or Rejected.
Type: String
Required: Yes
additionalTaxInformation
Required: No
certifiedEmailId
Type: String
Pattern: ^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,20}$
Required: No
sector
The industry that describes your business. For business-to-business (B2B) customers, specify
Business. For business-to-consumer (B2C) customers, specify Individual. For business-to-
government (B2G), specify Government.Note that certain values may not applicable for the
request country. Please refer to country specific information in API document.
Type: String
Required: No
TaxRegistrationWithJurisdiction 1444
AWS Billing and Cost Management API Reference
taxDocumentMetadatas
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
TaxRegistrationWithJurisdiction 1445
AWS Billing and Cost Management API Reference
TurkeyAdditionalInfo
Service: Tax Settings
Contents
industries
The industry information that tells the Tax Settings API if you're subject to additional
withholding taxes. This information required for business-to-business (B2B) customers. This
information is conditionally mandatory for B2B customers who are subject to KDV tax.
Type: String
Required: No
kepEmailId
The Registered Electronic Mail (REM) that is used to send notarized communication. This
parameter is optional for business-to-business (B2B) and business-to-government (B2G)
customers. It's not required for business-to-consumer (B2C) customers.
Type: String
Pattern: ^[\s\S]*$
Required: No
secondaryTaxId
Secondary tax ID (“harcama birimi VKN”si”). If one isn't provided, we will use your VKN as the
secondary ID.
Type: String
Pattern: ^([0-9]{10})$
Required: No
TurkeyAdditionalInfo 1446
AWS Billing and Cost Management API Reference
taxOffice
The tax office where you're registered. You can enter this information as a string. The Tax
Settings API will add this information to your invoice. This parameter is required for business-
to-business (B2B) and business-to-government customers. It's not required for business-to-
consumer (B2C) customers.
Type: String
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:
TurkeyAdditionalInfo 1447
AWS Billing and Cost Management API Reference
UkraineAdditionalInfo
Service: Tax Settings
Contents
ukraineTrnType
Type: String
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
UkraineAdditionalInfo 1448
AWS Billing and Cost Management API Reference
ValidationExceptionField
Service: Tax Settings
The information about the specified parameter in the request that caused an error.
Contents
name
Type: String
Pattern: ^(?!\s*$)[\s\S]+$
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ValidationExceptionField 1449
AWS Billing and Cost Management API Reference
VerificationDetails
Service: Tax Settings
Contents
dateOfBirth
Date of birth to verify your submitted TRN. Use the YYYY-MM-DD format.
Type: String
Pattern: ^(\d{4}-(0[0-9]|1[0-2])-([0-2][0-9]|3[0-1]))$
Required: No
taxRegistrationDocuments
The tax registration document, which is required for specific countries such as Bangladesh,
Kenya, South Korea and Spain.
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
VerificationDetails 1450
AWS Billing and Cost Management API Reference
VietnamAdditionalInfo
Service: Tax Settings
Contents
electronicTransactionCodeNumber
The electronic transaction code number on the tax return document. This field must be
provided for successful API operation.
Type: String
Pattern: ^\d{17}$
Required: No
enterpriseIdentificationNumber
The enterprise identification number for tax registration. This field must be provided for
successful API operation.
Type: String
Pattern: ^(\d{10}|(\d{10}-\d{3}))$
Required: No
paymentVoucherNumber
The payment voucher number on the tax return payment document. This field must be
provided for successful API operation.
Type: String
Pattern: ^(\d{17}|[A-Za-z]{3}\d{13})$
Required: No
paymentVoucherNumberDate
The date on the tax return payment document. This field must be provided for successful API
operation.
VietnamAdditionalInfo 1451
AWS Billing and Cost Management API Reference
Type: String
Pattern: ^(\d{4}-(0[0-9]|1[0-2])-([0-2][0-9]|3[0-1]))$
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
VietnamAdditionalInfo 1452
AWS Billing and Cost Management API Reference
Common Parameters
The following list contains the parameters that all actions use for signing Signature Version 4
requests with a query string. Any action-specific parameters are listed in the topic for that action.
For more information about Signature Version 4, see Signing AWS API requests in the IAM User
Guide.
Action
Type: string
Required: Yes
Version
The API version that the request is written for, expressed in the format YYYY-MM-DD.
Type: string
Required: Yes
X-Amz-Algorithm
The hash algorithm that you used to create the request signature.
Condition: Specify this parameter when you include authentication information in a query
string instead of in the HTTP authorization header.
Type: string
Required: Conditional
X-Amz-Credential
The credential scope value, which is a string that includes your access key, the date, the region
you are targeting, the service you are requesting, and a termination string ("aws4_request").
The value is expressed in the following format: access_key/YYYYMMDD/region/service/
aws4_request.
1453
AWS Billing and Cost Management API Reference
For more information, see Create a signed AWS API request in the IAM User Guide.
Condition: Specify this parameter when you include authentication information in a query
string instead of in the HTTP authorization header.
Type: string
Required: Conditional
X-Amz-Date
The date that is used to create the signature. The format must be ISO 8601 basic format
(YYYYMMDD'T'HHMMSS'Z'). For example, the following date time is a valid X-Amz-Date value:
20120325T120000Z.
Condition: X-Amz-Date is optional for all requests; it can be used to override the date used for
signing requests. If the Date header is specified in the ISO 8601 basic format, X-Amz-Date is not
required. When X-Amz-Date is used, it always overrides the value of the Date header. For more
information, see Elements of an AWS API request signature in the IAM User Guide.
Type: string
Required: Conditional
X-Amz-Security-Token
The temporary security token that was obtained through a call to AWS Security Token Service
(AWS STS). For a list of services that support temporary security credentials from AWS STS, see
AWS services that work with IAM in the IAM User Guide.
Condition: If you're using temporary security credentials from AWS STS, you must include the
security token.
Type: string
Required: Conditional
X-Amz-Signature
Specifies the hex-encoded signature that was calculated from the string to sign and the derived
signing key.
Condition: Specify this parameter when you include authentication information in a query
string instead of in the HTTP authorization header.
1454
AWS Billing and Cost Management API Reference
Type: string
Required: Conditional
X-Amz-SignedHeaders
Specifies all the HTTP headers that were included as part of the canonical request. For more
information about specifying signed headers, see Create a signed AWS API request in the IAM
User Guide.
Condition: Specify this parameter when you include authentication information in a query
string instead of in the HTTP authorization header.
Type: string
Required: Conditional
1455
AWS Billing and Cost Management API Reference
Common Errors
This section lists the errors common to the API actions of all AWS services. For errors specific to an
API action for this service, see the topic for that API action.
AccessDeniedException
The request processing has failed because of an unknown error, exception or failure.
The action or operation requested is invalid. Verify that the action is typed correctly.
The X.509 certificate or AWS access key ID provided does not exist in our records.
1456
AWS Billing and Cost Management API Reference
RequestExpired
The request reached the service more than 15 minutes after the date stamp on the request or
more than 15 minutes after the request expiration date (such as for pre-signed URLs), or the
date stamp on the request is more than 15 minutes in the future.
1457