@aws-sdk/client-billing 3.1155.0 → 3.1157.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 (64) hide show
  1. package/README.md +63 -0
  2. package/dist-cjs/index.js +531 -43
  3. package/dist-es/Billing.js +26 -0
  4. package/dist-es/commands/AssociateContractCommand.js +4 -0
  5. package/dist-es/commands/CancelContractualInvestmentAttestationCommand.js +4 -0
  6. package/dist-es/commands/CreateContractualInvestmentAttestationCommand.js +4 -0
  7. package/dist-es/commands/DisassociateContractCommand.js +4 -0
  8. package/dist-es/commands/GetContractInformationCommand.js +4 -0
  9. package/dist-es/commands/ListContractsCommand.js +4 -0
  10. package/dist-es/commands/ListContractualInvestmentAttestationsCommand.js +4 -0
  11. package/dist-es/commands/ListContractualInvestmentSummariesCommand.js +4 -0
  12. package/dist-es/commands/ListContractualInvestmentsCommand.js +4 -0
  13. package/dist-es/commands/index.js +9 -0
  14. package/dist-es/models/enums.js +28 -0
  15. package/dist-es/models/errors.js +34 -34
  16. package/dist-es/pagination/ListContractsPaginator.js +4 -0
  17. package/dist-es/pagination/ListContractualInvestmentAttestationsPaginator.js +4 -0
  18. package/dist-es/pagination/ListContractualInvestmentSummariesPaginator.js +4 -0
  19. package/dist-es/pagination/ListContractualInvestmentsPaginator.js +4 -0
  20. package/dist-es/pagination/index.js +4 -0
  21. package/dist-es/schemas/schemas_0.js +359 -8
  22. package/dist-types/Billing.d.ts +92 -0
  23. package/dist-types/BillingClient.d.ts +11 -2
  24. package/dist-types/commands/AssociateContractCommand.d.ts +102 -0
  25. package/dist-types/commands/CancelContractualInvestmentAttestationCommand.d.ts +104 -0
  26. package/dist-types/commands/CreateContractualInvestmentAttestationCommand.d.ts +262 -0
  27. package/dist-types/commands/DisassociateContractCommand.d.ts +97 -0
  28. package/dist-types/commands/GetContractInformationCommand.d.ts +143 -0
  29. package/dist-types/commands/ListContractsCommand.d.ts +121 -0
  30. package/dist-types/commands/ListContractualInvestmentAttestationsCommand.d.ts +164 -0
  31. package/dist-types/commands/ListContractualInvestmentSummariesCommand.d.ts +125 -0
  32. package/dist-types/commands/ListContractualInvestmentsCommand.d.ts +168 -0
  33. package/dist-types/commands/index.d.ts +9 -0
  34. package/dist-types/models/enums.d.ts +76 -0
  35. package/dist-types/models/errors.d.ts +41 -41
  36. package/dist-types/models/models_0.d.ts +775 -7
  37. package/dist-types/pagination/ListContractsPaginator.d.ts +7 -0
  38. package/dist-types/pagination/ListContractualInvestmentAttestationsPaginator.d.ts +7 -0
  39. package/dist-types/pagination/ListContractualInvestmentSummariesPaginator.d.ts +7 -0
  40. package/dist-types/pagination/ListContractualInvestmentsPaginator.d.ts +7 -0
  41. package/dist-types/pagination/index.d.ts +4 -0
  42. package/dist-types/schemas/schemas_0.d.ts +46 -1
  43. package/dist-types/ts3.4/Billing.d.ts +182 -0
  44. package/dist-types/ts3.4/BillingClient.d.ts +54 -0
  45. package/dist-types/ts3.4/commands/AssociateContractCommand.d.ts +39 -0
  46. package/dist-types/ts3.4/commands/CancelContractualInvestmentAttestationCommand.d.ts +42 -0
  47. package/dist-types/ts3.4/commands/CreateContractualInvestmentAttestationCommand.d.ts +42 -0
  48. package/dist-types/ts3.4/commands/DisassociateContractCommand.d.ts +39 -0
  49. package/dist-types/ts3.4/commands/GetContractInformationCommand.d.ts +39 -0
  50. package/dist-types/ts3.4/commands/ListContractsCommand.d.ts +38 -0
  51. package/dist-types/ts3.4/commands/ListContractualInvestmentAttestationsCommand.d.ts +42 -0
  52. package/dist-types/ts3.4/commands/ListContractualInvestmentSummariesCommand.d.ts +42 -0
  53. package/dist-types/ts3.4/commands/ListContractualInvestmentsCommand.d.ts +42 -0
  54. package/dist-types/ts3.4/commands/index.d.ts +9 -0
  55. package/dist-types/ts3.4/models/enums.d.ts +35 -0
  56. package/dist-types/ts3.4/models/errors.d.ts +16 -16
  57. package/dist-types/ts3.4/models/models_0.d.ts +234 -3
  58. package/dist-types/ts3.4/pagination/ListContractsPaginator.d.ts +11 -0
  59. package/dist-types/ts3.4/pagination/ListContractualInvestmentAttestationsPaginator.d.ts +11 -0
  60. package/dist-types/ts3.4/pagination/ListContractualInvestmentSummariesPaginator.d.ts +11 -0
  61. package/dist-types/ts3.4/pagination/ListContractualInvestmentsPaginator.d.ts +11 -0
  62. package/dist-types/ts3.4/pagination/index.d.ts +4 -0
  63. package/dist-types/ts3.4/schemas/schemas_0.d.ts +51 -1
  64. package/package.json +5 -5
