@aws-sdk/client-invoicing 3.703.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +293 -0
  3. package/dist-cjs/Invoicing.js +29 -0
  4. package/dist-cjs/InvoicingClient.js +50 -0
  5. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
  6. package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
  7. package/dist-cjs/commands/BatchGetInvoiceProfileCommand.js +27 -0
  8. package/dist-cjs/commands/CreateInvoiceUnitCommand.js +26 -0
  9. package/dist-cjs/commands/DeleteInvoiceUnitCommand.js +26 -0
  10. package/dist-cjs/commands/GetInvoiceUnitCommand.js +26 -0
  11. package/dist-cjs/commands/ListInvoiceUnitsCommand.js +26 -0
  12. package/dist-cjs/commands/ListTagsForResourceCommand.js +26 -0
  13. package/dist-cjs/commands/TagResourceCommand.js +26 -0
  14. package/dist-cjs/commands/UntagResourceCommand.js +26 -0
  15. package/dist-cjs/commands/UpdateInvoiceUnitCommand.js +26 -0
  16. package/dist-cjs/commands/index.js +12 -0
  17. package/dist-cjs/endpoint/EndpointParameters.js +16 -0
  18. package/dist-cjs/endpoint/endpointResolver.js +18 -0
  19. package/dist-cjs/endpoint/ruleset.js +7 -0
  20. package/dist-cjs/extensionConfiguration.js +2 -0
  21. package/dist-cjs/index.js +11 -0
  22. package/dist-cjs/models/InvoicingServiceException.js +12 -0
  23. package/dist-cjs/models/index.js +4 -0
  24. package/dist-cjs/models/models_0.js +121 -0
  25. package/dist-cjs/pagination/Interfaces.js +2 -0
  26. package/dist-cjs/pagination/ListInvoiceUnitsPaginator.js +7 -0
  27. package/dist-cjs/pagination/index.js +5 -0
  28. package/dist-cjs/protocols/Aws_json1_0.js +367 -0
  29. package/dist-cjs/runtimeConfig.browser.js +39 -0
  30. package/dist-cjs/runtimeConfig.js +50 -0
  31. package/dist-cjs/runtimeConfig.native.js +15 -0
  32. package/dist-cjs/runtimeConfig.shared.js +34 -0
  33. package/dist-cjs/runtimeExtensions.js +25 -0
  34. package/dist-es/Invoicing.js +25 -0
  35. package/dist-es/InvoicingClient.js +46 -0
  36. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  37. package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
  38. package/dist-es/commands/BatchGetInvoiceProfileCommand.js +23 -0
  39. package/dist-es/commands/CreateInvoiceUnitCommand.js +22 -0
  40. package/dist-es/commands/DeleteInvoiceUnitCommand.js +22 -0
  41. package/dist-es/commands/GetInvoiceUnitCommand.js +22 -0
  42. package/dist-es/commands/ListInvoiceUnitsCommand.js +22 -0
  43. package/dist-es/commands/ListTagsForResourceCommand.js +22 -0
  44. package/dist-es/commands/TagResourceCommand.js +22 -0
  45. package/dist-es/commands/UntagResourceCommand.js +22 -0
  46. package/dist-es/commands/UpdateInvoiceUnitCommand.js +22 -0
  47. package/dist-es/commands/index.js +9 -0
  48. package/dist-es/endpoint/EndpointParameters.js +12 -0
  49. package/dist-es/endpoint/endpointResolver.js +14 -0
  50. package/dist-es/endpoint/ruleset.js +4 -0
  51. package/dist-es/extensionConfiguration.js +1 -0
  52. package/dist-es/index.js +6 -0
  53. package/dist-es/models/InvoicingServiceException.js +8 -0
  54. package/dist-es/models/index.js +1 -0
  55. package/dist-es/models/models_0.js +109 -0
  56. package/dist-es/pagination/Interfaces.js +1 -0
  57. package/dist-es/pagination/ListInvoiceUnitsPaginator.js +4 -0
  58. package/dist-es/pagination/index.js +2 -0
  59. package/dist-es/protocols/Aws_json1_0.js +346 -0
  60. package/dist-es/runtimeConfig.browser.js +34 -0
  61. package/dist-es/runtimeConfig.js +45 -0
  62. package/dist-es/runtimeConfig.native.js +11 -0
  63. package/dist-es/runtimeConfig.shared.js +30 -0
  64. package/dist-es/runtimeExtensions.js +21 -0
  65. package/dist-types/Invoicing.d.ts +90 -0
  66. package/dist-types/InvoicingClient.d.ts +194 -0
  67. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  68. package/dist-types/auth/httpAuthSchemeProvider.d.ts +61 -0
  69. package/dist-types/commands/BatchGetInvoiceProfileCommand.d.ts +111 -0
  70. package/dist-types/commands/CreateInvoiceUnitCommand.d.ts +100 -0
  71. package/dist-types/commands/DeleteInvoiceUnitCommand.d.ts +91 -0
  72. package/dist-types/commands/GetInvoiceUnitCommand.d.ts +101 -0
  73. package/dist-types/commands/ListInvoiceUnitsCommand.d.ts +114 -0
  74. package/dist-types/commands/ListTagsForResourceCommand.d.ts +96 -0
  75. package/dist-types/commands/TagResourceCommand.d.ts +99 -0
  76. package/dist-types/commands/UntagResourceCommand.d.ts +93 -0
  77. package/dist-types/commands/UpdateInvoiceUnitCommand.d.ts +97 -0
  78. package/dist-types/commands/index.d.ts +9 -0
  79. package/dist-types/endpoint/EndpointParameters.d.ts +34 -0
  80. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  81. package/dist-types/endpoint/ruleset.d.ts +2 -0
  82. package/dist-types/extensionConfiguration.d.ts +9 -0
  83. package/dist-types/index.d.ts +30 -0
  84. package/dist-types/models/InvoicingServiceException.d.ts +14 -0
  85. package/dist-types/models/index.d.ts +1 -0
  86. package/dist-types/models/models_0.d.ts +742 -0
  87. package/dist-types/pagination/Interfaces.d.ts +8 -0
  88. package/dist-types/pagination/ListInvoiceUnitsPaginator.d.ts +7 -0
  89. package/dist-types/pagination/index.d.ts +2 -0
  90. package/dist-types/protocols/Aws_json1_0.d.ts +83 -0
  91. package/dist-types/runtimeConfig.browser.d.ts +48 -0
  92. package/dist-types/runtimeConfig.d.ts +48 -0
  93. package/dist-types/runtimeConfig.native.d.ts +47 -0
  94. package/dist-types/runtimeConfig.shared.d.ts +21 -0
  95. package/dist-types/runtimeExtensions.d.ts +17 -0
  96. package/dist-types/ts3.4/Invoicing.d.ts +159 -0
  97. package/dist-types/ts3.4/InvoicingClient.d.ts +172 -0
  98. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  99. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +44 -0
  100. package/dist-types/ts3.4/commands/BatchGetInvoiceProfileCommand.d.ts +51 -0
  101. package/dist-types/ts3.4/commands/CreateInvoiceUnitCommand.d.ts +51 -0
  102. package/dist-types/ts3.4/commands/DeleteInvoiceUnitCommand.d.ts +51 -0
  103. package/dist-types/ts3.4/commands/GetInvoiceUnitCommand.d.ts +50 -0
  104. package/dist-types/ts3.4/commands/ListInvoiceUnitsCommand.d.ts +50 -0
  105. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +51 -0
  106. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +47 -0
  107. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +50 -0
  108. package/dist-types/ts3.4/commands/UpdateInvoiceUnitCommand.d.ts +51 -0
  109. package/dist-types/ts3.4/commands/index.d.ts +9 -0
  110. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +45 -0
  111. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  112. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  113. package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
  114. package/dist-types/ts3.4/index.d.ts +9 -0
  115. package/dist-types/ts3.4/models/InvoicingServiceException.d.ts +9 -0
  116. package/dist-types/ts3.4/models/index.d.ts +1 -0
  117. package/dist-types/ts3.4/models/models_0.d.ts +192 -0
  118. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  119. package/dist-types/ts3.4/pagination/ListInvoiceUnitsPaginator.d.ts +11 -0
  120. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  121. package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +113 -0
  122. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +93 -0
  123. package/dist-types/ts3.4/runtimeConfig.d.ts +94 -0
  124. package/dist-types/ts3.4/runtimeConfig.native.d.ts +87 -0
  125. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +21 -0
  126. package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  127. package/package.json +101 -0
