@aws-sdk/client-billing 3.1137.0 → 3.1139.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.
@@ -1,4 +1,4 @@
1
- import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator } from "@smithy/types";
1
+ import type { HttpHandlerOptions as __HttpHandlerOptions, MetricsRecorder as __MetricsRecorder, PaginationConfiguration, Paginator } from "@smithy/types";
2
2
  import { BillingClient } from "./BillingClient";
3
3
  import { type AssociateSourceViewsCommandInput, type AssociateSourceViewsCommandOutput } from "./commands/AssociateSourceViewsCommand";
4
4
  import { type CreateBillingViewCommandInput, type CreateBillingViewCommandOutput } from "./commands/CreateBillingViewCommand";
@@ -12,6 +12,7 @@ import { type GetEnterpriseSupportChargeSummaryCommandInput, type GetEnterpriseS
12
12
  import { type GetEnterpriseSupportContractDetailsCommandInput, type GetEnterpriseSupportContractDetailsCommandOutput } from "./commands/GetEnterpriseSupportContractDetailsCommand";
13
13
  import { type GetResourcePolicyCommandInput, type GetResourcePolicyCommandOutput } from "./commands/GetResourcePolicyCommand";
14
14
  import { type ListBillingViewsCommandInput, type ListBillingViewsCommandOutput } from "./commands/ListBillingViewsCommand";
15
+ import { type ListBillingViewSegmentsCommandInput, type ListBillingViewSegmentsCommandOutput } from "./commands/ListBillingViewSegmentsCommand";
15
16
  import { type ListEnterpriseSupportLinkedAccountChargesCommandInput, type ListEnterpriseSupportLinkedAccountChargesCommandOutput } from "./commands/ListEnterpriseSupportLinkedAccountChargesCommand";
16
17
  import { type ListSourceViewsForBillingViewCommandInput, type ListSourceViewsForBillingViewCommandOutput } from "./commands/ListSourceViewsForBillingViewCommand";
17
18
  import { type ListTagsForResourceCommandInput, type ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
@@ -20,128 +21,141 @@ import { type TagResourceCommandInput, type TagResourceCommandOutput } from "./c
20
21
  import { type UntagResourceCommandInput, type UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
21
22
  import { type UpdateBillingPreferencesCommandInput, type UpdateBillingPreferencesCommandOutput } from "./commands/UpdateBillingPreferencesCommand";
22
23
  import { type UpdateBillingViewCommandInput, type UpdateBillingViewCommandOutput } from "./commands/UpdateBillingViewCommand";
24
+ /**
25
+ * @public
26
+ */
27
+ export interface BillingRequestOptions extends __HttpHandlerOptions {
28
+ metricsRecorder?: __MetricsRecorder<unknown>;
29
+ }
23
30
  export interface Billing {
24
31
  /**
25
32
  * @see {@link AssociateSourceViewsCommand}
26
33
  */
27
- associateSourceViews(args: AssociateSourceViewsCommandInput, options?: __HttpHandlerOptions): Promise<AssociateSourceViewsCommandOutput>;
34
+ associateSourceViews(args: AssociateSourceViewsCommandInput, options?: BillingRequestOptions): Promise<AssociateSourceViewsCommandOutput>;
28
35
  associateSourceViews(args: AssociateSourceViewsCommandInput, cb: (err: any, data?: AssociateSourceViewsCommandOutput) => void): void;
29
- associateSourceViews(args: AssociateSourceViewsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AssociateSourceViewsCommandOutput) => void): void;
36
+ associateSourceViews(args: AssociateSourceViewsCommandInput, options: BillingRequestOptions, cb: (err: any, data?: AssociateSourceViewsCommandOutput) => void): void;
30
37
  /**
31
38
  * @see {@link CreateBillingViewCommand}
32
39
  */
33
- createBillingView(args: CreateBillingViewCommandInput, options?: __HttpHandlerOptions): Promise<CreateBillingViewCommandOutput>;
40
+ createBillingView(args: CreateBillingViewCommandInput, options?: BillingRequestOptions): Promise<CreateBillingViewCommandOutput>;
34
41
  createBillingView(args: CreateBillingViewCommandInput, cb: (err: any, data?: CreateBillingViewCommandOutput) => void): void;
35
- createBillingView(args: CreateBillingViewCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateBillingViewCommandOutput) => void): void;
42
+ createBillingView(args: CreateBillingViewCommandInput, options: BillingRequestOptions, cb: (err: any, data?: CreateBillingViewCommandOutput) => void): void;
36
43
  /**
37
44
  * @see {@link DeleteBillingViewCommand}
38
45
  */
39
- deleteBillingView(args: DeleteBillingViewCommandInput, options?: __HttpHandlerOptions): Promise<DeleteBillingViewCommandOutput>;
46
+ deleteBillingView(args: DeleteBillingViewCommandInput, options?: BillingRequestOptions): Promise<DeleteBillingViewCommandOutput>;
40
47
  deleteBillingView(args: DeleteBillingViewCommandInput, cb: (err: any, data?: DeleteBillingViewCommandOutput) => void): void;
41
- deleteBillingView(args: DeleteBillingViewCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteBillingViewCommandOutput) => void): void;
48
+ deleteBillingView(args: DeleteBillingViewCommandInput, options: BillingRequestOptions, cb: (err: any, data?: DeleteBillingViewCommandOutput) => void): void;
42
49
  /**
43
50
  * @see {@link DisassociateSourceViewsCommand}
44
51
  */
45
- disassociateSourceViews(args: DisassociateSourceViewsCommandInput, options?: __HttpHandlerOptions): Promise<DisassociateSourceViewsCommandOutput>;
52
+ disassociateSourceViews(args: DisassociateSourceViewsCommandInput, options?: BillingRequestOptions): Promise<DisassociateSourceViewsCommandOutput>;
46
53
  disassociateSourceViews(args: DisassociateSourceViewsCommandInput, cb: (err: any, data?: DisassociateSourceViewsCommandOutput) => void): void;
47
- disassociateSourceViews(args: DisassociateSourceViewsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DisassociateSourceViewsCommandOutput) => void): void;
54
+ disassociateSourceViews(args: DisassociateSourceViewsCommandInput, options: BillingRequestOptions, cb: (err: any, data?: DisassociateSourceViewsCommandOutput) => void): void;
48
55
  /**
49
56
  * @see {@link GetBillingPreferencesCommand}
50
57
  */
