@aws-sdk/client-billing 3.896.0 → 3.898.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 +16 -0
- package/dist-cjs/index.js +214 -48
- package/dist-es/Billing.js +4 -0
- package/dist-es/commands/AssociateSourceViewsCommand.js +22 -0
- package/dist-es/commands/DisassociateSourceViewsCommand.js +22 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_0.js +47 -19
- package/dist-es/protocols/Aws_json1_0.js +98 -8
- package/dist-types/Billing.d.ts +14 -0
- package/dist-types/BillingClient.d.ts +4 -2
- package/dist-types/commands/AssociateSourceViewsCommand.d.ts +120 -0
- package/dist-types/commands/CreateBillingViewCommand.d.ts +10 -0
- package/dist-types/commands/DeleteBillingViewCommand.d.ts +1 -0
- package/dist-types/commands/DisassociateSourceViewsCommand.d.ts +117 -0
- package/dist-types/commands/GetBillingViewCommand.d.ts +14 -0
- package/dist-types/commands/ListBillingViewsCommand.d.ts +8 -0
- package/dist-types/commands/UpdateBillingViewCommand.d.ts +7 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +290 -114
- package/dist-types/protocols/Aws_json1_0.d.ts +18 -0
- package/dist-types/ts3.4/Billing.d.ts +34 -0
- package/dist-types/ts3.4/BillingClient.d.ts +12 -0
- package/dist-types/ts3.4/commands/AssociateSourceViewsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DisassociateSourceViewsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +103 -41
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +24 -0
- package/package.json +1 -1
|
@@ -12,6 +12,18 @@ export class AccessDeniedException extends __BaseException {
|
|
|
12
12
|
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
+
export class BillingViewHealthStatusException extends __BaseException {
|
|
16
|
+
name = "BillingViewHealthStatusException";
|
|
17
|
+
$fault = "client";
|
|
18
|
+
constructor(opts) {
|
|
19
|
+
super({
|
|
20
|
+
name: "BillingViewHealthStatusException",
|
|
21
|
+
$fault: "client",
|
|
22
|
+
...opts,
|
|
23
|
+
});
|
|
24
|
+
Object.setPrototypeOf(this, BillingViewHealthStatusException.prototype);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
15
27
|
export class ConflictException extends __BaseException {
|
|
16
28
|
name = "ConflictException";
|
|
17
29
|
$fault = "client";
|
|
@@ -28,9 +40,6 @@ export class ConflictException extends __BaseException {
|
|
|
28
40
|
this.resourceType = opts.resourceType;
|
|
29
41
|
}
|
|
30
42
|
}
|
|
31
|
-
export const Dimension = {
|
|
32
|
-
LINKED_ACCOUNT: "LINKED_ACCOUNT",
|
|
33
|
-
};
|
|
34
43
|
export class InternalServerException extends __BaseException {
|
|
35
44
|
name = "InternalServerException";
|
|
36
45
|
$fault = "server";
|
|
@@ -43,6 +52,22 @@ export class InternalServerException extends __BaseException {
|
|
|
43
52
|
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
44
53
|
}
|
|
45
54
|
}
|
|
55
|
+
export class ResourceNotFoundException extends __BaseException {
|
|
56
|
+
name = "ResourceNotFoundException";
|
|
57
|
+
$fault = "client";
|
|
58
|
+
resourceId;
|
|
59
|
+
resourceType;
|
|
60
|
+
constructor(opts) {
|
|
61
|
+
super({
|
|
62
|
+
name: "ResourceNotFoundException",
|
|
63
|
+
$fault: "client",
|
|
64
|
+
...opts,
|
|
65
|
+
});
|
|
66
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
67
|
+
this.resourceId = opts.resourceId;
|
|
68
|
+
this.resourceType = opts.resourceType;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
46
71
|
export class ServiceQuotaExceededException extends __BaseException {
|
|
47
72
|
name = "ServiceQuotaExceededException";
|
|
48
73
|
$fault = "client";
|
|
@@ -97,27 +122,30 @@ export class ValidationException extends __BaseException {
|
|
|
97
122
|
this.fieldList = opts.fieldList;
|
|
98
123
|
}
|
|
99
124
|
}
|
|
125
|
+
export const Dimension = {
|
|
126
|
+
LINKED_ACCOUNT: "LINKED_ACCOUNT",
|
|
127
|
+
};
|
|
100
128
|
export const BillingViewType = {
|
|
101
129
|
BILLING_GROUP: "BILLING_GROUP",
|
|
102
130
|
CUSTOM: "CUSTOM",
|
|
103
131
|
PRIMARY: "PRIMARY",
|
|
104
132
|
};
|
|
105
|
-
export
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
}
|
|
133
|
+
export const BillingViewStatus = {
|
|
134
|
+
CREATING: "CREATING",
|
|
135
|
+
HEALTHY: "HEALTHY",
|
|
136
|
+
UNHEALTHY: "UNHEALTHY",
|
|
137
|
+
UPDATING: "UPDATING",
|
|
138
|
+
};
|
|
139
|
+
export const BillingViewStatusReason = {
|
|
140
|
+
AGGREGATE_SOURCE: "AGGREGATE_SOURCE",
|
|
141
|
+
CYCLIC_DEPENDENCY: "CYCLIC_DEPENDENCY",
|
|
142
|
+
SOURCE_VIEW_ACCESS_DENIED: "SOURCE_VIEW_ACCESS_DENIED",
|
|
143
|
+
SOURCE_VIEW_DEPTH_EXCEEDED: "SOURCE_VIEW_DEPTH_EXCEEDED",
|
|
144
|
+
SOURCE_VIEW_NOT_FOUND: "SOURCE_VIEW_NOT_FOUND",
|
|
145
|
+
SOURCE_VIEW_UNHEALTHY: "SOURCE_VIEW_UNHEALTHY",
|
|
146
|
+
SOURCE_VIEW_UPDATING: "SOURCE_VIEW_UPDATING",
|
|
147
|
+
VIEW_OWNER_NOT_MANAGEMENT_ACCOUNT: "VIEW_OWNER_NOT_MANAGEMENT_ACCOUNT",
|
|
148
|
+
};
|
|
121
149
|
export const CreateBillingViewRequestFilterSensitiveLog = (obj) => ({
|
|
122
150
|
...obj,
|
|
123
151
|
...(obj.name && { name: SENSITIVE_STRING }),
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
|
+
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "@smithy/uuid";
|
|
5
5
|
import { BillingServiceException as __BaseException } from "../models/BillingServiceException";
|
|
6
|
-
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
6
|
+
import { AccessDeniedException, BillingViewHealthStatusException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
7
|
+
export const se_AssociateSourceViewsCommand = async (input, context) => {
|
|
8
|
+
const headers = sharedHeaders("AssociateSourceViews");
|
|
9
|
+
let body;
|
|
10
|
+
body = JSON.stringify(_json(input));
|
|
11
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
12
|
+
};
|
|
7
13
|
export const se_CreateBillingViewCommand = async (input, context) => {
|
|
8
14
|
const headers = sharedHeaders("CreateBillingView");
|
|
9
15
|
let body;
|
|
@@ -16,6 +22,12 @@ export const se_DeleteBillingViewCommand = async (input, context) => {
|
|
|
16
22
|
body = JSON.stringify(_json(input));
|
|
17
23
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
18
24
|
};
|
|
25
|
+
export const se_DisassociateSourceViewsCommand = async (input, context) => {
|
|
26
|
+
const headers = sharedHeaders("DisassociateSourceViews");
|
|
27
|
+
let body;
|
|
28
|
+
body = JSON.stringify(_json(input));
|
|
29
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
30
|
+
};
|
|
19
31
|
export const se_GetBillingViewCommand = async (input, context) => {
|
|
20
32
|
const headers = sharedHeaders("GetBillingView");
|
|
21
33
|
let body;
|
|
@@ -61,9 +73,22 @@ export const se_UntagResourceCommand = async (input, context) => {
|
|
|
61
73
|
export const se_UpdateBillingViewCommand = async (input, context) => {
|
|
62
74
|
const headers = sharedHeaders("UpdateBillingView");
|
|
63
75
|
let body;
|
|
64
|
-
body = JSON.stringify(
|
|
76
|
+
body = JSON.stringify(se_UpdateBillingViewRequest(input, context));
|
|
65
77
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
66
78
|
};
|
|
79
|
+
export const de_AssociateSourceViewsCommand = async (output, context) => {
|
|
80
|
+
if (output.statusCode >= 300) {
|
|
81
|
+
return de_CommandError(output, context);
|
|
82
|
+
}
|
|
83
|
+
const data = await parseBody(output.body, context);
|
|
84
|
+
let contents = {};
|
|
85
|
+
contents = _json(data);
|
|
86
|
+
const response = {
|
|
87
|
+
$metadata: deserializeMetadata(output),
|
|
88
|
+
...contents,
|
|
89
|
+
};
|
|
90
|
+
return response;
|
|
91
|
+
};
|
|
67
92
|
export const de_CreateBillingViewCommand = async (output, context) => {
|
|
68
93
|
if (output.statusCode >= 300) {
|
|
69
94
|
return de_CommandError(output, context);
|
|
@@ -90,6 +115,19 @@ export const de_DeleteBillingViewCommand = async (output, context) => {
|
|
|
90
115
|
};
|
|
91
116
|
return response;
|
|
92
117
|
};
|
|
118
|
+
export const de_DisassociateSourceViewsCommand = async (output, context) => {
|
|
119
|
+
if (output.statusCode >= 300) {
|
|
120
|
+
return de_CommandError(output, context);
|
|
121
|
+
}
|
|
122
|
+
const data = await parseBody(output.body, context);
|
|
123
|
+
let contents = {};
|
|
124
|
+
contents = _json(data);
|
|
125
|
+
const response = {
|
|
126
|
+
$metadata: deserializeMetadata(output),
|
|
127
|
+
...contents,
|
|
128
|
+
};
|
|
129
|
+
return response;
|
|
130
|
+
};
|
|
93
131
|
export const de_GetBillingViewCommand = async (output, context) => {
|
|
94
132
|
if (output.statusCode >= 300) {
|
|
95
133
|
return de_CommandError(output, context);
|
|
@@ -204,12 +242,18 @@ const de_CommandError = async (output, context) => {
|
|
|
204
242
|
case "AccessDeniedException":
|
|
205
243
|
case "com.amazonaws.billing#AccessDeniedException":
|
|
206
244
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
245
|
+
case "BillingViewHealthStatusException":
|
|
246
|
+
case "com.amazonaws.billing#BillingViewHealthStatusException":
|
|
247
|
+
throw await de_BillingViewHealthStatusExceptionRes(parsedOutput, context);
|
|
207
248
|
case "ConflictException":
|
|
208
249
|
case "com.amazonaws.billing#ConflictException":
|
|
209
250
|
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
210
251
|
case "InternalServerException":
|
|
211
252
|
case "com.amazonaws.billing#InternalServerException":
|
|
212
253
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
254
|
+
case "ResourceNotFoundException":
|
|
255
|
+
case "com.amazonaws.billing#ResourceNotFoundException":
|
|
256
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
213
257
|
case "ServiceQuotaExceededException":
|
|
214
258
|
case "com.amazonaws.billing#ServiceQuotaExceededException":
|
|
215
259
|
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
@@ -219,9 +263,6 @@ const de_CommandError = async (output, context) => {
|
|
|
219
263
|
case "ValidationException":
|
|
220
264
|
case "com.amazonaws.billing#ValidationException":
|
|
221
265
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
222
|
-
case "ResourceNotFoundException":
|
|
223
|
-
case "com.amazonaws.billing#ResourceNotFoundException":
|
|
224
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
225
266
|
default:
|
|
226
267
|
const parsedBody = parsedOutput.body;
|
|
227
268
|
return throwDefaultError({
|
|
@@ -240,6 +281,15 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
240
281
|
});
|
|
241
282
|
return __decorateServiceException(exception, body);
|
|
242
283
|
};
|
|
284
|
+
const de_BillingViewHealthStatusExceptionRes = async (parsedOutput, context) => {
|
|
285
|
+
const body = parsedOutput.body;
|
|
286
|
+
const deserialized = _json(body);
|
|
287
|
+
const exception = new BillingViewHealthStatusException({
|
|
288
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
289
|
+
...deserialized,
|
|
290
|
+
});
|
|
291
|
+
return __decorateServiceException(exception, body);
|
|
292
|
+
};
|
|
243
293
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
244
294
|
const body = parsedOutput.body;
|
|
245
295
|
const deserialized = _json(body);
|
|
@@ -303,13 +353,20 @@ const se_ActiveTimeRange = (input, context) => {
|
|
|
303
353
|
const se_CreateBillingViewRequest = (input, context) => {
|
|
304
354
|
return take(input, {
|
|
305
355
|
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
306
|
-
dataFilterExpression:
|
|
356
|
+
dataFilterExpression: (_) => se_Expression(_, context),
|
|
307
357
|
description: [],
|
|
308
358
|
name: [],
|
|
309
359
|
resourceTags: _json,
|
|
310
360
|
sourceViews: _json,
|
|
311
361
|
});
|
|
312
362
|
};
|
|
363
|
+
const se_Expression = (input, context) => {
|
|
364
|
+
return take(input, {
|
|
365
|
+
dimensions: _json,
|
|
366
|
+
tags: _json,
|
|
367
|
+
timeRange: (_) => se_TimeRange(_, context),
|
|
368
|
+
});
|
|
369
|
+
};
|
|
313
370
|
const se_ListBillingViewsRequest = (input, context) => {
|
|
314
371
|
return take(input, {
|
|
315
372
|
activeTimeRange: (_) => se_ActiveTimeRange(_, context),
|
|
@@ -318,6 +375,21 @@ const se_ListBillingViewsRequest = (input, context) => {
|
|
|
318
375
|
maxResults: [],
|
|
319
376
|
nextToken: [],
|
|
320
377
|
ownerAccountId: [],
|
|
378
|
+
sourceAccountId: [],
|
|
379
|
+
});
|
|
380
|
+
};
|
|
381
|
+
const se_TimeRange = (input, context) => {
|
|
382
|
+
return take(input, {
|
|
383
|
+
beginDateInclusive: (_) => _.getTime() / 1_000,
|
|
384
|
+
endDateInclusive: (_) => _.getTime() / 1_000,
|
|
385
|
+
});
|
|
386
|
+
};
|
|
387
|
+
const se_UpdateBillingViewRequest = (input, context) => {
|
|
388
|
+
return take(input, {
|
|
389
|
+
arn: [],
|
|
390
|
+
dataFilterExpression: (_) => se_Expression(_, context),
|
|
391
|
+
description: [],
|
|
392
|
+
name: [],
|
|
321
393
|
});
|
|
322
394
|
};
|
|
323
395
|
const de_BillingViewElement = (output, context) => {
|
|
@@ -325,11 +397,16 @@ const de_BillingViewElement = (output, context) => {
|
|
|
325
397
|
arn: __expectString,
|
|
326
398
|
billingViewType: __expectString,
|
|
327
399
|
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
328
|
-
dataFilterExpression:
|
|
400
|
+
dataFilterExpression: (_) => de_Expression(_, context),
|
|
401
|
+
derivedViewCount: __expectInt32,
|
|
329
402
|
description: __expectString,
|
|
403
|
+
healthStatus: _json,
|
|
330
404
|
name: __expectString,
|
|
331
405
|
ownerAccountId: __expectString,
|
|
406
|
+
sourceAccountId: __expectString,
|
|
407
|
+
sourceViewCount: __expectInt32,
|
|
332
408
|
updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
409
|
+
viewDefinitionLastUpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
333
410
|
});
|
|
334
411
|
};
|
|
335
412
|
const de_CreateBillingViewResponse = (output, context) => {
|
|
@@ -338,11 +415,24 @@ const de_CreateBillingViewResponse = (output, context) => {
|
|
|
338
415
|
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
339
416
|
});
|
|
340
417
|
};
|
|
418
|
+
const de_Expression = (output, context) => {
|
|
419
|
+
return take(output, {
|
|
420
|
+
dimensions: _json,
|
|
421
|
+
tags: _json,
|
|
422
|
+
timeRange: (_) => de_TimeRange(_, context),
|
|
423
|
+
});
|
|
424
|
+
};
|
|
341
425
|
const de_GetBillingViewResponse = (output, context) => {
|
|
342
426
|
return take(output, {
|
|
343
427
|
billingView: (_) => de_BillingViewElement(_, context),
|
|
344
428
|
});
|
|
345
429
|
};
|
|
430
|
+
const de_TimeRange = (output, context) => {
|
|
431
|
+
return take(output, {
|
|
432
|
+
beginDateInclusive: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
433
|
+
endDateInclusive: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
434
|
+
});
|
|
435
|
+
};
|
|
346
436
|
const de_UpdateBillingViewResponse = (output, context) => {
|
|
347
437
|
return take(output, {
|
|
348
438
|
arn: __expectString,
|
package/dist-types/Billing.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
2
2
|
import { BillingClient } from "./BillingClient";
|
|
3
|
+
import { AssociateSourceViewsCommandInput, AssociateSourceViewsCommandOutput } from "./commands/AssociateSourceViewsCommand";
|
|
3
4
|
import { CreateBillingViewCommandInput, CreateBillingViewCommandOutput } from "./commands/CreateBillingViewCommand";
|
|
4
5
|
import { DeleteBillingViewCommandInput, DeleteBillingViewCommandOutput } from "./commands/DeleteBillingViewCommand";
|
|
6
|
+
import { DisassociateSourceViewsCommandInput, DisassociateSourceViewsCommandOutput } from "./commands/DisassociateSourceViewsCommand";
|
|
5
7
|
import { GetBillingViewCommandInput, GetBillingViewCommandOutput } from "./commands/GetBillingViewCommand";
|
|
6
8
|
import { GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput } from "./commands/GetResourcePolicyCommand";
|
|
7
9
|
import { ListBillingViewsCommandInput, ListBillingViewsCommandOutput } from "./commands/ListBillingViewsCommand";
|
|
@@ -11,6 +13,12 @@ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/Ta
|
|
|
11
13
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
12
14
|
import { UpdateBillingViewCommandInput, UpdateBillingViewCommandOutput } from "./commands/UpdateBillingViewCommand";
|
|
13
15
|
export interface Billing {
|
|
16
|
+
/**
|
|
17
|
+
* @see {@link AssociateSourceViewsCommand}
|
|
18
|
+
*/
|
|
19
|
+
associateSourceViews(args: AssociateSourceViewsCommandInput, options?: __HttpHandlerOptions): Promise<AssociateSourceViewsCommandOutput>;
|
|
20
|
+
associateSourceViews(args: AssociateSourceViewsCommandInput, cb: (err: any, data?: AssociateSourceViewsCommandOutput) => void): void;
|
|
21
|
+
associateSourceViews(args: AssociateSourceViewsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AssociateSourceViewsCommandOutput) => void): void;
|
|
14
22
|
/**
|
|
15
23
|
* @see {@link CreateBillingViewCommand}
|
|
16
24
|
*/
|
|
@@ -23,6 +31,12 @@ export interface Billing {
|
|
|
23
31
|
deleteBillingView(args: DeleteBillingViewCommandInput, options?: __HttpHandlerOptions): Promise<DeleteBillingViewCommandOutput>;
|
|
24
32
|
deleteBillingView(args: DeleteBillingViewCommandInput, cb: (err: any, data?: DeleteBillingViewCommandOutput) => void): void;
|
|
25
33
|
deleteBillingView(args: DeleteBillingViewCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteBillingViewCommandOutput) => void): void;
|
|
34
|
+
/**
|
|
35
|
+
* @see {@link DisassociateSourceViewsCommand}
|
|
36
|
+
*/
|
|
37
|
+
disassociateSourceViews(args: DisassociateSourceViewsCommandInput, options?: __HttpHandlerOptions): Promise<DisassociateSourceViewsCommandOutput>;
|
|
38
|
+
disassociateSourceViews(args: DisassociateSourceViewsCommandInput, cb: (err: any, data?: DisassociateSourceViewsCommandOutput) => void): void;
|
|
39
|
+
disassociateSourceViews(args: DisassociateSourceViewsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DisassociateSourceViewsCommandOutput) => void): void;
|
|
26
40
|
/**
|
|
27
41
|
* @see {@link GetBillingViewCommand}
|
|
28
42
|
*/
|
|
@@ -7,8 +7,10 @@ import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol
|
|
|
7
7
|
import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
|
|
8
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
9
|
import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
|
|
10
|
+
import { AssociateSourceViewsCommandInput, AssociateSourceViewsCommandOutput } from "./commands/AssociateSourceViewsCommand";
|
|
10
11
|
import { CreateBillingViewCommandInput, CreateBillingViewCommandOutput } from "./commands/CreateBillingViewCommand";
|
|
11
12
|
import { DeleteBillingViewCommandInput, DeleteBillingViewCommandOutput } from "./commands/DeleteBillingViewCommand";
|
|
13
|
+
import { DisassociateSourceViewsCommandInput, DisassociateSourceViewsCommandOutput } from "./commands/DisassociateSourceViewsCommand";
|
|
12
14
|
import { GetBillingViewCommandInput, GetBillingViewCommandOutput } from "./commands/GetBillingViewCommand";
|
|
13
15
|
import { GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput } from "./commands/GetResourcePolicyCommand";
|
|
14
16
|
import { ListBillingViewsCommandInput, ListBillingViewsCommandOutput } from "./commands/ListBillingViewsCommand";
|
|
@@ -23,11 +25,11 @@ export { __Client };
|
|
|
23
25
|
/**
|
|
24
26
|
* @public
|
|
25
27
|
*/
|
|
26
|
-
export type ServiceInputTypes = CreateBillingViewCommandInput | DeleteBillingViewCommandInput | GetBillingViewCommandInput | GetResourcePolicyCommandInput | ListBillingViewsCommandInput | ListSourceViewsForBillingViewCommandInput | ListTagsForResourceCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateBillingViewCommandInput;
|
|
28
|
+
export type ServiceInputTypes = AssociateSourceViewsCommandInput | CreateBillingViewCommandInput | DeleteBillingViewCommandInput | DisassociateSourceViewsCommandInput | GetBillingViewCommandInput | GetResourcePolicyCommandInput | ListBillingViewsCommandInput | ListSourceViewsForBillingViewCommandInput | ListTagsForResourceCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateBillingViewCommandInput;
|
|
27
29
|
/**
|
|
28
30
|
* @public
|
|
29
31
|
*/
|
|
30
|
-
export type ServiceOutputTypes = CreateBillingViewCommandOutput | DeleteBillingViewCommandOutput | GetBillingViewCommandOutput | GetResourcePolicyCommandOutput | ListBillingViewsCommandOutput | ListSourceViewsForBillingViewCommandOutput | ListTagsForResourceCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateBillingViewCommandOutput;
|
|
32
|
+
export type ServiceOutputTypes = AssociateSourceViewsCommandOutput | CreateBillingViewCommandOutput | DeleteBillingViewCommandOutput | DisassociateSourceViewsCommandOutput | GetBillingViewCommandOutput | GetResourcePolicyCommandOutput | ListBillingViewsCommandOutput | ListSourceViewsForBillingViewCommandOutput | ListTagsForResourceCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateBillingViewCommandOutput;
|
|
31
33
|
/**
|
|
32
34
|
* @public
|
|
33
35
|
*/
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { BillingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BillingClient";
|
|
4
|
+
import { AssociateSourceViewsRequest, AssociateSourceViewsResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link AssociateSourceViewsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface AssociateSourceViewsCommandInput extends AssociateSourceViewsRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link AssociateSourceViewsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface AssociateSourceViewsCommandOutput extends AssociateSourceViewsResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const AssociateSourceViewsCommand_base: {
|
|
25
|
+
new (input: AssociateSourceViewsCommandInput): import("@smithy/smithy-client").CommandImpl<AssociateSourceViewsCommandInput, AssociateSourceViewsCommandOutput, BillingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: AssociateSourceViewsCommandInput): import("@smithy/smithy-client").CommandImpl<AssociateSourceViewsCommandInput, AssociateSourceViewsCommandOutput, BillingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p> Associates one or more source billing views with an existing billing view. This allows creating aggregate billing views that combine data from multiple sources. </p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { BillingClient, AssociateSourceViewsCommand } from "@aws-sdk/client-billing"; // ES Modules import
|
|
35
|
+
* // const { BillingClient, AssociateSourceViewsCommand } = require("@aws-sdk/client-billing"); // CommonJS import
|
|
36
|
+
* // import type { BillingClientConfig } from "@aws-sdk/client-billing";
|
|
37
|
+
* const config = {}; // type is BillingClientConfig
|
|
38
|
+
* const client = new BillingClient(config);
|
|
39
|
+
* const input = { // AssociateSourceViewsRequest
|
|
40
|
+
* arn: "STRING_VALUE", // required
|
|
41
|
+
* sourceViews: [ // BillingViewSourceViewsList // required
|
|
42
|
+
* "STRING_VALUE",
|
|
43
|
+
* ],
|
|
44
|
+
* };
|
|
45
|
+
* const command = new AssociateSourceViewsCommand(input);
|
|
46
|
+
* const response = await client.send(command);
|
|
47
|
+
* // { // AssociateSourceViewsResponse
|
|
48
|
+
* // arn: "STRING_VALUE", // required
|
|
49
|
+
* // };
|
|
50
|
+
*
|
|
51
|
+
* ```
|
|
52
|
+
*
|
|
53
|
+
* @param AssociateSourceViewsCommandInput - {@link AssociateSourceViewsCommandInput}
|
|
54
|
+
* @returns {@link AssociateSourceViewsCommandOutput}
|
|
55
|
+
* @see {@link AssociateSourceViewsCommandInput} for command's `input` shape.
|
|
56
|
+
* @see {@link AssociateSourceViewsCommandOutput} for command's `response` shape.
|
|
57
|
+
* @see {@link BillingClientResolvedConfig | config} for BillingClient's `config` shape.
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
60
|
+
* <p>You don't have sufficient access to perform this action.</p>
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link BillingViewHealthStatusException} (client fault)
|
|
63
|
+
* <p> Exception thrown when a billing view's health status prevents an operation from being performed. This may occur if the billing view is in a state other than <code>HEALTHY</code>.</p>
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link ConflictException} (client fault)
|
|
66
|
+
* <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>
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link InternalServerException} (server fault)
|
|
69
|
+
* <p>The request processing failed because of an unknown error, exception, or failure. </p>
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
72
|
+
* <p> The specified ARN in the request doesn't exist. </p>
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
75
|
+
* <p> You've reached the limit of resources you can create, or exceeded the size of an individual resource. </p>
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
78
|
+
* <p>The request was denied due to request throttling. </p>
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link ValidationException} (client fault)
|
|
81
|
+
* <p>The input fails to satisfy the constraints specified by an Amazon Web Services service. </p>
|
|
82
|
+
*
|
|
83
|
+
* @throws {@link BillingServiceException}
|
|
84
|
+
* <p>Base exception class for all service exceptions from Billing service.</p>
|
|
85
|
+
*
|
|
86
|
+
*
|
|
87
|
+
* @example Invoke AssociateSourceViews
|
|
88
|
+
* ```javascript
|
|
89
|
+
* //
|
|
90
|
+
* const input = {
|
|
91
|
+
* arn: "arn:aws:billing::123456789012:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899",
|
|
92
|
+
* sourceViews: [
|
|
93
|
+
* "arn:aws:billing::123456789012:billingview/primary",
|
|
94
|
+
* "arn:aws:billing::123456789012:billingview/custom-d3f9c7e4-8b2f-4a6e-9d3b-2f7c8a1e5f6d"
|
|
95
|
+
* ]
|
|
96
|
+
* };
|
|
97
|
+
* const command = new AssociateSourceViewsCommand(input);
|
|
98
|
+
* const response = await client.send(command);
|
|
99
|
+
* /* response is
|
|
100
|
+
* {
|
|
101
|
+
* arn: "arn:aws:billing::123456789012:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899"
|
|
102
|
+
* }
|
|
103
|
+
* *\/
|
|
104
|
+
* ```
|
|
105
|
+
*
|
|
106
|
+
* @public
|
|
107
|
+
*/
|
|
108
|
+
export declare class AssociateSourceViewsCommand extends AssociateSourceViewsCommand_base {
|
|
109
|
+
/** @internal type navigation helper, not in runtime. */
|
|
110
|
+
protected static __types: {
|
|
111
|
+
api: {
|
|
112
|
+
input: AssociateSourceViewsRequest;
|
|
113
|
+
output: AssociateSourceViewsResponse;
|
|
114
|
+
};
|
|
115
|
+
sdk: {
|
|
116
|
+
input: AssociateSourceViewsCommandInput;
|
|
117
|
+
output: AssociateSourceViewsCommandOutput;
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
}
|
|
@@ -55,6 +55,10 @@ declare const CreateBillingViewCommand_base: {
|
|
|
55
55
|
* "STRING_VALUE",
|
|
56
56
|
* ],
|
|
57
57
|
* },
|
|
58
|
+
* timeRange: { // TimeRange
|
|
59
|
+
* beginDateInclusive: new Date("TIMESTAMP"),
|
|
60
|
+
* endDateInclusive: new Date("TIMESTAMP"),
|
|
61
|
+
* },
|
|
58
62
|
* },
|
|
59
63
|
* clientToken: "STRING_VALUE",
|
|
60
64
|
* resourceTags: [ // ResourceTagList
|
|
@@ -82,12 +86,18 @@ declare const CreateBillingViewCommand_base: {
|
|
|
82
86
|
* @throws {@link AccessDeniedException} (client fault)
|
|
83
87
|
* <p>You don't have sufficient access to perform this action.</p>
|
|
84
88
|
*
|
|
89
|
+
* @throws {@link BillingViewHealthStatusException} (client fault)
|
|
90
|
+
* <p> Exception thrown when a billing view's health status prevents an operation from being performed. This may occur if the billing view is in a state other than <code>HEALTHY</code>.</p>
|
|
91
|
+
*
|
|
85
92
|
* @throws {@link ConflictException} (client fault)
|
|
86
93
|
* <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>
|
|
87
94
|
*
|
|
88
95
|
* @throws {@link InternalServerException} (server fault)
|
|
89
96
|
* <p>The request processing failed because of an unknown error, exception, or failure. </p>
|
|
90
97
|
*
|
|
98
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
99
|
+
* <p> The specified ARN in the request doesn't exist. </p>
|
|
100
|
+
*
|
|
91
101
|
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
92
102
|
* <p> You've reached the limit of resources you can create, or exceeded the size of an individual resource. </p>
|
|
93
103
|
*
|
|
@@ -38,6 +38,7 @@ declare const DeleteBillingViewCommand_base: {
|
|
|
38
38
|
* const client = new BillingClient(config);
|
|
39
39
|
* const input = { // DeleteBillingViewRequest
|
|
40
40
|
* arn: "STRING_VALUE", // required
|
|
41
|
+
* force: true || false,
|
|
41
42
|
* };
|
|
42
43
|
* const command = new DeleteBillingViewCommand(input);
|
|
43
44
|
* const response = await client.send(command);
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { BillingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BillingClient";
|
|
4
|
+
import { DisassociateSourceViewsRequest, DisassociateSourceViewsResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link DisassociateSourceViewsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface DisassociateSourceViewsCommandInput extends DisassociateSourceViewsRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link DisassociateSourceViewsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface DisassociateSourceViewsCommandOutput extends DisassociateSourceViewsResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const DisassociateSourceViewsCommand_base: {
|
|
25
|
+
new (input: DisassociateSourceViewsCommandInput): import("@smithy/smithy-client").CommandImpl<DisassociateSourceViewsCommandInput, DisassociateSourceViewsCommandOutput, BillingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: DisassociateSourceViewsCommandInput): import("@smithy/smithy-client").CommandImpl<DisassociateSourceViewsCommandInput, DisassociateSourceViewsCommandOutput, BillingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p> Removes the association between one or more source billing views and an existing billing view. This allows modifying the composition of aggregate billing views. </p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { BillingClient, DisassociateSourceViewsCommand } from "@aws-sdk/client-billing"; // ES Modules import
|
|
35
|
+
* // const { BillingClient, DisassociateSourceViewsCommand } = require("@aws-sdk/client-billing"); // CommonJS import
|
|
36
|
+
* // import type { BillingClientConfig } from "@aws-sdk/client-billing";
|
|
37
|
+
* const config = {}; // type is BillingClientConfig
|
|
38
|
+
* const client = new BillingClient(config);
|
|
39
|
+
* const input = { // DisassociateSourceViewsRequest
|
|
40
|
+
* arn: "STRING_VALUE", // required
|
|
41
|
+
* sourceViews: [ // BillingViewSourceViewsList // required
|
|
42
|
+
* "STRING_VALUE",
|
|
43
|
+
* ],
|
|
44
|
+
* };
|
|
45
|
+
* const command = new DisassociateSourceViewsCommand(input);
|
|
46
|
+
* const response = await client.send(command);
|
|
47
|
+
* // { // DisassociateSourceViewsResponse
|
|
48
|
+
* // arn: "STRING_VALUE", // required
|
|
49
|
+
* // };
|
|
50
|
+
*
|
|
51
|
+
* ```
|
|
52
|
+
*
|
|
53
|
+
* @param DisassociateSourceViewsCommandInput - {@link DisassociateSourceViewsCommandInput}
|
|
54
|
+
* @returns {@link DisassociateSourceViewsCommandOutput}
|
|
55
|
+
* @see {@link DisassociateSourceViewsCommandInput} for command's `input` shape.
|
|
56
|
+
* @see {@link DisassociateSourceViewsCommandOutput} for command's `response` shape.
|
|
57
|
+
* @see {@link BillingClientResolvedConfig | config} for BillingClient's `config` shape.
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
60
|
+
* <p>You don't have sufficient access to perform this action.</p>
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link BillingViewHealthStatusException} (client fault)
|
|
63
|
+
* <p> Exception thrown when a billing view's health status prevents an operation from being performed. This may occur if the billing view is in a state other than <code>HEALTHY</code>.</p>
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link ConflictException} (client fault)
|
|
66
|
+
* <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>
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link InternalServerException} (server fault)
|
|
69
|
+
* <p>The request processing failed because of an unknown error, exception, or failure. </p>
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
72
|
+
* <p> The specified ARN in the request doesn't exist. </p>
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
75
|
+
* <p>The request was denied due to request throttling. </p>
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link ValidationException} (client fault)
|
|
78
|
+
* <p>The input fails to satisfy the constraints specified by an Amazon Web Services service. </p>
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link BillingServiceException}
|
|
81
|
+
* <p>Base exception class for all service exceptions from Billing service.</p>
|
|
82
|
+
*
|
|
83
|
+
*
|
|
84
|
+
* @example Invoke DisassociateSourceViews
|
|
85
|
+
* ```javascript
|
|
86
|
+
* //
|
|
87
|
+
* const input = {
|
|
88
|
+
* arn: "arn:aws:billing::123456789012:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899",
|
|
89
|
+
* sourceViews: [
|
|
90
|
+
* "arn:aws:billing::123456789012:billingview/primary",
|
|
91
|
+
* "arn:aws:billing::123456789012:billingview/custom-d3f9c7e4-8b2f-4a6e-9d3b-2f7c8a1e5f6d"
|
|
92
|
+
* ]
|
|
93
|
+
* };
|
|
94
|
+
* const command = new DisassociateSourceViewsCommand(input);
|
|
95
|
+
* const response = await client.send(command);
|
|
96
|
+
* /* response is
|
|
97
|
+
* {
|
|
98
|
+
* arn: "arn:aws:billing::123456789012:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899"
|
|
99
|
+
* }
|
|
100
|
+
* *\/
|
|
101
|
+
* ```
|
|
102
|
+
*
|
|
103
|
+
* @public
|
|
104
|
+
*/
|
|
105
|
+
export declare class DisassociateSourceViewsCommand extends DisassociateSourceViewsCommand_base {
|
|
106
|
+
/** @internal type navigation helper, not in runtime. */
|
|
107
|
+
protected static __types: {
|
|
108
|
+
api: {
|
|
109
|
+
input: DisassociateSourceViewsRequest;
|
|
110
|
+
output: DisassociateSourceViewsResponse;
|
|
111
|
+
};
|
|
112
|
+
sdk: {
|
|
113
|
+
input: DisassociateSourceViewsCommandInput;
|
|
114
|
+
output: DisassociateSourceViewsCommandOutput;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
}
|