Skip to main content

tax_exemptions

Creates, updates, deletes, gets or lists a tax_exemptions resource.

Overview

Nametax_exemptions
TypeResource
Idaws.taxsettings.tax_exemptions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
failed_accountsarrayThe list of accounts that failed to get tax exemptions.
tax_exemption_details_mapobjectThe tax exemption details map of accountId and tax exemption details.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
batch_get_tax_exemptionsselectregionGet the active tax exemptions for a given list of accounts. The IAM action is tax:GetExemptions.
list_tax_exemptionsselectregionRetrieves the tax exemption of accounts listed in a consolidated billing family. The IAM action is tax:GetExemptions.
put_tax_exemptionreplaceregion, accountIds, authority, exemptionType, exemptionCertificateAdds 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.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

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
;

REPLACE examples

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;