51
- getBillingPreferences(args: GetBillingPreferencesCommandInput, options?: __HttpHandlerOptions): Promise<GetBillingPreferencesCommandOutput>;
58
+ getBillingPreferences(args: GetBillingPreferencesCommandInput, options?: BillingRequestOptions): Promise<GetBillingPreferencesCommandOutput>;
52
59
  getBillingPreferences(args: GetBillingPreferencesCommandInput, cb: (err: any, data?: GetBillingPreferencesCommandOutput) => void): void;
53
- getBillingPreferences(args: GetBillingPreferencesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetBillingPreferencesCommandOutput) => void): void;
60
+ getBillingPreferences(args: GetBillingPreferencesCommandInput, options: BillingRequestOptions, cb: (err: any, data?: GetBillingPreferencesCommandOutput) => void): void;
54
61
  /**
55
62
  * @see {@link GetBillingViewCommand}
56
63
  */
57
- getBillingView(args: GetBillingViewCommandInput, options?: __HttpHandlerOptions): Promise<GetBillingViewCommandOutput>;
64
+ getBillingView(args: GetBillingViewCommandInput, options?: BillingRequestOptions): Promise<GetBillingViewCommandOutput>;
58
65
  getBillingView(args: GetBillingViewCommandInput, cb: (err: any, data?: GetBillingViewCommandOutput) => void): void;
59
- getBillingView(args: GetBillingViewCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetBillingViewCommandOutput) => void): void;
66
+ getBillingView(args: GetBillingViewCommandInput, options: BillingRequestOptions, cb: (err: any, data?: GetBillingViewCommandOutput) => void): void;
60
67
  /**
61
68
  * @see {@link GetCreditAllocationHistoryCommand}
62
69
  */
63
- getCreditAllocationHistory(args: GetCreditAllocationHistoryCommandInput, options?: __HttpHandlerOptions): Promise<GetCreditAllocationHistoryCommandOutput>;
70
+ getCreditAllocationHistory(args: GetCreditAllocationHistoryCommandInput, options?: BillingRequestOptions): Promise<GetCreditAllocationHistoryCommandOutput>;
64
71
  getCreditAllocationHistory(args: GetCreditAllocationHistoryCommandInput, cb: (err: any, data?: GetCreditAllocationHistoryCommandOutput) => void): void;
65
- getCreditAllocationHistory(args: GetCreditAllocationHistoryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetCreditAllocationHistoryCommandOutput) => void): void;
72
+ getCreditAllocationHistory(args: GetCreditAllocationHistoryCommandInput, options: BillingRequestOptions, cb: (err: any, data?: GetCreditAllocationHistoryCommandOutput) => void): void;
66
73
  /**
67
74
  * @see {@link GetCreditsCommand}
68
75
  */
69
- getCredits(args: GetCreditsCommandInput, options?: __HttpHandlerOptions): Promise<GetCreditsCommandOutput>;
76
+ getCredits(args: GetCreditsCommandInput, options?: BillingRequestOptions): Promise<GetCreditsCommandOutput>;
70
77
  getCredits(args: GetCreditsCommandInput, cb: (err: any, data?: GetCreditsCommandOutput) => void): void;
71
- getCredits(args: GetCreditsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetCreditsCommandOutput) => void): void;
78
+ getCredits(args: GetCreditsCommandInput, options: BillingRequestOptions, cb: (err: any, data?: GetCreditsCommandOutput) => void): void;
72
79
  /**
73
80
  * @see {@link GetEnterpriseSupportChargeSummaryCommand}
74
81
  */
75
- getEnterpriseSupportChargeSummary(args: GetEnterpriseSupportChargeSummaryCommandInput, options?: __HttpHandlerOptions): Promise<GetEnterpriseSupportChargeSummaryCommandOutput>;
82
+ getEnterpriseSupportChargeSummary(args: GetEnterpriseSupportChargeSummaryCommandInput, options?: BillingRequestOptions): Promise<GetEnterpriseSupportChargeSummaryCommandOutput>;
76
83
  getEnterpriseSupportChargeSummary(args: GetEnterpriseSupportChargeSummaryCommandInput, cb: (err: any, data?: GetEnterpriseSupportChargeSummaryCommandOutput) => void): void;
