

# AWS Billing


The following actions are supported by AWS Billing:
+  [AssociateSourceViews](API_billing_AssociateSourceViews.md) 
+  [CreateBillingView](API_billing_CreateBillingView.md) 
+  [DeleteBillingView](API_billing_DeleteBillingView.md) 
+  [DisassociateSourceViews](API_billing_DisassociateSourceViews.md) 
+  [GetBillingView](API_billing_GetBillingView.md) 
+  [GetResourcePolicy](API_billing_GetResourcePolicy.md) 
+  [ListBillingViews](API_billing_ListBillingViews.md) 
+  [ListSourceViewsForBillingView](API_billing_ListSourceViewsForBillingView.md) 
+  [ListTagsForResource](API_billing_ListTagsForResource.md) 
+  [TagResource](API_billing_TagResource.md) 
+  [UntagResource](API_billing_UntagResource.md) 
+  [UpdateBillingView](API_billing_UpdateBillingView.md) 

# AssociateSourceViews


 Associates one or more source billing views with an existing billing view. This allows creating aggregate billing views that combine data from multiple sources. 

## Request Syntax


```
{
   "arn": "string",
   "sourceViews": [ "string" ]
}
```

## Request Parameters


For information about the parameters that are common to all actions, see [Common Parameters](CommonParameters.md).