@@ -0,0 +1,194 @@
1
+ import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
2
+ import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
3
+ import { RegionInputConfig, RegionResolvedConfig } from "@smithy/config-resolver";
4
+ import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-endpoint";
5
+ import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
6
+ import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
7
+ import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
8
+ import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, 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";
9
+ import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
10
+ import { BatchGetInvoiceProfileCommandInput, BatchGetInvoiceProfileCommandOutput } from "./commands/BatchGetInvoiceProfileCommand";
11
+ import { CreateInvoiceUnitCommandInput, CreateInvoiceUnitCommandOutput } from "./commands/CreateInvoiceUnitCommand";
12
+ import { DeleteInvoiceUnitCommandInput, DeleteInvoiceUnitCommandOutput } from "./commands/DeleteInvoiceUnitCommand";
13
+ import { GetInvoiceUnitCommandInput, GetInvoiceUnitCommandOutput } from "./commands/GetInvoiceUnitCommand";
14
+ import { ListInvoiceUnitsCommandInput, ListInvoiceUnitsCommandOutput } from "./commands/ListInvoiceUnitsCommand";
15
+ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
16
+ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
17
+ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
18
+ import { UpdateInvoiceUnitCommandInput, UpdateInvoiceUnitCommandOutput } from "./commands/UpdateInvoiceUnitCommand";
19
+ import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
20
+ import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
21
+ export { __Client };
22
+ /**
23
+ * @public
24
+ */
25
+ export type ServiceInputTypes = BatchGetInvoiceProfileCommandInput | CreateInvoiceUnitCommandInput | DeleteInvoiceUnitCommandInput | GetInvoiceUnitCommandInput | ListInvoiceUnitsCommandInput | ListTagsForResourceCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateInvoiceUnitCommandInput;
26
+ /**
27
+ * @public
28
+ */
29
+ export type ServiceOutputTypes = BatchGetInvoiceProfileCommandOutput | CreateInvoiceUnitCommandOutput | DeleteInvoiceUnitCommandOutput | GetInvoiceUnitCommandOutput | ListInvoiceUnitsCommandOutput | ListTagsForResourceCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateInvoiceUnitCommandOutput;
30
+ /**
31
+ * @public
32
+ */
33
+ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
34
+ /**
35
+ * The HTTP handler to use or its constructor options. Fetch in browser and Https in Nodejs.
36
+ */
37
+ requestHandler?: __HttpHandlerUserInput;
38
+ /**
39
+ * A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface
40
+ * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
41
+ * @internal
42
+ */
43
+ sha256?: __ChecksumConstructor | __HashConstructor;
44
+ /**
45
+ * The function that will be used to convert strings into HTTP endpoints.
46
+ * @internal
47
+ */
48
+ urlParser?: __UrlParser;
49
+ /**
50
+ * A function that can calculate the length of a request body.
51
+ * @internal
52
+ */
53
+ bodyLengthChecker?: __BodyLengthCalculator;
54
+ /**
55
+ * A function that converts a stream into an array of bytes.
56
+ * @internal
57
+ */
58
+ streamCollector?: __StreamCollector;
59
+ /**
60
+ * The function that will be used to convert a base64-encoded string to a byte array.
61
+ * @internal
62
+ */
63
+ base64Decoder?: __Decoder;
64
+ /**
65
+ * The function that will be used to convert binary data to a base64-encoded string.
66
+ * @internal
67
+ */
68
+ base64Encoder?: __Encoder;
69
+ /**
70
+ * The function that will be used to convert a UTF8-encoded string to a byte array.
71
+ * @internal
72
+ */
73
+ utf8Decoder?: __Decoder;
74
+ /**
75
+ * The function that will be used to convert binary data to a UTF-8 encoded string.
76
+ * @internal
77
+ */
78
+ utf8Encoder?: __Encoder;
79
+ /**
80
+ * The runtime environment.
81
+ * @internal
82
+ */
83
+ runtime?: string;
84
+ /**
85
+ * Disable dynamically changing the endpoint of the client based on the hostPrefix
86
+ * trait of an operation.
87
+ */
88
+ disableHostPrefix?: boolean;
89
+ /**
90
+ * Unique service identifier.
91
+ * @internal
92
+ */
93
+ serviceId?: string;
94
+ /**
95
+ * Enables IPv6/IPv4 dualstack endpoint.
96
+ */
97
+ useDualstackEndpoint?: boolean | __Provider<boolean>;
98
+ /**
99
+ * Enables FIPS compatible endpoints.
100
+ */
101
+ useFipsEndpoint?: boolean | __Provider<boolean>;
102
+ /**
103
+ * The AWS region to which this client will send requests
104
+ */
105
+ region?: string | __Provider<string>;
106
+ /**
107
+ * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
108
+ * @internal
109
+ */
110
+ defaultUserAgentProvider?: Provider<__UserAgent>;
111
+ /**
112
+ * Default credentials provider; Not available in browser runtime.
113
+ * @deprecated
114
+ * @internal
115
+ */
116
+ credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
117
+ /**
118
+ * Value for how many times a request will be made at most in case of retry.
119
+ */
120
+ maxAttempts?: number | __Provider<number>;
121
+ /**
122
+ * Specifies which retry algorithm to use.
123
+ * @see https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-smithy-util-retry/Enum/RETRY_MODES/
124
+ *
125
+ */
126
+ retryMode?: string | __Provider<string>;
127
+ /**
128
+ * Optional logger for logging debug/info/warn/error.
129
+ */
130
+ logger?: __Logger;
131
+ /**
132
+ * Optional extensions
133
+ */
134
+ extensions?: RuntimeExtension[];
135
+ /**
136
+ * The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
137
+ */
138
+ defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
139
+ }
140
+ /**
141
+ * @public
142
+ */
143
+ export type InvoicingClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & UserAgentInputConfig & RetryInputConfig & RegionInputConfig & HostHeaderInputConfig & EndpointInputConfig<EndpointParameters> & HttpAuthSchemeInputConfig & ClientInputEndpointParameters;
144
+ /**
145
+ * @public
146
+ *
147
+ * The configuration interface of InvoicingClient class constructor that set the region, credentials and other options.
148
+ */
149
+ export interface InvoicingClientConfig extends InvoicingClientConfigType {
150
+ }
151
+ /**
152
+ * @public
153
+ */
154
+ export type InvoicingClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & UserAgentResolvedConfig & RetryResolvedConfig & RegionResolvedConfig & HostHeaderResolvedConfig & EndpointResolvedConfig<EndpointParameters> & HttpAuthSchemeResolvedConfig & ClientResolvedEndpointParameters;
155
+ /**
156
+ * @public
157
+ *
158
+ * The resolved configuration interface of InvoicingClient class. This is resolved and normalized from the {@link InvoicingClientConfig | constructor configuration interface}.
159
+ */
160
+ export interface InvoicingClientResolvedConfig extends InvoicingClientResolvedConfigType {
161
+ }
162
+ /**
163
+ * <p>
164
+ * <b>Amazon Web Services Invoice Configuration</b>
165
+ * </p>
166
+ * <p>You can use Amazon Web Services Invoice Configuration APIs to programmatically create,
167
+ * update, delete, get, and list invoice units. You can also programmatically fetch the
168
+ * information of the invoice receiver. For example, business legal name, address, and invoicing
169
+ * contacts. </p>
170
+ * <p>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.</p>
171
+ * <p>Service endpoint</p>
172
+ * <p>You can use the following endpoints for Amazon Web Services Invoice Configuration:</p>
173
+ * <ul>
174
+ * <li>
175
+ * <p>
176
+ * <code>https://invoicing.us-east-1.api.aws</code>
177
+ * </p>
178
+ * </li>
179
+ * </ul>
180
+ * @public
181
+ */
182
+ export declare class InvoicingClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, InvoicingClientResolvedConfig> {
183
+ /**
184
+ * The resolved configuration of InvoicingClient class. This is resolved and normalized from the {@link InvoicingClientConfig | constructor configuration interface}.
185
+ */
186
+ readonly config: InvoicingClientResolvedConfig;
187
+ constructor(...[configuration]: __CheckOptionalClientConfig<InvoicingClientConfig>);
188
+ /**
189
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
190
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
191
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
192
+ */
193
+ destroy(): void;
194
+ }
@@ -0,0 +1,29 @@
1
+ import { AwsCredentialIdentity, AwsCredentialIdentityProvider, HttpAuthScheme } from "@smithy/types";
2
+ import { InvoicingHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
3
+ /**
4
+ * @internal
5
+ */
6
+ export interface HttpAuthExtensionConfiguration {
7
+ setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
8
+ httpAuthSchemes(): HttpAuthScheme[];
9
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider: InvoicingHttpAuthSchemeProvider): void;
10
+ httpAuthSchemeProvider(): InvoicingHttpAuthSchemeProvider;
11
+ setCredentials(credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider): void;
12
+ credentials(): AwsCredentialIdentity | AwsCredentialIdentityProvider | undefined;
13
+ }
14
+ /**
15
+ * @internal
16
+ */
17
+ export type HttpAuthRuntimeConfig = Partial<{
18
+ httpAuthSchemes: HttpAuthScheme[];
19
+ httpAuthSchemeProvider: InvoicingHttpAuthSchemeProvider;
20
+ credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider;
21
+ }>;
22
+ /**
23
+ * @internal
24
+ */
25
+ export declare const getHttpAuthExtensionConfiguration: (runtimeConfig: HttpAuthRuntimeConfig) => HttpAuthExtensionConfiguration;
26
+ /**
27
+ * @internal
28
+ */
29
+ export declare const resolveHttpAuthRuntimeConfig: (config: HttpAuthExtensionConfiguration) => HttpAuthRuntimeConfig;
@@ -0,0 +1,61 @@
1
+ import { AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4PreviouslyResolved } from "@aws-sdk/core";
2
+ import { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider } from "@smithy/types";
3
+ import { InvoicingClientResolvedConfig } from "../InvoicingClient";
4
+ /**
5
+ * @internal
6
+ */
7
+ export interface InvoicingHttpAuthSchemeParameters extends HttpAuthSchemeParameters {
8
+ region?: string;
9
+ }
10
+ /**
11
+ * @internal
12
+ */
13
+ export interface InvoicingHttpAuthSchemeParametersProvider extends HttpAuthSchemeParametersProvider<InvoicingClientResolvedConfig, HandlerExecutionContext, InvoicingHttpAuthSchemeParameters, object> {
14
+ }
15
+ /**
16
+ * @internal
17
+ */
18
+ export declare const defaultInvoicingHttpAuthSchemeParametersProvider: (config: InvoicingClientResolvedConfig, context: HandlerExecutionContext, input: object) => Promise<InvoicingHttpAuthSchemeParameters>;
19
+ /**
20
+ * @internal
21
+ */
22
+ export interface InvoicingHttpAuthSchemeProvider extends HttpAuthSchemeProvider<InvoicingHttpAuthSchemeParameters> {
23
+ }
24
+ /**
25
+ * @internal
26
+ */
27
+ export declare const defaultInvoicingHttpAuthSchemeProvider: InvoicingHttpAuthSchemeProvider;
28
+ /**
29
+ * @internal
30
+ */
31
+ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
32
+ /**
33
+ * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
34
+ * @internal
35
+ */
36
+ httpAuthSchemes?: HttpAuthScheme[];
37
+ /**
38
+ * Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
39
+ * @internal
40
+ */
41
+ httpAuthSchemeProvider?: InvoicingHttpAuthSchemeProvider;
42
+ }
43
+ /**
44
+ * @internal
45
+ */
46
+ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {
47
+ /**
48
+ * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
49
+ * @internal
50
+ */
51
+ readonly httpAuthSchemes: HttpAuthScheme[];
52
+ /**
53
+ * Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
54
+ * @internal
55
+ */
56
+ readonly httpAuthSchemeProvider: InvoicingHttpAuthSchemeProvider;
57
+ }
58
+ /**
59
+ * @internal
60
+ */
61
+ export declare const resolveHttpAuthSchemeConfig: <T>(config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved) => T & HttpAuthSchemeResolvedConfig;
@@ -0,0 +1,111 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { InvoicingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../InvoicingClient";
4
+ import { BatchGetInvoiceProfileRequest, BatchGetInvoiceProfileResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link BatchGetInvoiceProfileCommand}.
14
+ */
15
+ export interface BatchGetInvoiceProfileCommandInput extends BatchGetInvoiceProfileRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link BatchGetInvoiceProfileCommand}.
21
+ */
22
+ export interface BatchGetInvoiceProfileCommandOutput extends BatchGetInvoiceProfileResponse, __MetadataBearer {
23
+ }
24
+ declare const BatchGetInvoiceProfileCommand_base: {
25
+ new (input: BatchGetInvoiceProfileCommandInput): import("@smithy/smithy-client").CommandImpl<BatchGetInvoiceProfileCommandInput, BatchGetInvoiceProfileCommandOutput, InvoicingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: BatchGetInvoiceProfileCommandInput): import("@smithy/smithy-client").CommandImpl<BatchGetInvoiceProfileCommandInput, BatchGetInvoiceProfileCommandOutput, InvoicingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>This gets the invoice profile associated with a set of accounts. The accounts must be linked accounts under the requester management account organization.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { InvoicingClient, BatchGetInvoiceProfileCommand } from "@aws-sdk/client-invoicing"; // ES Modules import
35
+ * // const { InvoicingClient, BatchGetInvoiceProfileCommand } = require("@aws-sdk/client-invoicing"); // CommonJS import
36
+ * const client = new InvoicingClient(config);
37
+ * const input = { // BatchGetInvoiceProfileRequest
38
+ * AccountIds: [ // AccountIdList // required
39
+ * "STRING_VALUE",
40
+ * ],
41
+ * };
42
+ * const command = new BatchGetInvoiceProfileCommand(input);
43
+ * const response = await client.send(command);
44
+ * // { // BatchGetInvoiceProfileResponse
45
+ * // Profiles: [ // ProfileList
46
+ * // { // InvoiceProfile
47
+ * // AccountId: "STRING_VALUE",
48
+ * // ReceiverName: "STRING_VALUE",
49
+ * // ReceiverAddress: { // ReceiverAddress
50
+ * // AddressLine1: "STRING_VALUE",
51
+ * // AddressLine2: "STRING_VALUE",
52
+ * // AddressLine3: "STRING_VALUE",
53
+ * // DistrictOrCounty: "STRING_VALUE",
54
+ * // City: "STRING_VALUE",
55
+ * // StateOrRegion: "STRING_VALUE",
56
+ * // CountryCode: "STRING_VALUE",
57
+ * // CompanyName: "STRING_VALUE",
58
+ * // PostalCode: "STRING_VALUE",
59
+ * // },
60
+ * // ReceiverEmail: "STRING_VALUE",
61
+ * // Issuer: "STRING_VALUE",
62
+ * // TaxRegistrationNumber: "STRING_VALUE",
63
+ * // },
64
+ * // ],
65
+ * // };
66
+ *
67
+ * ```
68
+ *
69
+ * @param BatchGetInvoiceProfileCommandInput - {@link BatchGetInvoiceProfileCommandInput}
70
+ * @returns {@link BatchGetInvoiceProfileCommandOutput}
71
+ * @see {@link BatchGetInvoiceProfileCommandInput} for command's `input` shape.
72
+ * @see {@link BatchGetInvoiceProfileCommandOutput} for command's `response` shape.
73
+ * @see {@link InvoicingClientResolvedConfig | config} for InvoicingClient's `config` shape.
74
+ *
75
+ * @throws {@link AccessDeniedException} (client fault)
76
+ * <p>You don't have sufficient access to perform this action.</p>
77
+ *
78
+ * @throws {@link InternalServerException} (server fault)
79
+ * <p>The processing request failed because of an unknown error, exception, or failure.
80
+ * </p>
81
+ *
82
+ * @throws {@link ResourceNotFoundException} (client fault)
83
+ * <p>The resource could not be found.
84
+ * </p>
85
+ *
86
+ * @throws {@link ThrottlingException} (client fault)
87
+ * <p>The request was denied due to request throttling.</p>
88
+ *
89
+ * @throws {@link ValidationException} (client fault)
90
+ * <p>
91
+ * The input fails to satisfy the constraints specified by an Amazon Web Services service.
92
+ * </p>
93
+ *
94
+ * @throws {@link InvoicingServiceException}
95
+ * <p>Base exception class for all service exceptions from Invoicing service.</p>
96
+ *
97
+ * @public
98
+ */
99
+ export declare class BatchGetInvoiceProfileCommand extends BatchGetInvoiceProfileCommand_base {
100
+ /** @internal type navigation helper, not in runtime. */
101
+ protected static __types: {
102
+ api: {
103
+ input: BatchGetInvoiceProfileRequest;
104
+ output: BatchGetInvoiceProfileResponse;
105
+ };
106
+ sdk: {
107
+ input: BatchGetInvoiceProfileCommandInput;
108
+ output: BatchGetInvoiceProfileCommandOutput;
109
+ };
110
+ };
111
+ }
@@ -0,0 +1,100 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { InvoicingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../InvoicingClient";
4
+ import { CreateInvoiceUnitRequest, CreateInvoiceUnitResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link CreateInvoiceUnitCommand}.
14
+ */
15
+ export interface CreateInvoiceUnitCommandInput extends CreateInvoiceUnitRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link CreateInvoiceUnitCommand}.
21
+ */
22
+ export interface CreateInvoiceUnitCommandOutput extends CreateInvoiceUnitResponse, __MetadataBearer {
23
+ }
24
+ declare const CreateInvoiceUnitCommand_base: {
25
+ new (input: CreateInvoiceUnitCommandInput): import("@smithy/smithy-client").CommandImpl<CreateInvoiceUnitCommandInput, CreateInvoiceUnitCommandOutput, InvoicingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: CreateInvoiceUnitCommandInput): import("@smithy/smithy-client").CommandImpl<CreateInvoiceUnitCommandInput, CreateInvoiceUnitCommandOutput, InvoicingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>This creates a new invoice unit with the provided definition.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { InvoicingClient, CreateInvoiceUnitCommand } from "@aws-sdk/client-invoicing"; // ES Modules import
35
+ * // const { InvoicingClient, CreateInvoiceUnitCommand } = require("@aws-sdk/client-invoicing"); // CommonJS import
36
+ * const client = new InvoicingClient(config);
37
+ * const input = { // CreateInvoiceUnitRequest
38
+ * Name: "STRING_VALUE", // required
39
+ * InvoiceReceiver: "STRING_VALUE", // required
40
+ * Description: "STRING_VALUE",
41
+ * TaxInheritanceDisabled: true || false,
42
+ * Rule: { // InvoiceUnitRule
43
+ * LinkedAccounts: [ // AccountIdList
44
+ * "STRING_VALUE",
45
+ * ],
46
+ * },
47
+ * ResourceTags: [ // ResourceTagList
48
+ * { // ResourceTag
49
+ * Key: "STRING_VALUE", // required
50
+ * Value: "STRING_VALUE", // required
51
+ * },
52
+ * ],
53
+ * };
54
+ * const command = new CreateInvoiceUnitCommand(input);
55
+ * const response = await client.send(command);
56
+ * // { // CreateInvoiceUnitResponse
57
+ * // InvoiceUnitArn: "STRING_VALUE",
58
+ * // };
59
+ *
60
+ * ```
61
+ *
62
+ * @param CreateInvoiceUnitCommandInput - {@link CreateInvoiceUnitCommandInput}
63
+ * @returns {@link CreateInvoiceUnitCommandOutput}
64
+ * @see {@link CreateInvoiceUnitCommandInput} for command's `input` shape.
65
+ * @see {@link CreateInvoiceUnitCommandOutput} for command's `response` shape.
66
+ * @see {@link InvoicingClientResolvedConfig | config} for InvoicingClient's `config` shape.
67
+ *
68
+ * @throws {@link AccessDeniedException} (client fault)
69
+ * <p>You don't have sufficient access to perform this action.</p>
70
+ *
71
+ * @throws {@link InternalServerException} (server fault)
72
+ * <p>The processing request failed because of an unknown error, exception, or failure.
73
+ * </p>
74
+ *
75
+ * @throws {@link ThrottlingException} (client fault)
76
+ * <p>The request was denied due to request throttling.</p>
77
+ *
78
+ * @throws {@link ValidationException} (client fault)
79
+ * <p>
80
+ * The input fails to satisfy the constraints specified by an Amazon Web Services service.
81
+ * </p>
82
+ *
83
+ * @throws {@link InvoicingServiceException}
84
+ * <p>Base exception class for all service exceptions from Invoicing service.</p>
85
+ *
86
+ * @public
87
+ */
88
+ export declare class CreateInvoiceUnitCommand extends CreateInvoiceUnitCommand_base {
89
+ /** @internal type navigation helper, not in runtime. */
90
+ protected static __types: {
91
+ api: {
92
+ input: CreateInvoiceUnitRequest;
93
+ output: CreateInvoiceUnitResponse;
94
+ };
95
+ sdk: {
96
+ input: CreateInvoiceUnitCommandInput;
97
+ output: CreateInvoiceUnitCommandOutput;
98
+ };
99
+ };
100
+ }
@@ -0,0 +1,91 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { InvoicingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../InvoicingClient";
4
+ import { DeleteInvoiceUnitRequest, DeleteInvoiceUnitResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link DeleteInvoiceUnitCommand}.
14
+ */
15
+ export interface DeleteInvoiceUnitCommandInput extends DeleteInvoiceUnitRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DeleteInvoiceUnitCommand}.
21
+ */
22
+ export interface DeleteInvoiceUnitCommandOutput extends DeleteInvoiceUnitResponse, __MetadataBearer {
23
+ }
24
+ declare const DeleteInvoiceUnitCommand_base: {
25
+ new (input: DeleteInvoiceUnitCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteInvoiceUnitCommandInput, DeleteInvoiceUnitCommandOutput, InvoicingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: DeleteInvoiceUnitCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteInvoiceUnitCommandInput, DeleteInvoiceUnitCommandOutput, InvoicingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>This deletes an invoice unit with the provided invoice unit ARN.
31
+ * </p>
32
+ * @example
33
+ * Use a bare-bones client and the command you need to make an API call.
34
+ * ```javascript
35
+ * import { InvoicingClient, DeleteInvoiceUnitCommand } from "@aws-sdk/client-invoicing"; // ES Modules import
36
+ * // const { InvoicingClient, DeleteInvoiceUnitCommand } = require("@aws-sdk/client-invoicing"); // CommonJS import
37
+ * const client = new InvoicingClient(config);
38
+ * const input = { // DeleteInvoiceUnitRequest
39
+ * InvoiceUnitArn: "STRING_VALUE", // required
40
+ * };
41
+ * const command = new DeleteInvoiceUnitCommand(input);
42
+ * const response = await client.send(command);
43
+ * // { // DeleteInvoiceUnitResponse
44
+ * // InvoiceUnitArn: "STRING_VALUE",
45
+ * // };
46
+ *
47
+ * ```
48
+ *
49
+ * @param DeleteInvoiceUnitCommandInput - {@link DeleteInvoiceUnitCommandInput}
50
+ * @returns {@link DeleteInvoiceUnitCommandOutput}
51
+ * @see {@link DeleteInvoiceUnitCommandInput} for command's `input` shape.
52
+ * @see {@link DeleteInvoiceUnitCommandOutput} for command's `response` shape.
53
+ * @see {@link InvoicingClientResolvedConfig | config} for InvoicingClient's `config` shape.
54
+ *
55
+ * @throws {@link AccessDeniedException} (client fault)
56
+ * <p>You don't have sufficient access to perform this action.</p>
57
+ *
58
+ * @throws {@link InternalServerException} (server fault)
59
+ * <p>The processing request failed because of an unknown error, exception, or failure.
60
+ * </p>
61
+ *
62
+ * @throws {@link ResourceNotFoundException} (client fault)
63
+ * <p>The resource could not be found.
64
+ * </p>
65
+ *
66
+ * @throws {@link ThrottlingException} (client fault)
67
+ * <p>The request was denied due to request throttling.</p>
68
+ *
69
+ * @throws {@link ValidationException} (client fault)
70
+ * <p>
71
+ * The input fails to satisfy the constraints specified by an Amazon Web Services service.
72
+ * </p>
73
+ *
74
+ * @throws {@link InvoicingServiceException}
75
+ * <p>Base exception class for all service exceptions from Invoicing service.</p>
76
+ *
77
+ * @public
78
+ */
79
+ export declare class DeleteInvoiceUnitCommand extends DeleteInvoiceUnitCommand_base {
80
+ /** @internal type navigation helper, not in runtime. */
81
+ protected static __types: {
82
+ api: {
83
+ input: DeleteInvoiceUnitRequest;
84
+ output: DeleteInvoiceUnitResponse;
85
+ };
86
+ sdk: {
87
+ input: DeleteInvoiceUnitCommandInput;
88
+ output: DeleteInvoiceUnitCommandOutput;
89
+ };
90
+ };
91
+ }