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:
-
Learn how to configure this service.
-
View a list of the API operations available for this service.
-
Learn how to secure this service and its resources by using IAM permission policies.
-
View the programmatic service authorization reference
for this service.
Topics
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 |
Write |
|||
Read |
||||
|
CreateBillingView |
Write |
|||
Tagging, Write |
||||
Read |
||||
|
DeleteBillingView |
Write |
|||
|
DisassociateSourceViews |
Write |
|||
|
GetBillingPreferences |
Read |
|||
Read |
||||
|
GetBillingView |
Read |
|||
|
GetCreditAllocationHistory |
Read |
|||
|
GetCredits |
Read |
|||
Read |
||||
|
GetResourcePolicy |
Permissions management, Write |
|||
|
ListBillingViews |
Read |
|||
|
ListSourceViewsForBillingView |
List |
|||
|
ListTagsForResource |
Read |
|||
|
RedeemCredits |
Write |
|||
Write |
||||
|
TagResource |
Tagging, Write |
|||
|
UntagResource |
Tagging, Write |
|||
|
UpdateBillingPreferences |
Write |
|||
Write |
||||
|
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 |
|---|---|---|---|---|
Grants permission to associate source views to a billing view |
Write |
|||
Grants permission to create a billing view |
Write |
|||
Grants permission to delete a billing view |
Write |
|||
Grants permission to disassociate source views from a billing view |
Write |
|||
Grants permission to view billing preferences such as reserved instance, savings plans and credits sharing |
Read |
|||
Grants permission to get the metadata for a specified billing view |
Read |
|||
Grants permission to view a credit allocation history |
Read |
|||
Grants permission to view credits that have been redeemed |
Read |
|||
Grants permission to get the resource policy specified billing view |
Permissions management, Write |
|||
Grants permission to get a list of all your available billing views |
Read |
|||
Grants permission to get the list of source views for a specified billing view |
List |
|||
Grants permission to get the list of tags for a specified billing view |
Read |
|||
Grants permission to redeem an Amazon credit |
Write |
|||
Grants permission to add tags to a specified billing view |
Tagging, Write |
|||
Grants permission to remove a tag from a specified billing view |
Tagging, Write |
|||
Grants permission to update billing preferences such as reserved instance, savings plans and credits sharing |
Write |
|||
Grants permission to update a billing view |
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 |
|---|---|---|---|---|
Grants permission to delete a billing view resource policy |
Permissions management, Write |
|||
Grants permission to perform queries on billing information |
Read |
|||
Grants permission to view detailed line item billing information |
Read |
|||
Grants permission to view notifications sent by Amazon related to your accounts billing information |
Read |
|||
Grants permission to get cost and usage data for a specified billng view |
Read |
|||
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 |
|||
Grants permission to retrieve cumulative spend and usage tracking data for a contract |
Read |
|||
Grants permission to retrieve the state of the Allow IAM Access billing preference |
Read |
|||
Grants permission to retrieve monthly spend and usage tracking data for a contract |
Read |
|||
Grants permission to retrieve the account's default Seller of Record |
Read |
|||
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 |
|||
Grants permission to put a billing view resource policy |
Permissions management, Write |
|||
Grants permission to update the Allow IAM Access billing preference |
Write |
|||
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 |
|---|---|---|
arn:${Partition}:billing::${Account}:billingview/${ResourceId} |
||
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 |
|---|---|---|
Filters access by the tags that are passed in the request |
String |
|
Filters access by the tags associated with the resource |
String |
|
Filters access by the tag keys that are passed in the request |
ArrayOfString |