77
- getEnterpriseSupportChargeSummary(args: GetEnterpriseSupportChargeSummaryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetEnterpriseSupportChargeSummaryCommandOutput) => void): void;
84
+ getEnterpriseSupportChargeSummary(args: GetEnterpriseSupportChargeSummaryCommandInput, options: BillingRequestOptions, cb: (err: any, data?: GetEnterpriseSupportChargeSummaryCommandOutput) => void): void;
78
85
  /**
79
86
  * @see {@link GetEnterpriseSupportContractDetailsCommand}
80
87
  */
81
- getEnterpriseSupportContractDetails(args: GetEnterpriseSupportContractDetailsCommandInput, options?: __HttpHandlerOptions): Promise<GetEnterpriseSupportContractDetailsCommandOutput>;
88
+ getEnterpriseSupportContractDetails(args: GetEnterpriseSupportContractDetailsCommandInput, options?: BillingRequestOptions): Promise<GetEnterpriseSupportContractDetailsCommandOutput>;
82
89
  getEnterpriseSupportContractDetails(args: GetEnterpriseSupportContractDetailsCommandInput, cb: (err: any, data?: GetEnterpriseSupportContractDetailsCommandOutput) => void): void;
83
- getEnterpriseSupportContractDetails(args: GetEnterpriseSupportContractDetailsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetEnterpriseSupportContractDetailsCommandOutput) => void): void;
90
+ getEnterpriseSupportContractDetails(args: GetEnterpriseSupportContractDetailsCommandInput, options: BillingRequestOptions, cb: (err: any, data?: GetEnterpriseSupportContractDetailsCommandOutput) => void): void;
84
91
  /**
85
92
  * @see {@link GetResourcePolicyCommand}
86
93
  */
87
- getResourcePolicy(args: GetResourcePolicyCommandInput, options?: __HttpHandlerOptions): Promise<GetResourcePolicyCommandOutput>;
94
+ getResourcePolicy(args: GetResourcePolicyCommandInput, options?: BillingRequestOptions): Promise<GetResourcePolicyCommandOutput>;
88
95
  getResourcePolicy(args: GetResourcePolicyCommandInput, cb: (err: any, data?: GetResourcePolicyCommandOutput) => void): void;
89
- getResourcePolicy(args: GetResourcePolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetResourcePolicyCommandOutput) => void): void;
96
+ getResourcePolicy(args: GetResourcePolicyCommandInput, options: BillingRequestOptions, cb: (err: any, data?: GetResourcePolicyCommandOutput) => void): void;
90
97
  /**
91
98
  * @see {@link ListBillingViewsCommand}
92
99
  */
93
100
  listBillingViews(): Promise<ListBillingViewsCommandOutput>;
94
- listBillingViews(args: ListBillingViewsCommandInput, options?: __HttpHandlerOptions): Promise<ListBillingViewsCommandOutput>;
101
+ listBillingViews(args: ListBillingViewsCommandInput, options?: BillingRequestOptions): Promise<ListBillingViewsCommandOutput>;
95
102
  listBillingViews(args: ListBillingViewsCommandInput, cb: (err: any, data?: ListBillingViewsCommandOutput) => void): void;
96
- listBillingViews(args: ListBillingViewsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListBillingViewsCommandOutput) => void): void;
103
+ listBillingViews(args: ListBillingViewsCommandInput, options: BillingRequestOptions, cb: (err: any, data?: ListBillingViewsCommandOutput) => void): void;
104
+ /**
105
+ * @see {@link ListBillingViewSegmentsCommand}
106
+ */
107
+ listBillingViewSegments(): Promise<ListBillingViewSegmentsCommandOutput>;
108
+ listBillingViewSegments(args: ListBillingViewSegmentsCommandInput, options?: BillingRequestOptions): Promise<ListBillingViewSegmentsCommandOutput>;
109
+ listBillingViewSegments(args: ListBillingViewSegmentsCommandInput, cb: (err: any, data?: ListBillingViewSegmentsCommandOutput) => void): void;
110
+ listBillingViewSegments(args: ListBillingViewSegmentsCommandInput, options: BillingRequestOptions, cb: (err: any, data?: ListBillingViewSegmentsCommandOutput) => void): void;
97
111
  /**
98
112
  * @see {@link ListEnterpriseSupportLinkedAccountChargesCommand}
99
113
  */
100
- listEnterpriseSupportLinkedAccountCharges(args: ListEnterpriseSupportLinkedAccountChargesCommandInput, options?: __HttpHandlerOptions): Promise<ListEnterpriseSupportLinkedAccountChargesCommandOutput>;
114
+ listEnterpriseSupportLinkedAccountCharges(args: ListEnterpriseSupportLinkedAccountChargesCommandInput, options?: BillingRequestOptions): Promise<ListEnterpriseSupportLinkedAccountChargesCommandOutput>;
101
115
  listEnterpriseSupportLinkedAccountCharges(args: ListEnterpriseSupportLinkedAccountChargesCommandInput, cb: (err: any, data?: ListEnterpriseSupportLinkedAccountChargesCommandOutput) => void): void;
102
- listEnterpriseSupportLinkedAccountCharges(args: ListEnterpriseSupportLinkedAccountChargesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListEnterpriseSupportLinkedAccountChargesCommandOutput) => void): void;
116
+ listEnterpriseSupportLinkedAccountCharges(args: ListEnterpriseSupportLinkedAccountChargesCommandInput, options: BillingRequestOptions, cb: (err: any, data?: ListEnterpriseSupportLinkedAccountChargesCommandOutput) => void): void;
103
117
  /**
104
118
  * @see {@link ListSourceViewsForBillingViewCommand}
105
119
  */
