update_invoice_unit
async
¶
update_invoice_unit(
invoice_unit_arn: InvoiceUnitArnString,
*,
config_overrides: Optional[AsyncInvoicingClientConfig] = None,
description: Optional[DescriptionString] = None,
tax_inheritance_disabled: Optional[TaxInheritanceDisabledFlag] = None,
rule: Optional[InvoiceUnitRule] = None,
client_token: Optional[BasicStringWithoutSpace] = None,
) -> UpdateInvoiceUnitResponse
You can update the invoice unit configuration at any time, and Amazon Web Services will use the latest configuration at the end of the month.
Parameters:
-
invoice_unit_arn(InvoiceUnitArnString) –The ARN to identify an invoice unit. This information can't be modified or deleted.
-
description(Optional[DescriptionString], default:None) –The assigned description for an invoice unit. This information can't be modified or deleted.
-
tax_inheritance_disabled(Optional[TaxInheritanceDisabledFlag], default:None) –Whether the invoice unit based tax inheritance is/ should be enabled or disabled.
-
rule(Optional[InvoiceUnitRule], default:None) –The
InvoiceUnitRuleobject used to update invoice units. -
client_token(Optional[BasicStringWithoutSpace], default:None) –A unique, case-sensitive identifier that you provide to ensure idempotency of the request.
Raises:
-
AccessDeniedException–You don't have sufficient access to perform this action.
-
InternalServerException–The processing request failed because of an unknown error, exception, or failure.
-
ResourceNotFoundException–The resource could not be found.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The input fails to satisfy the constraints specified by an Amazon Web Services service.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
UpdateInvoiceUnit with all updatable fields
>>> await client.update_invoice_unit(invoice_unit_arn='arn:aws:invoicing::000000000000:invoice-unit/12345678', description='Updated IU description', tax_inheritance_disabled=False, rule={'LinkedAccounts': ['111111111111', '222222222222']}, client_token='e362c68e-4e74-48d7-9228-0bc5aa447b42')
UpdateInvoiceUnit with specific fields
>>> await client.update_invoice_unit(invoice_unit_arn='arn:aws:invoicing::000000000000:invoice-unit/12345678', description='Updated IU description. All other fields remain unchanged', client_token='e362c68e-4e74-48d7-9228-0bc5aa447b43')
Source code in docs_src/capo_invoicing/_services/async_invoicing.py
1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 | |