@@ -1,11 +1,16 @@
1
1
  import { createAggregatedClient } from "@smithy/core/client";
2
2
  import { BillingClient } from "./BillingClient";
3
+ import { AssociateContractCommand, } from "./commands/AssociateContractCommand";
3
4
  import { AssociateSourceViewsCommand, } from "./commands/AssociateSourceViewsCommand";
5
+ import { CancelContractualInvestmentAttestationCommand, } from "./commands/CancelContractualInvestmentAttestationCommand";
4
6
  import { CreateBillingViewCommand, } from "./commands/CreateBillingViewCommand";
7
+ import { CreateContractualInvestmentAttestationCommand, } from "./commands/CreateContractualInvestmentAttestationCommand";
5
8
  import { DeleteBillingViewCommand, } from "./commands/DeleteBillingViewCommand";
9
+ import { DisassociateContractCommand, } from "./commands/DisassociateContractCommand";
6
10
  import { DisassociateSourceViewsCommand, } from "./commands/DisassociateSourceViewsCommand";
7
11
  import { GetBillingPreferencesCommand, } from "./commands/GetBillingPreferencesCommand";
8
12
  import { GetBillingViewCommand, } from "./commands/GetBillingViewCommand";
13
+ import { GetContractInformationCommand, } from "./commands/GetContractInformationCommand";
9
14
  import { GetCreditAllocationHistoryCommand, } from "./commands/GetCreditAllocationHistoryCommand";
10
15
  import { GetCreditsCommand, } from "./commands/GetCreditsCommand";
11
16
  import { GetEnterpriseSupportChargeSummaryCommand, } from "./commands/GetEnterpriseSupportChargeSummaryCommand";
@@ -15,6 +20,10 @@ import { ListBillingViewsCommand, } from "./commands/ListBillingViewsCommand";
15
20
  import { ListBillingViewSegmentsCommand, } from "./commands/ListBillingViewSegmentsCommand";
16
21
  import { ListBusinessSupportAccountChargesCommand, } from "./commands/ListBusinessSupportAccountChargesCommand";
17
22
  import { ListBusinessSupportSubscriptionHistoryCommand, } from "./commands/ListBusinessSupportSubscriptionHistoryCommand";
