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

//
const input = {
Description: "Updated IU description",
InvoiceUnitArn: "arn:aws:invoicing::000000000000:invoice-unit/12345678",
Rule: {
LinkedAccounts: [
"111111111111",
"222222222222"
]
},
TaxInheritanceDisabled: false
};
const command = new UpdateInvoiceUnitCommand(input);
const response = await client.send(command);
/* response is
{
InvoiceUnitArn: "arn:aws:invoicing::000000000000:invoice-unit/12345678"
}
*\/
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
JavaScriptLn 1, Col 1
Errors: 0 Warnings: 0

UpdateInvoiceUnitCommand Input

See UpdateInvoiceUnitCommandInput for more details

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 InvoiceUnitRule object used to update invoice units.

TaxInheritanceDisabled
boolean | undefined

Whether the invoice unit based tax inheritance is/ should be enabled or disabled.

UpdateInvoiceUnitCommand Output

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
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.