@aws-sdk/client-billing 3.1156.0 → 3.1158.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.
- package/README.md +63 -0
- package/dist-cjs/index.js +531 -43
- package/dist-es/Billing.js +26 -0
- package/dist-es/commands/AssociateContractCommand.js +4 -0
- package/dist-es/commands/CancelContractualInvestmentAttestationCommand.js +4 -0
- package/dist-es/commands/CreateContractualInvestmentAttestationCommand.js +4 -0
- package/dist-es/commands/DisassociateContractCommand.js +4 -0
- package/dist-es/commands/GetContractInformationCommand.js +4 -0
- package/dist-es/commands/ListContractsCommand.js +4 -0
- package/dist-es/commands/ListContractualInvestmentAttestationsCommand.js +4 -0
- package/dist-es/commands/ListContractualInvestmentSummariesCommand.js +4 -0
- package/dist-es/commands/ListContractualInvestmentsCommand.js +4 -0
- package/dist-es/commands/index.js +9 -0
- package/dist-es/models/enums.js +28 -0
- package/dist-es/models/errors.js +34 -34
- package/dist-es/pagination/ListContractsPaginator.js +4 -0
- package/dist-es/pagination/ListContractualInvestmentAttestationsPaginator.js +4 -0
- package/dist-es/pagination/ListContractualInvestmentSummariesPaginator.js +4 -0
- package/dist-es/pagination/ListContractualInvestmentsPaginator.js +4 -0
- package/dist-es/pagination/index.js +4 -0
- package/dist-es/schemas/schemas_0.js +359 -8
- package/dist-types/Billing.d.ts +92 -0
- package/dist-types/BillingClient.d.ts +11 -2
- package/dist-types/commands/AssociateContractCommand.d.ts +102 -0
- package/dist-types/commands/CancelContractualInvestmentAttestationCommand.d.ts +104 -0
- package/dist-types/commands/CreateContractualInvestmentAttestationCommand.d.ts +262 -0
- package/dist-types/commands/DisassociateContractCommand.d.ts +97 -0
- package/dist-types/commands/GetContractInformationCommand.d.ts +143 -0
- package/dist-types/commands/ListContractsCommand.d.ts +121 -0
- package/dist-types/commands/ListContractualInvestmentAttestationsCommand.d.ts +164 -0
- package/dist-types/commands/ListContractualInvestmentSummariesCommand.d.ts +125 -0
- package/dist-types/commands/ListContractualInvestmentsCommand.d.ts +168 -0
- package/dist-types/commands/index.d.ts +9 -0
- package/dist-types/models/enums.d.ts +76 -0
- package/dist-types/models/errors.d.ts +41 -41
- package/dist-types/models/models_0.d.ts +775 -7
- package/dist-types/pagination/ListContractsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListContractualInvestmentAttestationsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListContractualInvestmentSummariesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListContractualInvestmentsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +4 -0
- package/dist-types/schemas/schemas_0.d.ts +46 -1
- package/dist-types/ts3.4/Billing.d.ts +182 -0
- package/dist-types/ts3.4/BillingClient.d.ts +54 -0
- package/dist-types/ts3.4/commands/AssociateContractCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/CancelContractualInvestmentAttestationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/CreateContractualInvestmentAttestationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DisassociateContractCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/GetContractInformationCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListContractsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListContractualInvestmentAttestationsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListContractualInvestmentSummariesCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListContractualInvestmentsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +9 -0
- package/dist-types/ts3.4/models/enums.d.ts +35 -0
- package/dist-types/ts3.4/models/errors.d.ts +16 -16
- package/dist-types/ts3.4/models/models_0.d.ts +234 -3
- package/dist-types/ts3.4/pagination/ListContractsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListContractualInvestmentAttestationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListContractualInvestmentSummariesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListContractualInvestmentsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +51 -1
- package/package.json +5 -5
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { CreateContractualInvestmentAttestationRequest, CreateContractualInvestmentAttestationResponse } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link CreateContractualInvestmentAttestationCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface CreateContractualInvestmentAttestationCommandInput extends CreateContractualInvestmentAttestationRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link CreateContractualInvestmentAttestationCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface CreateContractualInvestmentAttestationCommandOutput extends CreateContractualInvestmentAttestationResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const CreateContractualInvestmentAttestationCommand_base: {
|
|
22
|
+
new (input: CreateContractualInvestmentAttestationCommandInput): import("@smithy/core/client").CommandImpl<CreateContractualInvestmentAttestationCommandInput, CreateContractualInvestmentAttestationCommandOutput, import("..").BillingClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: CreateContractualInvestmentAttestationCommandInput): import("@smithy/core/client").CommandImpl<CreateContractualInvestmentAttestationCommandInput, CreateContractualInvestmentAttestationCommandOutput, import("..").BillingClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Creates an attestation that claims an investment award for a completed milestone or outcome within a private pricing contract. Supply a <code>clientToken</code> to make the request idempotent so a safe retry does not create a duplicate attestation. This operation starts an asynchronous review and returns an <code>attestationId</code> while the attestation is pending.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { BillingClient, CreateContractualInvestmentAttestationCommand } from "@aws-sdk/client-billing"; // ES Modules import
|
|
32
|
+
* // const { BillingClient, CreateContractualInvestmentAttestationCommand } = require("@aws-sdk/client-billing"); // CommonJS import
|
|
33
|
+
* // import type { BillingClientConfig } from "@aws-sdk/client-billing";
|
|
34
|
+
* const config = {}; // type is BillingClientConfig
|
|
35
|
+
* const client = new BillingClient(config);
|
|
36
|
+
* const input = { // CreateContractualInvestmentAttestationRequest
|
|
37
|
+
* contractArn: "STRING_VALUE", // required
|
|
38
|
+
* investmentSummaryId: "STRING_VALUE", // required
|
|
39
|
+
* investmentId: "STRING_VALUE", // required
|
|
40
|
+
* contractDocumentId: "STRING_VALUE", // required
|
|
41
|
+
* approverDetails: { // ApproverDetails
|
|
42
|
+
* name: "STRING_VALUE", // required
|
|
43
|
+
* title: "STRING_VALUE", // required
|
|
44
|
+
* email: "STRING_VALUE", // required
|
|
45
|
+
* },
|
|
46
|
+
* investmentDisbursedAt: new Date("TIMESTAMP"),
|
|
47
|
+
* attestationDetails: { // AttestationDetails
|
|
48
|
+
* attestationValue: { // AttestationValue Union: only one key present
|
|
49
|
+
* attestationAmount: { // Amount
|
|
50
|
+
* currencyCode: "STRING_VALUE", // required
|
|
51
|
+
* currencyAmount: "STRING_VALUE", // required
|
|
52
|
+
* },
|
|
53
|
+
* attestationQuantities: [ // AttestationQuantities
|
|
54
|
+
* { // AttestationQuantity
|
|
55
|
+
* attestationVolume: "STRING_VALUE", // required
|
|
56
|
+
* attestationUnit: "STRING_VALUE", // required
|
|
57
|
+
* },
|
|
58
|
+
* ],
|
|
59
|
+
* },
|
|
60
|
+
* investmentDistributions: [ // InvestmentDistributions
|
|
61
|
+
* { // InvestmentDistribution
|
|
62
|
+
* accountId: "STRING_VALUE", // required
|
|
63
|
+
* investmentAmount: {
|
|
64
|
+
* currencyCode: "STRING_VALUE", // required
|
|
65
|
+
* currencyAmount: "STRING_VALUE", // required
|
|
66
|
+
* },
|
|
67
|
+
* },
|
|
68
|
+
* ],
|
|
69
|
+
* },
|
|
70
|
+
* additionalRecipients: [ // AdditionalRecipients
|
|
71
|
+
* { // AdditionalRecipient
|
|
72
|
+
* email: "STRING_VALUE", // required
|
|
73
|
+
* },
|
|
74
|
+
* ],
|
|
75
|
+
* clientToken: "STRING_VALUE",
|
|
76
|
+
* };
|
|
77
|
+
* const command = new CreateContractualInvestmentAttestationCommand(input);
|
|
78
|
+
* const response = await client.send(command);
|
|
79
|
+
* // { // CreateContractualInvestmentAttestationResponse
|
|
80
|
+
* // attestationId: "STRING_VALUE", // required
|
|
81
|
+
* // };
|
|
82
|
+
*
|
|
83
|
+
* ```
|
|
84
|
+
*
|
|
85
|
+
* @param CreateContractualInvestmentAttestationCommandInput - {@link CreateContractualInvestmentAttestationCommandInput}
|
|
86
|
+
* @returns {@link CreateContractualInvestmentAttestationCommandOutput}
|
|
87
|
+
* @see {@link CreateContractualInvestmentAttestationCommandInput} for command's `input` shape.
|
|
88
|
+
* @see {@link CreateContractualInvestmentAttestationCommandOutput} for command's `response` shape.
|
|
89
|
+
* @see {@link BillingClientResolvedConfig | config} for BillingClient's `config` shape.
|
|
90
|
+
*
|
|
91
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
92
|
+
* <p>You don't have sufficient access to perform this action.</p>
|
|
93
|
+
*
|
|
94
|
+
* @throws {@link ConflictException} (client fault)
|
|
95
|
+
* <p> The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request. </p>
|
|
96
|
+
*
|
|
97
|
+
* @throws {@link InternalServerException} (server fault)
|
|
98
|
+
* <p>The request processing failed because of an unknown error, exception, or failure. </p>
|
|
99
|
+
*
|
|
100
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
101
|
+
* <p> The specified ARN in the request doesn't exist. </p>
|
|
102
|
+
*
|
|
103
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
104
|
+
* <p>The request was denied due to request throttling. </p>
|
|
105
|
+
*
|
|
106
|
+
* @throws {@link ValidationException} (client fault)
|
|
107
|
+
* <p>The input fails to satisfy the constraints specified by an Amazon Web Services service. </p>
|
|
108
|
+
*
|
|
109
|
+
* @throws {@link BillingServiceException}
|
|
110
|
+
* <p>Base exception class for all service exceptions from Billing service.</p>
|
|
111
|
+
*
|
|
112
|
+
*
|
|
113
|
+
* @example Invoke CreateContractualInvestmentAttestation with a direct amount
|
|
114
|
+
* ```javascript
|
|
115
|
+
* //
|
|
116
|
+
* const input = {
|
|
117
|
+
* additionalRecipients: [
|
|
118
|
+
* {
|
|
119
|
+
* email: "recipient@example.com"
|
|
120
|
+
* }
|
|
121
|
+
* ],
|
|
122
|
+
* approverDetails: {
|
|
123
|
+
* email: "first-name.last-name@example.com",
|
|
124
|
+
* name: "First-Name Last-Name",
|
|
125
|
+
* title: "Title"
|
|
126
|
+
* },
|
|
127
|
+
* attestationDetails: {
|
|
128
|
+
* attestationValue: {
|
|
129
|
+
* attestationAmount: {
|
|
130
|
+
* currencyAmount: "1.00",
|
|
131
|
+
* currencyCode: "USD"
|
|
132
|
+
* }
|
|
133
|
+
* },
|
|
134
|
+
* investmentDistributions: [
|
|
135
|
+
* {
|
|
136
|
+
* accountId: "123456789012",
|
|
137
|
+
* investmentAmount: {
|
|
138
|
+
* currencyAmount: "1.00",
|
|
139
|
+
* currencyCode: "USD"
|
|
140
|
+
* }
|
|
141
|
+
* }
|
|
142
|
+
* ]
|
|
143
|
+
* },
|
|
144
|
+
* clientToken: "c0ffee00-1234-4abc-9def-0123456789ab",
|
|
145
|
+
* contractArn: "arn:aws:billing::123456789012:contract/1a2b3c4d-5e6f-7a8b-9c0d-111122223333",
|
|
146
|
+
* contractDocumentId: "CC OTH XXXXXXXX XXXX TR",
|
|
147
|
+
* investmentDisbursedAt: 1199923200,
|
|
148
|
+
* investmentId: "Investment-Id",
|
|
149
|
+
* investmentSummaryId: "Example-Investment-Summary-Id"
|
|
150
|
+
* };
|
|
151
|
+
* const command = new CreateContractualInvestmentAttestationCommand(input);
|
|
152
|
+
* const response = await client.send(command);
|
|
153
|
+
* /* response is
|
|
154
|
+
* {
|
|
155
|
+
* attestationId: "a1b2c3d4-5678-90ab-cdef-111122223333"
|
|
156
|
+
* }
|
|
157
|
+
* *\/
|
|
158
|
+
* ```
|
|
159
|
+
*
|
|
160
|
+
* @example Invoke CreateContractualInvestmentAttestation with a flat rate multiplier
|
|
161
|
+
* ```javascript
|
|
162
|
+
* //
|
|
163
|
+
* const input = {
|
|
164
|
+
* approverDetails: {
|
|
165
|
+
* email: "first-name.last-name@example.com",
|
|
166
|
+
* name: "First-Name Last-Name",
|
|
167
|
+
* title: "Title"
|
|
168
|
+
* },
|
|
169
|
+
* attestationDetails: {
|
|
170
|
+
* attestationValue: {
|
|
171
|
+
* attestationQuantities: [
|
|
172
|
+
* {
|
|
173
|
+
* attestationUnit: "Example attestation unit",
|
|
174
|
+
* attestationVolume: "3"
|
|
175
|
+
* }
|
|
176
|
+
* ]
|
|
177
|
+
* },
|
|
178
|
+
* investmentDistributions: [
|
|
179
|
+
* {
|
|
180
|
+
* accountId: "123456789012",
|
|
181
|
+
* investmentAmount: {
|
|
182
|
+
* currencyAmount: "1500.00",
|
|
183
|
+
* currencyCode: "USD"
|
|
184
|
+
* }
|
|
185
|
+
* }
|
|
186
|
+
* ]
|
|
187
|
+
* },
|
|
188
|
+
* clientToken: "c0ffee00-1234-4abc-9def-0123456789ac",
|
|
189
|
+
* contractArn: "arn:aws:billing::123456789012:contract/1a2b3c4d-5e6f-7a8b-9c0d-111122223333",
|
|
190
|
+
* contractDocumentId: "CC OTH XXXXXXXX XXXX TR",
|
|
191
|
+
* investmentDisbursedAt: 1199923200,
|
|
192
|
+
* investmentId: "Investment-Id",
|
|
193
|
+
* investmentSummaryId: "Example-Investment-Summary-Id"
|
|
194
|
+
* };
|
|
195
|
+
* const command = new CreateContractualInvestmentAttestationCommand(input);
|
|
196
|
+
* const response = await client.send(command);
|
|
197
|
+
* /* response is
|
|
198
|
+
* {
|
|
199
|
+
* attestationId: "b2c3d4e5-6789-01bc-def0-222233334444"
|
|
200
|
+
* }
|
|
201
|
+
* *\/
|
|
202
|
+
* ```
|
|
203
|
+
*
|
|
204
|
+
* @example Invoke CreateContractualInvestmentAttestation with a percentage multiplier
|
|
205
|
+
* ```javascript
|
|
206
|
+
* //
|
|
207
|
+
* const input = {
|
|
208
|
+
* approverDetails: {
|
|
209
|
+
* email: "first-name.last-name@example.com",
|
|
210
|
+
* name: "First-Name Last-Name",
|
|
211
|
+
* title: "Title"
|
|
212
|
+
* },
|
|
213
|
+
* attestationDetails: {
|
|
214
|
+
* attestationValue: {
|
|
215
|
+
* attestationQuantities: [
|
|
216
|
+
* {
|
|
217
|
+
* attestationUnit: "Example attestation unit",
|
|
218
|
+
* attestationVolume: "1000"
|
|
219
|
+
* }
|
|
220
|
+
* ]
|
|
221
|
+
* },
|
|
222
|
+
* investmentDistributions: [
|
|
223
|
+
* {
|
|
224
|
+
* accountId: "123456789012",
|
|
225
|
+
* investmentAmount: {
|
|
226
|
+
* currencyAmount: "150.00",
|
|
227
|
+
* currencyCode: "USD"
|
|
228
|
+
* }
|
|
229
|
+
* }
|
|
230
|
+
* ]
|
|
231
|
+
* },
|
|
232
|
+
* clientToken: "c0ffee00-1234-4abc-9def-0123456789ad",
|
|
233
|
+
* contractArn: "arn:aws:billing::123456789012:contract/1a2b3c4d-5e6f-7a8b-9c0d-111122223333",
|
|
234
|
+
* contractDocumentId: "CC OTH XXXXXXXX XXXX TR",
|
|
235
|
+
* investmentDisbursedAt: 1199923200,
|
|
236
|
+
* investmentId: "Investment-Id",
|
|
237
|
+
* investmentSummaryId: "Example-Investment-Summary-Id"
|
|
238
|
+
* };
|
|
239
|
+
* const command = new CreateContractualInvestmentAttestationCommand(input);
|
|
240
|
+
* const response = await client.send(command);
|
|
241
|
+
* /* response is
|
|
242
|
+
* {
|
|
243
|
+
* attestationId: "c3d4e5f6-7890-12cd-ef01-333344445555"
|
|
244
|
+
* }
|
|
245
|
+
* *\/
|
|
246
|
+
* ```
|
|
247
|
+
*
|
|
248
|
+
* @public
|
|
249
|
+
*/
|
|
250
|
+
export declare class CreateContractualInvestmentAttestationCommand extends CreateContractualInvestmentAttestationCommand_base {
|
|
251
|
+
/** @internal type navigation helper, not in runtime. */
|
|
252
|
+
protected static __types: {
|
|
253
|
+
api: {
|
|
254
|
+
input: CreateContractualInvestmentAttestationRequest;
|
|
255
|
+
output: CreateContractualInvestmentAttestationResponse;
|
|
256
|
+
};
|
|
257
|
+
sdk: {
|
|
258
|
+
input: CreateContractualInvestmentAttestationCommandInput;
|
|
259
|
+
output: CreateContractualInvestmentAttestationCommandOutput;
|
|
260
|
+
};
|
|
261
|
+
};
|
|
262
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { DisassociateContractRequest, DisassociateContractResponse } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link DisassociateContractCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface DisassociateContractCommandInput extends DisassociateContractRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link DisassociateContractCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface DisassociateContractCommandOutput extends DisassociateContractResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const DisassociateContractCommand_base: {
|
|
22
|
+
new (input: DisassociateContractCommandInput): import("@smithy/core/client").CommandImpl<DisassociateContractCommandInput, DisassociateContractCommandOutput, import("..").BillingClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: DisassociateContractCommandInput): import("@smithy/core/client").CommandImpl<DisassociateContractCommandInput, DisassociateContractCommandOutput, import("..").BillingClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Removes the association between a private pricing contract and your Amazon Web Services account. The account must have been associated with the contract previously. This operation is idempotent, so retrying is safe.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { BillingClient, DisassociateContractCommand } from "@aws-sdk/client-billing"; // ES Modules import
|
|
32
|
+
* // const { BillingClient, DisassociateContractCommand } = require("@aws-sdk/client-billing"); // CommonJS import
|
|
33
|
+
* // import type { BillingClientConfig } from "@aws-sdk/client-billing";
|
|
34
|
+
* const config = {}; // type is BillingClientConfig
|
|
35
|
+
* const client = new BillingClient(config);
|
|
36
|
+
* const input = { // DisassociateContractRequest
|
|
37
|
+
* contractArn: "STRING_VALUE", // required
|
|
38
|
+
* };
|
|
39
|
+
* const command = new DisassociateContractCommand(input);
|
|
40
|
+
* const response = await client.send(command);
|
|
41
|
+
* // {};
|
|
42
|
+
*
|
|
43
|
+
* ```
|
|
44
|
+
*
|
|
45
|
+
* @param DisassociateContractCommandInput - {@link DisassociateContractCommandInput}
|
|
46
|
+
* @returns {@link DisassociateContractCommandOutput}
|
|
47
|
+
* @see {@link DisassociateContractCommandInput} for command's `input` shape.
|
|
48
|
+
* @see {@link DisassociateContractCommandOutput} for command's `response` shape.
|
|
49
|
+
* @see {@link BillingClientResolvedConfig | config} for BillingClient's `config` shape.
|
|
50
|
+
*
|
|
51
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
52
|
+
* <p>You don't have sufficient access to perform this action.</p>
|
|
53
|
+
*
|
|
54
|
+
* @throws {@link InternalServerException} (server fault)
|
|
55
|
+
* <p>The request processing failed because of an unknown error, exception, or failure. </p>
|
|
56
|
+
*
|
|
57
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
58
|
+
* <p> The specified ARN in the request doesn't exist. </p>
|
|
59
|
+
*
|
|
60
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
61
|
+
* <p>The request was denied due to request throttling. </p>
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link ValidationException} (client fault)
|
|
64
|
+
* <p>The input fails to satisfy the constraints specified by an Amazon Web Services service. </p>
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link BillingServiceException}
|
|
67
|
+
* <p>Base exception class for all service exceptions from Billing service.</p>
|
|
68
|
+
*
|
|
69
|
+
*
|
|
70
|
+
* @example Invoke DisassociateContract
|
|
71
|
+
* ```javascript
|
|
72
|
+
* //
|
|
73
|
+
* const input = {
|
|
74
|
+
* contractArn: "arn:aws:billing::123456789012:contract/1a2b3c4d-5e6f-7a8b-9c0d-111122223333"
|
|
75
|
+
* };
|
|
76
|
+
* const command = new DisassociateContractCommand(input);
|
|
77
|
+
* const response = await client.send(command);
|
|
78
|
+
* /* response is
|
|
79
|
+
* { /* empty *\/ }
|
|
80
|
+
* *\/
|
|
81
|
+
* ```
|
|
82
|
+
*
|
|
83
|
+
* @public
|
|
84
|
+
*/
|
|
85
|
+
export declare class DisassociateContractCommand extends DisassociateContractCommand_base {
|
|
86
|
+
/** @internal type navigation helper, not in runtime. */
|
|
87
|
+
protected static __types: {
|
|
88
|
+
api: {
|
|
89
|
+
input: DisassociateContractRequest;
|
|
90
|
+
output: {};
|
|
91
|
+
};
|
|
92
|
+
sdk: {
|
|
93
|
+
input: DisassociateContractCommandInput;
|
|
94
|
+
output: DisassociateContractCommandOutput;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { GetContractInformationRequest, GetContractInformationResponse } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link GetContractInformationCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface GetContractInformationCommandInput extends GetContractInformationRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link GetContractInformationCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface GetContractInformationCommandOutput extends GetContractInformationResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const GetContractInformationCommand_base: {
|
|
22
|
+
new (input: GetContractInformationCommandInput): import("@smithy/core/client").CommandImpl<GetContractInformationCommandInput, GetContractInformationCommandOutput, import("..").BillingClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: GetContractInformationCommandInput): import("@smithy/core/client").CommandImpl<GetContractInformationCommandInput, GetContractInformationCommandOutput, import("..").BillingClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Returns information about a specific private pricing contract, including its term (duration), eligible payer accounts, investment accounts, and legal entities. This operation is read-only.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { BillingClient, GetContractInformationCommand } from "@aws-sdk/client-billing"; // ES Modules import
|
|
32
|
+
* // const { BillingClient, GetContractInformationCommand } = require("@aws-sdk/client-billing"); // CommonJS import
|
|
33
|
+
* // import type { BillingClientConfig } from "@aws-sdk/client-billing";
|
|
34
|
+
* const config = {}; // type is BillingClientConfig
|
|
35
|
+
* const client = new BillingClient(config);
|
|
36
|
+
* const input = { // GetContractInformationRequest
|
|
37
|
+
* contractArn: "STRING_VALUE", // required
|
|
38
|
+
* };
|
|
39
|
+
* const command = new GetContractInformationCommand(input);
|
|
40
|
+
* const response = await client.send(command);
|
|
41
|
+
* // { // GetContractInformationResponse
|
|
42
|
+
* // contract: { // ContractDetails Union: only one key present
|
|
43
|
+
* // privatePricingAddendum: { // PrivatePricingAddendum
|
|
44
|
+
* // contractArn: "STRING_VALUE", // required
|
|
45
|
+
* // contractTerm: { // Interval
|
|
46
|
+
* // startDateInclusive: new Date("TIMESTAMP"), // required
|
|
47
|
+
* // endDateInclusive: new Date("TIMESTAMP"), // required
|
|
48
|
+
* // },
|
|
49
|
+
* // eligiblePayerAccounts: [ // AccountList // required
|
|
50
|
+
* // "STRING_VALUE",
|
|
51
|
+
* // ],
|
|
52
|
+
* // investmentAccounts: [ // required
|
|
53
|
+
* // "STRING_VALUE",
|
|
54
|
+
* // ],
|
|
55
|
+
* // legalEntities: [ // LegalEntities // required
|
|
56
|
+
* // { // LegalEntity
|
|
57
|
+
* // legalEntityName: "STRING_VALUE", // required
|
|
58
|
+
* // },
|
|
59
|
+
* // ],
|
|
60
|
+
* // contractRestrictions: [ // ContractRestrictions
|
|
61
|
+
* // "ATTESTATION_SELF_SERVICE_BLOCKED",
|
|
62
|
+
* // ],
|
|
63
|
+
* // },
|
|
64
|
+
* // },
|
|
65
|
+
* // };
|
|
66
|
+
*
|
|
67
|
+
* ```
|
|
68
|
+
*
|
|
69
|
+
* @param GetContractInformationCommandInput - {@link GetContractInformationCommandInput}
|
|
70
|
+
* @returns {@link GetContractInformationCommandOutput}
|
|
71
|
+
* @see {@link GetContractInformationCommandInput} for command's `input` shape.
|
|
72
|
+
* @see {@link GetContractInformationCommandOutput} for command's `response` shape.
|
|
73
|
+
* @see {@link BillingClientResolvedConfig | config} for BillingClient'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 request processing failed because of an unknown error, exception, or failure. </p>
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
82
|
+
* <p> The specified ARN in the request doesn't exist. </p>
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
85
|
+
* <p>The request was denied due to request throttling. </p>
|
|
86
|
+
*
|
|
87
|
+
* @throws {@link ValidationException} (client fault)
|
|
88
|
+
* <p>The input fails to satisfy the constraints specified by an Amazon Web Services service. </p>
|
|
89
|
+
*
|
|
90
|
+
* @throws {@link BillingServiceException}
|
|
91
|
+
* <p>Base exception class for all service exceptions from Billing service.</p>
|
|
92
|
+
*
|
|
93
|
+
*
|
|
94
|
+
* @example Invoke GetContractInformation
|
|
95
|
+
* ```javascript
|
|
96
|
+
* //
|
|
97
|
+
* const input = {
|
|
98
|
+
* contractArn: "arn:aws:billing::123456789012:contract/1a2b3c4d-5e6f-7a8b-9c0d-111122223333"
|
|
99
|
+
* };
|
|
100
|
+
* const command = new GetContractInformationCommand(input);
|
|
101
|
+
* const response = await client.send(command);
|
|
102
|
+
* /* response is
|
|
103
|
+
* {
|
|
104
|
+
* contract: {
|
|
105
|
+
* privatePricingAddendum: {
|
|
106
|
+
* contractArn: "arn:aws:billing::123456789012:contract/1a2b3c4d-5e6f-7a8b-9c0d-111122223333",
|
|
107
|
+
* contractTerm: {
|
|
108
|
+
* endDateInclusive: 1222222222,
|
|
109
|
+
* startDateInclusive: 1111111111
|
|
110
|
+
* },
|
|
111
|
+
* eligiblePayerAccounts: [
|
|
112
|
+
* "123456789012",
|
|
113
|
+
* "210987654321"
|
|
114
|
+
* ],
|
|
115
|
+
* investmentAccounts: [
|
|
116
|
+
* "123456789012"
|
|
117
|
+
* ],
|
|
118
|
+
* legalEntities: [
|
|
119
|
+
* {
|
|
120
|
+
* legalEntityName: "Example Legal Entity Name"
|
|
121
|
+
* }
|
|
122
|
+
* ]
|
|
123
|
+
* }
|
|
124
|
+
* }
|
|
125
|
+
* }
|
|
126
|
+
* *\/
|
|
127
|
+
* ```
|
|
128
|
+
*
|
|
129
|
+
* @public
|
|
130
|
+
*/
|
|
131
|
+
export declare class GetContractInformationCommand extends GetContractInformationCommand_base {
|
|
132
|
+
/** @internal type navigation helper, not in runtime. */
|
|
133
|
+
protected static __types: {
|
|
134
|
+
api: {
|
|
135
|
+
input: GetContractInformationRequest;
|
|
136
|
+
output: GetContractInformationResponse;
|
|
137
|
+
};
|
|
138
|
+
sdk: {
|
|
139
|
+
input: GetContractInformationCommandInput;
|
|
140
|
+
output: GetContractInformationCommandOutput;
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { ListContractsRequest, ListContractsResponse } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link ListContractsCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface ListContractsCommandInput extends ListContractsRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link ListContractsCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface ListContractsCommandOutput extends ListContractsResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const ListContractsCommand_base: {
|
|
22
|
+
new (input: ListContractsCommandInput): import("@smithy/core/client").CommandImpl<ListContractsCommandInput, ListContractsCommandOutput, import("..").BillingClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (...[input]: [] | [ListContractsCommandInput]): import("@smithy/core/client").CommandImpl<ListContractsCommandInput, ListContractsCommandOutput, import("..").BillingClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Lists the private pricing contracts that your Amazon Web Services account is an eligible payer account of. This operation is read-only and paginated.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { BillingClient, ListContractsCommand } from "@aws-sdk/client-billing"; // ES Modules import
|
|
32
|
+
* // const { BillingClient, ListContractsCommand } = require("@aws-sdk/client-billing"); // CommonJS import
|
|
33
|
+
* // import type { BillingClientConfig } from "@aws-sdk/client-billing";
|
|
34
|
+
* const config = {}; // type is BillingClientConfig
|
|
35
|
+
* const client = new BillingClient(config);
|
|
36
|
+
* const input = { // ListContractsRequest
|
|
37
|
+
* nextToken: "STRING_VALUE",
|
|
38
|
+
* maxResults: Number("int"),
|
|
39
|
+
* };
|
|
40
|
+
* const command = new ListContractsCommand(input);
|
|
41
|
+
* const response = await client.send(command);
|
|
42
|
+
* // { // ListContractsResponse
|
|
43
|
+
* // items: [ // ContractSummaries // required
|
|
44
|
+
* // { // ContractSummary
|
|
45
|
+
* // contractArn: "STRING_VALUE", // required
|
|
46
|
+
* // contractTerm: { // Interval
|
|
47
|
+
* // startDateInclusive: new Date("TIMESTAMP"), // required
|
|
48
|
+
* // endDateInclusive: new Date("TIMESTAMP"), // required
|
|
49
|
+
* // },
|
|
50
|
+
* // contractType: "Cross-Service" || "Service-Specific" || "Other",
|
|
51
|
+
* // associationStatus: "ASSOCIATED" || "NOT_ASSOCIATED", // required
|
|
52
|
+
* // lastUpdatedAt: new Date("TIMESTAMP"),
|
|
53
|
+
* // },
|
|
54
|
+
* // ],
|
|
55
|
+
* // nextToken: "STRING_VALUE",
|
|
56
|
+
* // };
|
|
57
|
+
*
|
|
58
|
+
* ```
|
|
59
|
+
*
|
|
60
|
+
* @param ListContractsCommandInput - {@link ListContractsCommandInput}
|
|
61
|
+
* @returns {@link ListContractsCommandOutput}
|
|
62
|
+
* @see {@link ListContractsCommandInput} for command's `input` shape.
|
|
63
|
+
* @see {@link ListContractsCommandOutput} for command's `response` shape.
|
|
64
|
+
* @see {@link BillingClientResolvedConfig | config} for BillingClient's `config` shape.
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
67
|
+
* <p>You don't have sufficient access to perform this action.</p>
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link InternalServerException} (server fault)
|
|
70
|
+
* <p>The request processing failed because of an unknown error, exception, or failure. </p>
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
73
|
+
* <p>The request was denied due to request throttling. </p>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link ValidationException} (client fault)
|
|
76
|
+
* <p>The input fails to satisfy the constraints specified by an Amazon Web Services service. </p>
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link BillingServiceException}
|
|
79
|
+
* <p>Base exception class for all service exceptions from Billing service.</p>
|
|
80
|
+
*
|
|
81
|
+
*
|
|
82
|
+
* @example Invoke ListContracts
|
|
83
|
+
* ```javascript
|
|
84
|
+
* //
|
|
85
|
+
* const input = {
|
|
86
|
+
* maxResults: 100
|
|
87
|
+
* };
|
|
88
|
+
* const command = new ListContractsCommand(input);
|
|
89
|
+
* const response = await client.send(command);
|
|
90
|
+
* /* response is
|
|
91
|
+
* {
|
|
92
|
+
* items: [
|
|
93
|
+
* {
|
|
94
|
+
* associationStatus: "ASSOCIATED",
|
|
95
|
+
* contractArn: "arn:aws:billing::123456789012:contract/1a2b3c4d-5e6f-7a8b-9c0d-111122223333",
|
|
96
|
+
* contractTerm: {
|
|
97
|
+
* endDateInclusive: 1222222222,
|
|
98
|
+
* startDateInclusive: 1111111111
|
|
99
|
+
* },
|
|
100
|
+
* contractType: "Cross-Service"
|
|
101
|
+
* }
|
|
102
|
+
* ]
|
|
103
|
+
* }
|
|
104
|
+
* *\/
|
|
105
|
+
* ```
|
|
106
|
+
*
|
|
107
|
+
* @public
|
|
108
|
+
*/
|
|
109
|
+
export declare class ListContractsCommand extends ListContractsCommand_base {
|
|
110
|
+
/** @internal type navigation helper, not in runtime. */
|
|
111
|
+
protected static __types: {
|
|
112
|
+
api: {
|
|
113
|
+
input: ListContractsRequest;
|
|
114
|
+
output: ListContractsResponse;
|
|
115
|
+
};
|
|
116
|
+
sdk: {
|
|
117
|
+
input: ListContractsCommandInput;
|
|
118
|
+
output: ListContractsCommandOutput;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
}
|