23
+ import { ListContractsCommand, } from "./commands/ListContractsCommand";
24
+ import { ListContractualInvestmentAttestationsCommand, } from "./commands/ListContractualInvestmentAttestationsCommand";
25
+ import { ListContractualInvestmentsCommand, } from "./commands/ListContractualInvestmentsCommand";
26
+ import { ListContractualInvestmentSummariesCommand, } from "./commands/ListContractualInvestmentSummariesCommand";
18
27
  import { ListEnterpriseSupportLinkedAccountChargesCommand, } from "./commands/ListEnterpriseSupportLinkedAccountChargesCommand";
19
28
  import { ListSourceViewsForBillingViewCommand, } from "./commands/ListSourceViewsForBillingViewCommand";
20
29
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
@@ -28,15 +37,24 @@ import { paginateListBillingViewSegments } from "./pagination/ListBillingViewSeg
28
37
  import { paginateListBillingViews } from "./pagination/ListBillingViewsPaginator";
29
38
  import { paginateListBusinessSupportAccountCharges } from "./pagination/ListBusinessSupportAccountChargesPaginator";
30
39
  import { paginateListBusinessSupportSubscriptionHistory, } from "./pagination/ListBusinessSupportSubscriptionHistoryPaginator";
40
+ import { paginateListContracts } from "./pagination/ListContractsPaginator";
41
+ import { paginateListContractualInvestmentAttestations, } from "./pagination/ListContractualInvestmentAttestationsPaginator";
42
+ import { paginateListContractualInvestments } from "./pagination/ListContractualInvestmentsPaginator";
43
+ import { paginateListContractualInvestmentSummaries } from "./pagination/ListContractualInvestmentSummariesPaginator";
31
44
  import { paginateListEnterpriseSupportLinkedAccountCharges, } from "./pagination/ListEnterpriseSupportLinkedAccountChargesPaginator";
32
45
  import { paginateListSourceViewsForBillingView } from "./pagination/ListSourceViewsForBillingViewPaginator";