The request accepts the following data in JSON format.

 ** [arn](#API_billing_AssociateSourceViews_RequestSyntax) **   <a name="awscostmanagement-billing_AssociateSourceViews-request-arn"></a>
 The Amazon Resource Name (ARN) of the billing view to associate source views with.   
Type: String  
Pattern: `arn:aws[a-z-]*:(billing)::[0-9]{12}:billingview/[a-zA-Z0-9/:_\+=\.\-@]{0,75}[a-zA-Z0-9]`   
Required: Yes

 ** [sourceViews](#API_billing_AssociateSourceViews_RequestSyntax) **   <a name="awscostmanagement-billing_AssociateSourceViews-request-sourceViews"></a>
 A list of ARNs of the source billing views to associate.   
Type: Array of strings  
Array Members: Minimum number of 1 item. Maximum number of 10 items.  
Pattern: `arn:aws[a-z-]*:(billing)::[0-9]{12}:billingview/[a-zA-Z0-9/:_\+=\.\-@]{0,75}[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.

The following data is returned in JSON format by the service.

 ** [arn](#API_billing_AssociateSourceViews_ResponseSyntax) **   <a name="awscostmanagement-billing_AssociateSourceViews-response-arn"></a>
 The ARN of the billing view that the source views were associated with.   
Type: String  
Pattern: `arn:aws[a-z-]*:(billing)::[0-9]{12}:billingview/[a-zA-Z0-9/:_\+=\.\-@]{0,75}[a-zA-Z0-9]` 

## Errors


For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** AccessDeniedException **   
You don't have sufficient access to perform this action.  
HTTP Status Code: 400

 ** BillingViewHealthStatusException **   
 Exception thrown when a billing view's health status prevents an operation from being performed. This may occur if the billing view is in a state other than `HEALTHY`.  
HTTP Status Code: 400

 ** ConflictException **   
 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.     
 ** resourceId **   
 The identifier for the service resource associated with the request.   
 ** resourceType **   
 The type of resource associated with the request. 
HTTP Status Code: 400

 ** InternalServerException **   
The request processing failed because of an unknown error, exception, or failure.   
HTTP Status Code: 500

 ** ResourceNotFoundException **   
 The specified ARN in the request doesn't exist.     
 ** resourceId **   
 Value is a list of resource IDs that were not found.   
 ** resourceType **   
 Value is the type of resource that was not found. 
HTTP Status Code: 400

 ** ServiceQuotaExceededException **   
 You've reached the limit of resources you can create, or exceeded the size of an individual resource.     
 ** quotaCode **   
 The container for the `quotaCode`.   
 ** resourceId **   
 The ID of the resource.   
 ** resourceType **   
 The type of AWS resource.   
 ** serviceCode **   
 The container for the `serviceCode`. 
HTTP Status Code: 400

 ** ThrottlingException **   
The request was denied due to request throttling.   
HTTP Status Code: 400

 ** ValidationException **   
The input fails to satisfy the constraints specified by an AWS service.     
 ** fieldList **   
The input fails to satisfy the constraints specified by an AWS service.  
 ** reason **   
The input fails to satisfy the constraints specified by an AWS service.
HTTP Status Code: 400

## See Also


For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/billing-2023-09-07/AssociateSourceViews) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/billing-2023-09-07/AssociateSourceViews) 
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/billing-2023-09-07/AssociateSourceViews) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/billing-2023-09-07/AssociateSourceViews) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/billing-2023-09-07/AssociateSourceViews) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/billing-2023-09-07/AssociateSourceViews) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/billing-2023-09-07/AssociateSourceViews) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/billing-2023-09-07/AssociateSourceViews) 
+  [AWS SDK for Python](https://docs.aws.amazon.com/goto/boto3/billing-2023-09-07/AssociateSourceViews) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/billing-2023-09-07/AssociateSourceViews) 

# CreateBillingView


 Creates a billing view with the specified billing view attributes. 

## Request Syntax


```
{
   "clientToken": "string",
   "dataFilterExpression": { 
      "costCategories": { 
         "key": "string",
         "values": [ "string" ]
      },
      "dimensions": { 
         "key": "string",
         "values": [ "string" ]
      },
      "tags": { 
         "key": "string",
         "values": [ "string" ]
      },
      "timeRange": { 
         "beginDateInclusive": number,
         "endDateInclusive": number
      }
   },
   "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](CommonParameters.md).

The request accepts the following data in JSON format.

 ** [clientToken](#API_billing_CreateBillingView_RequestSyntax) **   <a name="awscostmanagement-billing_CreateBillingView-request-clientToken"></a>
A unique, case-sensitive identifier you specify to ensure idempotency of the request. Idempotency ensures that an API request completes no more than one time. If the original request completes successfully, any subsequent retries complete successfully without performing any further actions with an idempotent request.   
Type: String  
Pattern: `[a-zA-Z0-9-]+`   
Required: No

 ** [dataFilterExpression](#API_billing_CreateBillingView_RequestSyntax) **   <a name="awscostmanagement-billing_CreateBillingView-request-dataFilterExpression"></a>
 See [Expression](https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_billing_Expression.html). Billing view only supports `LINKED_ACCOUNT`, `Tags`, and `CostCategories`.   
Type: [Expression](API_billing_Expression.md) object  
Required: No

 ** [description](#API_billing_CreateBillingView_RequestSyntax) **   <a name="awscostmanagement-billing_CreateBillingView-request-description"></a>
 The description of the billing view.   
Type: String  
Length Constraints: Minimum length of 0. Maximum length of 1024.  
Pattern: `([ a-zA-Z0-9_\+=\.\-@]+)?`   
Required: No

 ** [name](#API_billing_CreateBillingView_RequestSyntax) **   <a name="awscostmanagement-billing_CreateBillingView-request-name"></a>
 The name of the billing view.   
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 128.  
Pattern: `[ a-zA-Z0-9_\+=\.\-@]+`   
Required: Yes

 ** [resourceTags](#API_billing_CreateBillingView_RequestSyntax) **   <a name="awscostmanagement-billing_CreateBillingView-request-resourceTags"></a>
A list of key value map specifying tags associated to the billing view being created.   
Type: Array of [ResourceTag](API_billing_ResourceTag.md) objects  
Array Members: Minimum number of 0 items. Maximum number of 200 items.  
Required: No

 ** [sourceViews](#API_billing_CreateBillingView_RequestSyntax) **   <a name="awscostmanagement-billing_CreateBillingView-request-sourceViews"></a>
A list of billing views used as the data source for the custom billing view.  
Type: Array of strings  
Array Members: Minimum number of 1 item. Maximum number of 10 items.  
Pattern: `arn:aws[a-z-]*:(billing)::[0-9]{12}:billingview/[a-zA-Z0-9/:_\+=\.\-@]{0,75}[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.

The following data is returned in JSON format by the service.

 ** [arn](#API_billing_CreateBillingView_ResponseSyntax) **   <a name="awscostmanagement-billing_CreateBillingView-response-arn"></a>
 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,75}[a-zA-Z0-9]` 

 ** [createdAt](#API_billing_CreateBillingView_ResponseSyntax) **   <a name="awscostmanagement-billing_CreateBillingView-response-createdAt"></a>
 The time when the billing view was created.   
Type: Timestamp

## Errors


For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** AccessDeniedException **   
You don't have sufficient access to perform this action.  
HTTP Status Code: 400

 ** BillingViewHealthStatusException **   
 Exception thrown when a billing view's health status prevents an operation from being performed. This may occur if the billing view is in a state other than `HEALTHY`.  
HTTP Status Code: 400

 ** ConflictException **   
 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.     
 ** resourceId **   
 The identifier for the service resource associated with the request.   
 ** resourceType **   
 The type of resource associated with the request. 
HTTP Status Code: 400

 ** InternalServerException **   
The request processing failed because of an unknown error, exception, or failure.   
HTTP Status Code: 500

 ** ResourceNotFoundException **   
 The specified ARN in the request doesn't exist.     
 ** resourceId **   
 Value is a list of resource IDs that were not found.   
 ** resourceType **   
 Value is the type of resource that was not found. 
HTTP Status Code: 400

 ** ServiceQuotaExceededException **   
 You've reached the limit of resources you can create, or exceeded the size of an individual resource.     
 ** quotaCode **   
 The container for the `quotaCode`.   
 ** resourceId **   
 The ID of the resource.   
 ** resourceType **   
 The type of AWS resource.   
 ** serviceCode **   
 The container for the `serviceCode`. 
HTTP Status Code: 400

 ** ThrottlingException **   
The request was denied due to request throttling.   
HTTP Status Code: 400

 ** ValidationException **   
The input fails to satisfy the constraints specified by an AWS service.     
 ** fieldList **   
The input fails to satisfy the constraints specified by an AWS service.  
 ** reason **   
The input fails to satisfy the constraints specified by an AWS service.
HTTP Status Code: 400

## See Also


For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/billing-2023-09-07/CreateBillingView) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/billing-2023-09-07/CreateBillingView) 
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/billing-2023-09-07/CreateBillingView) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/billing-2023-09-07/CreateBillingView) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/billing-2023-09-07/CreateBillingView) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/billing-2023-09-07/CreateBillingView) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/billing-2023-09-07/CreateBillingView) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/billing-2023-09-07/CreateBillingView) 
+  [AWS SDK for Python](https://docs.aws.amazon.com/goto/boto3/billing-2023-09-07/CreateBillingView) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/billing-2023-09-07/CreateBillingView) 

# DeleteBillingView


Deletes the specified billing view.

## Request Syntax


```
{
   "arn": "string",
   "force": boolean
}
```

## Request Parameters


For information about the parameters that are common to all actions, see [Common Parameters](CommonParameters.md).

The request accepts the following data in JSON format.

 ** [arn](#API_billing_DeleteBillingView_RequestSyntax) **   <a name="awscostmanagement-billing_DeleteBillingView-request-arn"></a>
 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,75}[a-zA-Z0-9]`   
Required: Yes

 ** [force](#API_billing_DeleteBillingView_RequestSyntax) **   <a name="awscostmanagement-billing_DeleteBillingView-request-force"></a>
 If set to true, forces deletion of the billing view even if it has derived resources (e.g. other billing views or budgets). Use with caution as this may break dependent resources.   
Type: Boolean  
Required: No

## Response Syntax


```
{
   "arn": "string"
}
```

## Response Elements


If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

 ** [arn](#API_billing_DeleteBillingView_ResponseSyntax) **   <a name="awscostmanagement-billing_DeleteBillingView-response-arn"></a>
 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,75}[a-zA-Z0-9]` 

## Errors


For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** AccessDeniedException **   
You don't have sufficient access to perform this action.  
HTTP Status Code: 400

 ** ConflictException **   
 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.     
 ** resourceId **   
 The identifier for the service resource associated with the request.   
 ** resourceType **   
 The type of resource associated with the request. 
HTTP Status Code: 400

 ** InternalServerException **   
The request processing failed because of an unknown error, exception, or failure.   
HTTP Status Code: 500

 ** ThrottlingException **   
The request was denied due to request throttling.   
HTTP Status Code: 400

 ** ValidationException **   
The input fails to satisfy the constraints specified by an AWS service.     
 ** fieldList **   
The input fails to satisfy the constraints specified by an AWS service.  
 ** reason **   
The input fails to satisfy the constraints specified by an AWS service.
HTTP Status Code: 400

## See Also


For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/billing-2023-09-07/DeleteBillingView) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/billing-2023-09-07/DeleteBillingView) 
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/billing-2023-09-07/DeleteBillingView) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/billing-2023-09-07/DeleteBillingView) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/billing-2023-09-07/DeleteBillingView) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/billing-2023-09-07/DeleteBillingView) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/billing-2023-09-07/DeleteBillingView) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/billing-2023-09-07/DeleteBillingView) 
+  [AWS SDK for Python](https://docs.aws.amazon.com/goto/boto3/billing-2023-09-07/DeleteBillingView) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/billing-2023-09-07/DeleteBillingView) 

# DisassociateSourceViews


 Removes the association between one or more source billing views and an existing billing view. This allows modifying the composition of aggregate billing views. 

## Request Syntax


```
{
   "arn": "string",
   "sourceViews": [ "string" ]
}
```

## Request Parameters


For information about the parameters that are common to all actions, see [Common Parameters](CommonParameters.md).

The request accepts the following data in JSON format.

 ** [arn](#API_billing_DisassociateSourceViews_RequestSyntax) **   <a name="awscostmanagement-billing_DisassociateSourceViews-request-arn"></a>
 The Amazon Resource Name (ARN) of the billing view to disassociate source views from.   
Type: String  
Pattern: `arn:aws[a-z-]*:(billing)::[0-9]{12}:billingview/[a-zA-Z0-9/:_\+=\.\-@]{0,75}[a-zA-Z0-9]`   
Required: Yes

 ** [sourceViews](#API_billing_DisassociateSourceViews_RequestSyntax) **   <a name="awscostmanagement-billing_DisassociateSourceViews-request-sourceViews"></a>
 A list of ARNs of the source billing views to disassociate.   
Type: Array of strings  
Array Members: Minimum number of 1 item. Maximum number of 10 items.  
Pattern: `arn:aws[a-z-]*:(billing)::[0-9]{12}:billingview/[a-zA-Z0-9/:_\+=\.\-@]{0,75}[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.

The following data is returned in JSON format by the service.

 ** [arn](#API_billing_DisassociateSourceViews_ResponseSyntax) **   <a name="awscostmanagement-billing_DisassociateSourceViews-response-arn"></a>
 The ARN of the billing view that the source views were disassociated from.   
Type: String  
Pattern: `arn:aws[a-z-]*:(billing)::[0-9]{12}:billingview/[a-zA-Z0-9/:_\+=\.\-@]{0,75}[a-zA-Z0-9]` 

## Errors


For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** AccessDeniedException **   
You don't have sufficient access to perform this action.  
HTTP Status Code: 400

 ** BillingViewHealthStatusException **   
 Exception thrown when a billing view's health status prevents an operation from being performed. This may occur if the billing view is in a state other than `HEALTHY`.  
HTTP Status Code: 400

 ** ConflictException **   
 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.     
 ** resourceId **   
 The identifier for the service resource associated with the request.   
 ** resourceType **   
 The type of resource associated with the request. 
HTTP Status Code: 400

 ** InternalServerException **   
The request processing failed because of an unknown error, exception, or failure.   
HTTP Status Code: 500

 ** ResourceNotFoundException **   
 The specified ARN in the request doesn't exist.     
 ** resourceId **   
 Value is a list of resource IDs that were not found.   
 ** resourceType **   
 Value is the type of resource that was not found. 
HTTP Status Code: 400

 ** ThrottlingException **   
The request was denied due to request throttling.   
HTTP Status Code: 400

 ** ValidationException **   
The input fails to satisfy the constraints specified by an AWS service.     
 ** fieldList **   
The input fails to satisfy the constraints specified by an AWS service.  
 ** reason **   
The input fails to satisfy the constraints specified by an AWS service.
HTTP Status Code: 400

## See Also


For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/billing-2023-09-07/DisassociateSourceViews) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/billing-2023-09-07/DisassociateSourceViews) 
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/billing-2023-09-07/DisassociateSourceViews) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/billing-2023-09-07/DisassociateSourceViews) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/billing-2023-09-07/DisassociateSourceViews) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/billing-2023-09-07/DisassociateSourceViews) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/billing-2023-09-07/DisassociateSourceViews) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/billing-2023-09-07/DisassociateSourceViews) 
+  [AWS SDK for Python](https://docs.aws.amazon.com/goto/boto3/billing-2023-09-07/DisassociateSourceViews) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/billing-2023-09-07/DisassociateSourceViews) 

# GetBillingView


Returns the metadata associated to the specified billing view ARN. 

## Request Syntax


```
{
   "arn": "string"
}
```

## Request Parameters


For information about the parameters that are common to all actions, see [Common Parameters](CommonParameters.md).

The request accepts the following data in JSON format.

 ** [arn](#API_billing_GetBillingView_RequestSyntax) **   <a name="awscostmanagement-billing_GetBillingView-request-arn"></a>
 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,75}[a-zA-Z0-9]`   
Required: Yes

## Response Syntax


```
{
   "billingView": { 
      "arn": "string",
      "billingViewType": "string",
      "createdAt": number,
      "dataFilterExpression": { 
         "costCategories": { 
            "key": "string",
            "values": [ "string" ]
         },
         "dimensions": { 
            "key": "string",
            "values": [ "string" ]
         },
         "tags": { 
            "key": "string",
            "values": [ "string" ]
         },
         "timeRange": { 
            "beginDateInclusive": number,
            "endDateInclusive": number
         }
      },
      "derivedViewCount": number,
      "description": "string",
      "healthStatus": { 
         "statusCode": "string",
         "statusReasons": [ "string" ]
      },
      "name": "string",
      "ownerAccountId": "string",
      "sourceAccountId": "string",
      "sourceViewCount": number,
      "updatedAt": number,
      "viewDefinitionLastUpdatedAt": number
   }
}
```

## Response Elements


If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

 ** [billingView](#API_billing_GetBillingView_ResponseSyntax) **   <a name="awscostmanagement-billing_GetBillingView-response-billingView"></a>
The billing view element associated with the specified ARN.   
Type: [BillingViewElement](API_billing_BillingViewElement.md) object

## Errors


For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** AccessDeniedException **   
You don't have sufficient access to perform this action.  
HTTP Status Code: 400

 ** InternalServerException **   
The request processing failed because of an unknown error, exception, or failure.   
HTTP Status Code: 500

 ** ResourceNotFoundException **   
 The specified ARN in the request doesn't exist.     
 ** resourceId **   
 Value is a list of resource IDs that were not found.   
 ** resourceType **   
 Value is the type of resource that was not found. 
HTTP Status Code: 400

 ** ThrottlingException **   
The request was denied due to request throttling.   
HTTP Status Code: 400

 ** ValidationException **   
The input fails to satisfy the constraints specified by an AWS service.     
 ** fieldList **   
The input fails to satisfy the constraints specified by an AWS service.  
 ** reason **   
The input fails to satisfy the constraints specified by an AWS service.
HTTP Status Code: 400

## See Also


For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/billing-2023-09-07/GetBillingView) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/billing-2023-09-07/GetBillingView) 
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/billing-2023-09-07/GetBillingView) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/billing-2023-09-07/GetBillingView) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/billing-2023-09-07/GetBillingView) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/billing-2023-09-07/GetBillingView) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/billing-2023-09-07/GetBillingView) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/billing-2023-09-07/GetBillingView) 
+  [AWS SDK for Python](https://docs.aws.amazon.com/goto/boto3/billing-2023-09-07/GetBillingView) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/billing-2023-09-07/GetBillingView) 

# GetResourcePolicy


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](CommonParameters.md).

