Get the active tax exemptions for a given list of accounts. The IAM action is tax:GetExemptions.
Parameters:
-
account_ids
(AccountIds)
–
List of unique account identifiers.
Raises:
Source code in docs_src/capo_taxsettings/_services/tax_settings.py
| def batch_get_tax_exemptions(
self,
account_ids: "capo_taxsettings.types.account_ids.AccountIds",
*,
config_overrides: Optional[TaxSettingsClientConfig] = None,
) -> "capo_taxsettings.types.batch_get_tax_exemptions_response.BatchGetTaxExemptionsResponse":
"""<p>Get the active tax exemptions for a given list of accounts. The IAM action is <code>tax:GetExemptions</code>. </p>
Args:
account_ids: <p> List of unique account identifiers. </p>
Raises:
capo_taxsettings.errors.internal_server_exception.InternalServerException: <p>The exception thrown when an unexpected error occurs when processing a request.</p>
capo_taxsettings.errors.resource_not_found_exception.ResourceNotFoundException: <p>The exception thrown when the input doesn't have a resource associated to it.</p>
capo_taxsettings.errors.validation_exception.ValidationException: <p>The exception when the input doesn't pass validation for at least one of the input parameters. </p>
capo_taxsettings.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_taxsettings.types.batch_get_tax_exemptions_request.BatchGetTaxExemptionsRequest]",
) -> OperationResponse[
"capo_taxsettings.types.batch_get_tax_exemptions_response.BatchGetTaxExemptionsResponse"
]:
import capo_taxsettings._operations.tax_settings.batch_get_tax_exemptions
output, http_response = (
capo_taxsettings._operations.tax_settings.batch_get_tax_exemptions.batch_get_tax_exemptions(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("BatchGetTaxExemptions")
)
input_: capo_taxsettings.types.batch_get_tax_exemptions_request.BatchGetTaxExemptionsRequest = {
"account_ids": account_ids
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|