From 263848d53b6fb30cb553c195616825b5712fdb8c Mon Sep 17 00:00:00 2001
From: awstools
Date: Mon, 2 Dec 2024 03:56:57 +0000
Subject: [PATCH] feat(client-invoicing): AWS Invoice Configuration allows you
to receive separate AWS invoices based on your organizational needs. You can
use the AWS SDKs to manage Invoice Units and programmatically fetch the
information of the invoice receiver.
---
clients/client-invoicing/.gitignore | 9 +
clients/client-invoicing/LICENSE | 201 ++
clients/client-invoicing/README.md | 293 +++
clients/client-invoicing/api-extractor.json | 4 +
clients/client-invoicing/package.json | 101 +
clients/client-invoicing/src/Invoicing.ts | 222 ++
.../client-invoicing/src/InvoicingClient.ts | 350 +++
.../auth/httpAuthExtensionConfiguration.ts | 72 +
.../src/auth/httpAuthSchemeProvider.ts | 137 ++
.../commands/BatchGetInvoiceProfileCommand.ts | 136 ++
.../src/commands/CreateInvoiceUnitCommand.ts | 121 +
.../src/commands/DeleteInvoiceUnitCommand.ts | 112 +
.../src/commands/GetInvoiceUnitCommand.ts | 122 +
.../src/commands/ListInvoiceUnitsCommand.ts | 135 ++
.../commands/ListTagsForResourceCommand.ts | 117 +
.../src/commands/TagResourceCommand.ts | 120 +
.../src/commands/UntagResourceCommand.ts | 114 +
.../src/commands/UpdateInvoiceUnitCommand.ts | 118 +
.../client-invoicing/src/commands/index.ts | 10 +
.../src/endpoint/EndpointParameters.ts | 37 +
.../src/endpoint/endpointResolver.ts | 26 +
.../client-invoicing/src/endpoint/ruleset.ts | 22 +
.../src/extensionConfiguration.ts | 15 +
clients/client-invoicing/src/index.ts | 33 +
.../src/models/InvoicingServiceException.ts | 24 +
clients/client-invoicing/src/models/index.ts | 2 +
.../client-invoicing/src/models/models_0.ts | 886 +++++++
.../src/pagination/Interfaces.ts | 11 +
.../pagination/ListInvoiceUnitsPaginator.ts | 24 +
.../client-invoicing/src/pagination/index.ts | 3 +
.../src/protocols/Aws_json1_0.ts | 676 ++++++
.../src/runtimeConfig.browser.ts | 44 +
.../src/runtimeConfig.native.ts | 18 +
.../src/runtimeConfig.shared.ts | 38 +
clients/client-invoicing/src/runtimeConfig.ts | 60 +
.../client-invoicing/src/runtimeExtensions.ts | 48 +
clients/client-invoicing/tsconfig.cjs.json | 6 +
clients/client-invoicing/tsconfig.es.json | 8 +
clients/client-invoicing/tsconfig.json | 13 +
clients/client-invoicing/tsconfig.types.json | 10 +
codegen/sdk-codegen/aws-models/invoicing.json | 2092 +++++++++++++++++
41 files changed, 6590 insertions(+)
create mode 100644 clients/client-invoicing/.gitignore
create mode 100644 clients/client-invoicing/LICENSE
create mode 100644 clients/client-invoicing/README.md
create mode 100644 clients/client-invoicing/api-extractor.json
create mode 100644 clients/client-invoicing/package.json
create mode 100644 clients/client-invoicing/src/Invoicing.ts
create mode 100644 clients/client-invoicing/src/InvoicingClient.ts
create mode 100644 clients/client-invoicing/src/auth/httpAuthExtensionConfiguration.ts
create mode 100644 clients/client-invoicing/src/auth/httpAuthSchemeProvider.ts
create mode 100644 clients/client-invoicing/src/commands/BatchGetInvoiceProfileCommand.ts
create mode 100644 clients/client-invoicing/src/commands/CreateInvoiceUnitCommand.ts
create mode 100644 clients/client-invoicing/src/commands/DeleteInvoiceUnitCommand.ts
create mode 100644 clients/client-invoicing/src/commands/GetInvoiceUnitCommand.ts
create mode 100644 clients/client-invoicing/src/commands/ListInvoiceUnitsCommand.ts
create mode 100644 clients/client-invoicing/src/commands/ListTagsForResourceCommand.ts
create mode 100644 clients/client-invoicing/src/commands/TagResourceCommand.ts
create mode 100644 clients/client-invoicing/src/commands/UntagResourceCommand.ts
create mode 100644 clients/client-invoicing/src/commands/UpdateInvoiceUnitCommand.ts
create mode 100644 clients/client-invoicing/src/commands/index.ts
create mode 100644 clients/client-invoicing/src/endpoint/EndpointParameters.ts
create mode 100644 clients/client-invoicing/src/endpoint/endpointResolver.ts
create mode 100644 clients/client-invoicing/src/endpoint/ruleset.ts
create mode 100644 clients/client-invoicing/src/extensionConfiguration.ts
create mode 100644 clients/client-invoicing/src/index.ts
create mode 100644 clients/client-invoicing/src/models/InvoicingServiceException.ts
create mode 100644 clients/client-invoicing/src/models/index.ts
create mode 100644 clients/client-invoicing/src/models/models_0.ts
create mode 100644 clients/client-invoicing/src/pagination/Interfaces.ts
create mode 100644 clients/client-invoicing/src/pagination/ListInvoiceUnitsPaginator.ts
create mode 100644 clients/client-invoicing/src/pagination/index.ts
create mode 100644 clients/client-invoicing/src/protocols/Aws_json1_0.ts
create mode 100644 clients/client-invoicing/src/runtimeConfig.browser.ts
create mode 100644 clients/client-invoicing/src/runtimeConfig.native.ts
create mode 100644 clients/client-invoicing/src/runtimeConfig.shared.ts
create mode 100644 clients/client-invoicing/src/runtimeConfig.ts
create mode 100644 clients/client-invoicing/src/runtimeExtensions.ts
create mode 100644 clients/client-invoicing/tsconfig.cjs.json
create mode 100644 clients/client-invoicing/tsconfig.es.json
create mode 100644 clients/client-invoicing/tsconfig.json
create mode 100644 clients/client-invoicing/tsconfig.types.json
create mode 100644 codegen/sdk-codegen/aws-models/invoicing.json
diff --git a/clients/client-invoicing/.gitignore b/clients/client-invoicing/.gitignore
new file mode 100644
index 000000000000..54f14c9aef25
--- /dev/null
+++ b/clients/client-invoicing/.gitignore
@@ -0,0 +1,9 @@
+/node_modules/
+/build/
+/coverage/
+/docs/
+/dist-*
+*.tsbuildinfo
+*.tgz
+*.log
+package-lock.json
diff --git a/clients/client-invoicing/LICENSE b/clients/client-invoicing/LICENSE
new file mode 100644
index 000000000000..1349aa7c9923
--- /dev/null
+++ b/clients/client-invoicing/LICENSE
@@ -0,0 +1,201 @@
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "{}"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright 2018-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
diff --git a/clients/client-invoicing/README.md b/clients/client-invoicing/README.md
new file mode 100644
index 000000000000..4fabe0e8ccd2
--- /dev/null
+++ b/clients/client-invoicing/README.md
@@ -0,0 +1,293 @@
+
+
+# @aws-sdk/client-invoicing
+
+## Description
+
+AWS SDK for JavaScript Invoicing Client for Node.js, Browser and React Native.
+
+
+Amazon Web Services Invoice Configuration
+
+You can use Amazon Web Services Invoice Configuration APIs to programmatically create,
+update, delete, get, and list invoice units. You can also programmatically fetch the
+information of the invoice receiver. For example, business legal name, address, and invoicing
+contacts.
+You can use Amazon Web Services Invoice Configuration to receive separate Amazon Web Services invoices based your organizational needs. By using Amazon Web Services Invoice Configuration, you can configure invoice units that are groups of Amazon Web Services accounts that represent your business entities, and receive separate invoices for each business entity. You can also assign a unique member or payer account as the invoice receiver for each invoice unit. As you create new accounts within your Organizations using Amazon Web Services Invoice Configuration APIs, you can automate the creation of new invoice units and subsequently automate the addition of new accounts to your invoice units.
+Service endpoint
+You can use the following endpoints for Amazon Web Services Invoice Configuration:
+
+
+## Installing
+
+To install this package, simply type add or install @aws-sdk/client-invoicing
+using your favorite package manager:
+
+- `npm install @aws-sdk/client-invoicing`
+- `yarn add @aws-sdk/client-invoicing`
+- `pnpm add @aws-sdk/client-invoicing`
+
+## Getting Started
+
+### Import
+
+The AWS SDK is modulized by clients and commands.
+To send a request, you only need to import the `InvoicingClient` and
+the commands you need, for example `ListInvoiceUnitsCommand`:
+
+```js
+// ES5 example
+const { InvoicingClient, ListInvoiceUnitsCommand } = require("@aws-sdk/client-invoicing");
+```
+
+```ts
+// ES6+ example
+import { InvoicingClient, ListInvoiceUnitsCommand } from "@aws-sdk/client-invoicing";
+```
+
+### Usage
+
+To send a request, you:
+
+- Initiate client with configuration (e.g. credentials, region).
+- Initiate command with input parameters.
+- Call `send` operation on client with command object as input.
+- If you are using a custom http handler, you may call `destroy()` to close open connections.
+
+```js
+// a client can be shared by different commands.
+const client = new InvoicingClient({ region: "REGION" });
+
+const params = {
+ /** input parameters */
+};
+const command = new ListInvoiceUnitsCommand(params);
+```
+
+#### Async/await
+
+We recommend using [await](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/await)
+operator to wait for the promise returned by send operation as follows:
+
+```js
+// async/await.
+try {
+ const data = await client.send(command);
+ // process data.
+} catch (error) {
+ // error handling.
+} finally {
+ // finally.
+}
+```
+
+Async-await is clean, concise, intuitive, easy to debug and has better error handling
+as compared to using Promise chains or callbacks.
+
+#### Promises
+
+You can also use [Promise chaining](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_promises#chaining)
+to execute send operation.
+
+```js
+client.send(command).then(
+ (data) => {
+ // process data.
+ },
+ (error) => {
+ // error handling.
+ }
+);
+```
+
+Promises can also be called using `.catch()` and `.finally()` as follows:
+
+```js
+client
+ .send(command)
+ .then((data) => {
+ // process data.
+ })
+ .catch((error) => {
+ // error handling.
+ })
+ .finally(() => {
+ // finally.
+ });
+```
+
+#### Callbacks
+
+We do not recommend using callbacks because of [callback hell](http://callbackhell.com/),
+but they are supported by the send operation.
+
+```js
+// callbacks.
+client.send(command, (err, data) => {
+ // process err and data.
+});
+```
+
+#### v2 compatible style
+
+The client can also send requests using v2 compatible style.
+However, it results in a bigger bundle size and may be dropped in next major version. More details in the blog post
+on [modular packages in AWS SDK for JavaScript](https://aws.amazon.com/blogs/developer/modular-packages-in-aws-sdk-for-javascript/)
+
+```ts
+import * as AWS from "@aws-sdk/client-invoicing";
+const client = new AWS.Invoicing({ region: "REGION" });
+
+// async/await.
+try {
+ const data = await client.listInvoiceUnits(params);
+ // process data.
+} catch (error) {
+ // error handling.
+}
+
+// Promises.
+client
+ .listInvoiceUnits(params)
+ .then((data) => {
+ // process data.
+ })
+ .catch((error) => {
+ // error handling.
+ });
+
+// callbacks.
+client.listInvoiceUnits(params, (err, data) => {
+ // process err and data.
+});
+```
+
+### Troubleshooting
+
+When the service returns an exception, the error will include the exception information,
+as well as response metadata (e.g. request id).
+
+```js
+try {
+ const data = await client.send(command);
+ // process data.
+} catch (error) {
+ const { requestId, cfId, extendedRequestId } = error.$metadata;
+ console.log({ requestId, cfId, extendedRequestId });
+ /**
+ * The keys within exceptions are also parsed.
+ * You can access them by specifying exception names:
+ * if (error.name === 'SomeServiceException') {
+ * const value = error.specialKeyInException;
+ * }
+ */
+}
+```
+
+## Getting Help
+
+Please use these community resources for getting help.
+We use the GitHub issues for tracking bugs and feature requests, but have limited bandwidth to address them.
+
+- Visit [Developer Guide](https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/welcome.html)
+ or [API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/index.html).
+- Check out the blog posts tagged with [`aws-sdk-js`](https://aws.amazon.com/blogs/developer/tag/aws-sdk-js/)
+ on AWS Developer Blog.
+- Ask a question on [StackOverflow](https://stackoverflow.com/questions/tagged/aws-sdk-js) and tag it with `aws-sdk-js`.
+- Join the AWS JavaScript community on [gitter](https://gitter.im/aws/aws-sdk-js-v3).
+- If it turns out that you may have found a bug, please [open an issue](https://github.com/aws/aws-sdk-js-v3/issues/new/choose).
+
+To test your universal JavaScript code in Node.js, browser and react-native environments,
+visit our [code samples repo](https://github.com/aws-samples/aws-sdk-js-tests).
+
+## Contributing
+
+This client code is generated automatically. Any modifications will be overwritten the next time the `@aws-sdk/client-invoicing` package is updated.
+To contribute to client you can check our [generate clients scripts](https://github.com/aws/aws-sdk-js-v3/tree/main/scripts/generate-clients).
+
+## License
+
+This SDK is distributed under the
+[Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0),
+see LICENSE for more information.
+
+## Client Commands (Operations List)
+
+
+
+BatchGetInvoiceProfile
+
+
+[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/invoicing/command/BatchGetInvoiceProfileCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-invoicing/Interface/BatchGetInvoiceProfileCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-invoicing/Interface/BatchGetInvoiceProfileCommandOutput/)
+
+
+
+
+CreateInvoiceUnit
+
+
+[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/invoicing/command/CreateInvoiceUnitCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-invoicing/Interface/CreateInvoiceUnitCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-invoicing/Interface/CreateInvoiceUnitCommandOutput/)
+
+
+
+
+DeleteInvoiceUnit
+
+
+[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/invoicing/command/DeleteInvoiceUnitCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-invoicing/Interface/DeleteInvoiceUnitCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-invoicing/Interface/DeleteInvoiceUnitCommandOutput/)
+
+
+
+
+GetInvoiceUnit
+
+
+[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/invoicing/command/GetInvoiceUnitCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-invoicing/Interface/GetInvoiceUnitCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-invoicing/Interface/GetInvoiceUnitCommandOutput/)
+
+
+
+
+ListInvoiceUnits
+
+
+[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/invoicing/command/ListInvoiceUnitsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-invoicing/Interface/ListInvoiceUnitsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-invoicing/Interface/ListInvoiceUnitsCommandOutput/)
+
+
+
+
+ListTagsForResource
+
+
+[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/invoicing/command/ListTagsForResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-invoicing/Interface/ListTagsForResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-invoicing/Interface/ListTagsForResourceCommandOutput/)
+
+
+
+
+TagResource
+
+
+[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/invoicing/command/TagResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-invoicing/Interface/TagResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-invoicing/Interface/TagResourceCommandOutput/)
+
+
+
+
+UntagResource
+
+
+[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/invoicing/command/UntagResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-invoicing/Interface/UntagResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-invoicing/Interface/UntagResourceCommandOutput/)
+
+
+
+
+UpdateInvoiceUnit
+
+
+[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/invoicing/command/UpdateInvoiceUnitCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-invoicing/Interface/UpdateInvoiceUnitCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-invoicing/Interface/UpdateInvoiceUnitCommandOutput/)
+
+
diff --git a/clients/client-invoicing/api-extractor.json b/clients/client-invoicing/api-extractor.json
new file mode 100644
index 000000000000..d5bf5ffeee85
--- /dev/null
+++ b/clients/client-invoicing/api-extractor.json
@@ -0,0 +1,4 @@
+{
+ "extends": "../../api-extractor.json",
+ "mainEntryPointFilePath": "/dist-types/index.d.ts"
+}
diff --git a/clients/client-invoicing/package.json b/clients/client-invoicing/package.json
new file mode 100644
index 000000000000..e3e92b249d9a
--- /dev/null
+++ b/clients/client-invoicing/package.json
@@ -0,0 +1,101 @@
+{
+ "name": "@aws-sdk/client-invoicing",
+ "description": "AWS SDK for JavaScript Invoicing Client for Node.js, Browser and React Native",
+ "version": "3.0.0",
+ "scripts": {
+ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
+ "build:cjs": "tsc -p tsconfig.cjs.json",
+ "build:es": "tsc -p tsconfig.es.json",
+ "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
+ "build:types": "tsc -p tsconfig.types.json",
+ "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
+ "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0",
+ "extract:docs": "api-extractor run --local",
+ "generate:client": "node ../../scripts/generate-clients/single-service --solo invoicing"
+ },
+ "main": "./dist-cjs/index.js",
+ "types": "./dist-types/index.d.ts",
+ "module": "./dist-es/index.js",
+ "sideEffects": false,
+ "dependencies": {
+ "@aws-crypto/sha256-browser": "5.2.0",
+ "@aws-crypto/sha256-js": "5.2.0",
+ "@aws-sdk/client-sso-oidc": "*",
+ "@aws-sdk/client-sts": "*",
+ "@aws-sdk/core": "*",
+ "@aws-sdk/credential-provider-node": "*",
+ "@aws-sdk/middleware-host-header": "*",
+ "@aws-sdk/middleware-logger": "*",
+ "@aws-sdk/middleware-recursion-detection": "*",
+ "@aws-sdk/middleware-user-agent": "*",
+ "@aws-sdk/region-config-resolver": "*",
+ "@aws-sdk/types": "*",
+ "@aws-sdk/util-endpoints": "*",
+ "@aws-sdk/util-user-agent-browser": "*",
+ "@aws-sdk/util-user-agent-node": "*",
+ "@smithy/config-resolver": "^3.0.12",
+ "@smithy/core": "^2.5.3",
+ "@smithy/fetch-http-handler": "^4.1.1",
+ "@smithy/hash-node": "^3.0.10",
+ "@smithy/invalid-dependency": "^3.0.10",
+ "@smithy/middleware-content-length": "^3.0.12",
+ "@smithy/middleware-endpoint": "^3.2.3",
+ "@smithy/middleware-retry": "^3.0.27",
+ "@smithy/middleware-serde": "^3.0.10",
+ "@smithy/middleware-stack": "^3.0.10",
+ "@smithy/node-config-provider": "^3.1.11",
+ "@smithy/node-http-handler": "^3.3.1",
+ "@smithy/protocol-http": "^4.1.7",
+ "@smithy/smithy-client": "^3.4.4",
+ "@smithy/types": "^3.7.1",
+ "@smithy/url-parser": "^3.0.10",
+ "@smithy/util-base64": "^3.0.0",
+ "@smithy/util-body-length-browser": "^3.0.0",
+ "@smithy/util-body-length-node": "^3.0.0",
+ "@smithy/util-defaults-mode-browser": "^3.0.27",
+ "@smithy/util-defaults-mode-node": "^3.0.27",
+ "@smithy/util-endpoints": "^2.1.6",
+ "@smithy/util-middleware": "^3.0.10",
+ "@smithy/util-retry": "^3.0.10",
+ "@smithy/util-utf8": "^3.0.0",
+ "tslib": "^2.6.2"
+ },
+ "devDependencies": {
+ "@tsconfig/node16": "16.1.3",
+ "@types/node": "^16.18.96",
+ "concurrently": "7.0.0",
+ "downlevel-dts": "0.10.1",
+ "rimraf": "3.0.2",
+ "typescript": "~4.9.5"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ },
+ "typesVersions": {
+ "<4.0": {
+ "dist-types/*": [
+ "dist-types/ts3.4/*"
+ ]
+ }
+ },
+ "files": [
+ "dist-*/**"
+ ],
+ "author": {
+ "name": "AWS SDK for JavaScript Team",
+ "url": "https://aws.amazon.com/javascript/"
+ },
+ "license": "Apache-2.0",
+ "browser": {
+ "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
+ },
+ "react-native": {
+ "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
+ },
+ "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-invoicing",
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/aws/aws-sdk-js-v3.git",
+ "directory": "clients/client-invoicing"
+ }
+}
diff --git a/clients/client-invoicing/src/Invoicing.ts b/clients/client-invoicing/src/Invoicing.ts
new file mode 100644
index 000000000000..401dcb68857e
--- /dev/null
+++ b/clients/client-invoicing/src/Invoicing.ts
@@ -0,0 +1,222 @@
+// smithy-typescript generated code
+import { createAggregatedClient } from "@smithy/smithy-client";
+import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
+
+import {
+ BatchGetInvoiceProfileCommand,
+ BatchGetInvoiceProfileCommandInput,
+ BatchGetInvoiceProfileCommandOutput,
+} from "./commands/BatchGetInvoiceProfileCommand";
+import {
+ CreateInvoiceUnitCommand,
+ CreateInvoiceUnitCommandInput,
+ CreateInvoiceUnitCommandOutput,
+} from "./commands/CreateInvoiceUnitCommand";
+import {
+ DeleteInvoiceUnitCommand,
+ DeleteInvoiceUnitCommandInput,
+ DeleteInvoiceUnitCommandOutput,
+} from "./commands/DeleteInvoiceUnitCommand";
+import {
+ GetInvoiceUnitCommand,
+ GetInvoiceUnitCommandInput,
+ GetInvoiceUnitCommandOutput,
+} from "./commands/GetInvoiceUnitCommand";
+import {
+ ListInvoiceUnitsCommand,
+ ListInvoiceUnitsCommandInput,
+ ListInvoiceUnitsCommandOutput,
+} from "./commands/ListInvoiceUnitsCommand";
+import {
+ ListTagsForResourceCommand,
+ ListTagsForResourceCommandInput,
+ ListTagsForResourceCommandOutput,
+} from "./commands/ListTagsForResourceCommand";
+import { TagResourceCommand, TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
+import {
+ UntagResourceCommand,
+ UntagResourceCommandInput,
+ UntagResourceCommandOutput,
+} from "./commands/UntagResourceCommand";
+import {
+ UpdateInvoiceUnitCommand,
+ UpdateInvoiceUnitCommandInput,
+ UpdateInvoiceUnitCommandOutput,
+} from "./commands/UpdateInvoiceUnitCommand";
+import { InvoicingClient, InvoicingClientConfig } from "./InvoicingClient";
+
+const commands = {
+ BatchGetInvoiceProfileCommand,
+ CreateInvoiceUnitCommand,
+ DeleteInvoiceUnitCommand,
+ GetInvoiceUnitCommand,
+ ListInvoiceUnitsCommand,
+ ListTagsForResourceCommand,
+ TagResourceCommand,
+ UntagResourceCommand,
+ UpdateInvoiceUnitCommand,
+};
+
+export interface Invoicing {
+ /**
+ * @see {@link BatchGetInvoiceProfileCommand}
+ */
+ batchGetInvoiceProfile(
+ args: BatchGetInvoiceProfileCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ batchGetInvoiceProfile(
+ args: BatchGetInvoiceProfileCommandInput,
+ cb: (err: any, data?: BatchGetInvoiceProfileCommandOutput) => void
+ ): void;
+ batchGetInvoiceProfile(
+ args: BatchGetInvoiceProfileCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: BatchGetInvoiceProfileCommandOutput) => void
+ ): void;
+
+ /**
+ * @see {@link CreateInvoiceUnitCommand}
+ */
+ createInvoiceUnit(
+ args: CreateInvoiceUnitCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ createInvoiceUnit(
+ args: CreateInvoiceUnitCommandInput,
+ cb: (err: any, data?: CreateInvoiceUnitCommandOutput) => void
+ ): void;
+ createInvoiceUnit(
+ args: CreateInvoiceUnitCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: CreateInvoiceUnitCommandOutput) => void
+ ): void;
+
+ /**
+ * @see {@link DeleteInvoiceUnitCommand}
+ */
+ deleteInvoiceUnit(
+ args: DeleteInvoiceUnitCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ deleteInvoiceUnit(
+ args: DeleteInvoiceUnitCommandInput,
+ cb: (err: any, data?: DeleteInvoiceUnitCommandOutput) => void
+ ): void;
+ deleteInvoiceUnit(
+ args: DeleteInvoiceUnitCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: DeleteInvoiceUnitCommandOutput) => void
+ ): void;
+
+ /**
+ * @see {@link GetInvoiceUnitCommand}
+ */
+ getInvoiceUnit(
+ args: GetInvoiceUnitCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ getInvoiceUnit(args: GetInvoiceUnitCommandInput, cb: (err: any, data?: GetInvoiceUnitCommandOutput) => void): void;
+ getInvoiceUnit(
+ args: GetInvoiceUnitCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: GetInvoiceUnitCommandOutput) => void
+ ): void;
+
+ /**
+ * @see {@link ListInvoiceUnitsCommand}
+ */
+ listInvoiceUnits(): Promise;
+ listInvoiceUnits(
+ args: ListInvoiceUnitsCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ listInvoiceUnits(
+ args: ListInvoiceUnitsCommandInput,
+ cb: (err: any, data?: ListInvoiceUnitsCommandOutput) => void
+ ): void;
+ listInvoiceUnits(
+ args: ListInvoiceUnitsCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: ListInvoiceUnitsCommandOutput) => void
+ ): void;
+
+ /**
+ * @see {@link ListTagsForResourceCommand}
+ */
+ listTagsForResource(
+ args: ListTagsForResourceCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ listTagsForResource(
+ args: ListTagsForResourceCommandInput,
+ cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
+ ): void;
+ listTagsForResource(
+ args: ListTagsForResourceCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
+ ): void;
+
+ /**
+ * @see {@link TagResourceCommand}
+ */
+ tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise;
+ tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
+ tagResource(
+ args: TagResourceCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: TagResourceCommandOutput) => void
+ ): void;
+
+ /**
+ * @see {@link UntagResourceCommand}
+ */
+ untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise;
+ untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
+ untagResource(
+ args: UntagResourceCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: UntagResourceCommandOutput) => void
+ ): void;
+
+ /**
+ * @see {@link UpdateInvoiceUnitCommand}
+ */
+ updateInvoiceUnit(
+ args: UpdateInvoiceUnitCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ updateInvoiceUnit(
+ args: UpdateInvoiceUnitCommandInput,
+ cb: (err: any, data?: UpdateInvoiceUnitCommandOutput) => void
+ ): void;
+ updateInvoiceUnit(
+ args: UpdateInvoiceUnitCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: UpdateInvoiceUnitCommandOutput) => void
+ ): void;
+}
+
+/**
+ *
+ * Amazon Web Services Invoice Configuration
+ *
+ * You can use Amazon Web Services Invoice Configuration APIs to programmatically create,
+ * update, delete, get, and list invoice units. You can also programmatically fetch the
+ * information of the invoice receiver. For example, business legal name, address, and invoicing
+ * contacts.
+ * You can use Amazon Web Services Invoice Configuration to receive separate Amazon Web Services invoices based your organizational needs. By using Amazon Web Services Invoice Configuration, you can configure invoice units that are groups of Amazon Web Services accounts that represent your business entities, and receive separate invoices for each business entity. You can also assign a unique member or payer account as the invoice receiver for each invoice unit. As you create new accounts within your Organizations using Amazon Web Services Invoice Configuration APIs, you can automate the creation of new invoice units and subsequently automate the addition of new accounts to your invoice units.
+ * Service endpoint
+ * You can use the following endpoints for Amazon Web Services Invoice Configuration:
+ *
+ * @public
+ */
+export class Invoicing extends InvoicingClient implements Invoicing {}
+createAggregatedClient(commands, Invoicing);
diff --git a/clients/client-invoicing/src/InvoicingClient.ts b/clients/client-invoicing/src/InvoicingClient.ts
new file mode 100644
index 000000000000..282b882ef8fc
--- /dev/null
+++ b/clients/client-invoicing/src/InvoicingClient.ts
@@ -0,0 +1,350 @@
+// smithy-typescript generated code
+import {
+ getHostHeaderPlugin,
+ HostHeaderInputConfig,
+ HostHeaderResolvedConfig,
+ resolveHostHeaderConfig,
+} from "@aws-sdk/middleware-host-header";
+import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
+import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
+import {
+ getUserAgentPlugin,
+ resolveUserAgentConfig,
+ UserAgentInputConfig,
+ UserAgentResolvedConfig,
+} from "@aws-sdk/middleware-user-agent";
+import { RegionInputConfig, RegionResolvedConfig, resolveRegionConfig } from "@smithy/config-resolver";
+import {
+ DefaultIdentityProviderConfig,
+ getHttpAuthSchemeEndpointRuleSetPlugin,
+ getHttpSigningPlugin,
+} from "@smithy/core";
+import { getContentLengthPlugin } from "@smithy/middleware-content-length";
+import { EndpointInputConfig, EndpointResolvedConfig, resolveEndpointConfig } from "@smithy/middleware-endpoint";
+import { getRetryPlugin, resolveRetryConfig, RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
+import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
+import {
+ Client as __Client,
+ DefaultsMode as __DefaultsMode,
+ SmithyConfiguration as __SmithyConfiguration,
+ SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
+} from "@smithy/smithy-client";
+import {
+ AwsCredentialIdentityProvider,
+ BodyLengthCalculator as __BodyLengthCalculator,
+ CheckOptionalClientConfig as __CheckOptionalClientConfig,
+ ChecksumConstructor as __ChecksumConstructor,
+ Decoder as __Decoder,
+ Encoder as __Encoder,
+ EndpointV2 as __EndpointV2,
+ HashConstructor as __HashConstructor,
+ HttpHandlerOptions as __HttpHandlerOptions,
+ Logger as __Logger,
+ Provider as __Provider,
+ Provider,
+ StreamCollector as __StreamCollector,
+ UrlParser as __UrlParser,
+ UserAgent as __UserAgent,
+} from "@smithy/types";
+
+import {
+ defaultInvoicingHttpAuthSchemeParametersProvider,
+ HttpAuthSchemeInputConfig,
+ HttpAuthSchemeResolvedConfig,
+ resolveHttpAuthSchemeConfig,
+} from "./auth/httpAuthSchemeProvider";
+import {
+ BatchGetInvoiceProfileCommandInput,
+ BatchGetInvoiceProfileCommandOutput,
+} from "./commands/BatchGetInvoiceProfileCommand";
+import { CreateInvoiceUnitCommandInput, CreateInvoiceUnitCommandOutput } from "./commands/CreateInvoiceUnitCommand";
+import { DeleteInvoiceUnitCommandInput, DeleteInvoiceUnitCommandOutput } from "./commands/DeleteInvoiceUnitCommand";
+import { GetInvoiceUnitCommandInput, GetInvoiceUnitCommandOutput } from "./commands/GetInvoiceUnitCommand";
+import { ListInvoiceUnitsCommandInput, ListInvoiceUnitsCommandOutput } from "./commands/ListInvoiceUnitsCommand";
+import {
+ ListTagsForResourceCommandInput,
+ ListTagsForResourceCommandOutput,
+} from "./commands/ListTagsForResourceCommand";
+import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
+import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
+import { UpdateInvoiceUnitCommandInput, UpdateInvoiceUnitCommandOutput } from "./commands/UpdateInvoiceUnitCommand";
+import {
+ ClientInputEndpointParameters,
+ ClientResolvedEndpointParameters,
+ EndpointParameters,
+ resolveClientEndpointParameters,
+} from "./endpoint/EndpointParameters";
+import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
+import { resolveRuntimeExtensions, RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
+
+export { __Client };
+
+/**
+ * @public
+ */
+export type ServiceInputTypes =
+ | BatchGetInvoiceProfileCommandInput
+ | CreateInvoiceUnitCommandInput
+ | DeleteInvoiceUnitCommandInput
+ | GetInvoiceUnitCommandInput
+ | ListInvoiceUnitsCommandInput
+ | ListTagsForResourceCommandInput
+ | TagResourceCommandInput
+ | UntagResourceCommandInput
+ | UpdateInvoiceUnitCommandInput;
+
+/**
+ * @public
+ */
+export type ServiceOutputTypes =
+ | BatchGetInvoiceProfileCommandOutput
+ | CreateInvoiceUnitCommandOutput
+ | DeleteInvoiceUnitCommandOutput
+ | GetInvoiceUnitCommandOutput
+ | ListInvoiceUnitsCommandOutput
+ | ListTagsForResourceCommandOutput
+ | TagResourceCommandOutput
+ | UntagResourceCommandOutput
+ | UpdateInvoiceUnitCommandOutput;
+
+/**
+ * @public
+ */
+export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
+ /**
+ * The HTTP handler to use or its constructor options. Fetch in browser and Https in Nodejs.
+ */
+ requestHandler?: __HttpHandlerUserInput;
+
+ /**
+ * A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface
+ * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
+ * @internal
+ */
+ sha256?: __ChecksumConstructor | __HashConstructor;
+
+ /**
+ * The function that will be used to convert strings into HTTP endpoints.
+ * @internal
+ */
+ urlParser?: __UrlParser;
+
+ /**
+ * A function that can calculate the length of a request body.
+ * @internal
+ */
+ bodyLengthChecker?: __BodyLengthCalculator;
+
+ /**
+ * A function that converts a stream into an array of bytes.
+ * @internal
+ */
+ streamCollector?: __StreamCollector;
+
+ /**
+ * The function that will be used to convert a base64-encoded string to a byte array.
+ * @internal
+ */
+ base64Decoder?: __Decoder;
+
+ /**
+ * The function that will be used to convert binary data to a base64-encoded string.
+ * @internal
+ */
+ base64Encoder?: __Encoder;
+
+ /**
+ * The function that will be used to convert a UTF8-encoded string to a byte array.
+ * @internal
+ */
+ utf8Decoder?: __Decoder;
+
+ /**
+ * The function that will be used to convert binary data to a UTF-8 encoded string.
+ * @internal
+ */
+ utf8Encoder?: __Encoder;
+
+ /**
+ * The runtime environment.
+ * @internal
+ */
+ runtime?: string;
+
+ /**
+ * Disable dynamically changing the endpoint of the client based on the hostPrefix
+ * trait of an operation.
+ */
+ disableHostPrefix?: boolean;
+
+ /**
+ * Unique service identifier.
+ * @internal
+ */
+ serviceId?: string;
+
+ /**
+ * Enables IPv6/IPv4 dualstack endpoint.
+ */
+ useDualstackEndpoint?: boolean | __Provider;
+
+ /**
+ * Enables FIPS compatible endpoints.
+ */
+ useFipsEndpoint?: boolean | __Provider;
+
+ /**
+ * The AWS region to which this client will send requests
+ */
+ region?: string | __Provider;
+
+ /**
+ * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
+ * @internal
+ */
+ defaultUserAgentProvider?: Provider<__UserAgent>;
+
+ /**
+ * Default credentials provider; Not available in browser runtime.
+ * @deprecated
+ * @internal
+ */
+ credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
+
+ /**
+ * Value for how many times a request will be made at most in case of retry.
+ */
+ maxAttempts?: number | __Provider;
+
+ /**
+ * Specifies which retry algorithm to use.
+ * @see https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-smithy-util-retry/Enum/RETRY_MODES/
+ *
+ */
+ retryMode?: string | __Provider;
+
+ /**
+ * Optional logger for logging debug/info/warn/error.
+ */
+ logger?: __Logger;
+
+ /**
+ * Optional extensions
+ */
+ extensions?: RuntimeExtension[];
+
+ /**
+ * The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
+ */
+ defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
+}
+
+/**
+ * @public
+ */
+export type InvoicingClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
+ ClientDefaults &
+ UserAgentInputConfig &
+ RetryInputConfig &
+ RegionInputConfig &
+ HostHeaderInputConfig &
+ EndpointInputConfig &
+ HttpAuthSchemeInputConfig &
+ ClientInputEndpointParameters;
+/**
+ * @public
+ *
+ * The configuration interface of InvoicingClient class constructor that set the region, credentials and other options.
+ */
+export interface InvoicingClientConfig extends InvoicingClientConfigType {}
+
+/**
+ * @public
+ */
+export type InvoicingClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
+ Required &
+ RuntimeExtensionsConfig &
+ UserAgentResolvedConfig &
+ RetryResolvedConfig &
+ RegionResolvedConfig &
+ HostHeaderResolvedConfig &
+ EndpointResolvedConfig &
+ HttpAuthSchemeResolvedConfig &
+ ClientResolvedEndpointParameters;
+/**
+ * @public
+ *
+ * The resolved configuration interface of InvoicingClient class. This is resolved and normalized from the {@link InvoicingClientConfig | constructor configuration interface}.
+ */
+export interface InvoicingClientResolvedConfig extends InvoicingClientResolvedConfigType {}
+
+/**
+ *
+ * Amazon Web Services Invoice Configuration
+ *
+ * You can use Amazon Web Services Invoice Configuration APIs to programmatically create,
+ * update, delete, get, and list invoice units. You can also programmatically fetch the
+ * information of the invoice receiver. For example, business legal name, address, and invoicing
+ * contacts.
+ * You can use Amazon Web Services Invoice Configuration to receive separate Amazon Web Services invoices based your organizational needs. By using Amazon Web Services Invoice Configuration, you can configure invoice units that are groups of Amazon Web Services accounts that represent your business entities, and receive separate invoices for each business entity. You can also assign a unique member or payer account as the invoice receiver for each invoice unit. As you create new accounts within your Organizations using Amazon Web Services Invoice Configuration APIs, you can automate the creation of new invoice units and subsequently automate the addition of new accounts to your invoice units.
+ * Service endpoint
+ * You can use the following endpoints for Amazon Web Services Invoice Configuration:
+ *
+ * @public
+ */
+export class InvoicingClient extends __Client<
+ __HttpHandlerOptions,
+ ServiceInputTypes,
+ ServiceOutputTypes,
+ InvoicingClientResolvedConfig
+> {
+ /**
+ * The resolved configuration of InvoicingClient class. This is resolved and normalized from the {@link InvoicingClientConfig | constructor configuration interface}.
+ */
+ readonly config: InvoicingClientResolvedConfig;
+
+ constructor(...[configuration]: __CheckOptionalClientConfig) {
+ const _config_0 = __getRuntimeConfig(configuration || {});
+ const _config_1 = resolveClientEndpointParameters(_config_0);
+ const _config_2 = resolveUserAgentConfig(_config_1);
+ const _config_3 = resolveRetryConfig(_config_2);
+ const _config_4 = resolveRegionConfig(_config_3);
+ const _config_5 = resolveHostHeaderConfig(_config_4);
+ const _config_6 = resolveEndpointConfig(_config_5);
+ const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
+ super(_config_8);
+ this.config = _config_8;
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
+ this.middlewareStack.use(getRetryPlugin(this.config));
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
+ this.middlewareStack.use(getLoggerPlugin(this.config));
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
+ this.middlewareStack.use(
+ getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
+ httpAuthSchemeParametersProvider: defaultInvoicingHttpAuthSchemeParametersProvider,
+ identityProviderConfigProvider: async (config: InvoicingClientResolvedConfig) =>
+ new DefaultIdentityProviderConfig({
+ "aws.auth#sigv4": config.credentials,
+ }),
+ })
+ );
+ this.middlewareStack.use(getHttpSigningPlugin(this.config));
+ }
+
+ /**
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
+ */
+ destroy(): void {
+ super.destroy();
+ }
+}
diff --git a/clients/client-invoicing/src/auth/httpAuthExtensionConfiguration.ts b/clients/client-invoicing/src/auth/httpAuthExtensionConfiguration.ts
new file mode 100644
index 000000000000..46336d0b5090
--- /dev/null
+++ b/clients/client-invoicing/src/auth/httpAuthExtensionConfiguration.ts
@@ -0,0 +1,72 @@
+// smithy-typescript generated code
+import { AwsCredentialIdentity, AwsCredentialIdentityProvider, HttpAuthScheme } from "@smithy/types";
+
+import { InvoicingHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
+
+/**
+ * @internal
+ */
+export interface HttpAuthExtensionConfiguration {
+ setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
+ httpAuthSchemes(): HttpAuthScheme[];
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider: InvoicingHttpAuthSchemeProvider): void;
+ httpAuthSchemeProvider(): InvoicingHttpAuthSchemeProvider;
+ setCredentials(credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider): void;
+ credentials(): AwsCredentialIdentity | AwsCredentialIdentityProvider | undefined;
+}
+
+/**
+ * @internal
+ */
+export type HttpAuthRuntimeConfig = Partial<{
+ httpAuthSchemes: HttpAuthScheme[];
+ httpAuthSchemeProvider: InvoicingHttpAuthSchemeProvider;
+ credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider;
+}>;
+
+/**
+ * @internal
+ */
+export const getHttpAuthExtensionConfiguration = (
+ runtimeConfig: HttpAuthRuntimeConfig
+): HttpAuthExtensionConfiguration => {
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes!;
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider!;
+ let _credentials = runtimeConfig.credentials;
+ return {
+ setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void {
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
+ if (index === -1) {
+ _httpAuthSchemes.push(httpAuthScheme);
+ } else {
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
+ }
+ },
+ httpAuthSchemes(): HttpAuthScheme[] {
+ return _httpAuthSchemes;
+ },
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider: InvoicingHttpAuthSchemeProvider): void {
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
+ },
+ httpAuthSchemeProvider(): InvoicingHttpAuthSchemeProvider {
+ return _httpAuthSchemeProvider;
+ },
+ setCredentials(credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider): void {
+ _credentials = credentials;
+ },
+ credentials(): AwsCredentialIdentity | AwsCredentialIdentityProvider | undefined {
+ return _credentials;
+ },
+ };
+};
+
+/**
+ * @internal
+ */
+export const resolveHttpAuthRuntimeConfig = (config: HttpAuthExtensionConfiguration): HttpAuthRuntimeConfig => {
+ return {
+ httpAuthSchemes: config.httpAuthSchemes(),
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
+ credentials: config.credentials(),
+ };
+};
diff --git a/clients/client-invoicing/src/auth/httpAuthSchemeProvider.ts b/clients/client-invoicing/src/auth/httpAuthSchemeProvider.ts
new file mode 100644
index 000000000000..62c91a2ce749
--- /dev/null
+++ b/clients/client-invoicing/src/auth/httpAuthSchemeProvider.ts
@@ -0,0 +1,137 @@
+// smithy-typescript generated code
+import {
+ AwsSdkSigV4AuthInputConfig,
+ AwsSdkSigV4AuthResolvedConfig,
+ AwsSdkSigV4PreviouslyResolved,
+ resolveAwsSdkSigV4Config,
+} from "@aws-sdk/core";
+import {
+ HandlerExecutionContext,
+ HttpAuthOption,
+ HttpAuthScheme,
+ HttpAuthSchemeParameters,
+ HttpAuthSchemeParametersProvider,
+ HttpAuthSchemeProvider,
+} from "@smithy/types";
+import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware";
+
+import { InvoicingClientConfig, InvoicingClientResolvedConfig } from "../InvoicingClient";
+
+/**
+ * @internal
+ */
+export interface InvoicingHttpAuthSchemeParameters extends HttpAuthSchemeParameters {
+ region?: string;
+}
+
+/**
+ * @internal
+ */
+export interface InvoicingHttpAuthSchemeParametersProvider
+ extends HttpAuthSchemeParametersProvider<
+ InvoicingClientResolvedConfig,
+ HandlerExecutionContext,
+ InvoicingHttpAuthSchemeParameters,
+ object
+ > {}
+
+/**
+ * @internal
+ */
+export const defaultInvoicingHttpAuthSchemeParametersProvider = async (
+ config: InvoicingClientResolvedConfig,
+ context: HandlerExecutionContext,
+ input: object
+): Promise => {
+ return {
+ operation: getSmithyContext(context).operation as string,
+ region:
+ (await normalizeProvider(config.region)()) ||
+ (() => {
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
+ })(),
+ };
+};
+
+function createAwsAuthSigv4HttpAuthOption(authParameters: InvoicingHttpAuthSchemeParameters): HttpAuthOption {
+ return {
+ schemeId: "aws.auth#sigv4",
+ signingProperties: {
+ name: "invoicing",
+ region: authParameters.region,
+ },
+ propertiesExtractor: (config: Partial, context) => ({
+ /**
+ * @internal
+ */
+ signingProperties: {
+ config,
+ context,
+ },
+ }),
+ };
+}
+
+/**
+ * @internal
+ */
+export interface InvoicingHttpAuthSchemeProvider extends HttpAuthSchemeProvider {}
+
+/**
+ * @internal
+ */
+export const defaultInvoicingHttpAuthSchemeProvider: InvoicingHttpAuthSchemeProvider = (authParameters) => {
+ const options: HttpAuthOption[] = [];
+ switch (authParameters.operation) {
+ default: {
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
+ }
+ }
+ return options;
+};
+
+/**
+ * @internal
+ */
+export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
+ /**
+ * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
+ * @internal
+ */
+ httpAuthSchemes?: HttpAuthScheme[];
+
+ /**
+ * Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
+ * @internal
+ */
+ httpAuthSchemeProvider?: InvoicingHttpAuthSchemeProvider;
+}
+
+/**
+ * @internal
+ */
+export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {
+ /**
+ * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
+ * @internal
+ */
+ readonly httpAuthSchemes: HttpAuthScheme[];
+
+ /**
+ * Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
+ * @internal
+ */
+ readonly httpAuthSchemeProvider: InvoicingHttpAuthSchemeProvider;
+}
+
+/**
+ * @internal
+ */
+export const resolveHttpAuthSchemeConfig = (
+ config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved
+): T & HttpAuthSchemeResolvedConfig => {
+ const config_0 = resolveAwsSdkSigV4Config(config);
+ return {
+ ...config_0,
+ } as T & HttpAuthSchemeResolvedConfig;
+};
diff --git a/clients/client-invoicing/src/commands/BatchGetInvoiceProfileCommand.ts b/clients/client-invoicing/src/commands/BatchGetInvoiceProfileCommand.ts
new file mode 100644
index 000000000000..d2ec3b38e996
--- /dev/null
+++ b/clients/client-invoicing/src/commands/BatchGetInvoiceProfileCommand.ts
@@ -0,0 +1,136 @@
+// smithy-typescript generated code
+import { getEndpointPlugin } from "@smithy/middleware-endpoint";
+import { getSerdePlugin } from "@smithy/middleware-serde";
+import { Command as $Command } from "@smithy/smithy-client";
+import { MetadataBearer as __MetadataBearer } from "@smithy/types";
+
+import { commonParams } from "../endpoint/EndpointParameters";
+import { InvoicingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../InvoicingClient";
+import {
+ BatchGetInvoiceProfileRequest,
+ BatchGetInvoiceProfileResponse,
+ BatchGetInvoiceProfileResponseFilterSensitiveLog,
+} from "../models/models_0";
+import { de_BatchGetInvoiceProfileCommand, se_BatchGetInvoiceProfileCommand } from "../protocols/Aws_json1_0";
+
+/**
+ * @public
+ */
+export type { __MetadataBearer };
+export { $Command };
+/**
+ * @public
+ *
+ * The input for {@link BatchGetInvoiceProfileCommand}.
+ */
+export interface BatchGetInvoiceProfileCommandInput extends BatchGetInvoiceProfileRequest {}
+/**
+ * @public
+ *
+ * The output of {@link BatchGetInvoiceProfileCommand}.
+ */
+export interface BatchGetInvoiceProfileCommandOutput extends BatchGetInvoiceProfileResponse, __MetadataBearer {}
+
+/**
+ * This gets the invoice profile associated with a set of accounts. The accounts must be linked accounts under the requester management account organization.
+ * @example
+ * Use a bare-bones client and the command you need to make an API call.
+ * ```javascript
+ * import { InvoicingClient, BatchGetInvoiceProfileCommand } from "@aws-sdk/client-invoicing"; // ES Modules import
+ * // const { InvoicingClient, BatchGetInvoiceProfileCommand } = require("@aws-sdk/client-invoicing"); // CommonJS import
+ * const client = new InvoicingClient(config);
+ * const input = { // BatchGetInvoiceProfileRequest
+ * AccountIds: [ // AccountIdList // required
+ * "STRING_VALUE",
+ * ],
+ * };
+ * const command = new BatchGetInvoiceProfileCommand(input);
+ * const response = await client.send(command);
+ * // { // BatchGetInvoiceProfileResponse
+ * // Profiles: [ // ProfileList
+ * // { // InvoiceProfile
+ * // AccountId: "STRING_VALUE",
+ * // ReceiverName: "STRING_VALUE",
+ * // ReceiverAddress: { // ReceiverAddress
+ * // AddressLine1: "STRING_VALUE",
+ * // AddressLine2: "STRING_VALUE",
+ * // AddressLine3: "STRING_VALUE",
+ * // DistrictOrCounty: "STRING_VALUE",
+ * // City: "STRING_VALUE",
+ * // StateOrRegion: "STRING_VALUE",
+ * // CountryCode: "STRING_VALUE",
+ * // CompanyName: "STRING_VALUE",
+ * // PostalCode: "STRING_VALUE",
+ * // },
+ * // ReceiverEmail: "STRING_VALUE",
+ * // Issuer: "STRING_VALUE",
+ * // TaxRegistrationNumber: "STRING_VALUE",
+ * // },
+ * // ],
+ * // };
+ *
+ * ```
+ *
+ * @param BatchGetInvoiceProfileCommandInput - {@link BatchGetInvoiceProfileCommandInput}
+ * @returns {@link BatchGetInvoiceProfileCommandOutput}
+ * @see {@link BatchGetInvoiceProfileCommandInput} for command's `input` shape.
+ * @see {@link BatchGetInvoiceProfileCommandOutput} for command's `response` shape.
+ * @see {@link InvoicingClientResolvedConfig | config} for InvoicingClient's `config` shape.
+ *
+ * @throws {@link AccessDeniedException} (client fault)
+ * You don't have sufficient access to perform this action.
+ *
+ * @throws {@link InternalServerException} (server fault)
+ * The processing request failed because of an unknown error, exception, or failure.
+ *
+ *
+ * @throws {@link ResourceNotFoundException} (client fault)
+ * The resource could not be found.
+ *
+ *
+ * @throws {@link ThrottlingException} (client fault)
+ * The request was denied due to request throttling.
+ *
+ * @throws {@link ValidationException} (client fault)
+ *
+ * The input fails to satisfy the constraints specified by an Amazon Web Services service.
+ *
+ *
+ * @throws {@link InvoicingServiceException}
+ * Base exception class for all service exceptions from Invoicing service.
+ *
+ * @public
+ */
+export class BatchGetInvoiceProfileCommand extends $Command
+ .classBuilder<
+ BatchGetInvoiceProfileCommandInput,
+ BatchGetInvoiceProfileCommandOutput,
+ InvoicingClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+ >()
+ .ep(commonParams)
+ .m(function (this: any, Command: any, cs: any, config: InvoicingClientResolvedConfig, o: any) {
+ return [
+ getSerdePlugin(config, this.serialize, this.deserialize),
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
+ ];
+ })
+ .s("Invoicing", "BatchGetInvoiceProfile", {})
+ .n("InvoicingClient", "BatchGetInvoiceProfileCommand")
+ .f(void 0, BatchGetInvoiceProfileResponseFilterSensitiveLog)
+ .ser(se_BatchGetInvoiceProfileCommand)
+ .de(de_BatchGetInvoiceProfileCommand)
+ .build() {
+ /** @internal type navigation helper, not in runtime. */
+ protected declare static __types: {
+ api: {
+ input: BatchGetInvoiceProfileRequest;
+ output: BatchGetInvoiceProfileResponse;
+ };
+ sdk: {
+ input: BatchGetInvoiceProfileCommandInput;
+ output: BatchGetInvoiceProfileCommandOutput;
+ };
+ };
+}
diff --git a/clients/client-invoicing/src/commands/CreateInvoiceUnitCommand.ts b/clients/client-invoicing/src/commands/CreateInvoiceUnitCommand.ts
new file mode 100644
index 000000000000..28c59493e458
--- /dev/null
+++ b/clients/client-invoicing/src/commands/CreateInvoiceUnitCommand.ts
@@ -0,0 +1,121 @@
+// smithy-typescript generated code
+import { getEndpointPlugin } from "@smithy/middleware-endpoint";
+import { getSerdePlugin } from "@smithy/middleware-serde";
+import { Command as $Command } from "@smithy/smithy-client";
+import { MetadataBearer as __MetadataBearer } from "@smithy/types";
+
+import { commonParams } from "../endpoint/EndpointParameters";
+import { InvoicingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../InvoicingClient";
+import { CreateInvoiceUnitRequest, CreateInvoiceUnitResponse } from "../models/models_0";
+import { de_CreateInvoiceUnitCommand, se_CreateInvoiceUnitCommand } from "../protocols/Aws_json1_0";
+
+/**
+ * @public
+ */
+export type { __MetadataBearer };
+export { $Command };
+/**
+ * @public
+ *
+ * The input for {@link CreateInvoiceUnitCommand}.
+ */
+export interface CreateInvoiceUnitCommandInput extends CreateInvoiceUnitRequest {}
+/**
+ * @public
+ *
+ * The output of {@link CreateInvoiceUnitCommand}.
+ */
+export interface CreateInvoiceUnitCommandOutput extends CreateInvoiceUnitResponse, __MetadataBearer {}
+
+/**
+ * This creates a new invoice unit with the provided definition.
+ * @example
+ * Use a bare-bones client and the command you need to make an API call.
+ * ```javascript
+ * import { InvoicingClient, CreateInvoiceUnitCommand } from "@aws-sdk/client-invoicing"; // ES Modules import
+ * // const { InvoicingClient, CreateInvoiceUnitCommand } = require("@aws-sdk/client-invoicing"); // CommonJS import
+ * const client = new InvoicingClient(config);
+ * const input = { // CreateInvoiceUnitRequest
+ * Name: "STRING_VALUE", // required
+ * InvoiceReceiver: "STRING_VALUE", // required
+ * Description: "STRING_VALUE",
+ * TaxInheritanceDisabled: true || false,
+ * Rule: { // InvoiceUnitRule
+ * LinkedAccounts: [ // AccountIdList
+ * "STRING_VALUE",
+ * ],
+ * },
+ * ResourceTags: [ // ResourceTagList
+ * { // ResourceTag
+ * Key: "STRING_VALUE", // required
+ * Value: "STRING_VALUE", // required
+ * },
+ * ],
+ * };
+ * const command = new CreateInvoiceUnitCommand(input);
+ * const response = await client.send(command);
+ * // { // CreateInvoiceUnitResponse
+ * // InvoiceUnitArn: "STRING_VALUE",
+ * // };
+ *
+ * ```
+ *
+ * @param CreateInvoiceUnitCommandInput - {@link CreateInvoiceUnitCommandInput}
+ * @returns {@link CreateInvoiceUnitCommandOutput}
+ * @see {@link CreateInvoiceUnitCommandInput} for command's `input` shape.
+ * @see {@link CreateInvoiceUnitCommandOutput} for command's `response` shape.
+ * @see {@link InvoicingClientResolvedConfig | config} for InvoicingClient's `config` shape.
+ *
+ * @throws {@link AccessDeniedException} (client fault)
+ * You don't have sufficient access to perform this action.
+ *
+ * @throws {@link InternalServerException} (server fault)
+ * The processing request failed because of an unknown error, exception, or failure.
+ *
+ *
+ * @throws {@link ThrottlingException} (client fault)
+ * The request was denied due to request throttling.
+ *
+ * @throws {@link ValidationException} (client fault)
+ *
+ * The input fails to satisfy the constraints specified by an Amazon Web Services service.
+ *
+ *
+ * @throws {@link InvoicingServiceException}
+ * Base exception class for all service exceptions from Invoicing service.
+ *
+ * @public
+ */
+export class CreateInvoiceUnitCommand extends $Command
+ .classBuilder<
+ CreateInvoiceUnitCommandInput,
+ CreateInvoiceUnitCommandOutput,
+ InvoicingClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+ >()
+ .ep(commonParams)
+ .m(function (this: any, Command: any, cs: any, config: InvoicingClientResolvedConfig, o: any) {
+ return [
+ getSerdePlugin(config, this.serialize, this.deserialize),
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
+ ];
+ })
+ .s("Invoicing", "CreateInvoiceUnit", {})
+ .n("InvoicingClient", "CreateInvoiceUnitCommand")
+ .f(void 0, void 0)
+ .ser(se_CreateInvoiceUnitCommand)
+ .de(de_CreateInvoiceUnitCommand)
+ .build() {
+ /** @internal type navigation helper, not in runtime. */
+ protected declare static __types: {
+ api: {
+ input: CreateInvoiceUnitRequest;
+ output: CreateInvoiceUnitResponse;
+ };
+ sdk: {
+ input: CreateInvoiceUnitCommandInput;
+ output: CreateInvoiceUnitCommandOutput;
+ };
+ };
+}
diff --git a/clients/client-invoicing/src/commands/DeleteInvoiceUnitCommand.ts b/clients/client-invoicing/src/commands/DeleteInvoiceUnitCommand.ts
new file mode 100644
index 000000000000..500542372603
--- /dev/null
+++ b/clients/client-invoicing/src/commands/DeleteInvoiceUnitCommand.ts
@@ -0,0 +1,112 @@
+// smithy-typescript generated code
+import { getEndpointPlugin } from "@smithy/middleware-endpoint";
+import { getSerdePlugin } from "@smithy/middleware-serde";
+import { Command as $Command } from "@smithy/smithy-client";
+import { MetadataBearer as __MetadataBearer } from "@smithy/types";
+
+import { commonParams } from "../endpoint/EndpointParameters";
+import { InvoicingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../InvoicingClient";
+import { DeleteInvoiceUnitRequest, DeleteInvoiceUnitResponse } from "../models/models_0";
+import { de_DeleteInvoiceUnitCommand, se_DeleteInvoiceUnitCommand } from "../protocols/Aws_json1_0";
+
+/**
+ * @public
+ */
+export type { __MetadataBearer };
+export { $Command };
+/**
+ * @public
+ *
+ * The input for {@link DeleteInvoiceUnitCommand}.
+ */
+export interface DeleteInvoiceUnitCommandInput extends DeleteInvoiceUnitRequest {}
+/**
+ * @public
+ *
+ * The output of {@link DeleteInvoiceUnitCommand}.
+ */
+export interface DeleteInvoiceUnitCommandOutput extends DeleteInvoiceUnitResponse, __MetadataBearer {}
+
+/**
+ * This deletes an invoice unit with the provided invoice unit ARN.
+ *
+ * @example
+ * Use a bare-bones client and the command you need to make an API call.
+ * ```javascript
+ * import { InvoicingClient, DeleteInvoiceUnitCommand } from "@aws-sdk/client-invoicing"; // ES Modules import
+ * // const { InvoicingClient, DeleteInvoiceUnitCommand } = require("@aws-sdk/client-invoicing"); // CommonJS import
+ * const client = new InvoicingClient(config);
+ * const input = { // DeleteInvoiceUnitRequest
+ * InvoiceUnitArn: "STRING_VALUE", // required
+ * };
+ * const command = new DeleteInvoiceUnitCommand(input);
+ * const response = await client.send(command);
+ * // { // DeleteInvoiceUnitResponse
+ * // InvoiceUnitArn: "STRING_VALUE",
+ * // };
+ *
+ * ```
+ *
+ * @param DeleteInvoiceUnitCommandInput - {@link DeleteInvoiceUnitCommandInput}
+ * @returns {@link DeleteInvoiceUnitCommandOutput}
+ * @see {@link DeleteInvoiceUnitCommandInput} for command's `input` shape.
+ * @see {@link DeleteInvoiceUnitCommandOutput} for command's `response` shape.
+ * @see {@link InvoicingClientResolvedConfig | config} for InvoicingClient's `config` shape.
+ *
+ * @throws {@link AccessDeniedException} (client fault)
+ * You don't have sufficient access to perform this action.
+ *
+ * @throws {@link InternalServerException} (server fault)
+ * The processing request failed because of an unknown error, exception, or failure.
+ *
+ *
+ * @throws {@link ResourceNotFoundException} (client fault)
+ * The resource could not be found.
+ *
+ *
+ * @throws {@link ThrottlingException} (client fault)
+ * The request was denied due to request throttling.
+ *
+ * @throws {@link ValidationException} (client fault)
+ *
+ * The input fails to satisfy the constraints specified by an Amazon Web Services service.
+ *
+ *
+ * @throws {@link InvoicingServiceException}
+ * Base exception class for all service exceptions from Invoicing service.
+ *
+ * @public
+ */
+export class DeleteInvoiceUnitCommand extends $Command
+ .classBuilder<
+ DeleteInvoiceUnitCommandInput,
+ DeleteInvoiceUnitCommandOutput,
+ InvoicingClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+ >()
+ .ep(commonParams)
+ .m(function (this: any, Command: any, cs: any, config: InvoicingClientResolvedConfig, o: any) {
+ return [
+ getSerdePlugin(config, this.serialize, this.deserialize),
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
+ ];
+ })
+ .s("Invoicing", "DeleteInvoiceUnit", {})
+ .n("InvoicingClient", "DeleteInvoiceUnitCommand")
+ .f(void 0, void 0)
+ .ser(se_DeleteInvoiceUnitCommand)
+ .de(de_DeleteInvoiceUnitCommand)
+ .build() {
+ /** @internal type navigation helper, not in runtime. */
+ protected declare static __types: {
+ api: {
+ input: DeleteInvoiceUnitRequest;
+ output: DeleteInvoiceUnitResponse;
+ };
+ sdk: {
+ input: DeleteInvoiceUnitCommandInput;
+ output: DeleteInvoiceUnitCommandOutput;
+ };
+ };
+}
diff --git a/clients/client-invoicing/src/commands/GetInvoiceUnitCommand.ts b/clients/client-invoicing/src/commands/GetInvoiceUnitCommand.ts
new file mode 100644
index 000000000000..f29e78607843
--- /dev/null
+++ b/clients/client-invoicing/src/commands/GetInvoiceUnitCommand.ts
@@ -0,0 +1,122 @@
+// smithy-typescript generated code
+import { getEndpointPlugin } from "@smithy/middleware-endpoint";
+import { getSerdePlugin } from "@smithy/middleware-serde";
+import { Command as $Command } from "@smithy/smithy-client";
+import { MetadataBearer as __MetadataBearer } from "@smithy/types";
+
+import { commonParams } from "../endpoint/EndpointParameters";
+import { InvoicingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../InvoicingClient";
+import { GetInvoiceUnitRequest, GetInvoiceUnitResponse } from "../models/models_0";
+import { de_GetInvoiceUnitCommand, se_GetInvoiceUnitCommand } from "../protocols/Aws_json1_0";
+
+/**
+ * @public
+ */
+export type { __MetadataBearer };
+export { $Command };
+/**
+ * @public
+ *
+ * The input for {@link GetInvoiceUnitCommand}.
+ */
+export interface GetInvoiceUnitCommandInput extends GetInvoiceUnitRequest {}
+/**
+ * @public
+ *
+ * The output of {@link GetInvoiceUnitCommand}.
+ */
+export interface GetInvoiceUnitCommandOutput extends GetInvoiceUnitResponse, __MetadataBearer {}
+
+/**
+ * This retrieves the invoice unit definition.
+ * @example
+ * Use a bare-bones client and the command you need to make an API call.
+ * ```javascript
+ * import { InvoicingClient, GetInvoiceUnitCommand } from "@aws-sdk/client-invoicing"; // ES Modules import
+ * // const { InvoicingClient, GetInvoiceUnitCommand } = require("@aws-sdk/client-invoicing"); // CommonJS import
+ * const client = new InvoicingClient(config);
+ * const input = { // GetInvoiceUnitRequest
+ * InvoiceUnitArn: "STRING_VALUE", // required
+ * AsOf: new Date("TIMESTAMP"),
+ * };
+ * const command = new GetInvoiceUnitCommand(input);
+ * const response = await client.send(command);
+ * // { // GetInvoiceUnitResponse
+ * // InvoiceUnitArn: "STRING_VALUE",
+ * // InvoiceReceiver: "STRING_VALUE",
+ * // Name: "STRING_VALUE",
+ * // Description: "STRING_VALUE",
+ * // TaxInheritanceDisabled: true || false,
+ * // Rule: { // InvoiceUnitRule
+ * // LinkedAccounts: [ // AccountIdList
+ * // "STRING_VALUE",
+ * // ],
+ * // },
+ * // LastModified: new Date("TIMESTAMP"),
+ * // };
+ *
+ * ```
+ *
+ * @param GetInvoiceUnitCommandInput - {@link GetInvoiceUnitCommandInput}
+ * @returns {@link GetInvoiceUnitCommandOutput}
+ * @see {@link GetInvoiceUnitCommandInput} for command's `input` shape.
+ * @see {@link GetInvoiceUnitCommandOutput} for command's `response` shape.
+ * @see {@link InvoicingClientResolvedConfig | config} for InvoicingClient's `config` shape.
+ *
+ * @throws {@link AccessDeniedException} (client fault)
+ * You don't have sufficient access to perform this action.
+ *
+ * @throws {@link InternalServerException} (server fault)
+ * The processing request failed because of an unknown error, exception, or failure.
+ *
+ *
+ * @throws {@link ResourceNotFoundException} (client fault)
+ * The resource could not be found.
+ *
+ *
+ * @throws {@link ThrottlingException} (client fault)
+ * The request was denied due to request throttling.
+ *
+ * @throws {@link ValidationException} (client fault)
+ *
+ * The input fails to satisfy the constraints specified by an Amazon Web Services service.
+ *
+ *
+ * @throws {@link InvoicingServiceException}
+ * Base exception class for all service exceptions from Invoicing service.
+ *
+ * @public
+ */
+export class GetInvoiceUnitCommand extends $Command
+ .classBuilder<
+ GetInvoiceUnitCommandInput,
+ GetInvoiceUnitCommandOutput,
+ InvoicingClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+ >()
+ .ep(commonParams)
+ .m(function (this: any, Command: any, cs: any, config: InvoicingClientResolvedConfig, o: any) {
+ return [
+ getSerdePlugin(config, this.serialize, this.deserialize),
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
+ ];
+ })
+ .s("Invoicing", "GetInvoiceUnit", {})
+ .n("InvoicingClient", "GetInvoiceUnitCommand")
+ .f(void 0, void 0)
+ .ser(se_GetInvoiceUnitCommand)
+ .de(de_GetInvoiceUnitCommand)
+ .build() {
+ /** @internal type navigation helper, not in runtime. */
+ protected declare static __types: {
+ api: {
+ input: GetInvoiceUnitRequest;
+ output: GetInvoiceUnitResponse;
+ };
+ sdk: {
+ input: GetInvoiceUnitCommandInput;
+ output: GetInvoiceUnitCommandOutput;
+ };
+ };
+}
diff --git a/clients/client-invoicing/src/commands/ListInvoiceUnitsCommand.ts b/clients/client-invoicing/src/commands/ListInvoiceUnitsCommand.ts
new file mode 100644
index 000000000000..9b9c46553dce
--- /dev/null
+++ b/clients/client-invoicing/src/commands/ListInvoiceUnitsCommand.ts
@@ -0,0 +1,135 @@
+// smithy-typescript generated code
+import { getEndpointPlugin } from "@smithy/middleware-endpoint";
+import { getSerdePlugin } from "@smithy/middleware-serde";
+import { Command as $Command } from "@smithy/smithy-client";
+import { MetadataBearer as __MetadataBearer } from "@smithy/types";
+
+import { commonParams } from "../endpoint/EndpointParameters";
+import { InvoicingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../InvoicingClient";
+import { ListInvoiceUnitsRequest, ListInvoiceUnitsResponse } from "../models/models_0";
+import { de_ListInvoiceUnitsCommand, se_ListInvoiceUnitsCommand } from "../protocols/Aws_json1_0";
+
+/**
+ * @public
+ */
+export type { __MetadataBearer };
+export { $Command };
+/**
+ * @public
+ *
+ * The input for {@link ListInvoiceUnitsCommand}.
+ */
+export interface ListInvoiceUnitsCommandInput extends ListInvoiceUnitsRequest {}
+/**
+ * @public
+ *
+ * The output of {@link ListInvoiceUnitsCommand}.
+ */
+export interface ListInvoiceUnitsCommandOutput extends ListInvoiceUnitsResponse, __MetadataBearer {}
+
+/**
+ * This fetches a list of all invoice unit definitions for a given account, as of the provided AsOf
date.
+ * @example
+ * Use a bare-bones client and the command you need to make an API call.
+ * ```javascript
+ * import { InvoicingClient, ListInvoiceUnitsCommand } from "@aws-sdk/client-invoicing"; // ES Modules import
+ * // const { InvoicingClient, ListInvoiceUnitsCommand } = require("@aws-sdk/client-invoicing"); // CommonJS import
+ * const client = new InvoicingClient(config);
+ * const input = { // ListInvoiceUnitsRequest
+ * Filters: { // Filters
+ * Names: [ // InvoiceUnitNames
+ * "STRING_VALUE",
+ * ],
+ * InvoiceReceivers: [ // AccountIdList
+ * "STRING_VALUE",
+ * ],
+ * Accounts: [
+ * "STRING_VALUE",
+ * ],
+ * },
+ * NextToken: "STRING_VALUE",
+ * MaxResults: Number("int"),
+ * AsOf: new Date("TIMESTAMP"),
+ * };
+ * const command = new ListInvoiceUnitsCommand(input);
+ * const response = await client.send(command);
+ * // { // ListInvoiceUnitsResponse
+ * // InvoiceUnits: [ // InvoiceUnits
+ * // { // InvoiceUnit
+ * // InvoiceUnitArn: "STRING_VALUE",
+ * // InvoiceReceiver: "STRING_VALUE",
+ * // Name: "STRING_VALUE",
+ * // Description: "STRING_VALUE",
+ * // TaxInheritanceDisabled: true || false,
+ * // Rule: { // InvoiceUnitRule
+ * // LinkedAccounts: [ // AccountIdList
+ * // "STRING_VALUE",
+ * // ],
+ * // },
+ * // LastModified: new Date("TIMESTAMP"),
+ * // },
+ * // ],
+ * // NextToken: "STRING_VALUE",
+ * // };
+ *
+ * ```
+ *
+ * @param ListInvoiceUnitsCommandInput - {@link ListInvoiceUnitsCommandInput}
+ * @returns {@link ListInvoiceUnitsCommandOutput}
+ * @see {@link ListInvoiceUnitsCommandInput} for command's `input` shape.
+ * @see {@link ListInvoiceUnitsCommandOutput} for command's `response` shape.
+ * @see {@link InvoicingClientResolvedConfig | config} for InvoicingClient's `config` shape.
+ *
+ * @throws {@link AccessDeniedException} (client fault)
+ * You don't have sufficient access to perform this action.
+ *
+ * @throws {@link InternalServerException} (server fault)
+ * The processing request failed because of an unknown error, exception, or failure.
+ *
+ *
+ * @throws {@link ThrottlingException} (client fault)
+ * The request was denied due to request throttling.
+ *
+ * @throws {@link ValidationException} (client fault)
+ *
+ * The input fails to satisfy the constraints specified by an Amazon Web Services service.
+ *
+ *
+ * @throws {@link InvoicingServiceException}
+ * Base exception class for all service exceptions from Invoicing service.
+ *
+ * @public
+ */
+export class ListInvoiceUnitsCommand extends $Command
+ .classBuilder<
+ ListInvoiceUnitsCommandInput,
+ ListInvoiceUnitsCommandOutput,
+ InvoicingClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+ >()
+ .ep(commonParams)
+ .m(function (this: any, Command: any, cs: any, config: InvoicingClientResolvedConfig, o: any) {
+ return [
+ getSerdePlugin(config, this.serialize, this.deserialize),
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
+ ];
+ })
+ .s("Invoicing", "ListInvoiceUnits", {})
+ .n("InvoicingClient", "ListInvoiceUnitsCommand")
+ .f(void 0, void 0)
+ .ser(se_ListInvoiceUnitsCommand)
+ .de(de_ListInvoiceUnitsCommand)
+ .build() {
+ /** @internal type navigation helper, not in runtime. */
+ protected declare static __types: {
+ api: {
+ input: ListInvoiceUnitsRequest;
+ output: ListInvoiceUnitsResponse;
+ };
+ sdk: {
+ input: ListInvoiceUnitsCommandInput;
+ output: ListInvoiceUnitsCommandOutput;
+ };
+ };
+}
diff --git a/clients/client-invoicing/src/commands/ListTagsForResourceCommand.ts b/clients/client-invoicing/src/commands/ListTagsForResourceCommand.ts
new file mode 100644
index 000000000000..3631c9b4cf19
--- /dev/null
+++ b/clients/client-invoicing/src/commands/ListTagsForResourceCommand.ts
@@ -0,0 +1,117 @@
+// smithy-typescript generated code
+import { getEndpointPlugin } from "@smithy/middleware-endpoint";
+import { getSerdePlugin } from "@smithy/middleware-serde";
+import { Command as $Command } from "@smithy/smithy-client";
+import { MetadataBearer as __MetadataBearer } from "@smithy/types";
+
+import { commonParams } from "../endpoint/EndpointParameters";
+import { InvoicingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../InvoicingClient";
+import { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/models_0";
+import { de_ListTagsForResourceCommand, se_ListTagsForResourceCommand } from "../protocols/Aws_json1_0";
+
+/**
+ * @public
+ */
+export type { __MetadataBearer };
+export { $Command };
+/**
+ * @public
+ *
+ * The input for {@link ListTagsForResourceCommand}.
+ */
+export interface ListTagsForResourceCommandInput extends ListTagsForResourceRequest {}
+/**
+ * @public
+ *
+ * The output of {@link ListTagsForResourceCommand}.
+ */
+export interface ListTagsForResourceCommandOutput extends ListTagsForResourceResponse, __MetadataBearer {}
+
+/**
+ * Lists the tags for a resource.
+ *
+ * @example
+ * Use a bare-bones client and the command you need to make an API call.
+ * ```javascript
+ * import { InvoicingClient, ListTagsForResourceCommand } from "@aws-sdk/client-invoicing"; // ES Modules import
+ * // const { InvoicingClient, ListTagsForResourceCommand } = require("@aws-sdk/client-invoicing"); // CommonJS import
+ * const client = new InvoicingClient(config);
+ * const input = { // ListTagsForResourceRequest
+ * ResourceArn: "STRING_VALUE", // required
+ * };
+ * const command = new ListTagsForResourceCommand(input);
+ * const response = await client.send(command);
+ * // { // ListTagsForResourceResponse
+ * // ResourceTags: [ // ResourceTagList
+ * // { // ResourceTag
+ * // Key: "STRING_VALUE", // required
+ * // Value: "STRING_VALUE", // required
+ * // },
+ * // ],
+ * // };
+ *
+ * ```
+ *
+ * @param ListTagsForResourceCommandInput - {@link ListTagsForResourceCommandInput}
+ * @returns {@link ListTagsForResourceCommandOutput}
+ * @see {@link ListTagsForResourceCommandInput} for command's `input` shape.
+ * @see {@link ListTagsForResourceCommandOutput} for command's `response` shape.
+ * @see {@link InvoicingClientResolvedConfig | config} for InvoicingClient's `config` shape.
+ *
+ * @throws {@link AccessDeniedException} (client fault)
+ * You don't have sufficient access to perform this action.
+ *
+ * @throws {@link InternalServerException} (server fault)
+ * The processing request failed because of an unknown error, exception, or failure.
+ *
+ *
+ * @throws {@link ResourceNotFoundException} (client fault)
+ * The resource could not be found.
+ *
+ *
+ * @throws {@link ThrottlingException} (client fault)
+ * The request was denied due to request throttling.
+ *
+ * @throws {@link ValidationException} (client fault)
+ *
+ * The input fails to satisfy the constraints specified by an Amazon Web Services service.
+ *
+ *
+ * @throws {@link InvoicingServiceException}
+ * Base exception class for all service exceptions from Invoicing service.
+ *
+ * @public
+ */
+export class ListTagsForResourceCommand extends $Command
+ .classBuilder<
+ ListTagsForResourceCommandInput,
+ ListTagsForResourceCommandOutput,
+ InvoicingClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+ >()
+ .ep(commonParams)
+ .m(function (this: any, Command: any, cs: any, config: InvoicingClientResolvedConfig, o: any) {
+ return [
+ getSerdePlugin(config, this.serialize, this.deserialize),
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
+ ];
+ })
+ .s("Invoicing", "ListTagsForResource", {})
+ .n("InvoicingClient", "ListTagsForResourceCommand")
+ .f(void 0, void 0)
+ .ser(se_ListTagsForResourceCommand)
+ .de(de_ListTagsForResourceCommand)
+ .build() {
+ /** @internal type navigation helper, not in runtime. */
+ protected declare static __types: {
+ api: {
+ input: ListTagsForResourceRequest;
+ output: ListTagsForResourceResponse;
+ };
+ sdk: {
+ input: ListTagsForResourceCommandInput;
+ output: ListTagsForResourceCommandOutput;
+ };
+ };
+}
diff --git a/clients/client-invoicing/src/commands/TagResourceCommand.ts b/clients/client-invoicing/src/commands/TagResourceCommand.ts
new file mode 100644
index 000000000000..6cf7f04ad655
--- /dev/null
+++ b/clients/client-invoicing/src/commands/TagResourceCommand.ts
@@ -0,0 +1,120 @@
+// smithy-typescript generated code
+import { getEndpointPlugin } from "@smithy/middleware-endpoint";
+import { getSerdePlugin } from "@smithy/middleware-serde";
+import { Command as $Command } from "@smithy/smithy-client";
+import { MetadataBearer as __MetadataBearer } from "@smithy/types";
+
+import { commonParams } from "../endpoint/EndpointParameters";
+import { InvoicingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../InvoicingClient";
+import { TagResourceRequest, TagResourceResponse } from "../models/models_0";
+import { de_TagResourceCommand, se_TagResourceCommand } from "../protocols/Aws_json1_0";
+
+/**
+ * @public
+ */
+export type { __MetadataBearer };
+export { $Command };
+/**
+ * @public
+ *
+ * The input for {@link TagResourceCommand}.
+ */
+export interface TagResourceCommandInput extends TagResourceRequest {}
+/**
+ * @public
+ *
+ * The output of {@link TagResourceCommand}.
+ */
+export interface TagResourceCommandOutput extends TagResourceResponse, __MetadataBearer {}
+
+/**
+ * Adds a tag to a resource.
+ *
+ * @example
+ * Use a bare-bones client and the command you need to make an API call.
+ * ```javascript
+ * import { InvoicingClient, TagResourceCommand } from "@aws-sdk/client-invoicing"; // ES Modules import
+ * // const { InvoicingClient, TagResourceCommand } = require("@aws-sdk/client-invoicing"); // CommonJS import
+ * const client = new InvoicingClient(config);
+ * const input = { // TagResourceRequest
+ * ResourceArn: "STRING_VALUE", // required
+ * ResourceTags: [ // ResourceTagList // required
+ * { // ResourceTag
+ * Key: "STRING_VALUE", // required
+ * Value: "STRING_VALUE", // required
+ * },
+ * ],
+ * };
+ * const command = new TagResourceCommand(input);
+ * const response = await client.send(command);
+ * // {};
+ *
+ * ```
+ *
+ * @param TagResourceCommandInput - {@link TagResourceCommandInput}
+ * @returns {@link TagResourceCommandOutput}
+ * @see {@link TagResourceCommandInput} for command's `input` shape.
+ * @see {@link TagResourceCommandOutput} for command's `response` shape.
+ * @see {@link InvoicingClientResolvedConfig | config} for InvoicingClient's `config` shape.
+ *
+ * @throws {@link AccessDeniedException} (client fault)
+ * You don't have sufficient access to perform this action.
+ *
+ * @throws {@link InternalServerException} (server fault)
+ * The processing request failed because of an unknown error, exception, or failure.
+ *
+ *
+ * @throws {@link ResourceNotFoundException} (client fault)
+ * The resource could not be found.
+ *
+ *
+ * @throws {@link ServiceQuotaExceededException} (client fault)
+ * The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded.
+ *
+ *
+ * @throws {@link ThrottlingException} (client fault)
+ * The request was denied due to request throttling.
+ *
+ * @throws {@link ValidationException} (client fault)
+ *
+ * The input fails to satisfy the constraints specified by an Amazon Web Services service.
+ *
+ *
+ * @throws {@link InvoicingServiceException}
+ * Base exception class for all service exceptions from Invoicing service.
+ *
+ * @public
+ */
+export class TagResourceCommand extends $Command
+ .classBuilder<
+ TagResourceCommandInput,
+ TagResourceCommandOutput,
+ InvoicingClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+ >()
+ .ep(commonParams)
+ .m(function (this: any, Command: any, cs: any, config: InvoicingClientResolvedConfig, o: any) {
+ return [
+ getSerdePlugin(config, this.serialize, this.deserialize),
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
+ ];
+ })
+ .s("Invoicing", "TagResource", {})
+ .n("InvoicingClient", "TagResourceCommand")
+ .f(void 0, void 0)
+ .ser(se_TagResourceCommand)
+ .de(de_TagResourceCommand)
+ .build() {
+ /** @internal type navigation helper, not in runtime. */
+ protected declare static __types: {
+ api: {
+ input: TagResourceRequest;
+ output: {};
+ };
+ sdk: {
+ input: TagResourceCommandInput;
+ output: TagResourceCommandOutput;
+ };
+ };
+}
diff --git a/clients/client-invoicing/src/commands/UntagResourceCommand.ts b/clients/client-invoicing/src/commands/UntagResourceCommand.ts
new file mode 100644
index 000000000000..f2dd4a28cf1f
--- /dev/null
+++ b/clients/client-invoicing/src/commands/UntagResourceCommand.ts
@@ -0,0 +1,114 @@
+// smithy-typescript generated code
+import { getEndpointPlugin } from "@smithy/middleware-endpoint";
+import { getSerdePlugin } from "@smithy/middleware-serde";
+import { Command as $Command } from "@smithy/smithy-client";
+import { MetadataBearer as __MetadataBearer } from "@smithy/types";
+
+import { commonParams } from "../endpoint/EndpointParameters";
+import { InvoicingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../InvoicingClient";
+import { UntagResourceRequest, UntagResourceResponse } from "../models/models_0";
+import { de_UntagResourceCommand, se_UntagResourceCommand } from "../protocols/Aws_json1_0";
+
+/**
+ * @public
+ */
+export type { __MetadataBearer };
+export { $Command };
+/**
+ * @public
+ *
+ * The input for {@link UntagResourceCommand}.
+ */
+export interface UntagResourceCommandInput extends UntagResourceRequest {}
+/**
+ * @public
+ *
+ * The output of {@link UntagResourceCommand}.
+ */
+export interface UntagResourceCommandOutput extends UntagResourceResponse, __MetadataBearer {}
+
+/**
+ *
+ * Removes a tag from a resource.
+ *
+ * @example
+ * Use a bare-bones client and the command you need to make an API call.
+ * ```javascript
+ * import { InvoicingClient, UntagResourceCommand } from "@aws-sdk/client-invoicing"; // ES Modules import
+ * // const { InvoicingClient, UntagResourceCommand } = require("@aws-sdk/client-invoicing"); // CommonJS import
+ * const client = new InvoicingClient(config);
+ * const input = { // UntagResourceRequest
+ * ResourceArn: "STRING_VALUE", // required
+ * ResourceTagKeys: [ // ResourceTagKeyList // required
+ * "STRING_VALUE",
+ * ],
+ * };
+ * const command = new UntagResourceCommand(input);
+ * const response = await client.send(command);
+ * // {};
+ *
+ * ```
+ *
+ * @param UntagResourceCommandInput - {@link UntagResourceCommandInput}
+ * @returns {@link UntagResourceCommandOutput}
+ * @see {@link UntagResourceCommandInput} for command's `input` shape.
+ * @see {@link UntagResourceCommandOutput} for command's `response` shape.
+ * @see {@link InvoicingClientResolvedConfig | config} for InvoicingClient's `config` shape.
+ *
+ * @throws {@link AccessDeniedException} (client fault)
+ * You don't have sufficient access to perform this action.
+ *
+ * @throws {@link InternalServerException} (server fault)
+ * The processing request failed because of an unknown error, exception, or failure.
+ *
+ *
+ * @throws {@link ResourceNotFoundException} (client fault)
+ * The resource could not be found.
+ *
+ *
+ * @throws {@link ThrottlingException} (client fault)
+ * The request was denied due to request throttling.
+ *
+ * @throws {@link ValidationException} (client fault)
+ *
+ * The input fails to satisfy the constraints specified by an Amazon Web Services service.
+ *
+ *
+ * @throws {@link InvoicingServiceException}
+ * Base exception class for all service exceptions from Invoicing service.
+ *
+ * @public
+ */
+export class UntagResourceCommand extends $Command
+ .classBuilder<
+ UntagResourceCommandInput,
+ UntagResourceCommandOutput,
+ InvoicingClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+ >()
+ .ep(commonParams)
+ .m(function (this: any, Command: any, cs: any, config: InvoicingClientResolvedConfig, o: any) {
+ return [
+ getSerdePlugin(config, this.serialize, this.deserialize),
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
+ ];
+ })
+ .s("Invoicing", "UntagResource", {})
+ .n("InvoicingClient", "UntagResourceCommand")
+ .f(void 0, void 0)
+ .ser(se_UntagResourceCommand)
+ .de(de_UntagResourceCommand)
+ .build() {
+ /** @internal type navigation helper, not in runtime. */
+ protected declare static __types: {
+ api: {
+ input: UntagResourceRequest;
+ output: {};
+ };
+ sdk: {
+ input: UntagResourceCommandInput;
+ output: UntagResourceCommandOutput;
+ };
+ };
+}
diff --git a/clients/client-invoicing/src/commands/UpdateInvoiceUnitCommand.ts b/clients/client-invoicing/src/commands/UpdateInvoiceUnitCommand.ts
new file mode 100644
index 000000000000..2333e60a89be
--- /dev/null
+++ b/clients/client-invoicing/src/commands/UpdateInvoiceUnitCommand.ts
@@ -0,0 +1,118 @@
+// smithy-typescript generated code
+import { getEndpointPlugin } from "@smithy/middleware-endpoint";
+import { getSerdePlugin } from "@smithy/middleware-serde";
+import { Command as $Command } from "@smithy/smithy-client";
+import { MetadataBearer as __MetadataBearer } from "@smithy/types";
+
+import { commonParams } from "../endpoint/EndpointParameters";
+import { InvoicingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../InvoicingClient";
+import { UpdateInvoiceUnitRequest, UpdateInvoiceUnitResponse } from "../models/models_0";
+import { de_UpdateInvoiceUnitCommand, se_UpdateInvoiceUnitCommand } from "../protocols/Aws_json1_0";
+
+/**
+ * @public
+ */
+export type { __MetadataBearer };
+export { $Command };
+/**
+ * @public
+ *
+ * The input for {@link UpdateInvoiceUnitCommand}.
+ */
+export interface UpdateInvoiceUnitCommandInput extends UpdateInvoiceUnitRequest {}
+/**
+ * @public
+ *
+ * The output of {@link UpdateInvoiceUnitCommand}.
+ */
+export interface UpdateInvoiceUnitCommandOutput extends UpdateInvoiceUnitResponse, __MetadataBearer {}
+
+/**
+ * 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
+ * Use a bare-bones client and the command you need to make an API call.
+ * ```javascript
+ * 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",
+ * // };
+ *
+ * ```
+ *
+ * @param UpdateInvoiceUnitCommandInput - {@link UpdateInvoiceUnitCommandInput}
+ * @returns {@link UpdateInvoiceUnitCommandOutput}
+ * @see {@link UpdateInvoiceUnitCommandInput} for command's `input` shape.
+ * @see {@link UpdateInvoiceUnitCommandOutput} for command's `response` shape.
+ * @see {@link InvoicingClientResolvedConfig | config} for InvoicingClient's `config` shape.
+ *
+ * @throws {@link AccessDeniedException} (client fault)
+ * You don't have sufficient access to perform this action.
+ *
+ * @throws {@link InternalServerException} (server fault)
+ * The processing request failed because of an unknown error, exception, or failure.
+ *
+ *
+ * @throws {@link ResourceNotFoundException} (client fault)
+ * The resource could not be found.
+ *
+ *
+ * @throws {@link ThrottlingException} (client fault)
+ * The request was denied due to request throttling.
+ *
+ * @throws {@link ValidationException} (client fault)
+ *
+ * The input fails to satisfy the constraints specified by an Amazon Web Services service.
+ *
+ *
+ * @throws {@link InvoicingServiceException}
+ * Base exception class for all service exceptions from Invoicing service.
+ *
+ * @public
+ */
+export class UpdateInvoiceUnitCommand extends $Command
+ .classBuilder<
+ UpdateInvoiceUnitCommandInput,
+ UpdateInvoiceUnitCommandOutput,
+ InvoicingClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+ >()
+ .ep(commonParams)
+ .m(function (this: any, Command: any, cs: any, config: InvoicingClientResolvedConfig, o: any) {
+ return [
+ getSerdePlugin(config, this.serialize, this.deserialize),
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
+ ];
+ })
+ .s("Invoicing", "UpdateInvoiceUnit", {})
+ .n("InvoicingClient", "UpdateInvoiceUnitCommand")
+ .f(void 0, void 0)
+ .ser(se_UpdateInvoiceUnitCommand)
+ .de(de_UpdateInvoiceUnitCommand)
+ .build() {
+ /** @internal type navigation helper, not in runtime. */
+ protected declare static __types: {
+ api: {
+ input: UpdateInvoiceUnitRequest;
+ output: UpdateInvoiceUnitResponse;
+ };
+ sdk: {
+ input: UpdateInvoiceUnitCommandInput;
+ output: UpdateInvoiceUnitCommandOutput;
+ };
+ };
+}
diff --git a/clients/client-invoicing/src/commands/index.ts b/clients/client-invoicing/src/commands/index.ts
new file mode 100644
index 000000000000..35f75458cf39
--- /dev/null
+++ b/clients/client-invoicing/src/commands/index.ts
@@ -0,0 +1,10 @@
+// smithy-typescript generated code
+export * from "./BatchGetInvoiceProfileCommand";
+export * from "./CreateInvoiceUnitCommand";
+export * from "./DeleteInvoiceUnitCommand";
+export * from "./GetInvoiceUnitCommand";
+export * from "./ListInvoiceUnitsCommand";
+export * from "./ListTagsForResourceCommand";
+export * from "./TagResourceCommand";
+export * from "./UntagResourceCommand";
+export * from "./UpdateInvoiceUnitCommand";
diff --git a/clients/client-invoicing/src/endpoint/EndpointParameters.ts b/clients/client-invoicing/src/endpoint/EndpointParameters.ts
new file mode 100644
index 000000000000..76f6706edc0c
--- /dev/null
+++ b/clients/client-invoicing/src/endpoint/EndpointParameters.ts
@@ -0,0 +1,37 @@
+// smithy-typescript generated code
+import { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@smithy/types";
+
+/**
+ * @public
+ */
+export interface ClientInputEndpointParameters {
+ useFipsEndpoint?: boolean | Provider;
+ endpoint?: string | Provider | Endpoint | Provider | EndpointV2 | Provider;
+ region?: string | Provider;
+}
+
+export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
+ defaultSigningName: string;
+};
+
+export const resolveClientEndpointParameters = (
+ options: T & ClientInputEndpointParameters
+): T & ClientResolvedEndpointParameters => {
+ return {
+ ...options,
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
+ defaultSigningName: "invoicing",
+ };
+};
+
+export const commonParams = {
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
+ Endpoint: { type: "builtInParams", name: "endpoint" },
+ Region: { type: "builtInParams", name: "region" },
+} as const;
+
+export interface EndpointParameters extends __EndpointParameters {
+ UseFIPS?: boolean;
+ Endpoint?: string;
+ Region?: string;
+}
diff --git a/clients/client-invoicing/src/endpoint/endpointResolver.ts b/clients/client-invoicing/src/endpoint/endpointResolver.ts
new file mode 100644
index 000000000000..b08a72482ca0
--- /dev/null
+++ b/clients/client-invoicing/src/endpoint/endpointResolver.ts
@@ -0,0 +1,26 @@
+// smithy-typescript generated code
+import { awsEndpointFunctions } from "@aws-sdk/util-endpoints";
+import { EndpointV2, Logger } from "@smithy/types";
+import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints";
+
+import { EndpointParameters } from "./EndpointParameters";
+import { ruleSet } from "./ruleset";
+
+const cache = new EndpointCache({
+ size: 50,
+ params: ["Endpoint", "Region", "UseFIPS"],
+});
+
+export const defaultEndpointResolver = (
+ endpointParams: EndpointParameters,
+ context: { logger?: Logger } = {}
+): EndpointV2 => {
+ return cache.get(endpointParams as EndpointParams, () =>
+ resolveEndpoint(ruleSet, {
+ endpointParams: endpointParams as EndpointParams,
+ logger: context.logger,
+ })
+ );
+};
+
+customEndpointFunctions.aws = awsEndpointFunctions;
diff --git a/clients/client-invoicing/src/endpoint/ruleset.ts b/clients/client-invoicing/src/endpoint/ruleset.ts
new file mode 100644
index 000000000000..2f9cf8be4c82
--- /dev/null
+++ b/clients/client-invoicing/src/endpoint/ruleset.ts
@@ -0,0 +1,22 @@
+// @ts-nocheck
+// generated code, do not edit
+import { RuleSetObject } from "@smithy/types";
+
+/* This file is compressed. Log this object
+ or see "smithy.rules#endpointRuleSet"
+ in codegen/sdk-codegen/aws-models/invoicing.json */
+
+const l="ref";
+const a=true,
+b=false,
+c="isSet",
+d="error",
+e="endpoint",
+f="tree",
+g={"required":false,"type":"String"},
+h={[l]:"Endpoint"},
+i={"authSchemes":[{"name":"sigv4","signingRegion":"{PartitionResult#implicitGlobalRegion}"}]},
+j=[{"fn":"booleanEquals","argv":[{[l]:"UseFIPS"},true]}],
+k=[{[l]:"Region"}];
+const _data={version:"1.0",parameters:{UseFIPS:{required:a,default:b,type:"Boolean"},Endpoint:g,Region:g},rules:[{conditions:[{fn:c,argv:[h]}],rules:[{conditions:j,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:d},{endpoint:{url:h,properties:{},headers:{}},type:e}],type:f},{rules:[{conditions:[{fn:c,argv:k}],rules:[{conditions:[{fn:"aws.partition",argv:k,assign:"PartitionResult"}],rules:[{conditions:j,endpoint:{url:"https://invoicing-fips.{PartitionResult#implicitGlobalRegion}.{PartitionResult#dualStackDnsSuffix}",properties:i,headers:{}},type:e},{endpoint:{url:"https://invoicing.{PartitionResult#implicitGlobalRegion}.{PartitionResult#dualStackDnsSuffix}",properties:i,headers:{}},type:e}],type:f}],type:f},{error:"Invalid Configuration: Missing Region",type:d}],type:f}]};
+export const ruleSet: RuleSetObject = _data;
diff --git a/clients/client-invoicing/src/extensionConfiguration.ts b/clients/client-invoicing/src/extensionConfiguration.ts
new file mode 100644
index 000000000000..d9868edcc39b
--- /dev/null
+++ b/clients/client-invoicing/src/extensionConfiguration.ts
@@ -0,0 +1,15 @@
+// smithy-typescript generated code
+import { AwsRegionExtensionConfiguration } from "@aws-sdk/types";
+import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
+import { DefaultExtensionConfiguration } from "@smithy/types";
+
+import { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration";
+
+/**
+ * @internal
+ */
+export interface InvoicingExtensionConfiguration
+ extends HttpHandlerExtensionConfiguration,
+ DefaultExtensionConfiguration,
+ AwsRegionExtensionConfiguration,
+ HttpAuthExtensionConfiguration {}
diff --git a/clients/client-invoicing/src/index.ts b/clients/client-invoicing/src/index.ts
new file mode 100644
index 000000000000..8ed9784356f5
--- /dev/null
+++ b/clients/client-invoicing/src/index.ts
@@ -0,0 +1,33 @@
+// smithy-typescript generated code
+/* eslint-disable */
+/**
+ *
+ * Amazon Web Services Invoice Configuration
+ *
+ * You can use Amazon Web Services Invoice Configuration APIs to programmatically create,
+ * update, delete, get, and list invoice units. You can also programmatically fetch the
+ * information of the invoice receiver. For example, business legal name, address, and invoicing
+ * contacts.
+ * You can use Amazon Web Services Invoice Configuration to receive separate Amazon Web Services invoices based your organizational needs. By using Amazon Web Services Invoice Configuration, you can configure invoice units that are groups of Amazon Web Services accounts that represent your business entities, and receive separate invoices for each business entity. You can also assign a unique member or payer account as the invoice receiver for each invoice unit. As you create new accounts within your Organizations using Amazon Web Services Invoice Configuration APIs, you can automate the creation of new invoice units and subsequently automate the addition of new accounts to your invoice units.
+ * Service endpoint
+ * You can use the following endpoints for Amazon Web Services Invoice Configuration:
+ *
+ *
+ * @packageDocumentation
+ */
+export * from "./InvoicingClient";
+export * from "./Invoicing";
+export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
+export type { RuntimeExtension } from "./runtimeExtensions";
+export type { InvoicingExtensionConfiguration } from "./extensionConfiguration";
+export * from "./commands";
+export * from "./pagination";
+export * from "./models";
+
+export { InvoicingServiceException } from "./models/InvoicingServiceException";
diff --git a/clients/client-invoicing/src/models/InvoicingServiceException.ts b/clients/client-invoicing/src/models/InvoicingServiceException.ts
new file mode 100644
index 000000000000..e020fcc8045e
--- /dev/null
+++ b/clients/client-invoicing/src/models/InvoicingServiceException.ts
@@ -0,0 +1,24 @@
+// smithy-typescript generated code
+import {
+ ServiceException as __ServiceException,
+ ServiceExceptionOptions as __ServiceExceptionOptions,
+} from "@smithy/smithy-client";
+
+export type { __ServiceExceptionOptions };
+
+export { __ServiceException };
+
+/**
+ * @public
+ *
+ * Base exception class for all service exceptions from Invoicing service.
+ */
+export class InvoicingServiceException extends __ServiceException {
+ /**
+ * @internal
+ */
+ constructor(options: __ServiceExceptionOptions) {
+ super(options);
+ Object.setPrototypeOf(this, InvoicingServiceException.prototype);
+ }
+}
diff --git a/clients/client-invoicing/src/models/index.ts b/clients/client-invoicing/src/models/index.ts
new file mode 100644
index 000000000000..9eaceb12865f
--- /dev/null
+++ b/clients/client-invoicing/src/models/index.ts
@@ -0,0 +1,2 @@
+// smithy-typescript generated code
+export * from "./models_0";
diff --git a/clients/client-invoicing/src/models/models_0.ts b/clients/client-invoicing/src/models/models_0.ts
new file mode 100644
index 000000000000..c52651d78a31
--- /dev/null
+++ b/clients/client-invoicing/src/models/models_0.ts
@@ -0,0 +1,886 @@
+// smithy-typescript generated code
+import { ExceptionOptionType as __ExceptionOptionType, SENSITIVE_STRING } from "@smithy/smithy-client";
+
+import { InvoicingServiceException as __BaseException } from "./InvoicingServiceException";
+
+/**
+ * You don't have sufficient access to perform this action.
+ * @public
+ */
+export class AccessDeniedException extends __BaseException {
+ readonly name: "AccessDeniedException" = "AccessDeniedException";
+ readonly $fault: "client" = "client";
+ /**
+ * You don't have sufficient access to perform this action.
+ *
+ * @public
+ */
+ resourceName?: string | undefined;
+
+ /**
+ * @internal
+ */
+ constructor(opts: __ExceptionOptionType) {
+ super({
+ name: "AccessDeniedException",
+ $fault: "client",
+ ...opts,
+ });
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
+ this.resourceName = opts.resourceName;
+ }
+}
+
+/**
+ * @public
+ */
+export interface BatchGetInvoiceProfileRequest {
+ /**
+ * Retrieves the corresponding invoice profile data for these account IDs.
+ *
+ * @public
+ */
+ AccountIds: string[] | undefined;
+}
+
+/**
+ *
+ * The details of the address associated with the receiver.
+ *
+ * @public
+ */
+export interface ReceiverAddress {
+ /**
+ *
+ * The first line of the address.
+ *
+ * @public
+ */
+ AddressLine1?: string | undefined;
+
+ /**
+ *
+ * The second line of the address, if applicable.
+ *
+ * @public
+ */
+ AddressLine2?: string | undefined;
+
+ /**
+ *
+ * The third line of the address, if applicable.
+ *
+ * @public
+ */
+ AddressLine3?: string | undefined;
+
+ /**
+ *
+ * The district or country the address is located in.
+ *
+ * @public
+ */
+ DistrictOrCounty?: string | undefined;
+
+ /**
+ *
+ * The city that the address is in.
+ *
+ * @public
+ */
+ City?: string | undefined;
+
+ /**
+ *
+ * The state, region, or province the address is located.
+ *
+ * @public
+ */
+ StateOrRegion?: string | undefined;
+
+ /**
+ *
+ * The country code for the country the address is in.
+ *
+ * @public
+ */
+ CountryCode?: string | undefined;
+
+ /**
+ *
+ * A unique company name.
+ *
+ * @public
+ */
+ CompanyName?: string | undefined;
+
+ /**
+ *
+ * The postal code associated with the address.
+ *
+ * @public
+ */
+ PostalCode?: string | undefined;
+}
+
+/**
+ *
+ * Contains high-level information about the invoice receiver.
+ *
+ * @public
+ */
+export interface InvoiceProfile {
+ /**
+ *
+ * The account ID the invoice profile is generated for.
+ *
+ * @public
+ */
+ AccountId?: string | undefined;
+
+ /**
+ *
+ * The name of the person receiving the invoice profile.
+ *
+ * @public
+ */
+ ReceiverName?: string | undefined;
+
+ /**
+ * The address of the receiver that will be printed on the invoice.
+ *
+ * @public
+ */
+ ReceiverAddress?: ReceiverAddress | undefined;
+
+ /**
+ * The email address for the invoice profile receiver.
+ *
+ * @public
+ */
+ ReceiverEmail?: string | undefined;
+
+ /**
+ *
+ * This specifies the issuing entity of the invoice.
+ *
+ * @public
+ */
+ Issuer?: string | undefined;
+
+ /**
+ *
+ * Your Tax Registration Number (TRN) information.
+ *
+ * @public
+ */
+ TaxRegistrationNumber?: string | undefined;
+}
+
+/**
+ * @public
+ */
+export interface BatchGetInvoiceProfileResponse {
+ /**
+ *
+ * A list of invoice profiles corresponding to the requested accounts.
+ *
+ * @public
+ */
+ Profiles?: InvoiceProfile[] | undefined;
+}
+
+/**
+ * The processing request failed because of an unknown error, exception, or failure.
+ *
+ * @public
+ */
+export class InternalServerException extends __BaseException {
+ readonly name: "InternalServerException" = "InternalServerException";
+ readonly $fault: "server" = "server";
+ /**
+ * The processing request failed because of an unknown error, exception, or failure.
+ * @public
+ */
+ retryAfterSeconds?: number | undefined;
+
+ /**
+ * @internal
+ */
+ constructor(opts: __ExceptionOptionType) {
+ super({
+ name: "InternalServerException",
+ $fault: "server",
+ ...opts,
+ });
+ Object.setPrototypeOf(this, InternalServerException.prototype);
+ this.retryAfterSeconds = opts.retryAfterSeconds;
+ }
+}
+
+/**
+ * The resource could not be found.
+ *
+ * @public
+ */
+export class ResourceNotFoundException extends __BaseException {
+ readonly name: "ResourceNotFoundException" = "ResourceNotFoundException";
+ readonly $fault: "client" = "client";
+ /**
+ * The resource could not be found.
+ * @public
+ */
+ resourceName?: string | undefined;
+
+ /**
+ * @internal
+ */
+ constructor(opts: __ExceptionOptionType) {
+ super({
+ name: "ResourceNotFoundException",
+ $fault: "client",
+ ...opts,
+ });
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
+ this.resourceName = opts.resourceName;
+ }
+}
+
+/**
+ * The request was denied due to request throttling.
+ * @public
+ */
+export class ThrottlingException extends __BaseException {
+ readonly name: "ThrottlingException" = "ThrottlingException";
+ readonly $fault: "client" = "client";
+ /**
+ * @internal
+ */
+ constructor(opts: __ExceptionOptionType) {
+ super({
+ name: "ThrottlingException",
+ $fault: "client",
+ ...opts,
+ });
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
+ }
+}
+
+/**
+ *
+ * The input fails to satisfy the constraints specified by an Amazon Web Services service.
+ *
+ * @public
+ */
+export interface ValidationExceptionField {
+ /**
+ *
+ * The input fails to satisfy the constraints specified by an Amazon Web Services service.
+ *
+ * @public
+ */
+ name: string | undefined;
+
+ /**
+ *
+ * The input fails to satisfy the constraints specified by an Amazon Web Services service.
+ *
+ * @public
+ */
+ message: string | undefined;
+}
+
+/**
+ * @public
+ * @enum
+ */
+export const ValidationExceptionReason = {
+ ACCOUNT_MEMBERSHIP_ERROR: "accountMembershipError",
+ CANNOT_PARSE: "cannotParse",
+ DUPLICATE_INVOICE_UNIT: "duplicateInvoiceUnit",
+ EXPIRED_NEXT_TOKEN: "expiredNextToken",
+ FIELD_VALIDATION_FAILED: "fieldValidationFailed",
+ INVALID_INPUT: "invalidInput",
+ INVALID_NEXT_TOKEN: "invalidNextToken",
+ MAX_ACCOUNTS_EXCEEDED: "maxAccountsExceeded",
+ MAX_INVOICE_UNITS_EXCEEDED: "maxInvoiceUnitsExceeded",
+ MUTUAL_EXCLUSION_ERROR: "mutualExclusionError",
+ NON_MEMBERS_PRESENT: "nonMemberPresent",
+ OTHER: "other",
+ TAX_SETTINGS_ERROR: "taxSettingsError",
+ UNKNOWN_OPERATION: "unknownOperation",
+} as const;
+
+/**
+ * @public
+ */
+export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
+
+/**
+ *
+ * The input fails to satisfy the constraints specified by an Amazon Web Services service.
+ *
+ * @public
+ */
+export class ValidationException extends __BaseException {
+ readonly name: "ValidationException" = "ValidationException";
+ readonly $fault: "client" = "client";
+ /**
+ * You don't have sufficient access to perform this action.
+ *
+ * @public
+ */
+ resourceName?: string | undefined;
+
+ /**
+ * You don't have sufficient access to perform this action.
+ *
+ * @public
+ */
+ reason?: ValidationExceptionReason | undefined;
+
+ /**
+ *
+ * The input fails to satisfy the constraints specified by an Amazon Web Services service.
+ *
+ * @public
+ */
+ fieldList?: ValidationExceptionField[] | undefined;
+
+ /**
+ * @internal
+ */
+ constructor(opts: __ExceptionOptionType) {
+ super({
+ name: "ValidationException",
+ $fault: "client",
+ ...opts,
+ });
+ Object.setPrototypeOf(this, ValidationException.prototype);
+ this.resourceName = opts.resourceName;
+ this.reason = opts.reason;
+ this.fieldList = opts.fieldList;
+ }
+}
+
+/**
+ * The tag structure that contains a tag key and value.
+ *
+ * @public
+ */
+export interface ResourceTag {
+ /**
+ * The object key of your of your resource tag.
+ *
+ * @public
+ */
+ Key: string | undefined;
+
+ /**
+ *
+ * The specific value of the resource tag.
+ *
+ * @public
+ */
+ Value: string | undefined;
+}
+
+/**
+ *
+ * This is used to categorize the invoice unit. Values are Amazon Web Services account IDs. Currently, the only supported rule is LINKED_ACCOUNT
.
+ *
+ * @public
+ */
+export interface InvoiceUnitRule {
+ /**
+ * The list of LINKED_ACCOUNT
IDs where charges are included within the invoice unit.
+ *
+ * @public
+ */
+ LinkedAccounts?: string[] | undefined;
+}
+
+/**
+ * @public
+ */
+export interface CreateInvoiceUnitRequest {
+ /**
+ *
+ * The unique name of the invoice unit that is shown on the generated invoice. This can't be changed once it is set. To change this name, you must delete the invoice unit recreate.
+ *
+ * @public
+ */
+ Name: string | undefined;
+
+ /**
+ *
+ * The Amazon Web Services account ID chosen to be the receiver of an invoice unit. All invoices generated for that invoice unit will be sent to this account ID.
+ *
+ * @public
+ */
+ InvoiceReceiver: string | undefined;
+
+ /**
+ *
+ * The invoice unit's description. This can be changed at a later time.
+ *
+ * @public
+ */
+ Description?: string | undefined;
+
+ /**
+ * Whether the invoice unit based tax inheritance is/ should be enabled or disabled.
+ *
+ * @public
+ */
+ TaxInheritanceDisabled?: boolean | undefined;
+
+ /**
+ * The InvoiceUnitRule
object used to create invoice units.
+ *
+ * @public
+ */
+ Rule: InvoiceUnitRule | undefined;
+
+ /**
+ *
+ * The tag structure that contains a tag key and value.
+ *
+ * @public
+ */
+ ResourceTags?: ResourceTag[] | undefined;
+}
+
+/**
+ * @public
+ */
+export interface CreateInvoiceUnitResponse {
+ /**
+ *
+ * The ARN to identify an invoice unit. This information can't be modified or deleted.
+ *
+ * @public
+ */
+ InvoiceUnitArn?: string | undefined;
+}
+
+/**
+ * @public
+ */
+export interface DeleteInvoiceUnitRequest {
+ /**
+ *
+ * The ARN to identify an invoice unit. This information can't be modified or deleted.
+ *
+ * @public
+ */
+ InvoiceUnitArn: string | undefined;
+}
+
+/**
+ * @public
+ */
+export interface DeleteInvoiceUnitResponse {
+ /**
+ *
+ * The ARN to identify an invoice unit. This information can't be modified or deleted.
+ *
+ * @public
+ */
+ InvoiceUnitArn?: string | undefined;
+}
+
+/**
+ * An optional input to the list API. If multiple filters are specified, the returned list will be a configuration that match all of the provided filters. Supported filter types are InvoiceReceivers
, Names
, and Accounts
.
+ *
+ * @public
+ */
+export interface Filters {
+ /**
+ *
+ * An optional input to the list API. You can specify a list of invoice unit names inside filters to return invoice units that match only the specified invoice unit names. If multiple names are provided, the result is an OR
condition (match any) of the specified invoice unit names.
+ *
+ * @public
+ */
+ Names?: string[] | undefined;
+
+ /**
+ *
+ * You can specify a list of Amazon Web Services account IDs inside filters to return invoice units that match only the specified accounts. If multiple accounts are provided, the result is an OR
condition (match any) of the specified accounts. This filter only matches the specified accounts on the invoice receivers of the invoice units.
+ *
+ * @public
+ */
+ InvoiceReceivers?: string[] | undefined;
+
+ /**
+ *
+ * You can specify a list of Amazon Web Services account IDs inside filters to return invoice units that match only the specified accounts. If multiple accounts are provided, the result is an OR
condition (match any) of the specified accounts. The specified account IDs are matched with either the receiver or the linked accounts in the rules.
+ *
+ * @public
+ */
+ Accounts?: string[] | undefined;
+}
+
+/**
+ * @public
+ */
+export interface GetInvoiceUnitRequest {
+ /**
+ *
+ * The ARN to identify an invoice unit. This information can't be modified or deleted.
+ *
+ * @public
+ */
+ InvoiceUnitArn: string | undefined;
+
+ /**
+ *
+ * The state of an invoice unit at a specified time. You can see legacy invoice units that are currently deleted if the AsOf
time is set to before it was deleted. If an AsOf
is not provided, the default value is the current time.
+ *
+ * @public
+ */
+ AsOf?: Date | undefined;
+}
+
+/**
+ * @public
+ */
+export interface GetInvoiceUnitResponse {
+ /**
+ *
+ * The ARN to identify an invoice unit. This information can't be modified or deleted.
+ *
+ * @public
+ */
+ InvoiceUnitArn?: string | undefined;
+
+ /**
+ *
+ * The Amazon Web Services account ID chosen to be the receiver of an invoice unit. All invoices generated for that invoice unit will be sent to this account ID.
+ *
+ * @public
+ */
+ InvoiceReceiver?: string | undefined;
+
+ /**
+ *
+ * The unique name of the invoice unit that is shown on the generated invoice.
+ *
+ * @public
+ */
+ Name?: string | undefined;
+
+ /**
+ *
+ * The assigned description for an invoice unit.
+ *
+ * @public
+ */
+ Description?: string | undefined;
+
+ /**
+ *
+ * Whether the invoice unit based tax inheritance is/ should be enabled or disabled.
+ *
+ * @public
+ */
+ TaxInheritanceDisabled?: boolean | undefined;
+
+ /**
+ *
+ * This is used to categorize the invoice unit. Values are Amazon Web Services account IDs. Currently, the only supported rule is LINKED_ACCOUNT
.
+ *
+ * @public
+ */
+ Rule?: InvoiceUnitRule | undefined;
+
+ /**
+ *
+ * The most recent date the invoice unit response was updated.
+ *
+ * @public
+ */
+ LastModified?: Date | undefined;
+}
+
+/**
+ * An invoice unit is a set of mutually exclusive accounts that correspond to your business entity. Invoice units allow you separate Amazon Web Services account costs and configures your invoice for each business entity going forward.
+ *
+ * @public
+ */
+export interface InvoiceUnit {
+ /**
+ * ARN to identify an invoice unit. This information can't be modified or deleted.
+ *
+ * @public
+ */
+ InvoiceUnitArn?: string | undefined;
+
+ /**
+ * The account that receives invoices related to the invoice unit.
+ *
+ * @public
+ */
+ InvoiceReceiver?: string | undefined;
+
+ /**
+ *
+ * A unique name that is distinctive within your Amazon Web Services.
+ *
+ * @public
+ */
+ Name?: string | undefined;
+
+ /**
+ * The assigned description for an invoice unit. This information can't be modified or deleted.
+ *
+ * @public
+ */
+ Description?: string | undefined;
+
+ /**
+ * Whether the invoice unit based tax inheritance is/ should be enabled or disabled.
+ *
+ * @public
+ */
+ TaxInheritanceDisabled?: boolean | undefined;
+
+ /**
+ *
+ * An InvoiceUnitRule
object used the categorize invoice units.
+ *
+ * @public
+ */
+ Rule?: InvoiceUnitRule | undefined;
+
+ /**
+ *
+ * The last time the invoice unit was updated. This is important to determine the version of invoice unit configuration used to create the invoices. Any invoice created after this modified time will use this invoice unit configuration.
+ *
+ * @public
+ */
+ LastModified?: Date | undefined;
+}
+
+/**
+ * @public
+ */
+export interface ListInvoiceUnitsRequest {
+ /**
+ *
+ * An optional input to the list API. If multiple filters are specified, the returned list will be a configuration that match all of the provided filters. Supported filter types are InvoiceReceivers
, Names
, and Accounts
.
+ *
+ * @public
+ */
+ Filters?: Filters | undefined;
+
+ /**
+ * The next token used to indicate where the returned list should start from.
+ *
+ * @public
+ */
+ NextToken?: string | undefined;
+
+ /**
+ * The maximum number of invoice units that can be returned.
+ *
+ * @public
+ */
+ MaxResults?: number | undefined;
+
+ /**
+ *
+ * The state of an invoice unit at a specified time. You can see legacy invoice units that are currently deleted if the AsOf
time is set to before it was deleted. If an AsOf
is not provided, the default value is the current time.
+ *
+ * @public
+ */
+ AsOf?: Date | undefined;
+}
+
+/**
+ * @public
+ */
+export interface ListInvoiceUnitsResponse {
+ /**
+ *
+ * An invoice unit is a set of mutually exclusive accounts that correspond to your business entity.
+ *
+ * @public
+ */
+ InvoiceUnits?: InvoiceUnit[] | undefined;
+
+ /**
+ * The next token used to indicate where the returned list should start from.
+ *
+ * @public
+ */
+ NextToken?: string | undefined;
+}
+
+/**
+ * @public
+ */
+export interface ListTagsForResourceRequest {
+ /**
+ * The Amazon Resource Name (ARN) of tags to list.
+ *
+ * @public
+ */
+ ResourceArn: string | undefined;
+}
+
+/**
+ * @public
+ */
+export interface ListTagsForResourceResponse {
+ /**
+ *
+ * Adds a tag to a resource.
+ *
+ * @public
+ */
+ ResourceTags?: ResourceTag[] | undefined;
+}
+
+/**
+ * The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded.
+ *
+ * @public
+ */
+export class ServiceQuotaExceededException extends __BaseException {
+ readonly name: "ServiceQuotaExceededException" = "ServiceQuotaExceededException";
+ readonly $fault: "client" = "client";
+ /**
+ * @internal
+ */
+ constructor(opts: __ExceptionOptionType) {
+ super({
+ name: "ServiceQuotaExceededException",
+ $fault: "client",
+ ...opts,
+ });
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
+ }
+}
+
+/**
+ * @public
+ */
+export interface TagResourceRequest {
+ /**
+ * The Amazon Resource Name (ARN) of the tags.
+ *
+ * @public
+ */
+ ResourceArn: string | undefined;
+
+ /**
+ *
+ * Adds a tag to a resource.
+ *
+ * @public
+ */
+ ResourceTags: ResourceTag[] | undefined;
+}
+
+/**
+ * @public
+ */
+export interface TagResourceResponse {}
+
+/**
+ * @public
+ */
+export interface UntagResourceRequest {
+ /**
+ *
+ * The Amazon Resource Name (ARN) to untag.
+ *
+ * @public
+ */
+ ResourceArn: string | undefined;
+
+ /**
+ *
+ * Keys for the tags to be removed.
+ *
+ * @public
+ */
+ ResourceTagKeys: string[] | undefined;
+}
+
+/**
+ * @public
+ */
+export interface UntagResourceResponse {}
+
+/**
+ * @public
+ */
+export interface UpdateInvoiceUnitRequest {
+ /**
+ * The ARN to identify an invoice unit. This information can't be modified or deleted.
+ *
+ * @public
+ */
+ InvoiceUnitArn: string | undefined;
+
+ /**
+ * The assigned description for an invoice unit. This information can't be modified or deleted.
+ *
+ * @public
+ */
+ Description?: string | undefined;
+
+ /**
+ * Whether the invoice unit based tax inheritance is/ should be enabled or disabled.
+ *
+ * @public
+ */
+ TaxInheritanceDisabled?: boolean | undefined;
+
+ /**
+ * The InvoiceUnitRule
object used to update invoice units.
+ *
+ * @public
+ */
+ Rule?: InvoiceUnitRule | undefined;
+}
+
+/**
+ * @public
+ */
+export interface UpdateInvoiceUnitResponse {
+ /**
+ *
+ * The ARN to identify an invoice unit. This information can't be modified or deleted.
+ *
+ * @public
+ */
+ InvoiceUnitArn?: string | undefined;
+}
+
+/**
+ * @internal
+ */
+export const ReceiverAddressFilterSensitiveLog = (obj: ReceiverAddress): any => ({
+ ...obj,
+});
+
+/**
+ * @internal
+ */
+export const InvoiceProfileFilterSensitiveLog = (obj: InvoiceProfile): any => ({
+ ...obj,
+ ...(obj.ReceiverAddress && { ReceiverAddress: SENSITIVE_STRING }),
+ ...(obj.ReceiverEmail && { ReceiverEmail: SENSITIVE_STRING }),
+ ...(obj.TaxRegistrationNumber && { TaxRegistrationNumber: SENSITIVE_STRING }),
+});
+
+/**
+ * @internal
+ */
+export const BatchGetInvoiceProfileResponseFilterSensitiveLog = (obj: BatchGetInvoiceProfileResponse): any => ({
+ ...obj,
+ ...(obj.Profiles && { Profiles: obj.Profiles.map((item) => InvoiceProfileFilterSensitiveLog(item)) }),
+});
diff --git a/clients/client-invoicing/src/pagination/Interfaces.ts b/clients/client-invoicing/src/pagination/Interfaces.ts
new file mode 100644
index 000000000000..106128180f0a
--- /dev/null
+++ b/clients/client-invoicing/src/pagination/Interfaces.ts
@@ -0,0 +1,11 @@
+// smithy-typescript generated code
+import { PaginationConfiguration } from "@smithy/types";
+
+import { InvoicingClient } from "../InvoicingClient";
+
+/**
+ * @public
+ */
+export interface InvoicingPaginationConfiguration extends PaginationConfiguration {
+ client: InvoicingClient;
+}
diff --git a/clients/client-invoicing/src/pagination/ListInvoiceUnitsPaginator.ts b/clients/client-invoicing/src/pagination/ListInvoiceUnitsPaginator.ts
new file mode 100644
index 000000000000..983d18d7a49f
--- /dev/null
+++ b/clients/client-invoicing/src/pagination/ListInvoiceUnitsPaginator.ts
@@ -0,0 +1,24 @@
+// smithy-typescript generated code
+import { createPaginator } from "@smithy/core";
+import { Paginator } from "@smithy/types";
+
+import {
+ ListInvoiceUnitsCommand,
+ ListInvoiceUnitsCommandInput,
+ ListInvoiceUnitsCommandOutput,
+} from "../commands/ListInvoiceUnitsCommand";
+import { InvoicingClient } from "../InvoicingClient";
+import { InvoicingPaginationConfiguration } from "./Interfaces";
+
+/**
+ * @public
+ */
+export const paginateListInvoiceUnits: (
+ config: InvoicingPaginationConfiguration,
+ input: ListInvoiceUnitsCommandInput,
+ ...rest: any[]
+) => Paginator = createPaginator<
+ InvoicingPaginationConfiguration,
+ ListInvoiceUnitsCommandInput,
+ ListInvoiceUnitsCommandOutput
+>(InvoicingClient, ListInvoiceUnitsCommand, "NextToken", "NextToken", "MaxResults");
diff --git a/clients/client-invoicing/src/pagination/index.ts b/clients/client-invoicing/src/pagination/index.ts
new file mode 100644
index 000000000000..7a79026240bb
--- /dev/null
+++ b/clients/client-invoicing/src/pagination/index.ts
@@ -0,0 +1,3 @@
+// smithy-typescript generated code
+export * from "./Interfaces";
+export * from "./ListInvoiceUnitsPaginator";
diff --git a/clients/client-invoicing/src/protocols/Aws_json1_0.ts b/clients/client-invoicing/src/protocols/Aws_json1_0.ts
new file mode 100644
index 000000000000..7e6ca394d6dc
--- /dev/null
+++ b/clients/client-invoicing/src/protocols/Aws_json1_0.ts
@@ -0,0 +1,676 @@
+// smithy-typescript generated code
+import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
+import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
+import {
+ _json,
+ collectBody,
+ decorateServiceException as __decorateServiceException,
+ expectBoolean as __expectBoolean,
+ expectNonNull as __expectNonNull,
+ expectNumber as __expectNumber,
+ expectString as __expectString,
+ parseEpochTimestamp as __parseEpochTimestamp,
+ take,
+ withBaseException,
+} from "@smithy/smithy-client";
+import {
+ Endpoint as __Endpoint,
+ HeaderBag as __HeaderBag,
+ ResponseMetadata as __ResponseMetadata,
+ SerdeContext as __SerdeContext,
+} from "@smithy/types";
+
+import {
+ BatchGetInvoiceProfileCommandInput,
+ BatchGetInvoiceProfileCommandOutput,
+} from "../commands/BatchGetInvoiceProfileCommand";
+import { CreateInvoiceUnitCommandInput, CreateInvoiceUnitCommandOutput } from "../commands/CreateInvoiceUnitCommand";
+import { DeleteInvoiceUnitCommandInput, DeleteInvoiceUnitCommandOutput } from "../commands/DeleteInvoiceUnitCommand";
+import { GetInvoiceUnitCommandInput, GetInvoiceUnitCommandOutput } from "../commands/GetInvoiceUnitCommand";
+import { ListInvoiceUnitsCommandInput, ListInvoiceUnitsCommandOutput } from "../commands/ListInvoiceUnitsCommand";
+import {
+ ListTagsForResourceCommandInput,
+ ListTagsForResourceCommandOutput,
+} from "../commands/ListTagsForResourceCommand";
+import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
+import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand";
+import { UpdateInvoiceUnitCommandInput, UpdateInvoiceUnitCommandOutput } from "../commands/UpdateInvoiceUnitCommand";
+import { InvoicingServiceException as __BaseException } from "../models/InvoicingServiceException";
+import {
+ AccessDeniedException,
+ BatchGetInvoiceProfileRequest,
+ CreateInvoiceUnitRequest,
+ DeleteInvoiceUnitRequest,
+ Filters,
+ GetInvoiceUnitRequest,
+ GetInvoiceUnitResponse,
+ InternalServerException,
+ InvoiceUnit,
+ InvoiceUnitRule,
+ ListInvoiceUnitsRequest,
+ ListInvoiceUnitsResponse,
+ ListTagsForResourceRequest,
+ ResourceNotFoundException,
+ ResourceTag,
+ ServiceQuotaExceededException,
+ TagResourceRequest,
+ ThrottlingException,
+ UntagResourceRequest,
+ UpdateInvoiceUnitRequest,
+ ValidationException,
+} from "../models/models_0";
+
+/**
+ * serializeAws_json1_0BatchGetInvoiceProfileCommand
+ */
+export const se_BatchGetInvoiceProfileCommand = async (
+ input: BatchGetInvoiceProfileCommandInput,
+ context: __SerdeContext
+): Promise<__HttpRequest> => {
+ const headers: __HeaderBag = sharedHeaders("BatchGetInvoiceProfile");
+ let body: any;
+ body = JSON.stringify(_json(input));
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
+};
+
+/**
+ * serializeAws_json1_0CreateInvoiceUnitCommand
+ */
+export const se_CreateInvoiceUnitCommand = async (
+ input: CreateInvoiceUnitCommandInput,
+ context: __SerdeContext
+): Promise<__HttpRequest> => {
+ const headers: __HeaderBag = sharedHeaders("CreateInvoiceUnit");
+ let body: any;
+ body = JSON.stringify(_json(input));
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
+};
+
+/**
+ * serializeAws_json1_0DeleteInvoiceUnitCommand
+ */
+export const se_DeleteInvoiceUnitCommand = async (
+ input: DeleteInvoiceUnitCommandInput,
+ context: __SerdeContext
+): Promise<__HttpRequest> => {
+ const headers: __HeaderBag = sharedHeaders("DeleteInvoiceUnit");
+ let body: any;
+ body = JSON.stringify(_json(input));
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
+};
+
+/**
+ * serializeAws_json1_0GetInvoiceUnitCommand
+ */
+export const se_GetInvoiceUnitCommand = async (
+ input: GetInvoiceUnitCommandInput,
+ context: __SerdeContext
+): Promise<__HttpRequest> => {
+ const headers: __HeaderBag = sharedHeaders("GetInvoiceUnit");
+ let body: any;
+ body = JSON.stringify(se_GetInvoiceUnitRequest(input, context));
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
+};
+
+/**
+ * serializeAws_json1_0ListInvoiceUnitsCommand
+ */
+export const se_ListInvoiceUnitsCommand = async (
+ input: ListInvoiceUnitsCommandInput,
+ context: __SerdeContext
+): Promise<__HttpRequest> => {
+ const headers: __HeaderBag = sharedHeaders("ListInvoiceUnits");
+ let body: any;
+ body = JSON.stringify(se_ListInvoiceUnitsRequest(input, context));
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
+};
+
+/**
+ * serializeAws_json1_0ListTagsForResourceCommand
+ */
+export const se_ListTagsForResourceCommand = async (
+ input: ListTagsForResourceCommandInput,
+ context: __SerdeContext
+): Promise<__HttpRequest> => {
+ const headers: __HeaderBag = sharedHeaders("ListTagsForResource");
+ let body: any;
+ body = JSON.stringify(_json(input));
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
+};
+
+/**
+ * serializeAws_json1_0TagResourceCommand
+ */
+export const se_TagResourceCommand = async (
+ input: TagResourceCommandInput,
+ context: __SerdeContext
+): Promise<__HttpRequest> => {
+ const headers: __HeaderBag = sharedHeaders("TagResource");
+ let body: any;
+ body = JSON.stringify(_json(input));
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
+};
+
+/**
+ * serializeAws_json1_0UntagResourceCommand
+ */
+export const se_UntagResourceCommand = async (
+ input: UntagResourceCommandInput,
+ context: __SerdeContext
+): Promise<__HttpRequest> => {
+ const headers: __HeaderBag = sharedHeaders("UntagResource");
+ let body: any;
+ body = JSON.stringify(_json(input));
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
+};
+
+/**
+ * serializeAws_json1_0UpdateInvoiceUnitCommand
+ */
+export const se_UpdateInvoiceUnitCommand = async (
+ input: UpdateInvoiceUnitCommandInput,
+ context: __SerdeContext
+): Promise<__HttpRequest> => {
+ const headers: __HeaderBag = sharedHeaders("UpdateInvoiceUnit");
+ let body: any;
+ body = JSON.stringify(_json(input));
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
+};
+
+/**
+ * deserializeAws_json1_0BatchGetInvoiceProfileCommand
+ */
+export const de_BatchGetInvoiceProfileCommand = async (
+ output: __HttpResponse,
+ context: __SerdeContext
+): Promise => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data: any = await parseBody(output.body, context);
+ let contents: any = {};
+ contents = _json(data);
+ const response: BatchGetInvoiceProfileCommandOutput = {
+ $metadata: deserializeMetadata(output),
+ ...contents,
+ };
+ return response;
+};
+
+/**
+ * deserializeAws_json1_0CreateInvoiceUnitCommand
+ */
+export const de_CreateInvoiceUnitCommand = async (
+ output: __HttpResponse,
+ context: __SerdeContext
+): Promise => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data: any = await parseBody(output.body, context);
+ let contents: any = {};
+ contents = _json(data);
+ const response: CreateInvoiceUnitCommandOutput = {
+ $metadata: deserializeMetadata(output),
+ ...contents,
+ };
+ return response;
+};
+
+/**
+ * deserializeAws_json1_0DeleteInvoiceUnitCommand
+ */
+export const de_DeleteInvoiceUnitCommand = async (
+ output: __HttpResponse,
+ context: __SerdeContext
+): Promise => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data: any = await parseBody(output.body, context);
+ let contents: any = {};
+ contents = _json(data);
+ const response: DeleteInvoiceUnitCommandOutput = {
+ $metadata: deserializeMetadata(output),
+ ...contents,
+ };
+ return response;
+};
+
+/**
+ * deserializeAws_json1_0GetInvoiceUnitCommand
+ */
+export const de_GetInvoiceUnitCommand = async (
+ output: __HttpResponse,
+ context: __SerdeContext
+): Promise => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data: any = await parseBody(output.body, context);
+ let contents: any = {};
+ contents = de_GetInvoiceUnitResponse(data, context);
+ const response: GetInvoiceUnitCommandOutput = {
+ $metadata: deserializeMetadata(output),
+ ...contents,
+ };
+ return response;
+};
+
+/**
+ * deserializeAws_json1_0ListInvoiceUnitsCommand
+ */
+export const de_ListInvoiceUnitsCommand = async (
+ output: __HttpResponse,
+ context: __SerdeContext
+): Promise => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data: any = await parseBody(output.body, context);
+ let contents: any = {};
+ contents = de_ListInvoiceUnitsResponse(data, context);
+ const response: ListInvoiceUnitsCommandOutput = {
+ $metadata: deserializeMetadata(output),
+ ...contents,
+ };
+ return response;
+};
+
+/**
+ * deserializeAws_json1_0ListTagsForResourceCommand
+ */
+export const de_ListTagsForResourceCommand = async (
+ output: __HttpResponse,
+ context: __SerdeContext
+): Promise => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data: any = await parseBody(output.body, context);
+ let contents: any = {};
+ contents = _json(data);
+ const response: ListTagsForResourceCommandOutput = {
+ $metadata: deserializeMetadata(output),
+ ...contents,
+ };
+ return response;
+};
+
+/**
+ * deserializeAws_json1_0TagResourceCommand
+ */
+export const de_TagResourceCommand = async (
+ output: __HttpResponse,
+ context: __SerdeContext
+): Promise => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data: any = await parseBody(output.body, context);
+ let contents: any = {};
+ contents = _json(data);
+ const response: TagResourceCommandOutput = {
+ $metadata: deserializeMetadata(output),
+ ...contents,
+ };
+ return response;
+};
+
+/**
+ * deserializeAws_json1_0UntagResourceCommand
+ */
+export const de_UntagResourceCommand = async (
+ output: __HttpResponse,
+ context: __SerdeContext
+): Promise => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data: any = await parseBody(output.body, context);
+ let contents: any = {};
+ contents = _json(data);
+ const response: UntagResourceCommandOutput = {
+ $metadata: deserializeMetadata(output),
+ ...contents,
+ };
+ return response;
+};
+
+/**
+ * deserializeAws_json1_0UpdateInvoiceUnitCommand
+ */
+export const de_UpdateInvoiceUnitCommand = async (
+ output: __HttpResponse,
+ context: __SerdeContext
+): Promise => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data: any = await parseBody(output.body, context);
+ let contents: any = {};
+ contents = _json(data);
+ const response: UpdateInvoiceUnitCommandOutput = {
+ $metadata: deserializeMetadata(output),
+ ...contents,
+ };
+ return response;
+};
+
+/**
+ * deserialize_Aws_json1_0CommandError
+ */
+const de_CommandError = async (output: __HttpResponse, context: __SerdeContext): Promise => {
+ const parsedOutput: any = {
+ ...output,
+ body: await parseErrorBody(output.body, context),
+ };
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
+ switch (errorCode) {
+ case "AccessDeniedException":
+ case "com.amazonaws.invoicing#AccessDeniedException":
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
+ case "InternalServerException":
+ case "com.amazonaws.invoicing#InternalServerException":
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
+ case "ResourceNotFoundException":
+ case "com.amazonaws.invoicing#ResourceNotFoundException":
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
+ case "ThrottlingException":
+ case "com.amazonaws.invoicing#ThrottlingException":
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
+ case "ValidationException":
+ case "com.amazonaws.invoicing#ValidationException":
+ throw await de_ValidationExceptionRes(parsedOutput, context);
+ case "ServiceQuotaExceededException":
+ case "com.amazonaws.invoicing#ServiceQuotaExceededException":
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
+ default:
+ const parsedBody = parsedOutput.body;
+ return throwDefaultError({
+ output,
+ parsedBody,
+ errorCode,
+ }) as never;
+ }
+};
+
+/**
+ * deserializeAws_json1_0AccessDeniedExceptionRes
+ */
+const de_AccessDeniedExceptionRes = async (
+ parsedOutput: any,
+ context: __SerdeContext
+): Promise => {
+ const body = parsedOutput.body;
+ const deserialized: any = _json(body);
+ const exception = new AccessDeniedException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized,
+ });
+ return __decorateServiceException(exception, body);
+};
+
+/**
+ * deserializeAws_json1_0InternalServerExceptionRes
+ */
+const de_InternalServerExceptionRes = async (
+ parsedOutput: any,
+ context: __SerdeContext
+): Promise => {
+ const body = parsedOutput.body;
+ const deserialized: any = _json(body);
+ const exception = new InternalServerException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized,
+ });
+ return __decorateServiceException(exception, body);
+};
+
+/**
+ * deserializeAws_json1_0ResourceNotFoundExceptionRes
+ */
+const de_ResourceNotFoundExceptionRes = async (
+ parsedOutput: any,
+ context: __SerdeContext
+): Promise => {
+ const body = parsedOutput.body;
+ const deserialized: any = _json(body);
+ const exception = new ResourceNotFoundException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized,
+ });
+ return __decorateServiceException(exception, body);
+};
+
+/**
+ * deserializeAws_json1_0ServiceQuotaExceededExceptionRes
+ */
+const de_ServiceQuotaExceededExceptionRes = async (
+ parsedOutput: any,
+ context: __SerdeContext
+): Promise => {
+ const body = parsedOutput.body;
+ const deserialized: any = _json(body);
+ const exception = new ServiceQuotaExceededException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized,
+ });
+ return __decorateServiceException(exception, body);
+};
+
+/**
+ * deserializeAws_json1_0ThrottlingExceptionRes
+ */
+const de_ThrottlingExceptionRes = async (parsedOutput: any, context: __SerdeContext): Promise => {
+ const body = parsedOutput.body;
+ const deserialized: any = _json(body);
+ const exception = new ThrottlingException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized,
+ });
+ return __decorateServiceException(exception, body);
+};
+
+/**
+ * deserializeAws_json1_0ValidationExceptionRes
+ */
+const de_ValidationExceptionRes = async (parsedOutput: any, context: __SerdeContext): Promise => {
+ const body = parsedOutput.body;
+ const deserialized: any = _json(body);
+ const exception = new ValidationException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized,
+ });
+ return __decorateServiceException(exception, body);
+};
+
+// se_AccountIdList omitted.
+
+// se_BatchGetInvoiceProfileRequest omitted.
+
+// se_CreateInvoiceUnitRequest omitted.
+
+// se_DeleteInvoiceUnitRequest omitted.
+
+// se_Filters omitted.
+
+/**
+ * serializeAws_json1_0GetInvoiceUnitRequest
+ */
+const se_GetInvoiceUnitRequest = (input: GetInvoiceUnitRequest, context: __SerdeContext): any => {
+ return take(input, {
+ AsOf: (_) => _.getTime() / 1_000,
+ InvoiceUnitArn: [],
+ });
+};
+
+// se_InvoiceUnitNames omitted.
+
+// se_InvoiceUnitRule omitted.
+
+/**
+ * serializeAws_json1_0ListInvoiceUnitsRequest
+ */
+const se_ListInvoiceUnitsRequest = (input: ListInvoiceUnitsRequest, context: __SerdeContext): any => {
+ return take(input, {
+ AsOf: (_) => _.getTime() / 1_000,
+ Filters: _json,
+ MaxResults: [],
+ NextToken: [],
+ });
+};
+
+// se_ListTagsForResourceRequest omitted.
+
+// se_ResourceTag omitted.
+
+// se_ResourceTagKeyList omitted.
+
+// se_ResourceTagList omitted.
+
+// se_TagResourceRequest omitted.
+
+// se_UntagResourceRequest omitted.
+
+// se_UpdateInvoiceUnitRequest omitted.
+
+// de_AccessDeniedException omitted.
+
+// de_AccountIdList omitted.
+
+// de_BatchGetInvoiceProfileResponse omitted.
+
+// de_CreateInvoiceUnitResponse omitted.
+
+// de_DeleteInvoiceUnitResponse omitted.
+
+/**
+ * deserializeAws_json1_0GetInvoiceUnitResponse
+ */
+const de_GetInvoiceUnitResponse = (output: any, context: __SerdeContext): GetInvoiceUnitResponse => {
+ return take(output, {
+ Description: __expectString,
+ InvoiceReceiver: __expectString,
+ InvoiceUnitArn: __expectString,
+ LastModified: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
+ Name: __expectString,
+ Rule: _json,
+ TaxInheritanceDisabled: __expectBoolean,
+ }) as any;
+};
+
+// de_InternalServerException omitted.
+
+// de_InvoiceProfile omitted.
+
+/**
+ * deserializeAws_json1_0InvoiceUnit
+ */
+const de_InvoiceUnit = (output: any, context: __SerdeContext): InvoiceUnit => {
+ return take(output, {
+ Description: __expectString,
+ InvoiceReceiver: __expectString,
+ InvoiceUnitArn: __expectString,
+ LastModified: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
+ Name: __expectString,
+ Rule: _json,
+ TaxInheritanceDisabled: __expectBoolean,
+ }) as any;
+};
+
+// de_InvoiceUnitRule omitted.
+
+/**
+ * deserializeAws_json1_0InvoiceUnits
+ */
+const de_InvoiceUnits = (output: any, context: __SerdeContext): InvoiceUnit[] => {
+ const retVal = (output || [])
+ .filter((e: any) => e != null)
+ .map((entry: any) => {
+ return de_InvoiceUnit(entry, context);
+ });
+ return retVal;
+};
+
+/**
+ * deserializeAws_json1_0ListInvoiceUnitsResponse
+ */
+const de_ListInvoiceUnitsResponse = (output: any, context: __SerdeContext): ListInvoiceUnitsResponse => {
+ return take(output, {
+ InvoiceUnits: (_: any) => de_InvoiceUnits(_, context),
+ NextToken: __expectString,
+ }) as any;
+};
+
+// de_ListTagsForResourceResponse omitted.
+
+// de_ProfileList omitted.
+
+// de_ReceiverAddress omitted.
+
+// de_ResourceNotFoundException omitted.
+
+// de_ResourceTag omitted.
+
+// de_ResourceTagList omitted.
+
+// de_ServiceQuotaExceededException omitted.
+
+// de_TagResourceResponse omitted.
+
+// de_ThrottlingException omitted.
+
+// de_UntagResourceResponse omitted.
+
+// de_UpdateInvoiceUnitResponse omitted.
+
+// de_ValidationException omitted.
+
+// de_ValidationExceptionField omitted.
+
+// de_ValidationExceptionFieldList omitted.
+
+const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({
+ httpStatusCode: output.statusCode,
+ requestId:
+ output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
+ extendedRequestId: output.headers["x-amz-id-2"],
+ cfId: output.headers["x-amz-cf-id"],
+});
+
+// Encode Uint8Array data into string with utf-8.
+const collectBodyString = (streamBody: any, context: __SerdeContext): Promise =>
+ collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
+
+const throwDefaultError = withBaseException(__BaseException);
+const buildHttpRpcRequest = async (
+ context: __SerdeContext,
+ headers: __HeaderBag,
+ path: string,
+ resolvedHostname: string | undefined,
+ body: any
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
+ const contents: any = {
+ protocol,
+ hostname,
+ port,
+ method: "POST",
+ path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
+ headers,
+ };
+ if (resolvedHostname !== undefined) {
+ contents.hostname = resolvedHostname;
+ }
+ if (body !== undefined) {
+ contents.body = body;
+ }
+ return new __HttpRequest(contents);
+};
+function sharedHeaders(operation: string): __HeaderBag {
+ return {
+ "content-type": "application/x-amz-json-1.0",
+ "x-amz-target": `Invoicing.${operation}`,
+ };
+}
diff --git a/clients/client-invoicing/src/runtimeConfig.browser.ts b/clients/client-invoicing/src/runtimeConfig.browser.ts
new file mode 100644
index 000000000000..8f1f618b7801
--- /dev/null
+++ b/clients/client-invoicing/src/runtimeConfig.browser.ts
@@ -0,0 +1,44 @@
+// smithy-typescript generated code
+// @ts-ignore: package.json will be imported from dist folders
+import packageInfo from "../package.json"; // eslint-disable-line
+
+import { Sha256 } from "@aws-crypto/sha256-browser";
+import { createDefaultUserAgentProvider } from "@aws-sdk/util-user-agent-browser";
+import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@smithy/config-resolver";
+import { FetchHttpHandler as RequestHandler, streamCollector } from "@smithy/fetch-http-handler";
+import { invalidProvider } from "@smithy/invalid-dependency";
+import { calculateBodyLength } from "@smithy/util-body-length-browser";
+import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/util-retry";
+import { InvoicingClientConfig } from "./InvoicingClient";
+import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
+import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
+import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-browser";
+
+/**
+ * @internal
+ */
+export const getRuntimeConfig = (config: InvoicingClientConfig) => {
+ const defaultsMode = resolveDefaultsModeConfig(config);
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
+ const clientSharedValues = getSharedRuntimeConfig(config);
+ return {
+ ...clientSharedValues,
+ ...config,
+ runtime: "browser",
+ defaultsMode,
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
+ credentialDefaultProvider:
+ config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))),
+ defaultUserAgentProvider:
+ config?.defaultUserAgentProvider ??
+ createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
+ maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
+ region: config?.region ?? invalidProvider("Region is missing"),
+ requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
+ retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
+ sha256: config?.sha256 ?? Sha256,
+ streamCollector: config?.streamCollector ?? streamCollector,
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
+ useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
+ };
+};
diff --git a/clients/client-invoicing/src/runtimeConfig.native.ts b/clients/client-invoicing/src/runtimeConfig.native.ts
new file mode 100644
index 000000000000..6e1e27f3e660
--- /dev/null
+++ b/clients/client-invoicing/src/runtimeConfig.native.ts
@@ -0,0 +1,18 @@
+// smithy-typescript generated code
+import { Sha256 } from "@aws-crypto/sha256-js";
+
+import { InvoicingClientConfig } from "./InvoicingClient";
+import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
+
+/**
+ * @internal
+ */
+export const getRuntimeConfig = (config: InvoicingClientConfig) => {
+ const browserDefaults = getBrowserRuntimeConfig(config);
+ return {
+ ...browserDefaults,
+ ...config,
+ runtime: "react-native",
+ sha256: config?.sha256 ?? Sha256,
+ };
+};
diff --git a/clients/client-invoicing/src/runtimeConfig.shared.ts b/clients/client-invoicing/src/runtimeConfig.shared.ts
new file mode 100644
index 000000000000..22b8dce0b18b
--- /dev/null
+++ b/clients/client-invoicing/src/runtimeConfig.shared.ts
@@ -0,0 +1,38 @@
+// smithy-typescript generated code
+import { AwsSdkSigV4Signer } from "@aws-sdk/core";
+import { NoOpLogger } from "@smithy/smithy-client";
+import { IdentityProviderConfig } from "@smithy/types";
+import { parseUrl } from "@smithy/url-parser";
+import { fromBase64, toBase64 } from "@smithy/util-base64";
+import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
+
+import { defaultInvoicingHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
+import { defaultEndpointResolver } from "./endpoint/endpointResolver";
+import { InvoicingClientConfig } from "./InvoicingClient";
+
+/**
+ * @internal
+ */
+export const getRuntimeConfig = (config: InvoicingClientConfig) => {
+ return {
+ apiVersion: "2024-12-01",
+ base64Decoder: config?.base64Decoder ?? fromBase64,
+ base64Encoder: config?.base64Encoder ?? toBase64,
+ disableHostPrefix: config?.disableHostPrefix ?? false,
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
+ extensions: config?.extensions ?? [],
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultInvoicingHttpAuthSchemeProvider,
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
+ {
+ schemeId: "aws.auth#sigv4",
+ identityProvider: (ipc: IdentityProviderConfig) => ipc.getIdentityProvider("aws.auth#sigv4"),
+ signer: new AwsSdkSigV4Signer(),
+ },
+ ],
+ logger: config?.logger ?? new NoOpLogger(),
+ serviceId: config?.serviceId ?? "Invoicing",
+ urlParser: config?.urlParser ?? parseUrl,
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
+ };
+};
diff --git a/clients/client-invoicing/src/runtimeConfig.ts b/clients/client-invoicing/src/runtimeConfig.ts
new file mode 100644
index 000000000000..3b33a35f392a
--- /dev/null
+++ b/clients/client-invoicing/src/runtimeConfig.ts
@@ -0,0 +1,60 @@
+// smithy-typescript generated code
+// @ts-ignore: package.json will be imported from dist folders
+import packageInfo from "../package.json"; // eslint-disable-line
+
+import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
+import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
+import { NODE_APP_ID_CONFIG_OPTIONS, createDefaultUserAgentProvider } from "@aws-sdk/util-user-agent-node";
+import {
+ NODE_REGION_CONFIG_FILE_OPTIONS,
+ NODE_REGION_CONFIG_OPTIONS,
+ NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,
+ NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,
+} from "@smithy/config-resolver";
+import { Hash } from "@smithy/hash-node";
+import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry";
+import { loadConfig as loadNodeConfig } from "@smithy/node-config-provider";
+import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
+import { calculateBodyLength } from "@smithy/util-body-length-node";
+import { DEFAULT_RETRY_MODE } from "@smithy/util-retry";
+import { InvoicingClientConfig } from "./InvoicingClient";
+import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
+import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
+import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node";
+import { emitWarningIfUnsupportedVersion } from "@smithy/smithy-client";
+
+/**
+ * @internal
+ */
+export const getRuntimeConfig = (config: InvoicingClientConfig) => {
+ emitWarningIfUnsupportedVersion(process.version);
+ const defaultsMode = resolveDefaultsModeConfig(config);
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
+ const clientSharedValues = getSharedRuntimeConfig(config);
+ awsCheckVersion(process.version);
+ return {
+ ...clientSharedValues,
+ ...config,
+ runtime: "node",
+ defaultsMode,
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
+ defaultUserAgentProvider:
+ config?.defaultUserAgentProvider ??
+ createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
+ maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
+ region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
+ requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
+ retryMode:
+ config?.retryMode ??
+ loadNodeConfig({
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
+ }),
+ sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
+ streamCollector: config?.streamCollector ?? streamCollector,
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
+ userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS),
+ };
+};
diff --git a/clients/client-invoicing/src/runtimeExtensions.ts b/clients/client-invoicing/src/runtimeExtensions.ts
new file mode 100644
index 000000000000..5d2defbf922a
--- /dev/null
+++ b/clients/client-invoicing/src/runtimeExtensions.ts
@@ -0,0 +1,48 @@
+// smithy-typescript generated code
+import {
+ getAwsRegionExtensionConfiguration,
+ resolveAwsRegionExtensionConfiguration,
+} from "@aws-sdk/region-config-resolver";
+import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http";
+import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
+
+import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from "./auth/httpAuthExtensionConfiguration";
+import { InvoicingExtensionConfiguration } from "./extensionConfiguration";
+
+/**
+ * @public
+ */
+export interface RuntimeExtension {
+ configure(extensionConfiguration: InvoicingExtensionConfiguration): void;
+}
+
+/**
+ * @public
+ */
+export interface RuntimeExtensionsConfig {
+ extensions: RuntimeExtension[];
+}
+
+const asPartial = >(t: T) => t;
+
+/**
+ * @internal
+ */
+export const resolveRuntimeExtensions = (runtimeConfig: any, extensions: RuntimeExtension[]) => {
+ const extensionConfiguration: InvoicingExtensionConfiguration = {
+ ...asPartial(getAwsRegionExtensionConfiguration(runtimeConfig)),
+ ...asPartial(getDefaultExtensionConfiguration(runtimeConfig)),
+ ...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)),
+ ...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig)),
+ };
+
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
+
+ return {
+ ...runtimeConfig,
+ ...resolveAwsRegionExtensionConfiguration(extensionConfiguration),
+ ...resolveDefaultRuntimeConfig(extensionConfiguration),
+ ...resolveHttpHandlerRuntimeConfig(extensionConfiguration),
+ ...resolveHttpAuthRuntimeConfig(extensionConfiguration),
+ };
+};
diff --git a/clients/client-invoicing/tsconfig.cjs.json b/clients/client-invoicing/tsconfig.cjs.json
new file mode 100644
index 000000000000..3567d85ba846
--- /dev/null
+++ b/clients/client-invoicing/tsconfig.cjs.json
@@ -0,0 +1,6 @@
+{
+ "extends": "./tsconfig",
+ "compilerOptions": {
+ "outDir": "dist-cjs"
+ }
+}
diff --git a/clients/client-invoicing/tsconfig.es.json b/clients/client-invoicing/tsconfig.es.json
new file mode 100644
index 000000000000..809f57bde65e
--- /dev/null
+++ b/clients/client-invoicing/tsconfig.es.json
@@ -0,0 +1,8 @@
+{
+ "extends": "./tsconfig",
+ "compilerOptions": {
+ "lib": ["dom"],
+ "module": "esnext",
+ "outDir": "dist-es"
+ }
+}
diff --git a/clients/client-invoicing/tsconfig.json b/clients/client-invoicing/tsconfig.json
new file mode 100644
index 000000000000..e7f5ec56b742
--- /dev/null
+++ b/clients/client-invoicing/tsconfig.json
@@ -0,0 +1,13 @@
+{
+ "extends": "@tsconfig/node16/tsconfig.json",
+ "compilerOptions": {
+ "downlevelIteration": true,
+ "importHelpers": true,
+ "incremental": true,
+ "removeComments": true,
+ "resolveJsonModule": true,
+ "rootDir": "src",
+ "useUnknownInCatchVariables": false
+ },
+ "exclude": ["test/"]
+}
diff --git a/clients/client-invoicing/tsconfig.types.json b/clients/client-invoicing/tsconfig.types.json
new file mode 100644
index 000000000000..4c3dfa7b3d25
--- /dev/null
+++ b/clients/client-invoicing/tsconfig.types.json
@@ -0,0 +1,10 @@
+{
+ "extends": "./tsconfig",
+ "compilerOptions": {
+ "removeComments": false,
+ "declaration": true,
+ "declarationDir": "dist-types",
+ "emitDeclarationOnly": true
+ },
+ "exclude": ["test/**/*", "dist-types/**/*"]
+}
diff --git a/codegen/sdk-codegen/aws-models/invoicing.json b/codegen/sdk-codegen/aws-models/invoicing.json
new file mode 100644
index 000000000000..9f9d52bd14da
--- /dev/null
+++ b/codegen/sdk-codegen/aws-models/invoicing.json
@@ -0,0 +1,2092 @@
+{
+ "smithy": "2.0",
+ "shapes": {
+ "com.amazonaws.invoicing#AccessDeniedException": {
+ "type": "structure",
+ "members": {
+ "message": {
+ "target": "com.amazonaws.invoicing#BasicString"
+ },
+ "resourceName": {
+ "target": "com.amazonaws.invoicing#InvoiceUnitArnString",
+ "traits": {
+ "smithy.api#documentation": "You don't have sufficient access to perform this action.\n
"
+ }
+ }
+ },
+ "traits": {
+ "aws.protocols#awsQueryError": {
+ "code": "InvoicingAccessDenied",
+ "httpResponseCode": 403
+ },
+ "smithy.api#documentation": "You don't have sufficient access to perform this action.
",
+ "smithy.api#error": "client",
+ "smithy.api#httpError": 403
+ }
+ },
+ "com.amazonaws.invoicing#AccountIdList": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.invoicing#AccountIdString"
+ },
+ "traits": {
+ "smithy.api#length": {
+ "min": 1,
+ "max": 1000
+ }
+ }
+ },
+ "com.amazonaws.invoicing#AccountIdString": {
+ "type": "string",
+ "traits": {
+ "smithy.api#pattern": "^\\d{12}$"
+ }
+ },
+ "com.amazonaws.invoicing#AsOfTimestamp": {
+ "type": "timestamp"
+ },
+ "com.amazonaws.invoicing#BasicString": {
+ "type": "string",
+ "traits": {
+ "smithy.api#length": {
+ "min": 0,
+ "max": 1024
+ },
+ "smithy.api#pattern": "^\\S+$"
+ }
+ },
+ "com.amazonaws.invoicing#BatchGetInvoiceProfile": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.invoicing#BatchGetInvoiceProfileRequest"
+ },
+ "output": {
+ "target": "com.amazonaws.invoicing#BatchGetInvoiceProfileResponse"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.invoicing#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.invoicing#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.invoicing#ResourceNotFoundException"
+ },
+ {
+ "target": "com.amazonaws.invoicing#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.invoicing#ValidationException"
+ }
+ ],
+ "traits": {
+ "smithy.api#documentation": "This gets the invoice profile associated with a set of accounts. The accounts must be linked accounts under the requester management account organization.
",
+ "smithy.api#examples": [
+ {
+ "title": "BatchGetInvoiceProfile",
+ "input": {
+ "AccountIds": ["111111111111"]
+ },
+ "output": {
+ "Profiles": [
+ {
+ "AccountId": "111111111111",
+ "Issuer": "Test",
+ "ReceiverAddress": {
+ "AddressLine1": "Test",
+ "City": "Test",
+ "CountryCode": "LU",
+ "PostalCode": "Test",
+ "StateOrRegion": "Test"
+ },
+ "ReceiverEmail": "test@amazon.com",
+ "ReceiverName": "TestAccount"
+ }
+ ]
+ }
+ }
+ ],
+ "smithy.api#readonly": {}
+ }
+ },
+ "com.amazonaws.invoicing#BatchGetInvoiceProfileRequest": {
+ "type": "structure",
+ "members": {
+ "AccountIds": {
+ "target": "com.amazonaws.invoicing#AccountIdList",
+ "traits": {
+ "smithy.api#documentation": "Retrieves the corresponding invoice profile data for these account IDs.\n
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.invoicing#BatchGetInvoiceProfileResponse": {
+ "type": "structure",
+ "members": {
+ "Profiles": {
+ "target": "com.amazonaws.invoicing#ProfileList",
+ "traits": {
+ "smithy.api#documentation": "\n A list of invoice profiles corresponding to the requested accounts.\n
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
+ "com.amazonaws.invoicing#CreateInvoiceUnit": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.invoicing#CreateInvoiceUnitRequest"
+ },
+ "output": {
+ "target": "com.amazonaws.invoicing#CreateInvoiceUnitResponse"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.invoicing#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.invoicing#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.invoicing#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.invoicing#ValidationException"
+ }
+ ],
+ "traits": {
+ "smithy.api#documentation": "This creates a new invoice unit with the provided definition.
",
+ "smithy.api#examples": [
+ {
+ "title": "CreateInvoiceUnit",
+ "input": {
+ "Name": "Example Invoice Unit",
+ "InvoiceReceiver": "111111111111",
+ "Description": "Example Invoice Unit Description",
+ "TaxInheritanceDisabled": false,
+ "Rule": {
+ "LinkedAccounts": ["222222222222"]
+ },
+ "ResourceTags": [
+ {
+ "Key": "TagKey",
+ "Value": "TagValue"
+ }
+ ]
+ },
+ "output": {
+ "InvoiceUnitArn": "arn:aws:invoicing::000000000000:invoice-unit/12345678"
+ }
+ }
+ ]
+ }
+ },
+ "com.amazonaws.invoicing#CreateInvoiceUnitRequest": {
+ "type": "structure",
+ "members": {
+ "Name": {
+ "target": "com.amazonaws.invoicing#InvoiceUnitName",
+ "traits": {
+ "smithy.api#documentation": "\n The unique name of the invoice unit that is shown on the generated invoice. This can't be changed once it is set. To change this name, you must delete the invoice unit recreate.\n
",
+ "smithy.api#required": {}
+ }
+ },
+ "InvoiceReceiver": {
+ "target": "com.amazonaws.invoicing#AccountIdString",
+ "traits": {
+ "smithy.api#documentation": "\n The Amazon Web Services account ID chosen to be the receiver of an invoice unit. All invoices generated for that invoice unit will be sent to this account ID.\n
",
+ "smithy.api#required": {}
+ }
+ },
+ "Description": {
+ "target": "com.amazonaws.invoicing#DescriptionString",
+ "traits": {
+ "smithy.api#documentation": "\n The invoice unit's description. This can be changed at a later time.\n
"
+ }
+ },
+ "TaxInheritanceDisabled": {
+ "target": "com.amazonaws.invoicing#TaxInheritanceDisabledFlag",
+ "traits": {
+ "smithy.api#default": false,
+ "smithy.api#documentation": "Whether the invoice unit based tax inheritance is/ should be enabled or disabled.\n
"
+ }
+ },
+ "Rule": {
+ "target": "com.amazonaws.invoicing#InvoiceUnitRule",
+ "traits": {
+ "smithy.api#documentation": "The InvoiceUnitRule
object used to create invoice units.\n
",
+ "smithy.api#required": {}
+ }
+ },
+ "ResourceTags": {
+ "target": "com.amazonaws.invoicing#ResourceTagList",
+ "traits": {
+ "smithy.api#documentation": "\n The tag structure that contains a tag key and value.\n
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.invoicing#CreateInvoiceUnitResponse": {
+ "type": "structure",
+ "members": {
+ "InvoiceUnitArn": {
+ "target": "com.amazonaws.invoicing#InvoiceUnitArnString",
+ "traits": {
+ "smithy.api#documentation": "\n The ARN to identify an invoice unit. This information can't be modified or deleted.\n
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
+ "com.amazonaws.invoicing#DeleteInvoiceUnit": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.invoicing#DeleteInvoiceUnitRequest"
+ },
+ "output": {
+ "target": "com.amazonaws.invoicing#DeleteInvoiceUnitResponse"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.invoicing#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.invoicing#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.invoicing#ResourceNotFoundException"
+ },
+ {
+ "target": "com.amazonaws.invoicing#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.invoicing#ValidationException"
+ }
+ ],
+ "traits": {
+ "smithy.api#documentation": "This deletes an invoice unit with the provided invoice unit ARN.\n
",
+ "smithy.api#examples": [
+ {
+ "title": "DeleteInvoiceUnit",
+ "input": {
+ "InvoiceUnitArn": "arn:aws:invoicing::000000000000:invoice-unit/12345678"
+ },
+ "output": {
+ "InvoiceUnitArn": "arn:aws:invoicing::000000000000:invoice-unit/12345678"
+ }
+ }
+ ]
+ }
+ },
+ "com.amazonaws.invoicing#DeleteInvoiceUnitRequest": {
+ "type": "structure",
+ "members": {
+ "InvoiceUnitArn": {
+ "target": "com.amazonaws.invoicing#InvoiceUnitArnString",
+ "traits": {
+ "smithy.api#documentation": "\n The ARN to identify an invoice unit. This information can't be modified or deleted.\n
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.invoicing#DeleteInvoiceUnitResponse": {
+ "type": "structure",
+ "members": {
+ "InvoiceUnitArn": {
+ "target": "com.amazonaws.invoicing#InvoiceUnitArnString",
+ "traits": {
+ "smithy.api#documentation": "\n The ARN to identify an invoice unit. This information can't be modified or deleted.\n
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
+ "com.amazonaws.invoicing#DescriptionString": {
+ "type": "string",
+ "traits": {
+ "smithy.api#length": {
+ "min": 0,
+ "max": 500
+ },
+ "smithy.api#pattern": "^[\\S\\s]*$"
+ }
+ },
+ "com.amazonaws.invoicing#Filters": {
+ "type": "structure",
+ "members": {
+ "Names": {
+ "target": "com.amazonaws.invoicing#InvoiceUnitNames",
+ "traits": {
+ "smithy.api#documentation": "\n An optional input to the list API. You can specify a list of invoice unit names inside filters to return invoice units that match only the specified invoice unit names. If multiple names are provided, the result is an OR
condition (match any) of the specified invoice unit names.\n
"
+ }
+ },
+ "InvoiceReceivers": {
+ "target": "com.amazonaws.invoicing#AccountIdList",
+ "traits": {
+ "smithy.api#documentation": "\nYou can specify a list of Amazon Web Services account IDs inside filters to return invoice units that match only the specified accounts. If multiple accounts are provided, the result is an OR
condition (match any) of the specified accounts. This filter only matches the specified accounts on the invoice receivers of the invoice units.\n
"
+ }
+ },
+ "Accounts": {
+ "target": "com.amazonaws.invoicing#AccountIdList",
+ "traits": {
+ "smithy.api#documentation": "\nYou can specify a list of Amazon Web Services account IDs inside filters to return invoice units that match only the specified accounts. If multiple accounts are provided, the result is an OR
condition (match any) of the specified accounts. The specified account IDs are matched with either the receiver or the linked accounts in the rules.\n
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "An optional input to the list API. If multiple filters are specified, the returned list will be a configuration that match all of the provided filters. Supported filter types are InvoiceReceivers
, Names
, and Accounts
. \n
"
+ }
+ },
+ "com.amazonaws.invoicing#GetInvoiceUnit": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.invoicing#GetInvoiceUnitRequest"
+ },
+ "output": {
+ "target": "com.amazonaws.invoicing#GetInvoiceUnitResponse"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.invoicing#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.invoicing#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.invoicing#ResourceNotFoundException"
+ },
+ {
+ "target": "com.amazonaws.invoicing#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.invoicing#ValidationException"
+ }
+ ],
+ "traits": {
+ "smithy.api#documentation": "This retrieves the invoice unit definition.
",
+ "smithy.api#examples": [
+ {
+ "title": "GetInvoiceUnit as of current time",
+ "input": {
+ "InvoiceUnitArn": "arn:aws:invoicing::000000000000:invoice-unit/12345678"
+ },
+ "output": {
+ "InvoiceReceiver": "111111111111",
+ "InvoiceUnitArn": "arn:aws:invoicing::000000000000:invoice-unit/12345678",
+ "LastModified": 1733788800,
+ "Name": "Example Invoice Unit A",
+ "Description": "Description changed on 1733788800",
+ "Rule": {
+ "LinkedAccounts": ["222222222222"]
+ },
+ "TaxInheritanceDisabled": false
+ }
+ },
+ {
+ "title": "GetInvoiceUnit as of specified time",
+ "input": {
+ "InvoiceUnitArn": "arn:aws:invoicing::000000000000:invoice-unit/87654321",
+ "AsOf": 1733097600
+ },
+ "output": {
+ "InvoiceReceiver": "333333333333",
+ "InvoiceUnitArn": "arn:aws:invoicing::000000000000:invoice-unit/87654321",
+ "LastModified": 1733011200,
+ "Name": "Example Invoice Unit B",
+ "Description": "Description changed on 1733011200",
+ "Rule": {
+ "LinkedAccounts": ["333333333333"]
+ },
+ "TaxInheritanceDisabled": false
+ }
+ }
+ ],
+ "smithy.api#readonly": {}
+ }
+ },
+ "com.amazonaws.invoicing#GetInvoiceUnitRequest": {
+ "type": "structure",
+ "members": {
+ "InvoiceUnitArn": {
+ "target": "com.amazonaws.invoicing#InvoiceUnitArnString",
+ "traits": {
+ "smithy.api#documentation": "\n The ARN to identify an invoice unit. This information can't be modified or deleted.\n
",
+ "smithy.api#required": {}
+ }
+ },
+ "AsOf": {
+ "target": "com.amazonaws.invoicing#AsOfTimestamp",
+ "traits": {
+ "smithy.api#documentation": "\n The state of an invoice unit at a specified time. You can see legacy invoice units that are currently deleted if the AsOf
time is set to before it was deleted. If an AsOf
is not provided, the default value is the current time.\n
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.invoicing#GetInvoiceUnitResponse": {
+ "type": "structure",
+ "members": {
+ "InvoiceUnitArn": {
+ "target": "com.amazonaws.invoicing#InvoiceUnitArnString",
+ "traits": {
+ "smithy.api#documentation": "\n The ARN to identify an invoice unit. This information can't be modified or deleted.\n
"
+ }
+ },
+ "InvoiceReceiver": {
+ "target": "com.amazonaws.invoicing#AccountIdString",
+ "traits": {
+ "smithy.api#documentation": "\n The Amazon Web Services account ID chosen to be the receiver of an invoice unit. All invoices generated for that invoice unit will be sent to this account ID.\n
"
+ }
+ },
+ "Name": {
+ "target": "com.amazonaws.invoicing#InvoiceUnitName",
+ "traits": {
+ "smithy.api#documentation": "\n The unique name of the invoice unit that is shown on the generated invoice.\n
"
+ }
+ },
+ "Description": {
+ "target": "com.amazonaws.invoicing#DescriptionString",
+ "traits": {
+ "smithy.api#documentation": "\n The assigned description for an invoice unit.\n
"
+ }
+ },
+ "TaxInheritanceDisabled": {
+ "target": "com.amazonaws.invoicing#TaxInheritanceDisabledFlag",
+ "traits": {
+ "smithy.api#default": null,
+ "smithy.api#documentation": "\n Whether the invoice unit based tax inheritance is/ should be enabled or disabled.\n
"
+ }
+ },
+ "Rule": {
+ "target": "com.amazonaws.invoicing#InvoiceUnitRule"
+ },
+ "LastModified": {
+ "target": "com.amazonaws.invoicing#LastModifiedTimestamp",
+ "traits": {
+ "smithy.api#documentation": "\n The most recent date the invoice unit response was updated.\n
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
+ "com.amazonaws.invoicing#InternalServerException": {
+ "type": "structure",
+ "members": {
+ "retryAfterSeconds": {
+ "target": "smithy.api#Integer",
+ "traits": {
+ "smithy.api#documentation": "The processing request failed because of an unknown error, exception, or failure.
",
+ "smithy.api#httpHeader": "Retry-After"
+ }
+ },
+ "message": {
+ "target": "com.amazonaws.invoicing#BasicString"
+ }
+ },
+ "traits": {
+ "aws.protocols#awsQueryError": {
+ "code": "InvoicingInternalServer",
+ "httpResponseCode": 500
+ },
+ "smithy.api#documentation": "The processing request failed because of an unknown error, exception, or failure.\n
",
+ "smithy.api#error": "server",
+ "smithy.api#httpError": 500
+ }
+ },
+ "com.amazonaws.invoicing#InvoiceProfile": {
+ "type": "structure",
+ "members": {
+ "AccountId": {
+ "target": "com.amazonaws.invoicing#AccountIdString",
+ "traits": {
+ "smithy.api#documentation": "\nThe account ID the invoice profile is generated for.\n
"
+ }
+ },
+ "ReceiverName": {
+ "target": "com.amazonaws.invoicing#BasicString",
+ "traits": {
+ "smithy.api#documentation": "\nThe name of the person receiving the invoice profile.\n
"
+ }
+ },
+ "ReceiverAddress": {
+ "target": "com.amazonaws.invoicing#ReceiverAddress",
+ "traits": {
+ "smithy.api#documentation": "The address of the receiver that will be printed on the invoice.\n
"
+ }
+ },
+ "ReceiverEmail": {
+ "target": "com.amazonaws.invoicing#SensitiveBasicString",
+ "traits": {
+ "smithy.api#documentation": "The email address for the invoice profile receiver.\n
"
+ }
+ },
+ "Issuer": {
+ "target": "com.amazonaws.invoicing#BasicString",
+ "traits": {
+ "smithy.api#documentation": "\nThis specifies the issuing entity of the invoice.\n
"
+ }
+ },
+ "TaxRegistrationNumber": {
+ "target": "com.amazonaws.invoicing#SensitiveBasicString",
+ "traits": {
+ "smithy.api#documentation": "\nYour Tax Registration Number (TRN) information.\n
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "\nContains high-level information about the invoice receiver.\n
"
+ }
+ },
+ "com.amazonaws.invoicing#InvoiceUnit": {
+ "type": "structure",
+ "members": {
+ "InvoiceUnitArn": {
+ "target": "com.amazonaws.invoicing#InvoiceUnitArnString",
+ "traits": {
+ "smithy.api#documentation": "ARN to identify an invoice unit. This information can't be modified or deleted.\n
"
+ }
+ },
+ "InvoiceReceiver": {
+ "target": "com.amazonaws.invoicing#AccountIdString",
+ "traits": {
+ "smithy.api#documentation": "The account that receives invoices related to the invoice unit.\n
"
+ }
+ },
+ "Name": {
+ "target": "com.amazonaws.invoicing#InvoiceUnitName",
+ "traits": {
+ "smithy.api#documentation": "\n A unique name that is distinctive within your Amazon Web Services.\n
"
+ }
+ },
+ "Description": {
+ "target": "com.amazonaws.invoicing#DescriptionString",
+ "traits": {
+ "smithy.api#documentation": "The assigned description for an invoice unit. This information can't be modified or deleted.\n
"
+ }
+ },
+ "TaxInheritanceDisabled": {
+ "target": "com.amazonaws.invoicing#TaxInheritanceDisabledFlag",
+ "traits": {
+ "smithy.api#default": null,
+ "smithy.api#documentation": "Whether the invoice unit based tax inheritance is/ should be enabled or disabled.\n
"
+ }
+ },
+ "Rule": {
+ "target": "com.amazonaws.invoicing#InvoiceUnitRule",
+ "traits": {
+ "smithy.api#documentation": "\nAn InvoiceUnitRule
object used the categorize invoice units. \n
"
+ }
+ },
+ "LastModified": {
+ "target": "com.amazonaws.invoicing#LastModifiedTimestamp",
+ "traits": {
+ "smithy.api#documentation": "\nThe last time the invoice unit was updated. This is important to determine the version of invoice unit configuration used to create the invoices. Any invoice created after this modified time will use this invoice unit configuration.\n
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "An invoice unit is a set of mutually exclusive accounts that correspond to your business entity. Invoice units allow you separate Amazon Web Services account costs and configures your invoice for each business entity going forward.\n
"
+ }
+ },
+ "com.amazonaws.invoicing#InvoiceUnitArnString": {
+ "type": "string",
+ "traits": {
+ "smithy.api#length": {
+ "min": 1,
+ "max": 256
+ },
+ "smithy.api#pattern": "^arn:aws[-a-z0-9]*:[a-z0-9]+:[-a-z0-9]*:[0-9]{12}:[-a-zA-Z0-9/:_]+$"
+ }
+ },
+ "com.amazonaws.invoicing#InvoiceUnitName": {
+ "type": "string",
+ "traits": {
+ "smithy.api#length": {
+ "min": 1,
+ "max": 50
+ },
+ "smithy.api#pattern": "^(?! )[\\p{L}\\p{N}\\p{Z}-_]*(?The list of LINKED_ACCOUNT
IDs where charges are included within the invoice unit.\n
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "\nThis is used to categorize the invoice unit. Values are Amazon Web Services account IDs. Currently, the only supported rule is LINKED_ACCOUNT
.\n
"
+ }
+ },
+ "com.amazonaws.invoicing#InvoiceUnits": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.invoicing#InvoiceUnit"
+ }
+ },
+ "com.amazonaws.invoicing#Invoicing": {
+ "type": "service",
+ "version": "2024-12-01",
+ "operations": [
+ {
+ "target": "com.amazonaws.invoicing#BatchGetInvoiceProfile"
+ },
+ {
+ "target": "com.amazonaws.invoicing#CreateInvoiceUnit"
+ },
+ {
+ "target": "com.amazonaws.invoicing#DeleteInvoiceUnit"
+ },
+ {
+ "target": "com.amazonaws.invoicing#GetInvoiceUnit"
+ },
+ {
+ "target": "com.amazonaws.invoicing#ListInvoiceUnits"
+ },
+ {
+ "target": "com.amazonaws.invoicing#ListTagsForResource"
+ },
+ {
+ "target": "com.amazonaws.invoicing#TagResource"
+ },
+ {
+ "target": "com.amazonaws.invoicing#UntagResource"
+ },
+ {
+ "target": "com.amazonaws.invoicing#UpdateInvoiceUnit"
+ }
+ ],
+ "traits": {
+ "aws.api#service": {
+ "sdkId": "Invoicing",
+ "arnNamespace": "invoicing",
+ "endpointPrefix": "invoicing",
+ "docId": "invoicing-2024-12-01",
+ "cloudTrailEventSource": "invoicing.amazonaws.com"
+ },
+ "aws.auth#sigv4": {
+ "name": "invoicing"
+ },
+ "aws.endpoints#dualStackOnlyEndpoints": {},
+ "aws.endpoints#standardPartitionalEndpoints": {
+ "endpointPatternType": "service_region_dnsSuffix"
+ },
+ "aws.protocols#awsJson1_0": {},
+ "smithy.api#documentation": "\n Amazon Web Services Invoice Configuration\n
\n You can use Amazon Web Services Invoice Configuration APIs to programmatically create,\n update, delete, get, and list invoice units. You can also programmatically fetch the\n information of the invoice receiver. For example, business legal name, address, and invoicing\n contacts.
\n You can use Amazon Web Services Invoice Configuration to receive separate Amazon Web Services invoices based your organizational needs. By using Amazon Web Services Invoice Configuration, you can configure invoice units that are groups of Amazon Web Services accounts that represent your business entities, and receive separate invoices for each business entity. You can also assign a unique member or payer account as the invoice receiver for each invoice unit. As you create new accounts within your Organizations using Amazon Web Services Invoice Configuration APIs, you can automate the creation of new invoice units and subsequently automate the addition of new accounts to your invoice units.
\n Service endpoint
\n You can use the following endpoints for Amazon Web Services Invoice Configuration:
\n ",
+ "smithy.api#title": "AWS Invoicing",
+ "smithy.rules#endpointRuleSet": {
+ "version": "1.0",
+ "parameters": {
+ "UseFIPS": {
+ "builtIn": "AWS::UseFIPS",
+ "required": true,
+ "default": false,
+ "documentation": "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",
+ "type": "Boolean"
+ },
+ "Endpoint": {
+ "builtIn": "SDK::Endpoint",
+ "required": false,
+ "documentation": "Override the endpoint used to send this request",
+ "type": "String"
+ },
+ "Region": {
+ "builtIn": "AWS::Region",
+ "required": false,
+ "documentation": "The AWS region used to dispatch the request.",
+ "type": "String"
+ }
+ },
+ "rules": [
+ {
+ "conditions": [
+ {
+ "fn": "isSet",
+ "argv": [
+ {
+ "ref": "Endpoint"
+ }
+ ]
+ }
+ ],
+ "rules": [
+ {
+ "conditions": [
+ {
+ "fn": "booleanEquals",
+ "argv": [
+ {
+ "ref": "UseFIPS"
+ },
+ true
+ ]
+ }
+ ],
+ "error": "Invalid Configuration: FIPS and custom endpoint are not supported",
+ "type": "error"
+ },
+ {
+ "conditions": [],
+ "endpoint": {
+ "url": {
+ "ref": "Endpoint"
+ },
+ "properties": {},
+ "headers": {}
+ },
+ "type": "endpoint"
+ }
+ ],
+ "type": "tree"
+ },
+ {
+ "conditions": [],
+ "rules": [
+ {
+ "conditions": [
+ {
+ "fn": "isSet",
+ "argv": [
+ {
+ "ref": "Region"
+ }
+ ]
+ }
+ ],
+ "rules": [
+ {
+ "conditions": [
+ {
+ "fn": "aws.partition",
+ "argv": [
+ {
+ "ref": "Region"
+ }
+ ],
+ "assign": "PartitionResult"
+ }
+ ],
+ "rules": [
+ {
+ "conditions": [
+ {
+ "fn": "booleanEquals",
+ "argv": [
+ {
+ "ref": "UseFIPS"
+ },
+ true
+ ]
+ }
+ ],
+ "endpoint": {
+ "url": "https://invoicing-fips.{PartitionResult#implicitGlobalRegion}.{PartitionResult#dualStackDnsSuffix}",
+ "properties": {
+ "authSchemes": [
+ {
+ "name": "sigv4",
+ "signingRegion": "{PartitionResult#implicitGlobalRegion}"
+ }
+ ]
+ },
+ "headers": {}
+ },
+ "type": "endpoint"
+ },
+ {
+ "conditions": [],
+ "endpoint": {
+ "url": "https://invoicing.{PartitionResult#implicitGlobalRegion}.{PartitionResult#dualStackDnsSuffix}",
+ "properties": {
+ "authSchemes": [
+ {
+ "name": "sigv4",
+ "signingRegion": "{PartitionResult#implicitGlobalRegion}"
+ }
+ ]
+ },
+ "headers": {}
+ },
+ "type": "endpoint"
+ }
+ ],
+ "type": "tree"
+ }
+ ],
+ "type": "tree"
+ },
+ {
+ "conditions": [],
+ "error": "Invalid Configuration: Missing Region",
+ "type": "error"
+ }
+ ],
+ "type": "tree"
+ }
+ ]
+ },
+ "smithy.rules#endpointTests": {
+ "testCases": [
+ {
+ "documentation": "For custom endpoint with region not set and fips disabled",
+ "expect": {
+ "endpoint": {
+ "url": "https://example.com"
+ }
+ },
+ "params": {
+ "Endpoint": "https://example.com",
+ "UseFIPS": false
+ }
+ },
+ {
+ "documentation": "For custom endpoint with fips enabled",
+ "expect": {
+ "error": "Invalid Configuration: FIPS and custom endpoint are not supported"
+ },
+ "params": {
+ "Endpoint": "https://example.com",
+ "UseFIPS": true
+ }
+ },
+ {
+ "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled",
+ "expect": {
+ "endpoint": {
+ "properties": {
+ "authSchemes": [
+ {
+ "name": "sigv4",
+ "signingRegion": "us-east-1"
+ }
+ ]
+ },
+ "url": "https://invoicing-fips.us-east-1.api.aws"
+ }
+ },
+ "params": {
+ "Region": "us-east-1",
+ "UseFIPS": true
+ }
+ },
+ {
+ "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled",
+ "expect": {
+ "endpoint": {
+ "properties": {
+ "authSchemes": [
+ {
+ "name": "sigv4",
+ "signingRegion": "us-east-1"
+ }
+ ]
+ },
+ "url": "https://invoicing.us-east-1.api.aws"
+ }
+ },
+ "params": {
+ "Region": "us-east-1",
+ "UseFIPS": false
+ }
+ },
+ {
+ "documentation": "For region cn-northwest-1 with FIPS enabled and DualStack enabled",
+ "expect": {
+ "endpoint": {
+ "properties": {
+ "authSchemes": [
+ {
+ "name": "sigv4",
+ "signingRegion": "cn-northwest-1"
+ }
+ ]
+ },
+ "url": "https://invoicing-fips.cn-northwest-1.api.amazonwebservices.com.cn"
+ }
+ },
+ "params": {
+ "Region": "cn-northwest-1",
+ "UseFIPS": true
+ }
+ },
+ {
+ "documentation": "For region cn-northwest-1 with FIPS disabled and DualStack enabled",
+ "expect": {
+ "endpoint": {
+ "properties": {
+ "authSchemes": [
+ {
+ "name": "sigv4",
+ "signingRegion": "cn-northwest-1"
+ }
+ ]
+ },
+ "url": "https://invoicing.cn-northwest-1.api.amazonwebservices.com.cn"
+ }
+ },
+ "params": {
+ "Region": "cn-northwest-1",
+ "UseFIPS": false
+ }
+ },
+ {
+ "documentation": "For region us-gov-west-1 with FIPS enabled and DualStack enabled",
+ "expect": {
+ "endpoint": {
+ "properties": {
+ "authSchemes": [
+ {
+ "name": "sigv4",
+ "signingRegion": "us-gov-west-1"
+ }
+ ]
+ },
+ "url": "https://invoicing-fips.us-gov-west-1.api.aws"
+ }
+ },
+ "params": {
+ "Region": "us-gov-west-1",
+ "UseFIPS": true
+ }
+ },
+ {
+ "documentation": "For region us-gov-west-1 with FIPS disabled and DualStack enabled",
+ "expect": {
+ "endpoint": {
+ "properties": {
+ "authSchemes": [
+ {
+ "name": "sigv4",
+ "signingRegion": "us-gov-west-1"
+ }
+ ]
+ },
+ "url": "https://invoicing.us-gov-west-1.api.aws"
+ }
+ },
+ "params": {
+ "Region": "us-gov-west-1",
+ "UseFIPS": false
+ }
+ },
+ {
+ "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled",
+ "expect": {
+ "endpoint": {
+ "properties": {
+ "authSchemes": [
+ {
+ "name": "sigv4",
+ "signingRegion": "us-iso-east-1"
+ }
+ ]
+ },
+ "url": "https://invoicing-fips.us-iso-east-1.c2s.ic.gov"
+ }
+ },
+ "params": {
+ "Region": "us-iso-east-1",
+ "UseFIPS": true
+ }
+ },
+ {
+ "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled",
+ "expect": {
+ "endpoint": {
+ "properties": {
+ "authSchemes": [
+ {
+ "name": "sigv4",
+ "signingRegion": "us-iso-east-1"
+ }
+ ]
+ },
+ "url": "https://invoicing.us-iso-east-1.c2s.ic.gov"
+ }
+ },
+ "params": {
+ "Region": "us-iso-east-1",
+ "UseFIPS": false
+ }
+ },
+ {
+ "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled",
+ "expect": {
+ "endpoint": {
+ "properties": {
+ "authSchemes": [
+ {
+ "name": "sigv4",
+ "signingRegion": "us-isob-east-1"
+ }
+ ]
+ },
+ "url": "https://invoicing-fips.us-isob-east-1.sc2s.sgov.gov"
+ }
+ },
+ "params": {
+ "Region": "us-isob-east-1",
+ "UseFIPS": true
+ }
+ },
+ {
+ "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled",
+ "expect": {
+ "endpoint": {
+ "properties": {
+ "authSchemes": [
+ {
+ "name": "sigv4",
+ "signingRegion": "us-isob-east-1"
+ }
+ ]
+ },
+ "url": "https://invoicing.us-isob-east-1.sc2s.sgov.gov"
+ }
+ },
+ "params": {
+ "Region": "us-isob-east-1",
+ "UseFIPS": false
+ }
+ },
+ {
+ "documentation": "For region eu-isoe-west-1 with FIPS enabled and DualStack enabled",
+ "expect": {
+ "endpoint": {
+ "properties": {
+ "authSchemes": [
+ {
+ "name": "sigv4",
+ "signingRegion": "eu-isoe-west-1"
+ }
+ ]
+ },
+ "url": "https://invoicing-fips.eu-isoe-west-1.cloud.adc-e.uk"
+ }
+ },
+ "params": {
+ "Region": "eu-isoe-west-1",
+ "UseFIPS": true
+ }
+ },
+ {
+ "documentation": "For region eu-isoe-west-1 with FIPS disabled and DualStack enabled",
+ "expect": {
+ "endpoint": {
+ "properties": {
+ "authSchemes": [
+ {
+ "name": "sigv4",
+ "signingRegion": "eu-isoe-west-1"
+ }
+ ]
+ },
+ "url": "https://invoicing.eu-isoe-west-1.cloud.adc-e.uk"
+ }
+ },
+ "params": {
+ "Region": "eu-isoe-west-1",
+ "UseFIPS": false
+ }
+ },
+ {
+ "documentation": "For region us-isof-south-1 with FIPS enabled and DualStack enabled",
+ "expect": {
+ "endpoint": {
+ "properties": {
+ "authSchemes": [
+ {
+ "name": "sigv4",
+ "signingRegion": "us-isof-south-1"
+ }
+ ]
+ },
+ "url": "https://invoicing-fips.us-isof-south-1.csp.hci.ic.gov"
+ }
+ },
+ "params": {
+ "Region": "us-isof-south-1",
+ "UseFIPS": true
+ }
+ },
+ {
+ "documentation": "For region us-isof-south-1 with FIPS disabled and DualStack enabled",
+ "expect": {
+ "endpoint": {
+ "properties": {
+ "authSchemes": [
+ {
+ "name": "sigv4",
+ "signingRegion": "us-isof-south-1"
+ }
+ ]
+ },
+ "url": "https://invoicing.us-isof-south-1.csp.hci.ic.gov"
+ }
+ },
+ "params": {
+ "Region": "us-isof-south-1",
+ "UseFIPS": false
+ }
+ },
+ {
+ "documentation": "Missing region",
+ "expect": {
+ "error": "Invalid Configuration: Missing Region"
+ }
+ }
+ ],
+ "version": "1.0"
+ }
+ }
+ },
+ "com.amazonaws.invoicing#LastModifiedTimestamp": {
+ "type": "timestamp"
+ },
+ "com.amazonaws.invoicing#ListInvoiceUnits": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.invoicing#ListInvoiceUnitsRequest"
+ },
+ "output": {
+ "target": "com.amazonaws.invoicing#ListInvoiceUnitsResponse"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.invoicing#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.invoicing#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.invoicing#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.invoicing#ValidationException"
+ }
+ ],
+ "traits": {
+ "smithy.api#documentation": "This fetches a list of all invoice unit definitions for a given account, as of the provided AsOf
date.
",
+ "smithy.api#examples": [
+ {
+ "title": "ListInvoiceUnits without filters as of current time",
+ "input": {},
+ "output": {
+ "InvoiceUnits": [
+ {
+ "InvoiceReceiver": "111111111111",
+ "InvoiceUnitArn": "arn:aws:invoicing::000000000000:invoice-unit/12345678",
+ "LastModified": 1733788800,
+ "Name": "Example Invoice Unit A",
+ "Description": "Description changed on 1733788800",
+ "Rule": {
+ "LinkedAccounts": ["222222222222"]
+ },
+ "TaxInheritanceDisabled": false
+ },
+ {
+ "InvoiceReceiver": "333333333333",
+ "InvoiceUnitArn": "arn:aws:invoicing::000000000000:invoice-unit/87654321",
+ "LastModified": 1733788800,
+ "Name": "Example Invoice Unit B",
+ "Description": "Description changed on 1733788800",
+ "Rule": {
+ "LinkedAccounts": ["333333333333"]
+ },
+ "TaxInheritanceDisabled": true
+ }
+ ]
+ }
+ },
+ {
+ "title": "ListInvoiceUnits with filters as of specified time",
+ "input": {
+ "AsOf": 1733097600,
+ "Filters": {
+ "InvoiceReceivers": ["333333333333"]
+ }
+ },
+ "output": {
+ "InvoiceUnits": [
+ {
+ "InvoiceReceiver": "333333333333",
+ "InvoiceUnitArn": "arn:aws:invoicing::000000000000:invoice-unit/87654321",
+ "LastModified": 1733011200,
+ "Name": "Example Invoice Unit B",
+ "Description": "Description changed on 1733011200",
+ "Rule": {
+ "LinkedAccounts": ["333333333333"]
+ },
+ "TaxInheritanceDisabled": false
+ }
+ ]
+ }
+ },
+ {
+ "title": "ListInvoiceUnits with pagination - first page",
+ "input": {
+ "MaxResults": 1
+ },
+ "output": {
+ "InvoiceUnits": [
+ {
+ "InvoiceReceiver": "111111111111",
+ "InvoiceUnitArn": "arn:aws:invoicing::000000000000:invoice-unit/12345678",
+ "LastModified": 1733788800,
+ "Name": "Example Invoice Unit A",
+ "Description": "Description changed on 1733788800",
+ "Rule": {
+ "LinkedAccounts": ["222222222222"]
+ },
+ "TaxInheritanceDisabled": false
+ }
+ ],
+ "NextToken": "nextTokenExample"
+ }
+ },
+ {
+ "title": "ListInvoiceUnits with pagination - second page",
+ "input": {
+ "MaxResults": 1,
+ "NextToken": "nextTokenExample"
+ },
+ "output": {
+ "InvoiceUnits": [
+ {
+ "InvoiceReceiver": "333333333333",
+ "InvoiceUnitArn": "arn:aws:invoicing::000000000000:invoice-unit/87654321",
+ "LastModified": 1733788800,
+ "Name": "Example Invoice Unit B",
+ "Description": "Description changed on 1733788800",
+ "Rule": {
+ "LinkedAccounts": ["333333333333"]
+ },
+ "TaxInheritanceDisabled": true
+ }
+ ]
+ }
+ }
+ ],
+ "smithy.api#paginated": {
+ "inputToken": "NextToken",
+ "outputToken": "NextToken",
+ "pageSize": "MaxResults",
+ "items": "InvoiceUnits"
+ },
+ "smithy.api#readonly": {},
+ "smithy.test#smokeTests": [
+ {
+ "id": "ListInvoiceUnitsSuccess",
+ "params": {},
+ "expect": {
+ "success": {}
+ },
+ "vendorParamsShape": "aws.test#AwsVendorParams",
+ "vendorParams": {
+ "region": "us-east-1"
+ }
+ }
+ ]
+ }
+ },
+ "com.amazonaws.invoicing#ListInvoiceUnitsRequest": {
+ "type": "structure",
+ "members": {
+ "Filters": {
+ "target": "com.amazonaws.invoicing#Filters",
+ "traits": {
+ "smithy.api#documentation": "\n An optional input to the list API. If multiple filters are specified, the returned list will be a configuration that match all of the provided filters. Supported filter types are InvoiceReceivers
, Names
, and Accounts
. \n
"
+ }
+ },
+ "NextToken": {
+ "target": "com.amazonaws.invoicing#NextTokenString",
+ "traits": {
+ "smithy.api#documentation": "The next token used to indicate where the returned list should start from.\n
"
+ }
+ },
+ "MaxResults": {
+ "target": "com.amazonaws.invoicing#MaxResultsInteger",
+ "traits": {
+ "smithy.api#default": 500,
+ "smithy.api#documentation": "The maximum number of invoice units that can be returned.\n
"
+ }
+ },
+ "AsOf": {
+ "target": "com.amazonaws.invoicing#AsOfTimestamp",
+ "traits": {
+ "smithy.api#documentation": "\n The state of an invoice unit at a specified time. You can see legacy invoice units that are currently deleted if the AsOf
time is set to before it was deleted. If an AsOf
is not provided, the default value is the current time.\n
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.invoicing#ListInvoiceUnitsResponse": {
+ "type": "structure",
+ "members": {
+ "InvoiceUnits": {
+ "target": "com.amazonaws.invoicing#InvoiceUnits",
+ "traits": {
+ "smithy.api#documentation": "\n An invoice unit is a set of mutually exclusive accounts that correspond to your business entity.\n
"
+ }
+ },
+ "NextToken": {
+ "target": "com.amazonaws.invoicing#NextTokenString",
+ "traits": {
+ "smithy.api#documentation": "The next token used to indicate where the returned list should start from.\n
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
+ "com.amazonaws.invoicing#ListTagsForResource": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.invoicing#ListTagsForResourceRequest"
+ },
+ "output": {
+ "target": "com.amazonaws.invoicing#ListTagsForResourceResponse"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.invoicing#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.invoicing#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.invoicing#ResourceNotFoundException"
+ },
+ {
+ "target": "com.amazonaws.invoicing#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.invoicing#ValidationException"
+ }
+ ],
+ "traits": {
+ "smithy.api#documentation": "Lists the tags for a resource.\n
",
+ "smithy.api#examples": [
+ {
+ "title": "ListTagsForResource",
+ "input": {
+ "ResourceArn": "arn:aws:invoicing::000000000000:invoice-unit/12345678"
+ },
+ "output": {
+ "ResourceTags": [
+ {
+ "Key": "TagKey",
+ "Value": "TagValue"
+ }
+ ]
+ }
+ }
+ ],
+ "smithy.api#readonly": {}
+ }
+ },
+ "com.amazonaws.invoicing#ListTagsForResourceRequest": {
+ "type": "structure",
+ "members": {
+ "ResourceArn": {
+ "target": "com.amazonaws.invoicing#TagrisArn",
+ "traits": {
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of tags to list.\n
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.invoicing#ListTagsForResourceResponse": {
+ "type": "structure",
+ "members": {
+ "ResourceTags": {
+ "target": "com.amazonaws.invoicing#ResourceTagList",
+ "traits": {
+ "smithy.api#documentation": "\n Adds a tag to a resource.\n
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
+ "com.amazonaws.invoicing#MaxResultsInteger": {
+ "type": "integer",
+ "traits": {
+ "smithy.api#default": 500,
+ "smithy.api#range": {
+ "min": 1,
+ "max": 500
+ }
+ }
+ },
+ "com.amazonaws.invoicing#NextTokenString": {
+ "type": "string",
+ "traits": {
+ "smithy.api#length": {
+ "min": 1,
+ "max": 2048
+ },
+ "smithy.api#pattern": "^[\\S\\s]*$"
+ }
+ },
+ "com.amazonaws.invoicing#ProfileList": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.invoicing#InvoiceProfile"
+ }
+ },
+ "com.amazonaws.invoicing#ReceiverAddress": {
+ "type": "structure",
+ "members": {
+ "AddressLine1": {
+ "target": "com.amazonaws.invoicing#BasicString",
+ "traits": {
+ "smithy.api#documentation": "\nThe first line of the address.\n
"
+ }
+ },
+ "AddressLine2": {
+ "target": "com.amazonaws.invoicing#BasicString",
+ "traits": {
+ "smithy.api#documentation": "\nThe second line of the address, if applicable.\n
"
+ }
+ },
+ "AddressLine3": {
+ "target": "com.amazonaws.invoicing#BasicString",
+ "traits": {
+ "smithy.api#documentation": "\nThe third line of the address, if applicable.\n
"
+ }
+ },
+ "DistrictOrCounty": {
+ "target": "com.amazonaws.invoicing#BasicString",
+ "traits": {
+ "smithy.api#documentation": "\nThe district or country the address is located in.\n
"
+ }
+ },
+ "City": {
+ "target": "com.amazonaws.invoicing#BasicString",
+ "traits": {
+ "smithy.api#documentation": "\nThe city that the address is in.\n
"
+ }
+ },
+ "StateOrRegion": {
+ "target": "com.amazonaws.invoicing#BasicString",
+ "traits": {
+ "smithy.api#documentation": "\nThe state, region, or province the address is located.\n
"
+ }
+ },
+ "CountryCode": {
+ "target": "com.amazonaws.invoicing#BasicString",
+ "traits": {
+ "smithy.api#documentation": "\nThe country code for the country the address is in.\n
"
+ }
+ },
+ "CompanyName": {
+ "target": "com.amazonaws.invoicing#BasicString",
+ "traits": {
+ "smithy.api#documentation": "\nA unique company name.\n
"
+ }
+ },
+ "PostalCode": {
+ "target": "com.amazonaws.invoicing#BasicString",
+ "traits": {
+ "smithy.api#documentation": "\nThe postal code associated with the address.\n
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "\nThe details of the address associated with the receiver.\n
",
+ "smithy.api#sensitive": {}
+ }
+ },
+ "com.amazonaws.invoicing#ResourceNotFoundException": {
+ "type": "structure",
+ "members": {
+ "message": {
+ "target": "com.amazonaws.invoicing#BasicString"
+ },
+ "resourceName": {
+ "target": "com.amazonaws.invoicing#InvoiceUnitArnString",
+ "traits": {
+ "smithy.api#documentation": "The resource could not be found.
"
+ }
+ }
+ },
+ "traits": {
+ "aws.protocols#awsQueryError": {
+ "code": "InvoicingResourceNotFound",
+ "httpResponseCode": 404
+ },
+ "smithy.api#documentation": "The resource could not be found.\n
",
+ "smithy.api#error": "client",
+ "smithy.api#httpError": 404
+ }
+ },
+ "com.amazonaws.invoicing#ResourceTag": {
+ "type": "structure",
+ "members": {
+ "Key": {
+ "target": "com.amazonaws.invoicing#ResourceTagKey",
+ "traits": {
+ "smithy.api#documentation": "The object key of your of your resource tag.\n
",
+ "smithy.api#required": {}
+ }
+ },
+ "Value": {
+ "target": "com.amazonaws.invoicing#ResourceTagValue",
+ "traits": {
+ "smithy.api#documentation": "\nThe specific value of the resource tag.\n
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "The tag structure that contains a tag key and value.\n
"
+ }
+ },
+ "com.amazonaws.invoicing#ResourceTagKey": {
+ "type": "string",
+ "traits": {
+ "smithy.api#length": {
+ "min": 1,
+ "max": 128
+ }
+ }
+ },
+ "com.amazonaws.invoicing#ResourceTagKeyList": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.invoicing#ResourceTagKey"
+ },
+ "traits": {
+ "smithy.api#length": {
+ "min": 0,
+ "max": 200
+ }
+ }
+ },
+ "com.amazonaws.invoicing#ResourceTagList": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.invoicing#ResourceTag"
+ },
+ "traits": {
+ "smithy.api#length": {
+ "min": 0,
+ "max": 200
+ }
+ }
+ },
+ "com.amazonaws.invoicing#ResourceTagValue": {
+ "type": "string",
+ "traits": {
+ "smithy.api#length": {
+ "min": 0,
+ "max": 256
+ }
+ }
+ },
+ "com.amazonaws.invoicing#SensitiveBasicString": {
+ "type": "string",
+ "traits": {
+ "smithy.api#length": {
+ "min": 0,
+ "max": 1024
+ },
+ "smithy.api#pattern": "^\\S+$",
+ "smithy.api#sensitive": {}
+ }
+ },
+ "com.amazonaws.invoicing#ServiceQuotaExceededException": {
+ "type": "structure",
+ "members": {
+ "message": {
+ "target": "com.amazonaws.invoicing#BasicString",
+ "traits": {
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "aws.protocols#awsQueryError": {
+ "code": "InvoicingServiceQuotaExceeded",
+ "httpResponseCode": 402
+ },
+ "smithy.api#documentation": "The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded.\n
",
+ "smithy.api#error": "client",
+ "smithy.api#httpError": 402
+ }
+ },
+ "com.amazonaws.invoicing#TagResource": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.invoicing#TagResourceRequest"
+ },
+ "output": {
+ "target": "com.amazonaws.invoicing#TagResourceResponse"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.invoicing#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.invoicing#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.invoicing#ResourceNotFoundException"
+ },
+ {
+ "target": "com.amazonaws.invoicing#ServiceQuotaExceededException"
+ },
+ {
+ "target": "com.amazonaws.invoicing#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.invoicing#ValidationException"
+ }
+ ],
+ "traits": {
+ "smithy.api#documentation": "Adds a tag to a resource.\n
",
+ "smithy.api#examples": [
+ {
+ "title": "TagResource",
+ "input": {
+ "ResourceArn": "arn:aws:invoicing::000000000000:invoice-unit/12345678",
+ "ResourceTags": [
+ {
+ "Key": "TagKey",
+ "Value": "TagValue"
+ }
+ ]
+ },
+ "output": {}
+ }
+ ]
+ }
+ },
+ "com.amazonaws.invoicing#TagResourceRequest": {
+ "type": "structure",
+ "members": {
+ "ResourceArn": {
+ "target": "com.amazonaws.invoicing#TagrisArn",
+ "traits": {
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of the tags.\n
",
+ "smithy.api#required": {}
+ }
+ },
+ "ResourceTags": {
+ "target": "com.amazonaws.invoicing#ResourceTagList",
+ "traits": {
+ "smithy.api#documentation": "\n Adds a tag to a resource.\n
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.invoicing#TagResourceResponse": {
+ "type": "structure",
+ "members": {},
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
+ "com.amazonaws.invoicing#TagrisArn": {
+ "type": "string",
+ "traits": {
+ "smithy.api#length": {
+ "min": 20,
+ "max": 2048
+ },
+ "smithy.api#pattern": "^arn:aws[-a-z0-9]*:[a-z0-9]+:[-a-z0-9]*:[0-9]{12}:[-a-zA-Z0-9/:_]+$"
+ }
+ },
+ "com.amazonaws.invoicing#TaxInheritanceDisabledFlag": {
+ "type": "boolean",
+ "traits": {
+ "smithy.api#default": false
+ }
+ },
+ "com.amazonaws.invoicing#ThrottlingException": {
+ "type": "structure",
+ "members": {
+ "message": {
+ "target": "com.amazonaws.invoicing#BasicString"
+ }
+ },
+ "traits": {
+ "aws.protocols#awsQueryError": {
+ "code": "InvoicingThrottling",
+ "httpResponseCode": 429
+ },
+ "smithy.api#documentation": "The request was denied due to request throttling.
",
+ "smithy.api#error": "client",
+ "smithy.api#httpError": 429
+ }
+ },
+ "com.amazonaws.invoicing#UntagResource": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.invoicing#UntagResourceRequest"
+ },
+ "output": {
+ "target": "com.amazonaws.invoicing#UntagResourceResponse"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.invoicing#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.invoicing#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.invoicing#ResourceNotFoundException"
+ },
+ {
+ "target": "com.amazonaws.invoicing#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.invoicing#ValidationException"
+ }
+ ],
+ "traits": {
+ "smithy.api#documentation": "\n Removes a tag from a resource.\n
",
+ "smithy.api#examples": [
+ {
+ "title": "UntagResource",
+ "input": {
+ "ResourceArn": "arn:aws:invoicing::000000000000:invoice-unit/12345678",
+ "ResourceTagKeys": ["TagKey"]
+ },
+ "output": {}
+ }
+ ]
+ }
+ },
+ "com.amazonaws.invoicing#UntagResourceRequest": {
+ "type": "structure",
+ "members": {
+ "ResourceArn": {
+ "target": "com.amazonaws.invoicing#TagrisArn",
+ "traits": {
+ "smithy.api#documentation": "\n The Amazon Resource Name (ARN) to untag.\n
",
+ "smithy.api#required": {}
+ }
+ },
+ "ResourceTagKeys": {
+ "target": "com.amazonaws.invoicing#ResourceTagKeyList",
+ "traits": {
+ "smithy.api#documentation": "\n Keys for the tags to be removed.\n
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.invoicing#UntagResourceResponse": {
+ "type": "structure",
+ "members": {},
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
+ "com.amazonaws.invoicing#UpdateInvoiceUnit": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.invoicing#UpdateInvoiceUnitRequest"
+ },
+ "output": {
+ "target": "com.amazonaws.invoicing#UpdateInvoiceUnitResponse"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.invoicing#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.invoicing#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.invoicing#ResourceNotFoundException"
+ },
+ {
+ "target": "com.amazonaws.invoicing#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.invoicing#ValidationException"
+ }
+ ],
+ "traits": {
+ "smithy.api#documentation": "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.
",
+ "smithy.api#examples": [
+ {
+ "title": "UpdateInvoiceUnit with all updatable fields",
+ "input": {
+ "InvoiceUnitArn": "arn:aws:invoicing::000000000000:invoice-unit/12345678",
+ "Description": "Updated IU description",
+ "TaxInheritanceDisabled": false,
+ "Rule": {
+ "LinkedAccounts": ["111111111111", "222222222222"]
+ }
+ },
+ "output": {
+ "InvoiceUnitArn": "arn:aws:invoicing::000000000000:invoice-unit/12345678"
+ }
+ },
+ {
+ "title": "UpdateInvoiceUnit with specific fields",
+ "input": {
+ "InvoiceUnitArn": "arn:aws:invoicing::000000000000:invoice-unit/12345678",
+ "Description": "Updated IU description. All other fields remain unchanged"
+ },
+ "output": {
+ "InvoiceUnitArn": "arn:aws:invoicing::000000000000:invoice-unit/12345678"
+ }
+ }
+ ]
+ }
+ },
+ "com.amazonaws.invoicing#UpdateInvoiceUnitRequest": {
+ "type": "structure",
+ "members": {
+ "InvoiceUnitArn": {
+ "target": "com.amazonaws.invoicing#InvoiceUnitArnString",
+ "traits": {
+ "smithy.api#documentation": "The ARN to identify an invoice unit. This information can't be modified or deleted.\n
",
+ "smithy.api#required": {}
+ }
+ },
+ "Description": {
+ "target": "com.amazonaws.invoicing#DescriptionString",
+ "traits": {
+ "smithy.api#documentation": "The assigned description for an invoice unit. This information can't be modified or deleted.\n
"
+ }
+ },
+ "TaxInheritanceDisabled": {
+ "target": "com.amazonaws.invoicing#TaxInheritanceDisabledFlag",
+ "traits": {
+ "smithy.api#default": null,
+ "smithy.api#documentation": "Whether the invoice unit based tax inheritance is/ should be enabled or disabled.\n
"
+ }
+ },
+ "Rule": {
+ "target": "com.amazonaws.invoicing#InvoiceUnitRule",
+ "traits": {
+ "smithy.api#documentation": "The InvoiceUnitRule
object used to update invoice units.\n
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.invoicing#UpdateInvoiceUnitResponse": {
+ "type": "structure",
+ "members": {
+ "InvoiceUnitArn": {
+ "target": "com.amazonaws.invoicing#InvoiceUnitArnString",
+ "traits": {
+ "smithy.api#documentation": "\n The ARN to identify an invoice unit. This information can't be modified or deleted.\n
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
+ "com.amazonaws.invoicing#ValidationException": {
+ "type": "structure",
+ "members": {
+ "message": {
+ "target": "com.amazonaws.invoicing#BasicString"
+ },
+ "resourceName": {
+ "target": "com.amazonaws.invoicing#InvoiceUnitArnString",
+ "traits": {
+ "smithy.api#documentation": "You don't have sufficient access to perform this action.\n
"
+ }
+ },
+ "reason": {
+ "target": "com.amazonaws.invoicing#ValidationExceptionReason",
+ "traits": {
+ "smithy.api#documentation": "You don't have sufficient access to perform this action.\n
"
+ }
+ },
+ "fieldList": {
+ "target": "com.amazonaws.invoicing#ValidationExceptionFieldList",
+ "traits": {
+ "smithy.api#documentation": "\n The input fails to satisfy the constraints specified by an Amazon Web Services service.\n
"
+ }
+ }
+ },
+ "traits": {
+ "aws.protocols#awsQueryError": {
+ "code": "InvoicingValidation",
+ "httpResponseCode": 400
+ },
+ "smithy.api#documentation": "\n The input fails to satisfy the constraints specified by an Amazon Web Services service.\n
",
+ "smithy.api#error": "client",
+ "smithy.api#httpError": 400
+ }
+ },
+ "com.amazonaws.invoicing#ValidationExceptionField": {
+ "type": "structure",
+ "members": {
+ "name": {
+ "target": "com.amazonaws.invoicing#BasicString",
+ "traits": {
+ "smithy.api#documentation": "\n The input fails to satisfy the constraints specified by an Amazon Web Services service.\n
",
+ "smithy.api#required": {}
+ }
+ },
+ "message": {
+ "target": "com.amazonaws.invoicing#BasicString",
+ "traits": {
+ "smithy.api#documentation": "\n The input fails to satisfy the constraints specified by an Amazon Web Services service.\n
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "\n The input fails to satisfy the constraints specified by an Amazon Web Services service.\n
"
+ }
+ },
+ "com.amazonaws.invoicing#ValidationExceptionFieldList": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.invoicing#ValidationExceptionField"
+ }
+ },
+ "com.amazonaws.invoicing#ValidationExceptionReason": {
+ "type": "enum",
+ "members": {
+ "NON_MEMBERS_PRESENT": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "nonMemberPresent"
+ }
+ },
+ "MAX_ACCOUNTS_EXCEEDED": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "maxAccountsExceeded"
+ }
+ },
+ "MAX_INVOICE_UNITS_EXCEEDED": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "maxInvoiceUnitsExceeded"
+ }
+ },
+ "DUPLICATE_INVOICE_UNIT": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "duplicateInvoiceUnit"
+ }
+ },
+ "MUTUAL_EXCLUSION_ERROR": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "mutualExclusionError"
+ }
+ },
+ "ACCOUNT_MEMBERSHIP_ERROR": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "accountMembershipError"
+ }
+ },
+ "TAX_SETTINGS_ERROR": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "taxSettingsError"
+ }
+ },
+ "EXPIRED_NEXT_TOKEN": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "expiredNextToken"
+ }
+ },
+ "INVALID_NEXT_TOKEN": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "invalidNextToken"
+ }
+ },
+ "INVALID_INPUT": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "invalidInput"
+ }
+ },
+ "FIELD_VALIDATION_FAILED": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "fieldValidationFailed"
+ }
+ },
+ "CANNOT_PARSE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "cannotParse"
+ }
+ },
+ "UNKNOWN_OPERATION": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "unknownOperation"
+ }
+ },
+ "OTHER": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "other"
+ }
+ }
+ }
+ }
+ }
+}