The request accepts the following data in JSON format.

 ** [resourceArn](#API_billing_GetResourcePolicy_RequestSyntax) **   <a name="awscostmanagement-billing_GetResourcePolicy-request-resourceArn"></a>
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.

The following data is returned in JSON format by the service.

 ** [policy](#API_billing_GetResourcePolicy_ResponseSyntax) **   <a name="awscostmanagement-billing_GetResourcePolicy-response-policy"></a>
The resource-based policy document attached to the resource in `JSON` format.   
Type: String

 ** [resourceArn](#API_billing_GetResourcePolicy_ResponseSyntax) **   <a name="awscostmanagement-billing_GetResourcePolicy-response-resourceArn"></a>
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 Error Types](CommonErrors.md).

 ** AccessDeniedException **   
You don't have sufficient access to perform this action.  
HTTP Status Code: 400

 ** InternalServerException **   
The request processing failed because of an unknown error, exception, or failure.   
HTTP Status Code: 500

 ** ResourceNotFoundException **   
 The specified ARN in the request doesn't exist.     
 ** resourceId **   
 Value is a list of resource IDs that were not found.   
 ** resourceType **   
 Value is the type of resource that was not found. 
HTTP Status Code: 400

 ** ThrottlingException **   
The request was denied due to request throttling.   
HTTP Status Code: 400

 ** ValidationException **   
The input fails to satisfy the constraints specified by an AWS service.     
 ** fieldList **   
The input fails to satisfy the constraints specified by an AWS service.  
 ** reason **   
The input fails to satisfy the constraints specified by an AWS service.
HTTP Status Code: 400

## See Also


For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/billing-2023-09-07/GetResourcePolicy) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/billing-2023-09-07/GetResourcePolicy) 
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/billing-2023-09-07/GetResourcePolicy) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/billing-2023-09-07/GetResourcePolicy) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/billing-2023-09-07/GetResourcePolicy) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/billing-2023-09-07/GetResourcePolicy) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/billing-2023-09-07/GetResourcePolicy) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/billing-2023-09-07/GetResourcePolicy) 
+  [AWS SDK for Python](https://docs.aws.amazon.com/goto/boto3/billing-2023-09-07/GetResourcePolicy) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/billing-2023-09-07/GetResourcePolicy) 

# ListBillingViews


Lists the billing views available for a given time period. 

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,
   "names": [ 
      { 
         "searchOption": "string",
         "searchValue": "string"
      }
   ],
   "nextToken": "string",
   "ownerAccountId": "string",
   "sourceAccountId": "string"
}
```

## Request Parameters


For information about the parameters that are common to all actions, see [Common Parameters](CommonParameters.md).

The request accepts the following data in JSON format.

 ** [activeTimeRange](#API_billing_ListBillingViews_RequestSyntax) **   <a name="awscostmanagement-billing_ListBillingViews-request-activeTimeRange"></a>
 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.   
Type: [ActiveTimeRange](API_billing_ActiveTimeRange.md) object  
Required: No

 ** [arns](#API_billing_ListBillingViews_RequestSyntax) **   <a name="awscostmanagement-billing_ListBillingViews-request-arns"></a>
The Amazon Resource Name (ARN) that can be used to uniquely identify the billing view.   
Type: Array of strings  
Array Members: Minimum number of 0 items. Maximum number of 10 items.  
Pattern: `arn:aws[a-z-]*:(billing)::[0-9]{12}:billingview/[a-zA-Z0-9/:_\+=\.\-@]{0,75}[a-zA-Z0-9]`   
Required: No

 ** [billingViewTypes](#API_billing_ListBillingViews_RequestSyntax) **   <a name="awscostmanagement-billing_ListBillingViews-request-billingViewTypes"></a>
The type of billing view.  
Type: Array of strings  
Valid Values: `PRIMARY | BILLING_GROUP | CUSTOM | BILLING_TRANSFER | BILLING_TRANSFER_SHOWBACK`   
Required: No

 ** [maxResults](#API_billing_ListBillingViews_RequestSyntax) **   <a name="awscostmanagement-billing_ListBillingViews-request-maxResults"></a>
The maximum number of billing views to retrieve. Default is 100.   
Type: Integer  
Valid Range: Minimum value of 1. Maximum value of 100.  
Required: No

 ** [names](#API_billing_ListBillingViews_RequestSyntax) **   <a name="awscostmanagement-billing_ListBillingViews-request-names"></a>
 Filters the list of billing views by name. You can specify search criteria to match billing view names based on the search option provided.   
Type: Array of [StringSearch](API_billing_StringSearch.md) objects  
Array Members: Fixed number of 1 item.  
Required: No

 ** [nextToken](#API_billing_ListBillingViews_RequestSyntax) **   <a name="awscostmanagement-billing_ListBillingViews-request-nextToken"></a>
The pagination token that is used on subsequent calls to list billing views.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 2047.  
Required: No

 ** [ownerAccountId](#API_billing_ListBillingViews_RequestSyntax) **   <a name="awscostmanagement-billing_ListBillingViews-request-ownerAccountId"></a>
 The list of owners of the billing view.   
Type: String  
Pattern: `[0-9]{12}`   
Required: No

 ** [sourceAccountId](#API_billing_ListBillingViews_RequestSyntax) **   <a name="awscostmanagement-billing_ListBillingViews-request-sourceAccountId"></a>
 Filters the results to include only billing views that use the specified account as a source.   
Type: String  
Pattern: `[0-9]{12}`   
Required: No

## Response Syntax


```
{
   "billingViews": [ 
      { 
         "arn": "string",
         "billingViewType": "string",
         "description": "string",
         "healthStatus": { 
            "statusCode": "string",
            "statusReasons": [ "string" ]
         },
         "name": "string",
         "ownerAccountId": "string",
         "sourceAccountId": "string"
      }
   ],
   "nextToken": "string"
}
```

## Response Elements


If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

 ** [billingViews](#API_billing_ListBillingViews_ResponseSyntax) **   <a name="awscostmanagement-billing_ListBillingViews-response-billingViews"></a>
A list of `BillingViewListElement` retrieved.  
Type: Array of [BillingViewListElement](API_billing_BillingViewListElement.md) objects

 ** [nextToken](#API_billing_ListBillingViews_ResponseSyntax) **   <a name="awscostmanagement-billing_ListBillingViews-response-nextToken"></a>
The pagination token to use on subsequent calls to list billing views.   
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 2047.

## Errors


For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** AccessDeniedException **   
You don't have sufficient access to perform this action.  
HTTP Status Code: 400

 ** InternalServerException **   
The request processing failed because of an unknown error, exception, or failure.   
HTTP Status Code: 500

 ** ThrottlingException **   
The request was denied due to request throttling.   
HTTP Status Code: 400

 ** ValidationException **   
The input fails to satisfy the constraints specified by an AWS service.     
 ** fieldList **   
The input fails to satisfy the constraints specified by an AWS service.  
 ** reason **   
The input fails to satisfy the constraints specified by an AWS service.
HTTP Status Code: 400

## See Also


For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/billing-2023-09-07/ListBillingViews) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/billing-2023-09-07/ListBillingViews) 
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/billing-2023-09-07/ListBillingViews) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/billing-2023-09-07/ListBillingViews) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/billing-2023-09-07/ListBillingViews) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/billing-2023-09-07/ListBillingViews) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/billing-2023-09-07/ListBillingViews) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/billing-2023-09-07/ListBillingViews) 
+  [AWS SDK for Python](https://docs.aws.amazon.com/goto/boto3/billing-2023-09-07/ListBillingViews) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/billing-2023-09-07/ListBillingViews) 

# ListSourceViewsForBillingView


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](CommonParameters.md).

The request accepts the following data in JSON format.

 ** [arn](#API_billing_ListSourceViewsForBillingView_RequestSyntax) **   <a name="awscostmanagement-billing_ListSourceViewsForBillingView-request-arn"></a>
 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,75}[a-zA-Z0-9]`   