106
- listSourceViewsForBillingView(args: ListSourceViewsForBillingViewCommandInput, options?: __HttpHandlerOptions): Promise<ListSourceViewsForBillingViewCommandOutput>;
120
+ listSourceViewsForBillingView(args: ListSourceViewsForBillingViewCommandInput, options?: BillingRequestOptions): Promise<ListSourceViewsForBillingViewCommandOutput>;
107
121
  listSourceViewsForBillingView(args: ListSourceViewsForBillingViewCommandInput, cb: (err: any, data?: ListSourceViewsForBillingViewCommandOutput) => void): void;
108
- listSourceViewsForBillingView(args: ListSourceViewsForBillingViewCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListSourceViewsForBillingViewCommandOutput) => void): void;
122
+ listSourceViewsForBillingView(args: ListSourceViewsForBillingViewCommandInput, options: BillingRequestOptions, cb: (err: any, data?: ListSourceViewsForBillingViewCommandOutput) => void): void;
109
123
  /**
110
124
  * @see {@link ListTagsForResourceCommand}
111
125
  */
112
- listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
126
+ listTagsForResource(args: ListTagsForResourceCommandInput, options?: BillingRequestOptions): Promise<ListTagsForResourceCommandOutput>;
113
127
  listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
114
- listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
128
+ listTagsForResource(args: ListTagsForResourceCommandInput, options: BillingRequestOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
115
129
  /**
116
130
  * @see {@link RedeemCreditsCommand}
117
131
  */
118
- redeemCredits(args: RedeemCreditsCommandInput, options?: __HttpHandlerOptions): Promise<RedeemCreditsCommandOutput>;
132
+ redeemCredits(args: RedeemCreditsCommandInput, options?: BillingRequestOptions): Promise<RedeemCreditsCommandOutput>;
119
133
  redeemCredits(args: RedeemCreditsCommandInput, cb: (err: any, data?: RedeemCreditsCommandOutput) => void): void;
120
- redeemCredits(args: RedeemCreditsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RedeemCreditsCommandOutput) => void): void;
134
+ redeemCredits(args: RedeemCreditsCommandInput, options: BillingRequestOptions, cb: (err: any, data?: RedeemCreditsCommandOutput) => void): void;
121
135
  /**
122
136
  * @see {@link TagResourceCommand}
123
137
  */
124
- tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
138
+ tagResource(args: TagResourceCommandInput, options?: BillingRequestOptions): Promise<TagResourceCommandOutput>;
125
139
  tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
126
- tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
140
+ tagResource(args: TagResourceCommandInput, options: BillingRequestOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
127
141
  /**
128
142
  * @see {@link UntagResourceCommand}
129
143
  */
130
- untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
144
+ untagResource(args: UntagResourceCommandInput, options?: BillingRequestOptions): Promise<UntagResourceCommandOutput>;
131
145
  untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
132
- untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
146
+ untagResource(args: UntagResourceCommandInput, options: BillingRequestOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
133
147
  /**
134
148
  * @see {@link UpdateBillingPreferencesCommand}
135
149
  */
136
- updateBillingPreferences(args: UpdateBillingPreferencesCommandInput, options?: __HttpHandlerOptions): Promise<UpdateBillingPreferencesCommandOutput>;
150
+ updateBillingPreferences(args: UpdateBillingPreferencesCommandInput, options?: BillingRequestOptions): Promise<UpdateBillingPreferencesCommandOutput>;
137
151
  updateBillingPreferences(args: UpdateBillingPreferencesCommandInput, cb: (err: any, data?: UpdateBillingPreferencesCommandOutput) => void): void;
138
- updateBillingPreferences(args: UpdateBillingPreferencesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateBillingPreferencesCommandOutput) => void): void;
152
+ updateBillingPreferences(args: UpdateBillingPreferencesCommandInput, options: BillingRequestOptions, cb: (err: any, data?: UpdateBillingPreferencesCommandOutput) => void): void;
139
153
  /**
140
154
  * @see {@link UpdateBillingViewCommand}
141
155
  */
142
- updateBillingView(args: UpdateBillingViewCommandInput, options?: __HttpHandlerOptions): Promise<UpdateBillingViewCommandOutput>;
156
+ updateBillingView(args: UpdateBillingViewCommandInput, options?: BillingRequestOptions): Promise<UpdateBillingViewCommandOutput>;
143
157
  updateBillingView(args: UpdateBillingViewCommandInput, cb: (err: any, data?: UpdateBillingViewCommandOutput) => void): void;
144
- updateBillingView(args: UpdateBillingViewCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateBillingViewCommandOutput) => void): void;
158
+ updateBillingView(args: UpdateBillingViewCommandInput, options: BillingRequestOptions, cb: (err: any, data?: UpdateBillingViewCommandOutput) => void): void;
145
159
  /**
146
160
  * @see {@link GetCreditAllocationHistoryCommand}
147
161
  * @param args - command input.
@@ -156,6 +170,13 @@ export interface Billing {
156
170
  * @returns AsyncIterable of {@link ListBillingViewsCommandOutput}.
157
171
  */
