- Navigation GuideYou are on a Command (operation) page with structural examples. Use the navigation breadcrumb if you would like to return to the Client landing page.
UpdateInvoiceUnitCommand
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.
Example Syntax
Use a bare-bones client and the command you need to make an API call.
import { InvoicingClient, UpdateInvoiceUnitCommand } from "@aws-sdk/client-invoicing"; // ES Modules import
// const { InvoicingClient, UpdateInvoiceUnitCommand } = require("@aws-sdk/client-invoicing"); // CommonJS import
const client = new InvoicingClient(config);
const input = { // UpdateInvoiceUnitRequest
InvoiceUnitArn: "STRING_VALUE", // required
Description: "STRING_VALUE",
TaxInheritanceDisabled: true || false,
Rule: { // InvoiceUnitRule
LinkedAccounts: [ // AccountIdList
"STRING_VALUE",
],
},
};
const command = new UpdateInvoiceUnitCommand(input);
const response = await client.send(command);
// { // UpdateInvoiceUnitResponse
// InvoiceUnitArn: "STRING_VALUE",
// };
Example Usage
UpdateInvoiceUnitCommand Input
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
InvoiceUnitArn Required | string | undefined | The ARN to identify an invoice unit. This information can't be modified or deleted. |
Description | string | undefined | The assigned description for an invoice unit. This information can't be modified or deleted. |
Rule | InvoiceUnitRule | undefined | The |
TaxInheritanceDisabled | boolean | undefined | Whether the invoice unit based tax inheritance is/ should be enabled or disabled. |
UpdateInvoiceUnitCommand Output
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
InvoiceUnitArn | string | undefined | The ARN to identify an invoice unit. This information can't be modified or deleted. |
Throws
Name | Fault | Details |
---|
Name | Fault | Details |
---|---|---|
AccessDeniedException | client | You don't have sufficient access to perform this action. |
InternalServerException | server | The processing request failed because of an unknown error, exception, or failure. |
ResourceNotFoundException | client | The resource could not be found. |
ThrottlingException | client | The request was denied due to request throttling. |
ValidationException | client | The input fails to satisfy the constraints specified by an Amazon Web Services service. |
InvoicingServiceException | Base exception class for all service exceptions from Invoicing service. |