Required: Yes

 ** [maxResults](#API_billing_ListSourceViewsForBillingView_RequestSyntax) **   <a name="awscostmanagement-billing_ListSourceViewsForBillingView-request-maxResults"></a>
 The number of entries a paginated response contains.   
Type: Integer  
Valid Range: Minimum value of 1. Maximum value of 100.  
Required: No

 ** [nextToken](#API_billing_ListSourceViewsForBillingView_RequestSyntax) **   <a name="awscostmanagement-billing_ListSourceViewsForBillingView-request-nextToken"></a>
 The pagination token that is used on subsequent calls to list billing views.   
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 2047.  
Required: No

## Response Syntax


```
{
   "nextToken": "string",
   "sourceViews": [ "string" ]
}
```

## Response Elements


If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

 ** [nextToken](#API_billing_ListSourceViewsForBillingView_ResponseSyntax) **   <a name="awscostmanagement-billing_ListSourceViewsForBillingView-response-nextToken"></a>
 The pagination token that is used on subsequent calls to list billing views.   
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 2047.

 ** [sourceViews](#API_billing_ListSourceViewsForBillingView_ResponseSyntax) **   <a name="awscostmanagement-billing_ListSourceViewsForBillingView-response-sourceViews"></a>
A list of billing views used as the data source for the custom billing view.   
Type: Array of strings  
Array Members: Minimum number of 1 item. Maximum number of 10 items.  
Pattern: `arn:aws[a-z-]*:(billing)::[0-9]{12}:billingview/[a-zA-Z0-9/:_\+=\.\-@]{0,75}[a-zA-Z0-9]` 

## Errors


For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** AccessDeniedException **   
You don't have sufficient access to perform this action.  
HTTP Status Code: 400

 ** InternalServerException **   
The request processing failed because of an unknown error, exception, or failure.   
HTTP Status Code: 500

 ** ResourceNotFoundException **   
 The specified ARN in the request doesn't exist.     
 ** resourceId **   
 Value is a list of resource IDs that were not found.   
 ** resourceType **   
 Value is the type of resource that was not found. 
HTTP Status Code: 400

 ** ThrottlingException **   
The request was denied due to request throttling.   
HTTP Status Code: 400

 ** ValidationException **   
The input fails to satisfy the constraints specified by an AWS service.     
 ** fieldList **   
The input fails to satisfy the constraints specified by an AWS service.  
 ** reason **   
The input fails to satisfy the constraints specified by an AWS service.
HTTP Status Code: 400

## See Also


For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/billing-2023-09-07/ListSourceViewsForBillingView) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/billing-2023-09-07/ListSourceViewsForBillingView) 
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/billing-2023-09-07/ListSourceViewsForBillingView) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/billing-2023-09-07/ListSourceViewsForBillingView) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/billing-2023-09-07/ListSourceViewsForBillingView) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/billing-2023-09-07/ListSourceViewsForBillingView) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/billing-2023-09-07/ListSourceViewsForBillingView) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/billing-2023-09-07/ListSourceViewsForBillingView) 
+  [AWS SDK for Python](https://docs.aws.amazon.com/goto/boto3/billing-2023-09-07/ListSourceViewsForBillingView) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/billing-2023-09-07/ListSourceViewsForBillingView) 

# ListTagsForResource


Lists tags associated with the billing view resource. 

## Request Syntax


```
{
   "resourceArn": "string"
}
```

## Request Parameters


For information about the parameters that are common to all actions, see [Common Parameters](CommonParameters.md).

The request accepts the following data in JSON format.

 ** [resourceArn](#API_billing_ListTagsForResource_RequestSyntax) **   <a name="awscostmanagement-billing_ListTagsForResource-request-resourceArn"></a>
 The Amazon Resource Name (ARN) of the resource.   
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.

The following data is returned in JSON format by the service.

 ** [resourceTags](#API_billing_ListTagsForResource_ResponseSyntax) **   <a name="awscostmanagement-billing_ListTagsForResource-response-resourceTags"></a>
 A list of tag key value pairs that are associated with the resource.   
Type: Array of [ResourceTag](API_billing_ResourceTag.md) objects  
Array Members: Minimum number of 0 items. Maximum number of 200 items.

## Errors


For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** AccessDeniedException **   
You don't have sufficient access to perform this action.  
HTTP Status Code: 400

 ** InternalServerException **   
The request processing failed because of an unknown error, exception, or failure.   
HTTP Status Code: 500

 ** ResourceNotFoundException **   
 The specified ARN in the request doesn't exist.     
 ** resourceId **   
 Value is a list of resource IDs that were not found.   
 ** resourceType **   
 Value is the type of resource that was not found. 
HTTP Status Code: 400

 ** ThrottlingException **   
The request was denied due to request throttling.   
HTTP Status Code: 400

 ** ValidationException **   
The input fails to satisfy the constraints specified by an AWS service.     
 ** fieldList **   
The input fails to satisfy the constraints specified by an AWS service.  
 ** reason **   
The input fails to satisfy the constraints specified by an AWS service.
HTTP Status Code: 400

## See Also


For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/billing-2023-09-07/ListTagsForResource) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/billing-2023-09-07/ListTagsForResource) 
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/billing-2023-09-07/ListTagsForResource) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/billing-2023-09-07/ListTagsForResource) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/billing-2023-09-07/ListTagsForResource) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/billing-2023-09-07/ListTagsForResource) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/billing-2023-09-07/ListTagsForResource) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/billing-2023-09-07/ListTagsForResource) 
+  [AWS SDK for Python](https://docs.aws.amazon.com/goto/boto3/billing-2023-09-07/ListTagsForResource) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/billing-2023-09-07/ListTagsForResource) 

# TagResource


 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](CommonParameters.md).