158
172
  paginateListBillingViews(args?: ListBillingViewsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListBillingViewsCommandOutput>;
173
+ /**
174
+ * @see {@link ListBillingViewSegmentsCommand}
175
+ * @param args - command input.
176
+ * @param paginationConfig - optional pagination config.
177
+ * @returns AsyncIterable of {@link ListBillingViewSegmentsCommandOutput}.
178
+ */
179
+ paginateListBillingViewSegments(args?: ListBillingViewSegmentsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListBillingViewSegmentsCommandOutput>;
159
180
  /**
160
181
  * @see {@link ListEnterpriseSupportLinkedAccountChargesCommand}
161
182
  * @param args - command input.
@@ -18,6 +18,7 @@ import type { GetEnterpriseSupportChargeSummaryCommandInput, GetEnterpriseSuppor
18
18
  import type { GetEnterpriseSupportContractDetailsCommandInput, GetEnterpriseSupportContractDetailsCommandOutput } from "./commands/GetEnterpriseSupportContractDetailsCommand";
19
19
  import type { GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput } from "./commands/GetResourcePolicyCommand";
20
20
  import type { ListBillingViewsCommandInput, ListBillingViewsCommandOutput } from "./commands/ListBillingViewsCommand";
21
+ import type { ListBillingViewSegmentsCommandInput, ListBillingViewSegmentsCommandOutput } from "./commands/ListBillingViewSegmentsCommand";
21
22
  import type { ListEnterpriseSupportLinkedAccountChargesCommandInput, ListEnterpriseSupportLinkedAccountChargesCommandOutput } from "./commands/ListEnterpriseSupportLinkedAccountChargesCommand";
22
23
  import type { ListSourceViewsForBillingViewCommandInput, ListSourceViewsForBillingViewCommandOutput } from "./commands/ListSourceViewsForBillingViewCommand";
23
24
  import type { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
@@ -32,11 +33,11 @@ export { __Client };
32
33
  /**
33
34
  * @public
34
35
  */
35
- export type ServiceInputTypes = AssociateSourceViewsCommandInput | CreateBillingViewCommandInput | DeleteBillingViewCommandInput | DisassociateSourceViewsCommandInput | GetBillingPreferencesCommandInput | GetBillingViewCommandInput | GetCreditAllocationHistoryCommandInput | GetCreditsCommandInput | GetEnterpriseSupportChargeSummaryCommandInput | GetEnterpriseSupportContractDetailsCommandInput | GetResourcePolicyCommandInput | ListBillingViewsCommandInput | ListEnterpriseSupportLinkedAccountChargesCommandInput | ListSourceViewsForBillingViewCommandInput | ListTagsForResourceCommandInput | RedeemCreditsCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateBillingPreferencesCommandInput | UpdateBillingViewCommandInput;
36
+ export type ServiceInputTypes = AssociateSourceViewsCommandInput | CreateBillingViewCommandInput | DeleteBillingViewCommandInput | DisassociateSourceViewsCommandInput | GetBillingPreferencesCommandInput | GetBillingViewCommandInput | GetCreditAllocationHistoryCommandInput | GetCreditsCommandInput | GetEnterpriseSupportChargeSummaryCommandInput | GetEnterpriseSupportContractDetailsCommandInput | GetResourcePolicyCommandInput | ListBillingViewSegmentsCommandInput | ListBillingViewsCommandInput | ListEnterpriseSupportLinkedAccountChargesCommandInput | ListSourceViewsForBillingViewCommandInput | ListTagsForResourceCommandInput | RedeemCreditsCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateBillingPreferencesCommandInput | UpdateBillingViewCommandInput;
36
37
  /**
37
38
  * @public
38
39
  */
39
- export type ServiceOutputTypes = AssociateSourceViewsCommandOutput | CreateBillingViewCommandOutput | DeleteBillingViewCommandOutput | DisassociateSourceViewsCommandOutput | GetBillingPreferencesCommandOutput | GetBillingViewCommandOutput | GetCreditAllocationHistoryCommandOutput | GetCreditsCommandOutput | GetEnterpriseSupportChargeSummaryCommandOutput | GetEnterpriseSupportContractDetailsCommandOutput | GetResourcePolicyCommandOutput | ListBillingViewsCommandOutput | ListEnterpriseSupportLinkedAccountChargesCommandOutput | ListSourceViewsForBillingViewCommandOutput | ListTagsForResourceCommandOutput | RedeemCreditsCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateBillingPreferencesCommandOutput | UpdateBillingViewCommandOutput;
40
+ export type ServiceOutputTypes = AssociateSourceViewsCommandOutput | CreateBillingViewCommandOutput | DeleteBillingViewCommandOutput | DisassociateSourceViewsCommandOutput | GetBillingPreferencesCommandOutput | GetBillingViewCommandOutput | GetCreditAllocationHistoryCommandOutput | GetCreditsCommandOutput | GetEnterpriseSupportChargeSummaryCommandOutput | GetEnterpriseSupportContractDetailsCommandOutput | GetResourcePolicyCommandOutput | ListBillingViewSegmentsCommandOutput | ListBillingViewsCommandOutput | ListEnterpriseSupportLinkedAccountChargesCommandOutput | ListSourceViewsForBillingViewCommandOutput | ListTagsForResourceCommandOutput | RedeemCreditsCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateBillingPreferencesCommandOutput | UpdateBillingViewCommandOutput;
40
41
  /**
41
42
  * @public
42
43
  */
@@ -0,0 +1,152 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { ListBillingViewSegmentsRequest, ListBillingViewSegmentsResponse } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link ListBillingViewSegmentsCommand}.
11
+ */
12
+ export interface ListBillingViewSegmentsCommandInput extends ListBillingViewSegmentsRequest {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link ListBillingViewSegmentsCommand}.
18
+ */
19
+ export interface ListBillingViewSegmentsCommandOutput extends ListBillingViewSegmentsResponse, __MetadataBearer {
20
+ }
21
+ declare const ListBillingViewSegmentsCommand_base: {
22
+ new (input: ListBillingViewSegmentsCommandInput): import("@smithy/core/client").CommandImpl<ListBillingViewSegmentsCommandInput, ListBillingViewSegmentsCommandOutput, import("..").BillingClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (...[input]: [] | [ListBillingViewSegmentsCommandInput]): import("@smithy/core/client").CommandImpl<ListBillingViewSegmentsCommandInput, ListBillingViewSegmentsCommandOutput, import("..").BillingClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Lists the segments of a billing view over a given time period. Each segment identifies the billing domain (<code>PRO_FORMA</code> or <code>BILLABLE</code>) and the account relationships that apply during its time range.</p> <p>If you don't provide an <code>arn</code>, the response includes segments for the caller's <code>PRIMARY</code> billing view.</p> <p>If a mid-period change occurs, the response includes multiple segments, each with its own time range. The response omits hidden segments, so the segments it returns might not cover the entire requested time period.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { BillingClient, ListBillingViewSegmentsCommand } from "@aws-sdk/client-billing"; // ES Modules import
32
+ * // const { BillingClient, ListBillingViewSegmentsCommand } = 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 = { // ListBillingViewSegmentsRequest
37
+ * timeRange: { // BillingViewSegmentTimeRange
38
+ * beginDateInclusive: new Date("TIMESTAMP"),
39
+ * endDateExclusive: new Date("TIMESTAMP"),
40
+ * },
41
+ * arn: "STRING_VALUE",
42
+ * maxResults: Number("int"),
43
+ * nextToken: "STRING_VALUE",
44
+ * };
45
+ * const command = new ListBillingViewSegmentsCommand(input);
46
+ * const response = await client.send(command);
47
+ * // { // ListBillingViewSegmentsResponse
48
+ * // items: [ // BillingViewSegmentsList // required
49
+ * // { // BillingViewSegmentsListElement
50
+ * // domain: "BILLABLE" || "PRO_FORMA",
51
+ * // timeRange: { // BillingViewSegmentTimeRange
52
+ * // beginDateInclusive: new Date("TIMESTAMP"),
53
+ * // endDateExclusive: new Date("TIMESTAMP"),
54
+ * // },
55
+ * // billingTransferAccountId: "STRING_VALUE",
56
+ * // managementAccountId: "STRING_VALUE",
57
+ * // billingGroupPrimaryAccountId: "STRING_VALUE",
58
+ * // },
59
+ * // ],
60
+ * // nextToken: "STRING_VALUE",
61
+ * // };
62
+ *
63
+ * ```
64
+ *
65
+ * @param ListBillingViewSegmentsCommandInput - {@link ListBillingViewSegmentsCommandInput}
66
+ * @returns {@link ListBillingViewSegmentsCommandOutput}
67
+ * @see {@link ListBillingViewSegmentsCommandInput} for command's `input` shape.
68
+ * @see {@link ListBillingViewSegmentsCommandOutput} for command's `response` shape.
69
+ * @see {@link BillingClientResolvedConfig | config} for BillingClient's `config` shape.
70
+ *
71
+ * @throws {@link AccessDeniedException} (client fault)
72
+ * <p>You don't have sufficient access to perform this action.</p>
73
+ *
74
+ * @throws {@link BillingViewHealthStatusException} (client fault)
75
+ * <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>
76
+ *
77
+ * @throws {@link InternalServerException} (server fault)
78
+ * <p>The request processing failed because of an unknown error, exception, or failure. </p>
79
+ *
80
+ * @throws {@link ResourceNotFoundException} (client fault)
81
+ * <p> The specified ARN in the request doesn't exist. </p>
82
+ *
83
+ * @throws {@link ThrottlingException} (client fault)
84
+ * <p>The request was denied due to request throttling. </p>
85
+ *
86
+ * @throws {@link ValidationException} (client fault)
87
+ * <p>The input fails to satisfy the constraints specified by an Amazon Web Services service. </p>
88
+ *
89
+ * @throws {@link BillingServiceException}
90
+ * <p>Base exception class for all service exceptions from Billing service.</p>
91
+ *
92
+ *
93
+ * @example Invoke ListBillingViewSegments
94
+ * ```javascript
95
+ * //
96
+ * const input = {
97
+ * timeRange: {
98
+ * beginDateInclusive: 1719792000,
99
+ * endDateExclusive: 1722470400
100
+ * }
101
+ * };
102
+ * const command = new ListBillingViewSegmentsCommand(input);
103
+ * const response = await client.send(command);
104
+ * /* response is
105
+ * {
106
+ * items: [
107
+ * {
108
+ * billingGroupPrimaryAccountId: "333333333333",
109
+ * billingTransferAccountId: "111111111111",
110
+ * domain: "BILLABLE",
111
+ * managementAccountId: "222222222222",
112
+ * timeRange: {
113
+ * beginDateInclusive: 1719792000,
114
+ * endDateExclusive: 1722470400
115
+ * }
116
+ * }
117
+ * ]
118
+ * }
119
+ * *\/
120
+ * ```
121
+ *
122
+ * @example Error example for ListBillingViewSegments
123
+ * ```javascript
124
+ * //
125
+ * const input = {
126
+ * timeRange: {
127
+ * beginDateInclusive: 1722470400,
128
+ * endDateExclusive: 1719792000
129
+ * }
130
+ * };
131
+ * const command = new ListBillingViewSegmentsCommand(input);
132
+ * const response = await client.send(command);
133
+ * /* response is
134
+ * { /* metadata only *\/ }
135
+ * *\/
136
+ * ```
137
+ *
138
+ * @public
139
+ */
140
+ export declare class ListBillingViewSegmentsCommand extends ListBillingViewSegmentsCommand_base {
141
+ /** @internal type navigation helper, not in runtime. */
142
+ protected static __types: {
143
+ api: {
144
+ input: ListBillingViewSegmentsRequest;
145
+ output: ListBillingViewSegmentsResponse;
146
+ };
147
+ sdk: {
148
+ input: ListBillingViewSegmentsCommandInput;
149
+ output: ListBillingViewSegmentsCommandOutput;
150
+ };
151
+ };
152
+ }
@@ -9,6 +9,7 @@ export * from "./GetCreditsCommand";
9
9
  export * from "./GetEnterpriseSupportChargeSummaryCommand";
10
10
  export * from "./GetEnterpriseSupportContractDetailsCommand";
11
11
  export * from "./GetResourcePolicyCommand";
12
+ export * from "./ListBillingViewSegmentsCommand";
12
13
  export * from "./ListBillingViewsCommand";
13
14
  export * from "./ListEnterpriseSupportLinkedAccountChargesCommand";
14
15
  export * from "./ListSourceViewsForBillingViewCommand";
@@ -159,3 +159,15 @@ export declare const SearchOption: {
159
159
  * @public
160
160
  */
161
161
  export type SearchOption = (typeof SearchOption)[keyof typeof SearchOption];
162
+ /**
163
+ * @public
164
+ * @enum
165
+ */
166
+ export declare const BillingDomain: {
167
+ readonly BILLABLE: "BILLABLE";
168
+ readonly PRO_FORMA: "PRO_FORMA";
169
+ };
170
+ /**
171
+ * @public
172
+ */
173
+ export type BillingDomain = (typeof BillingDomain)[keyof typeof BillingDomain];
@@ -1,4 +1,4 @@
1
- import type { ApplicationType, BillingFeature, BillingFeatureFilterName, BillingViewStatus, BillingViewStatusReason, BillingViewType, CreditSharingType, CreditStatus, Dimension, PreferenceValue, SearchOption } from "./enums";
1
+ import type { ApplicationType, BillingDomain, BillingFeature, BillingFeatureFilterName, BillingViewStatus, BillingViewStatusReason, BillingViewType, CreditSharingType, CreditStatus, Dimension, PreferenceValue, SearchOption } from "./enums";
2
2
  /**
3
3
  * <p>A time range with a start and end time.</p>
4
4
  * @public
@@ -1201,6 +1201,93 @@ export interface ListBillingViewsResponse {
1201
1201
  */
1202
1202
  nextToken?: string | undefined;
1203
1203
  }
1204
+ /**
1205
+ * <p> Specifies a time range with an inclusive begin date and an exclusive end date. </p>
1206
+ * @public
1207
+ */
1208
+ export interface BillingViewSegmentTimeRange {
1209
+ /**
1210
+ * <p> The inclusive start of the time range. This value can't be in the future. </p>
1211
+ * @public
1212
+ */
1213
+ beginDateInclusive?: Date | undefined;
1214
+ /**
1215
+ * <p> The exclusive end of the time range. This value must be after <code>beginDateInclusive</code>. </p>
1216
+ * @public
1217
+ */
1218
+ endDateExclusive?: Date | undefined;
1219
+ }
1220
+ /**
1221
+ * @public
1222
+ */
1223
+ export interface ListBillingViewSegmentsRequest {
1224
+ /**
1225
+ * <p> The billing period to query. If you don't provide a time range, the current billing period, which is the calendar month in UTC, is used. </p>
1226
+ * @public
1227
+ */
1228
+ timeRange?: BillingViewSegmentTimeRange | undefined;
1229
+ /**
1230
+ * <p> The Amazon Resource Name (ARN) that uniquely identifies the billing view to query. If you don't provide an ARN, the caller's <code>PRIMARY</code> billing view is used. The ARN must reference a primary billing view. Custom billing views aren't supported. </p>
1231
+ * @public
1232
+ */
1233
+ arn?: string | undefined;
1234
+ /**
1235
+ * <p> The number of entries a paginated response contains. Valid values range from 1 to 100. The default is 100. </p>
1236
+ * @public
1237
+ */
1238
+ maxResults?: number | undefined;
1239
+ /**
1240
+ * <p> The pagination token that is used on subsequent calls to list billing view segments. </p>
1241
+ * @public
1242
+ */
1243
+ nextToken?: string | undefined;
1244
+ }
1245
+ /**
1246
+ * <p> A billing view segment. A segment represents a time range during which the billing domain and account relationships for a billing view remained unchanged. </p>
1247
+ * @public
1248
+ */
1249
+ export interface BillingViewSegmentsListElement {
1250
+ /**
1251
+ * <p>The billing domain for this segment. The following values are valid:</p> <ul> <li> <p> <code>PRO_FORMA</code> - Data shaped by Billing Conductor that doesn't reflect the final charges owed to Amazon Web Services.</p> </li> <li> <p> <code>BILLABLE</code> - Data that represents the final charges owed to Amazon Web Services.</p> </li> </ul>
1252
+ * @public
1253
+ */
1254
+ domain?: BillingDomain | undefined;
1255
+ /**
1256
+ * <p> The time range during which this segment is effective. </p>
1257
+ * @public
1258
+ */
1259
+ timeRange?: BillingViewSegmentTimeRange | undefined;
1260
+ /**
1261
+ * <p> The billing transfer account ID. The response includes this field only when the caller is a billing transfer source account. The response omits this field for billing group billing views. </p>
1262
+ * @public
1263
+ */
1264
+ billingTransferAccountId?: string | undefined;
1265
+ /**
1266
+ * <p> The management account ID of the organization. The response includes this field for organization member accounts. </p>
1267
+ * @public
1268
+ */
1269
+ managementAccountId?: string | undefined;
1270
+ /**
1271
+ * <p> The billing group primary account ID. The response includes this field for billing group members. Compare this value to your own account ID to determine whether you are the primary account. </p>
1272
+ * @public
1273
+ */
1274
+ billingGroupPrimaryAccountId?: string | undefined;
1275
+ }
1276
+ /**
1277
+ * @public
1278
+ */
1279
+ export interface ListBillingViewSegmentsResponse {
1280
+ /**
1281
+ * <p> A list of billing view segments. Each segment covers a portion of the requested time period. The response omits hidden segments, so the segments it returns might not cover the entire requested time period. </p>
1282
+ * @public
1283
+ */
1284
+ items: BillingViewSegmentsListElement[] | undefined;
1285
+ /**
1286
+ * <p> The pagination token that is used on subsequent calls to list billing view segments. </p>
1287
+ * @public
1288
+ */
1289
+ nextToken?: string | undefined;
1290
+ }
1204
1291
  /**
1205
1292
  * <p>The request structure for ListEnterpriseSupportLinkedAccountCharges.</p>
1206
1293
  * @public
@@ -0,0 +1,7 @@
1
+ import type { Paginator } from "@smithy/types";
2
+ import { ListBillingViewSegmentsCommandInput, ListBillingViewSegmentsCommandOutput } from "../commands/ListBillingViewSegmentsCommand";
3
+ import type { BillingPaginationConfiguration } from "./Interfaces";
4
+ /**
5
+ * @public
6
+ */
7
+ export declare const paginateListBillingViewSegments: (config: BillingPaginationConfiguration, input: ListBillingViewSegmentsCommandInput, ...rest: any[]) => Paginator<ListBillingViewSegmentsCommandOutput>;
@@ -1,5 +1,6 @@
1
1
  export * from "./Interfaces";
2
2
  export * from "./GetCreditAllocationHistoryPaginator";
3
3
  export * from "./ListBillingViewsPaginator";
4
+ export * from "./ListBillingViewSegmentsPaginator";
4
5
  export * from "./ListEnterpriseSupportLinkedAccountChargesPaginator";
5
6
  export * from "./ListSourceViewsForBillingViewPaginator";
@@ -27,6 +27,8 @@ export declare var BillingPreferenceSummary$: StaticStructureSchema;
27
27
  export declare var BillingViewElement$: StaticStructureSchema;
28
28
  export declare var BillingViewHealthStatus$: StaticStructureSchema;
29
29
  export declare var BillingViewListElement$: StaticStructureSchema;
30
+ export declare var BillingViewSegmentsListElement$: StaticStructureSchema;
31
+ export declare var BillingViewSegmentTimeRange$: StaticStructureSchema;
30
32
  export declare var ChargeAccount$: StaticStructureSchema;
31
33
  export declare var ContractAccount$: StaticStructureSchema;
32
34
  export declare var CostCategoryValues$: StaticStructureSchema;
@@ -56,6 +58,8 @@ export declare var GetEnterpriseSupportContractDetailsResponse$: StaticStructure
56
58
  export declare var GetResourcePolicyRequest$: StaticStructureSchema;
57
59
  export declare var GetResourcePolicyResponse$: StaticStructureSchema;
58
60
  export declare var LinkedAccountCharge$: StaticStructureSchema;
61
+ export declare var ListBillingViewSegmentsRequest$: StaticStructureSchema;
62
+ export declare var ListBillingViewSegmentsResponse$: StaticStructureSchema;
59
63
  export declare var ListBillingViewsRequest$: StaticStructureSchema;
60
64
  export declare var ListBillingViewsResponse$: StaticStructureSchema;
61
65
  export declare var ListEnterpriseSupportLinkedAccountChargesRequest$: StaticStructureSchema;
@@ -94,6 +98,7 @@ export declare var GetEnterpriseSupportChargeSummary$: StaticOperationSchema;
94
98
  export declare var GetEnterpriseSupportContractDetails$: StaticOperationSchema;
95
99
  export declare var GetResourcePolicy$: StaticOperationSchema;
96
100
  export declare var ListBillingViews$: StaticOperationSchema;
101
+ export declare var ListBillingViewSegments$: StaticOperationSchema;
97
102
  export declare var ListEnterpriseSupportLinkedAccountCharges$: StaticOperationSchema;
98
103
  export declare var ListSourceViewsForBillingView$: StaticOperationSchema;
99
104
  export declare var ListTagsForResource$: StaticOperationSchema;