33
46
  const commands = {
47
+ AssociateContractCommand,
34
48
  AssociateSourceViewsCommand,
49
+ CancelContractualInvestmentAttestationCommand,
35
50
  CreateBillingViewCommand,
51
+ CreateContractualInvestmentAttestationCommand,
36
52
  DeleteBillingViewCommand,
53
+ DisassociateContractCommand,
37
54
  DisassociateSourceViewsCommand,
38
55
  GetBillingPreferencesCommand,
39
56
  GetBillingViewCommand,
57
+ GetContractInformationCommand,
40
58
  GetCreditAllocationHistoryCommand,
41
59
  GetCreditsCommand,
42
60
  GetEnterpriseSupportChargeSummaryCommand,
@@ -46,6 +64,10 @@ const commands = {
46
64
  ListBillingViewSegmentsCommand,
47
65
  ListBusinessSupportAccountChargesCommand,
48
66
  ListBusinessSupportSubscriptionHistoryCommand,
67
+ ListContractsCommand,
68
+ ListContractualInvestmentAttestationsCommand,
69
+ ListContractualInvestmentsCommand,
70
+ ListContractualInvestmentSummariesCommand,
49
71
  ListEnterpriseSupportLinkedAccountChargesCommand,
50
72
  ListSourceViewsForBillingViewCommand,
51
73
  ListTagsForResourceCommand,
@@ -61,6 +83,10 @@ const paginators = {
61
83
  paginateListBillingViewSegments,
62
84
  paginateListBusinessSupportAccountCharges,
63
85
  paginateListBusinessSupportSubscriptionHistory,
86
+ paginateListContracts,
87
+ paginateListContractualInvestmentAttestations,
88
+ paginateListContractualInvestments,
89
+ paginateListContractualInvestmentSummaries,
64
90
  paginateListEnterpriseSupportLinkedAccountCharges,
65
91
  paginateListSourceViewsForBillingView,
66
92
  };
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { AssociateContract$ } from "../schemas/schemas_0";
3
+ export class AssociateContractCommand extends command(_ep0, _mw0, "AssociateContract", AssociateContract$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { CancelContractualInvestmentAttestation$ } from "../schemas/schemas_0";
3
+ export class CancelContractualInvestmentAttestationCommand extends command(_ep0, _mw0, "CancelContractualInvestmentAttestation", CancelContractualInvestmentAttestation$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { CreateContractualInvestmentAttestation$ } from "../schemas/schemas_0";
3
+ export class CreateContractualInvestmentAttestationCommand extends command(_ep0, _mw0, "CreateContractualInvestmentAttestation", CreateContractualInvestmentAttestation$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { DisassociateContract$ } from "../schemas/schemas_0";
3
+ export class DisassociateContractCommand extends command(_ep0, _mw0, "DisassociateContract", DisassociateContract$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { GetContractInformation$ } from "../schemas/schemas_0";
3
+ export class GetContractInformationCommand extends command(_ep0, _mw0, "GetContractInformation", GetContractInformation$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { ListContracts$ } from "../schemas/schemas_0";
3
+ export class ListContractsCommand extends command(_ep0, _mw0, "ListContracts", ListContracts$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { ListContractualInvestmentAttestations$ } from "../schemas/schemas_0";
3
+ export class ListContractualInvestmentAttestationsCommand extends command(_ep0, _mw0, "ListContractualInvestmentAttestations", ListContractualInvestmentAttestations$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { ListContractualInvestmentSummaries$ } from "../schemas/schemas_0";
3
+ export class ListContractualInvestmentSummariesCommand extends command(_ep0, _mw0, "ListContractualInvestmentSummaries", ListContractualInvestmentSummaries$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { ListContractualInvestments$ } from "../schemas/schemas_0";
3
+ export class ListContractualInvestmentsCommand extends command(_ep0, _mw0, "ListContractualInvestments", ListContractualInvestments$) {
4
+ }
@@ -1,9 +1,14 @@
1
+ export * from "./AssociateContractCommand";
1
2
  export * from "./AssociateSourceViewsCommand";
3
+ export * from "./CancelContractualInvestmentAttestationCommand";
2
4
  export * from "./CreateBillingViewCommand";
5
+ export * from "./CreateContractualInvestmentAttestationCommand";
3
6
  export * from "./DeleteBillingViewCommand";
7
+ export * from "./DisassociateContractCommand";
4
8
  export * from "./DisassociateSourceViewsCommand";
5
9
  export * from "./GetBillingPreferencesCommand";
6
10
  export * from "./GetBillingViewCommand";
11
+ export * from "./GetContractInformationCommand";
7
12
  export * from "./GetCreditAllocationHistoryCommand";
8
13
  export * from "./GetCreditsCommand";
9
14
  export * from "./GetEnterpriseSupportChargeSummaryCommand";
@@ -13,6 +18,10 @@ export * from "./ListBillingViewSegmentsCommand";
13
18
  export * from "./ListBillingViewsCommand";
14
19
  export * from "./ListBusinessSupportAccountChargesCommand";
15
20
  export * from "./ListBusinessSupportSubscriptionHistoryCommand";
21
+ export * from "./ListContractsCommand";
22
+ export * from "./ListContractualInvestmentAttestationsCommand";
23
+ export * from "./ListContractualInvestmentSummariesCommand";
24
+ export * from "./ListContractualInvestmentsCommand";
16
25
  export * from "./ListEnterpriseSupportLinkedAccountChargesCommand";
17
26
  export * from "./ListSourceViewsForBillingViewCommand";
18
27
  export * from "./ListTagsForResourceCommand";
@@ -8,6 +8,10 @@ export const ValidationExceptionReason = {
8
8
  OTHER: "other",
9
9
  UNKNOWN_OPERATION: "unknownOperation",
10
10
  };
11
+ export const AssociationStatus = {
12
+ ASSOCIATED: "ASSOCIATED",
13
+ NOT_ASSOCIATED: "NOT_ASSOCIATED",
14
+ };
11
15
  export const Dimension = {
12
16
  LINKED_ACCOUNT: "LINKED_ACCOUNT",
13
17
  };
@@ -50,6 +54,9 @@ export const BillingViewStatusReason = {
50
54
  SOURCE_VIEW_UPDATING: "SOURCE_VIEW_UPDATING",
51
55
  VIEW_OWNER_NOT_MANAGEMENT_ACCOUNT: "VIEW_OWNER_NOT_MANAGEMENT_ACCOUNT",
52
56
  };
57
+ export const ContractRestriction = {
58
+ ATTESTATION_SELF_SERVICE_BLOCKED: "ATTESTATION_SELF_SERVICE_BLOCKED",
59
+ };
53
60
  export const CreditSharingType = {
54
61
  COST_CATEGORY_RULE: "COST_CATEGORY_RULE",
55
62
  CUSTOM: "CUSTOM",
@@ -67,3 +74,24 @@ export const BillingDomain = {
67
74
  BILLABLE: "BILLABLE",
68
75
  PRO_FORMA: "PRO_FORMA",
69
76
  };
77
+ export const ContractType = {
78
+ CROSS_SERVICE: "Cross-Service",
79
+ OTHER: "Other",
80
+ SERVICE_SPECIFIC: "Service-Specific",
81
+ };
82
+ export const InvestmentAttestationStatus = {
83
+ CANCELLED: "CANCELLED",
84
+ DISBURSED: "DISBURSED",
85
+ PENDING_CANCELLATION: "PENDING_CANCELLATION",
86
+ PENDING_C_LEVEL_APPROVAL: "PENDING_C_LEVEL_APPROVAL",
87
+ PENDING_REVIEW: "PENDING_REVIEW",
88
+ REJECTED: "REJECTED",
89
+ };
90
+ export const MultiplierType = {
91
+ CURRENCY_AMOUNT: "CURRENCY_AMOUNT",
92
+ PERCENTAGE: "PERCENTAGE",
93
+ };
94
+ export const InvestmentType = {
95
+ MILESTONE_BASED: "MILESTONE_BASED",
96
+ OUTCOME_BASED: "OUTCOME_BASED",
97
+ };
@@ -12,19 +12,6 @@ export class AccessDeniedException extends __BaseException {
12
12
  Object.setPrototypeOf(this, AccessDeniedException.prototype);
13
13
  }
14
14
  }
15
- export class BillingViewHealthStatusException extends __BaseException {
16
- static shapeId = "com.amazonaws.billing#BillingViewHealthStatusException";
17
- name = "BillingViewHealthStatusException";
18
- $fault = "client";
19
- constructor(opts) {
20
- super({
21
- name: "BillingViewHealthStatusException",
22
- $fault: "client",
23
- ...opts,
24
- });
25
- Object.setPrototypeOf(this, BillingViewHealthStatusException.prototype);
26
- }
27
- }
28
15
  export class ConflictException extends __BaseException {
29
16
  static shapeId = "com.amazonaws.billing#ConflictException";
30
17
  name = "ConflictException";
@@ -72,27 +59,6 @@ export class ResourceNotFoundException extends __BaseException {
72
59
  this.resourceType = opts.resourceType;
73
60
  }
74
61
  }
75
- export class ServiceQuotaExceededException extends __BaseException {
76
- static shapeId = "com.amazonaws.billing#ServiceQuotaExceededException";
77
- name = "ServiceQuotaExceededException";
78
- $fault = "client";
79
- resourceId;
80
- resourceType;
81
- serviceCode;
82
- quotaCode;
83
- constructor(opts) {
84
- super({
85
- name: "ServiceQuotaExceededException",
86
- $fault: "client",
87
- ...opts,
88
- });
89
- Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
90
- this.resourceId = opts.resourceId;
91
- this.resourceType = opts.resourceType;
92
- this.serviceCode = opts.serviceCode;
93
- this.quotaCode = opts.quotaCode;
94
- }
95
- }
96
62
  export class ThrottlingException extends __BaseException {
97
63
  static shapeId = "com.amazonaws.billing#ThrottlingException";
98
64
  name = "ThrottlingException";
@@ -123,3 +89,37 @@ export class ValidationException extends __BaseException {
123
89
  this.fieldList = opts.fieldList;
124
90
  }
125
91
  }
92
+ export class BillingViewHealthStatusException extends __BaseException {
93
+ static shapeId = "com.amazonaws.billing#BillingViewHealthStatusException";
94
+ name = "BillingViewHealthStatusException";
95
+ $fault = "client";
96
+ constructor(opts) {
97
+ super({
98
+ name: "BillingViewHealthStatusException",
99
+ $fault: "client",
100
+ ...opts,
101
+ });
102
+ Object.setPrototypeOf(this, BillingViewHealthStatusException.prototype);
103
+ }
104
+ }
105
+ export class ServiceQuotaExceededException extends __BaseException {
106
+ static shapeId = "com.amazonaws.billing#ServiceQuotaExceededException";
107
+ name = "ServiceQuotaExceededException";
108
+ $fault = "client";
109
+ resourceId;
110
+ resourceType;
111
+ serviceCode;
112
+ quotaCode;
113
+ constructor(opts) {
114
+ super({
115
+ name: "ServiceQuotaExceededException",
116
+ $fault: "client",
117
+ ...opts,
118
+ });
119
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
120
+ this.resourceId = opts.resourceId;
121
+ this.resourceType = opts.resourceType;
122
+ this.serviceCode = opts.serviceCode;
123
+ this.quotaCode = opts.quotaCode;
124
+ }
125
+ }
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { BillingClient } from "../BillingClient";
3
+ import { ListContractsCommand, } from "../commands/ListContractsCommand";
4
+ export const paginateListContracts = createPaginator(BillingClient, ListContractsCommand, "nextToken", "nextToken", "maxResults");
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { BillingClient } from "../BillingClient";
3
+ import { ListContractualInvestmentAttestationsCommand, } from "../commands/ListContractualInvestmentAttestationsCommand";
4
+ export const paginateListContractualInvestmentAttestations = createPaginator(BillingClient, ListContractualInvestmentAttestationsCommand, "nextToken", "nextToken", "maxResults");
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { BillingClient } from "../BillingClient";
3
+ import { ListContractualInvestmentSummariesCommand, } from "../commands/ListContractualInvestmentSummariesCommand";
4
+ export const paginateListContractualInvestmentSummaries = createPaginator(BillingClient, ListContractualInvestmentSummariesCommand, "nextToken", "nextToken", "maxResults");
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { BillingClient } from "../BillingClient";
3
+ import { ListContractualInvestmentsCommand, } from "../commands/ListContractualInvestmentsCommand";
4
+ export const paginateListContractualInvestments = createPaginator(BillingClient, ListContractualInvestmentsCommand, "nextToken", "nextToken", "maxResults");
@@ -4,5 +4,9 @@ export * from "./ListBillingViewsPaginator";
4
4
  export * from "./ListBillingViewSegmentsPaginator";
5
5
  export * from "./ListBusinessSupportAccountChargesPaginator";
6
6
  export * from "./ListBusinessSupportSubscriptionHistoryPaginator";
7
+ export * from "./ListContractsPaginator";
8
+ export * from "./ListContractualInvestmentAttestationsPaginator";
9
+ export * from "./ListContractualInvestmentsPaginator";
10
+ export * from "./ListContractualInvestmentSummariesPaginator";
7
11
  export * from "./ListEnterpriseSupportLinkedAccountChargesPaginator";
8
12
  export * from "./ListSourceViewsForBillingViewPaginator";