The request accepts the following data in JSON format.

 ** [resourceArn](#API_billing_TagResource_RequestSyntax) **   <a name="awscostmanagement-billing_TagResource-request-resourceArn"></a>
 The Amazon Resource Name (ARN) of the resource.   
Type: String  
Pattern: `arn:aws[a-z-]*:(billing)::[0-9]{12}:[a-zA-Z0-9/:_\+=\.\@-]{0,70}[a-zA-Z0-9]`   
Required: Yes

 ** [resourceTags](#API_billing_TagResource_RequestSyntax) **   <a name="awscostmanagement-billing_TagResource-request-resourceTags"></a>
 A list of tag key value pairs that are associated with the resource.   
Type: Array of [ResourceTag](API_billing_ResourceTag.md) objects  
Array Members: Minimum number of 0 items. Maximum number of 200 items.  
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 Error Types](CommonErrors.md).

 ** AccessDeniedException **   
You don't have sufficient access to perform this action.  
HTTP Status Code: 400

 ** InternalServerException **   
The request processing failed because of an unknown error, exception, or failure.   
HTTP Status Code: 500

 ** ResourceNotFoundException **   
 The specified ARN in the request doesn't exist.     
 ** resourceId **   
 Value is a list of resource IDs that were not found.   
 ** resourceType **   
 Value is the type of resource that was not found. 
HTTP Status Code: 400

 ** ThrottlingException **   
The request was denied due to request throttling.   
HTTP Status Code: 400

 ** ValidationException **   
The input fails to satisfy the constraints specified by an AWS service.     
 ** fieldList **   
The input fails to satisfy the constraints specified by an AWS service.  
 ** reason **   
The input fails to satisfy the constraints specified by an AWS service.
HTTP Status Code: 400

## See Also


For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/billing-2023-09-07/TagResource) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/billing-2023-09-07/TagResource) 
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/billing-2023-09-07/TagResource) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/billing-2023-09-07/TagResource) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/billing-2023-09-07/TagResource) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/billing-2023-09-07/TagResource) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/billing-2023-09-07/TagResource) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/billing-2023-09-07/TagResource) 
+  [AWS SDK for Python](https://docs.aws.amazon.com/goto/boto3/billing-2023-09-07/TagResource) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/billing-2023-09-07/TagResource) 

# UntagResource


 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](CommonParameters.md).

