tax_exemptions
Creates, updates, deletes, gets or lists a tax_exemptions resource.
Overview
| Name | tax_exemptions |
| Type | Resource |
| Id | aws.taxsettings.tax_exemptions |
Fields
The following fields are returned by SELECT queries:
- batch_get_tax_exemptions
- list_tax_exemptions
| Name | Datatype | Description |
|---|---|---|
failed_accounts | array | The list of accounts that failed to get tax exemptions. |
tax_exemption_details_map | object | The tax exemption details map of accountId and tax exemption details. |
| Name | Datatype | Description |
|---|---|---|
next_token | string | The token to retrieve the next set of results. (pattern: <code>[-A-Za-z0-9_+=/]+</code>) |
tax_exemption_details_map | object | The tax exemption details map of accountId and tax exemption details. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
batch_get_tax_exemptions | select | region | Get the active tax exemptions for a given list of accounts. The IAM action is tax:GetExemptions. | |
list_tax_exemptions | select | region | Retrieves the tax exemption of accounts listed in a consolidated billing family. The IAM action is tax:GetExemptions. | |
put_tax_exemption | replace | region, accountIds, authority, exemptionType, exemptionCertificate | Adds the tax exemption for a single account or all accounts listed in a consolidated billing family. The IAM action is tax:UpdateExemptions. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- batch_get_tax_exemptions
- list_tax_exemptions
Get the active tax exemptions for a given list of accounts. The IAM action is tax:GetExemptions.
SELECT
failed_accounts,
tax_exemption_details_map
FROM aws.taxsettings.tax_exemptions
WHERE region = '{{ region }}' -- required
;
Retrieves the tax exemption of accounts listed in a consolidated billing family. The IAM action is tax:GetExemptions.
SELECT
next_token,
tax_exemption_details_map
FROM aws.taxsettings.tax_exemptions
WHERE region = '{{ region }}' -- required
;
REPLACE examples
- put_tax_exemption
Adds the tax exemption for a single account or all accounts listed in a consolidated billing family. The IAM action is tax:UpdateExemptions.
REPLACE aws.taxsettings.tax_exemptions
SET
accountIds = '{{ accountIds }}',
authority = '{{ authority }}',
exemptionType = '{{ exemptionType }}',
exemptionCertificate = '{{ exemptionCertificate }}'
WHERE
region = '{{ region }}' --required
AND accountIds = '{{ accountIds }}' --required
AND authority = '{{ authority }}' --required
AND exemptionType = '{{ exemptionType }}' --required
AND exemptionCertificate = '{{ exemptionCertificate }}' --required
RETURNING
case_id;