View a markdown version of this page

Actions, resources, and condition keys for Amazon Billing - Service Authorization Reference
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Actions, resources, and condition keys for Amazon Billing

Amazon Billing (service prefix: billing) provides the following service-specific operations, resources, actions, and condition keys for use in IAM permission policies.

References:

API operations defined by Amazon Billing

The following table maps API operations to the IAM actions they authorize. Only condition keys that have static values for the given API and action are listed; for the full set of condition keys supported by each action, see the Actions table.

Operation IAM action Condition key Possible value(s) Access level

AssociateSourceViews

billing:AssociateSourceViews

Write

billing:UseSourceView

Read

CreateBillingView

billing:CreateBillingView

Write

billing:TagResource

Tagging, Write

billing:UseSourceView

Read

DeleteBillingView

billing:DeleteBillingView

Write

DisassociateSourceViews

billing:DisassociateSourceViews

Write

GetBillingPreferences

billing:GetBillingPreferences

Read

aws-portal:ViewBilling

Read

GetBillingView

billing:GetBillingView

Read

GetCreditAllocationHistory

billing:GetCreditAllocationHistory

Read

GetCredits

billing:GetCredits

Read

aws-portal:ViewBilling

Read

GetResourcePolicy

billing:GetResourcePolicy

Permissions management, Write

ListBillingViews

billing:ListBillingViews

Read

ListSourceViewsForBillingView

billing:ListSourceViewsForBillingView

List

ListTagsForResource

billing:ListTagsForResource

Read

RedeemCredits

billing:RedeemCredits

Write

aws-portal:ModifyBilling

Write

TagResource

billing:TagResource

Tagging, Write

UntagResource

billing:UntagResource

Tagging, Write

UpdateBillingPreferences

billing:UpdateBillingPreferences

Write

aws-portal:ModifyBilling

Write

UpdateBillingView

billing:UpdateBillingView

Write

Actions defined by Amazon Billing

You can specify the following actions in the Action element of an IAM policy statement. Use policies to grant permissions to perform an operation in Amazon. When you use an action in a policy, you usually allow or deny access to the API operation or CLI command with the same name. However, in some cases, a single action controls access to more than one operation. Alternatively, some operations require several different actions.

Actions Description Resource types (*required) Condition keys Access level

AssociateSourceViews

Grants permission to associate source views to a billing view

billingview*

aws:ResourceTag/${TagKey}

Write

CreateBillingView

Grants permission to create a billing view

billingview*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

Write

DeleteBillingView

Grants permission to delete a billing view

billingview*

aws:ResourceTag/${TagKey}

Write

DisassociateSourceViews

Grants permission to disassociate source views from a billing view

billingview*

aws:ResourceTag/${TagKey}

Write

GetBillingPreferences

Grants permission to view billing preferences such as reserved instance, savings plans and credits sharing

Read

GetBillingView

Grants permission to get the metadata for a specified billing view

billingview*

aws:ResourceTag/${TagKey}

Read

GetCreditAllocationHistory

Grants permission to view a credit allocation history

Read

GetCredits

Grants permission to view credits that have been redeemed

Read

GetResourcePolicy

Grants permission to get the resource policy specified billing view

billingview*

aws:ResourceTag/${TagKey}

Permissions management, Write

ListBillingViews

Grants permission to get a list of all your available billing views

Read

ListSourceViewsForBillingView

Grants permission to get the list of source views for a specified billing view

billingview*

aws:ResourceTag/${TagKey}

List

ListTagsForResource

Grants permission to get the list of tags for a specified billing view

billingview*

aws:ResourceTag/${TagKey}

Read

RedeemCredits

Grants permission to redeem an Amazon credit

Write

TagResource

Grants permission to add tags to a specified billing view

billingview*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

Tagging, Write

UntagResource

Grants permission to remove a tag from a specified billing view

billingview*

aws:ResourceTag/${TagKey}

aws:TagKeys

Tagging, Write

UpdateBillingPreferences

Grants permission to update billing preferences such as reserved instance, savings plans and credits sharing

Write

UpdateBillingView

Grants permission to update a billing view

billingview*

aws:ResourceTag/${TagKey}

Write

Permission-only actions for Amazon Billing

The following actions are defined by Amazon Billing but are not directly invocable through any API operation. They can only be used in IAM policy statements to grant or deny permissions.

Actions Description Resource types (*required) Condition keys Access level

DeleteResourcePolicy

Grants permission to delete a billing view resource policy

billingview*

aws:ResourceTag/${TagKey}

Permissions management, Write

GetBillingData

Grants permission to perform queries on billing information

billingview

aws:ResourceTag/${TagKey}

Read

GetBillingDetails

Grants permission to view detailed line item billing information

billingview

aws:ResourceTag/${TagKey}

Read

GetBillingNotifications

Grants permission to view notifications sent by Amazon related to your accounts billing information

Read

GetBillingViewData

Grants permission to get cost and usage data for a specified billng view

billingview*

aws:ResourceTag/${TagKey}

Read

GetContractInformation

Grants permission to view the account's contract information including the contract number, end-user organization names, PO numbers and if the account is used to service public-sector customers

Read

GetCumulativeTracking

Grants permission to retrieve cumulative spend and usage tracking data for a contract

contract*

Read

GetIAMAccessPreference

Grants permission to retrieve the state of the Allow IAM Access billing preference

Read

GetMonthlyTracking

Grants permission to retrieve monthly spend and usage tracking data for a contract

contract*

Read

GetSellerOfRecord

Grants permission to retrieve the account's default Seller of Record

Read

PutContractInformation

Grants permission to set the account's contract information end-user organization names and if the account is used to service public-sector customers

Write

PutResourcePolicy

Grants permission to put a billing view resource policy

billingview*

aws:ResourceTag/${TagKey}

Permissions management, Write

UpdateIAMAccessPreference

Grants permission to update the Allow IAM Access billing preference

Write

UseSourceView

Grants permission to use a billing view as a data source for other billing views

Read

Resource types defined by Amazon Billing

The following resource types are defined by this service and can be used in the Resource element of IAM permission policy statements.

Resource types ARN Condition keys

billingview

arn:${Partition}:billing::${Account}:billingview/${ResourceId}

aws:ResourceTag/${TagKey}

contract

arn:${Partition}:billing::${Account}:contract/${ContractId}

Condition keys for Amazon Billing

Amazon Billing defines the following condition keys that can be used in the Condition element of an IAM policy.

Condition keys Description Type

aws:RequestTag/${TagKey}

Filters access by the tags that are passed in the request

String

aws:ResourceTag/${TagKey}

Filters access by the tags associated with the resource

String

aws:TagKeys

Filters access by the tag keys that are passed in the request

ArrayOfString