The request accepts the following data in JSON format.

 ** [resourceArn](#API_billing_UntagResource_RequestSyntax) **   <a name="awscostmanagement-billing_UntagResource-request-resourceArn"></a>
 The Amazon Resource Name (ARN) of the resource.   
Type: String  
Pattern: `arn:aws[a-z-]*:(billing)::[0-9]{12}:[a-zA-Z0-9/:_\+=\.\@-]{0,70}[a-zA-Z0-9]`   
Required: Yes

 ** [resourceTagKeys](#API_billing_UntagResource_RequestSyntax) **   <a name="awscostmanagement-billing_UntagResource-request-resourceTagKeys"></a>
 A list of tag key value pairs that are associated with the resource.   
Type: Array of strings  
Array Members: Minimum number of 0 items. Maximum number of 200 items.  
Length Constraints: Minimum length of 1. Maximum length of 128.  
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 Error Types](CommonErrors.md).

 ** AccessDeniedException **   
You don't have sufficient access to perform this action.  
HTTP Status Code: 400

 ** InternalServerException **   
The request processing failed because of an unknown error, exception, or failure.   
HTTP Status Code: 500

 ** ResourceNotFoundException **   
 The specified ARN in the request doesn't exist.     
 ** resourceId **   
 Value is a list of resource IDs that were not found.   
 ** resourceType **   
 Value is the type of resource that was not found. 
HTTP Status Code: 400

 ** ThrottlingException **   
The request was denied due to request throttling.   
HTTP Status Code: 400

 ** ValidationException **   
The input fails to satisfy the constraints specified by an AWS service.     
 ** fieldList **   
The input fails to satisfy the constraints specified by an AWS service.  
 ** reason **   
The input fails to satisfy the constraints specified by an AWS service.
HTTP Status Code: 400

## See Also


For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/billing-2023-09-07/UntagResource) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/billing-2023-09-07/UntagResource) 
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/billing-2023-09-07/UntagResource) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/billing-2023-09-07/UntagResource) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/billing-2023-09-07/UntagResource) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/billing-2023-09-07/UntagResource) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/billing-2023-09-07/UntagResource) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/billing-2023-09-07/UntagResource) 
+  [AWS SDK for Python](https://docs.aws.amazon.com/goto/boto3/billing-2023-09-07/UntagResource) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/billing-2023-09-07/UntagResource) 

# UpdateBillingView


An API to update the attributes of the billing view. 

## Request Syntax


```
{
   "arn": "string",
   "dataFilterExpression": { 
      "costCategories": { 
         "key": "string",
         "values": [ "string" ]
      },
      "dimensions": { 
         "key": "string",
         "values": [ "string" ]
      },
      "tags": { 
         "key": "string",
         "values": [ "string" ]
      },
      "timeRange": { 
         "beginDateInclusive": number,
         "endDateInclusive": number
      }
   },
   "description": "string",
   "name": "string"
}
```

## Request Parameters


For information about the parameters that are common to all actions, see [Common Parameters](CommonParameters.md).

The request accepts the following data in JSON format.

 ** [arn](#API_billing_UpdateBillingView_RequestSyntax) **   <a name="awscostmanagement-billing_UpdateBillingView-request-arn"></a>
 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,75}[a-zA-Z0-9]`   
Required: Yes

 ** [dataFilterExpression](#API_billing_UpdateBillingView_RequestSyntax) **   <a name="awscostmanagement-billing_UpdateBillingView-request-dataFilterExpression"></a>
See [Expression](https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_billing_Expression.html). Billing view only supports `LINKED_ACCOUNT`, `Tags`, and `CostCategories`.   
Type: [Expression](API_billing_Expression.md) object  
Required: No

 ** [description](#API_billing_UpdateBillingView_RequestSyntax) **   <a name="awscostmanagement-billing_UpdateBillingView-request-description"></a>
 The description of the billing view.   
Type: String  
Length Constraints: Minimum length of 0. Maximum length of 1024.  
Pattern: `([ a-zA-Z0-9_\+=\.\-@]+)?`   
Required: No

 ** [name](#API_billing_UpdateBillingView_RequestSyntax) **   <a name="awscostmanagement-billing_UpdateBillingView-request-name"></a>
 The name of the billing view.   
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 128.  
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.

The following data is returned in JSON format by the service.

 ** [arn](#API_billing_UpdateBillingView_ResponseSyntax) **   <a name="awscostmanagement-billing_UpdateBillingView-response-arn"></a>
 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,75}[a-zA-Z0-9]` 

 ** [updatedAt](#API_billing_UpdateBillingView_ResponseSyntax) **   <a name="awscostmanagement-billing_UpdateBillingView-response-updatedAt"></a>
 The time when the billing view was last updated.   
Type: Timestamp

## Errors


For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** AccessDeniedException **   
You don't have sufficient access to perform this action.  
HTTP Status Code: 400

 ** BillingViewHealthStatusException **   
 Exception thrown when a billing view's health status prevents an operation from being performed. This may occur if the billing view is in a state other than `HEALTHY`.  
HTTP Status Code: 400

 ** ConflictException **   
 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.     
 ** resourceId **   
 The identifier for the service resource associated with the request.   
 ** resourceType **   
 The type of resource associated with the request. 
HTTP Status Code: 400

 ** InternalServerException **   
The request processing failed because of an unknown error, exception, or failure.   
HTTP Status Code: 500

 ** ResourceNotFoundException **   
 The specified ARN in the request doesn't exist.     
 ** resourceId **   
 Value is a list of resource IDs that were not found.   
 ** resourceType **   
 Value is the type of resource that was not found. 
HTTP Status Code: 400

 ** ServiceQuotaExceededException **   
 You've reached the limit of resources you can create, or exceeded the size of an individual resource.     
 ** quotaCode **   
 The container for the `quotaCode`.   
 ** resourceId **   
 The ID of the resource.   
 ** resourceType **   
 The type of AWS resource.   
 ** serviceCode **   
 The container for the `serviceCode`. 
HTTP Status Code: 400

 ** ThrottlingException **   
The request was denied due to request throttling.   
HTTP Status Code: 400

 ** ValidationException **   
The input fails to satisfy the constraints specified by an AWS service.     
 ** fieldList **   
The input fails to satisfy the constraints specified by an AWS service.  
 ** reason **   
The input fails to satisfy the constraints specified by an AWS service.
HTTP Status Code: 400

## See Also


For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/billing-2023-09-07/UpdateBillingView) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/billing-2023-09-07/UpdateBillingView) 
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/billing-2023-09-07/UpdateBillingView) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/billing-2023-09-07/UpdateBillingView) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/billing-2023-09-07/UpdateBillingView) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/billing-2023-09-07/UpdateBillingView) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/billing-2023-09-07/UpdateBillingView) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/billing-2023-09-07/UpdateBillingView) 
+  [AWS SDK for Python](https://docs.aws.amazon.com/goto/boto3/billing-2023-09-07/UpdateBillingView) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/billing-2023-09-07/UpdateBillingView) 