@aws-sdk/client-billing 3.1079.0 → 3.1081.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 +35 -0
- package/dist-cjs/index.js +289 -20
- package/dist-es/Billing.js +12 -0
- package/dist-es/commands/GetBillingPreferencesCommand.js +4 -0
- package/dist-es/commands/GetCreditAllocationHistoryCommand.js +4 -0
- package/dist-es/commands/GetCreditsCommand.js +4 -0
- package/dist-es/commands/RedeemCreditsCommand.js +4 -0
- package/dist-es/commands/UpdateBillingPreferencesCommand.js +4 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/models/enums.js +30 -0
- package/dist-es/pagination/GetCreditAllocationHistoryPaginator.js +4 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/schemas/schemas_0.js +207 -19
- package/dist-types/Billing.d.ts +42 -0
- package/dist-types/BillingClient.d.ts +7 -2
- package/dist-types/commands/GetBillingPreferencesCommand.d.ts +108 -0
- package/dist-types/commands/GetCreditAllocationHistoryCommand.d.ts +106 -0
- package/dist-types/commands/GetCreditsCommand.d.ts +124 -0
- package/dist-types/commands/RedeemCreditsCommand.d.ts +81 -0
- package/dist-types/commands/UpdateBillingPreferencesCommand.d.ts +87 -0
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/enums.d.ts +78 -0
- package/dist-types/models/models_0.d.ts +418 -1
- package/dist-types/pagination/GetCreditAllocationHistoryPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +22 -0
- package/dist-types/ts3.4/Billing.d.ts +92 -0
- package/dist-types/ts3.4/BillingClient.d.ts +30 -0
- package/dist-types/ts3.4/commands/GetBillingPreferencesCommand.d.ts +44 -0
- package/dist-types/ts3.4/commands/GetCreditAllocationHistoryCommand.d.ts +44 -0
- package/dist-types/ts3.4/commands/GetCreditsCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/RedeemCreditsCommand.d.ts +43 -0
- package/dist-types/ts3.4/commands/UpdateBillingPreferencesCommand.d.ts +44 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/models/enums.d.ts +41 -0
- package/dist-types/ts3.4/models/models_0.d.ts +103 -0
- package/dist-types/ts3.4/pagination/GetCreditAllocationHistoryPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +22 -0
- package/package.json +3 -3
package/dist-types/Billing.d.ts
CHANGED
|
@@ -4,13 +4,18 @@ import { type AssociateSourceViewsCommandInput, type AssociateSourceViewsCommand
|
|
|
4
4
|
import { type CreateBillingViewCommandInput, type CreateBillingViewCommandOutput } from "./commands/CreateBillingViewCommand";
|
|
5
5
|
import { type DeleteBillingViewCommandInput, type DeleteBillingViewCommandOutput } from "./commands/DeleteBillingViewCommand";
|
|
6
6
|
import { type DisassociateSourceViewsCommandInput, type DisassociateSourceViewsCommandOutput } from "./commands/DisassociateSourceViewsCommand";
|
|
7
|
+
import { type GetBillingPreferencesCommandInput, type GetBillingPreferencesCommandOutput } from "./commands/GetBillingPreferencesCommand";
|
|
7
8
|
import { type GetBillingViewCommandInput, type GetBillingViewCommandOutput } from "./commands/GetBillingViewCommand";
|
|
9
|
+
import { type GetCreditAllocationHistoryCommandInput, type GetCreditAllocationHistoryCommandOutput } from "./commands/GetCreditAllocationHistoryCommand";
|
|
10
|
+
import { type GetCreditsCommandInput, type GetCreditsCommandOutput } from "./commands/GetCreditsCommand";
|
|
8
11
|
import { type GetResourcePolicyCommandInput, type GetResourcePolicyCommandOutput } from "./commands/GetResourcePolicyCommand";
|
|
9
12
|
import { type ListBillingViewsCommandInput, type ListBillingViewsCommandOutput } from "./commands/ListBillingViewsCommand";
|
|
10
13
|
import { type ListSourceViewsForBillingViewCommandInput, type ListSourceViewsForBillingViewCommandOutput } from "./commands/ListSourceViewsForBillingViewCommand";
|
|
11
14
|
import { type ListTagsForResourceCommandInput, type ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
15
|
+
import { type RedeemCreditsCommandInput, type RedeemCreditsCommandOutput } from "./commands/RedeemCreditsCommand";
|
|
12
16
|
import { type TagResourceCommandInput, type TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
13
17
|
import { type UntagResourceCommandInput, type UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
18
|
+
import { type UpdateBillingPreferencesCommandInput, type UpdateBillingPreferencesCommandOutput } from "./commands/UpdateBillingPreferencesCommand";
|
|
14
19
|
import { type UpdateBillingViewCommandInput, type UpdateBillingViewCommandOutput } from "./commands/UpdateBillingViewCommand";
|
|
15
20
|
export interface Billing {
|
|
16
21
|
/**
|
|
@@ -37,12 +42,30 @@ export interface Billing {
|
|
|
37
42
|
disassociateSourceViews(args: DisassociateSourceViewsCommandInput, options?: __HttpHandlerOptions): Promise<DisassociateSourceViewsCommandOutput>;
|
|
38
43
|
disassociateSourceViews(args: DisassociateSourceViewsCommandInput, cb: (err: any, data?: DisassociateSourceViewsCommandOutput) => void): void;
|
|
39
44
|
disassociateSourceViews(args: DisassociateSourceViewsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DisassociateSourceViewsCommandOutput) => void): void;
|
|
45
|
+
/**
|
|
46
|
+
* @see {@link GetBillingPreferencesCommand}
|
|
47
|
+
*/
|
|
48
|
+
getBillingPreferences(args: GetBillingPreferencesCommandInput, options?: __HttpHandlerOptions): Promise<GetBillingPreferencesCommandOutput>;
|
|
49
|
+
getBillingPreferences(args: GetBillingPreferencesCommandInput, cb: (err: any, data?: GetBillingPreferencesCommandOutput) => void): void;
|
|
50
|
+
getBillingPreferences(args: GetBillingPreferencesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetBillingPreferencesCommandOutput) => void): void;
|
|
40
51
|
/**
|
|
41
52
|
* @see {@link GetBillingViewCommand}
|
|
42
53
|
*/
|
|
43
54
|
getBillingView(args: GetBillingViewCommandInput, options?: __HttpHandlerOptions): Promise<GetBillingViewCommandOutput>;
|
|
44
55
|
getBillingView(args: GetBillingViewCommandInput, cb: (err: any, data?: GetBillingViewCommandOutput) => void): void;
|
|
45
56
|
getBillingView(args: GetBillingViewCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetBillingViewCommandOutput) => void): void;
|
|
57
|
+
/**
|
|
58
|
+
* @see {@link GetCreditAllocationHistoryCommand}
|
|
59
|
+
*/
|
|
60
|
+
getCreditAllocationHistory(args: GetCreditAllocationHistoryCommandInput, options?: __HttpHandlerOptions): Promise<GetCreditAllocationHistoryCommandOutput>;
|
|
61
|
+
getCreditAllocationHistory(args: GetCreditAllocationHistoryCommandInput, cb: (err: any, data?: GetCreditAllocationHistoryCommandOutput) => void): void;
|
|
62
|
+
getCreditAllocationHistory(args: GetCreditAllocationHistoryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetCreditAllocationHistoryCommandOutput) => void): void;
|
|
63
|
+
/**
|
|
64
|
+
* @see {@link GetCreditsCommand}
|
|
65
|
+
*/
|
|
66
|
+
getCredits(args: GetCreditsCommandInput, options?: __HttpHandlerOptions): Promise<GetCreditsCommandOutput>;
|
|
67
|
+
getCredits(args: GetCreditsCommandInput, cb: (err: any, data?: GetCreditsCommandOutput) => void): void;
|
|
68
|
+
getCredits(args: GetCreditsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetCreditsCommandOutput) => void): void;
|
|
46
69
|
/**
|
|
47
70
|
* @see {@link GetResourcePolicyCommand}
|
|
48
71
|
*/
|
|
@@ -68,6 +91,12 @@ export interface Billing {
|
|
|
68
91
|
listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
|
|
69
92
|
listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
70
93
|
listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
94
|
+
/**
|
|
95
|
+
* @see {@link RedeemCreditsCommand}
|
|
96
|
+
*/
|
|
97
|
+
redeemCredits(args: RedeemCreditsCommandInput, options?: __HttpHandlerOptions): Promise<RedeemCreditsCommandOutput>;
|
|
98
|
+
redeemCredits(args: RedeemCreditsCommandInput, cb: (err: any, data?: RedeemCreditsCommandOutput) => void): void;
|
|
99
|
+
redeemCredits(args: RedeemCreditsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RedeemCreditsCommandOutput) => void): void;
|
|
71
100
|
/**
|
|
72
101
|
* @see {@link TagResourceCommand}
|
|
73
102
|
*/
|
|
@@ -80,12 +109,25 @@ export interface Billing {
|
|
|
80
109
|
untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
|
|
81
110
|
untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
82
111
|
untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
112
|
+
/**
|
|
113
|
+
* @see {@link UpdateBillingPreferencesCommand}
|
|
114
|
+
*/
|
|
115
|
+
updateBillingPreferences(args: UpdateBillingPreferencesCommandInput, options?: __HttpHandlerOptions): Promise<UpdateBillingPreferencesCommandOutput>;
|
|
116
|
+
updateBillingPreferences(args: UpdateBillingPreferencesCommandInput, cb: (err: any, data?: UpdateBillingPreferencesCommandOutput) => void): void;
|
|
117
|
+
updateBillingPreferences(args: UpdateBillingPreferencesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateBillingPreferencesCommandOutput) => void): void;
|
|
83
118
|
/**
|
|
84
119
|
* @see {@link UpdateBillingViewCommand}
|
|
85
120
|
*/
|
|
86
121
|
updateBillingView(args: UpdateBillingViewCommandInput, options?: __HttpHandlerOptions): Promise<UpdateBillingViewCommandOutput>;
|
|
87
122
|
updateBillingView(args: UpdateBillingViewCommandInput, cb: (err: any, data?: UpdateBillingViewCommandOutput) => void): void;
|
|
88
123
|
updateBillingView(args: UpdateBillingViewCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateBillingViewCommandOutput) => void): void;
|
|
124
|
+
/**
|
|
125
|
+
* @see {@link GetCreditAllocationHistoryCommand}
|
|
126
|
+
* @param args - command input.
|
|
127
|
+
* @param paginationConfig - optional pagination config.
|
|
128
|
+
* @returns AsyncIterable of {@link GetCreditAllocationHistoryCommandOutput}.
|
|
129
|
+
*/
|
|
130
|
+
paginateGetCreditAllocationHistory(args: GetCreditAllocationHistoryCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<GetCreditAllocationHistoryCommandOutput>;
|
|
89
131
|
/**
|
|
90
132
|
* @see {@link ListBillingViewsCommand}
|
|
91
133
|
* @param args - command input.
|
|
@@ -10,13 +10,18 @@ import type { AssociateSourceViewsCommandInput, AssociateSourceViewsCommandOutpu
|
|
|
10
10
|
import type { CreateBillingViewCommandInput, CreateBillingViewCommandOutput } from "./commands/CreateBillingViewCommand";
|
|
11
11
|
import type { DeleteBillingViewCommandInput, DeleteBillingViewCommandOutput } from "./commands/DeleteBillingViewCommand";
|
|
12
12
|
import type { DisassociateSourceViewsCommandInput, DisassociateSourceViewsCommandOutput } from "./commands/DisassociateSourceViewsCommand";
|
|
13
|
+
import type { GetBillingPreferencesCommandInput, GetBillingPreferencesCommandOutput } from "./commands/GetBillingPreferencesCommand";
|
|
13
14
|
import type { GetBillingViewCommandInput, GetBillingViewCommandOutput } from "./commands/GetBillingViewCommand";
|
|
15
|
+
import type { GetCreditAllocationHistoryCommandInput, GetCreditAllocationHistoryCommandOutput } from "./commands/GetCreditAllocationHistoryCommand";
|
|
16
|
+
import type { GetCreditsCommandInput, GetCreditsCommandOutput } from "./commands/GetCreditsCommand";
|
|
14
17
|
import type { GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput } from "./commands/GetResourcePolicyCommand";
|
|
15
18
|
import type { ListBillingViewsCommandInput, ListBillingViewsCommandOutput } from "./commands/ListBillingViewsCommand";
|
|
16
19
|
import type { ListSourceViewsForBillingViewCommandInput, ListSourceViewsForBillingViewCommandOutput } from "./commands/ListSourceViewsForBillingViewCommand";
|
|
17
20
|
import type { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
21
|
+
import type { RedeemCreditsCommandInput, RedeemCreditsCommandOutput } from "./commands/RedeemCreditsCommand";
|
|
18
22
|
import type { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
19
23
|
import type { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
24
|
+
import type { UpdateBillingPreferencesCommandInput, UpdateBillingPreferencesCommandOutput } from "./commands/UpdateBillingPreferencesCommand";
|
|
20
25
|
import type { UpdateBillingViewCommandInput, UpdateBillingViewCommandOutput } from "./commands/UpdateBillingViewCommand";
|
|
21
26
|
import { type ClientInputEndpointParameters, type ClientResolvedEndpointParameters, type EndpointParameters } from "./endpoint/EndpointParameters";
|
|
22
27
|
import { type RuntimeExtension, type RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
@@ -24,11 +29,11 @@ export { __Client };
|
|
|
24
29
|
/**
|
|
25
30
|
* @public
|
|
26
31
|
*/
|
|
27
|
-
export type ServiceInputTypes = AssociateSourceViewsCommandInput | CreateBillingViewCommandInput | DeleteBillingViewCommandInput | DisassociateSourceViewsCommandInput | GetBillingViewCommandInput | GetResourcePolicyCommandInput | ListBillingViewsCommandInput | ListSourceViewsForBillingViewCommandInput | ListTagsForResourceCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateBillingViewCommandInput;
|
|
32
|
+
export type ServiceInputTypes = AssociateSourceViewsCommandInput | CreateBillingViewCommandInput | DeleteBillingViewCommandInput | DisassociateSourceViewsCommandInput | GetBillingPreferencesCommandInput | GetBillingViewCommandInput | GetCreditAllocationHistoryCommandInput | GetCreditsCommandInput | GetResourcePolicyCommandInput | ListBillingViewsCommandInput | ListSourceViewsForBillingViewCommandInput | ListTagsForResourceCommandInput | RedeemCreditsCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateBillingPreferencesCommandInput | UpdateBillingViewCommandInput;
|
|
28
33
|
/**
|
|
29
34
|
* @public
|
|
30
35
|
*/
|
|
31
|
-
export type ServiceOutputTypes = AssociateSourceViewsCommandOutput | CreateBillingViewCommandOutput | DeleteBillingViewCommandOutput | DisassociateSourceViewsCommandOutput | GetBillingViewCommandOutput | GetResourcePolicyCommandOutput | ListBillingViewsCommandOutput | ListSourceViewsForBillingViewCommandOutput | ListTagsForResourceCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateBillingViewCommandOutput;
|
|
36
|
+
export type ServiceOutputTypes = AssociateSourceViewsCommandOutput | CreateBillingViewCommandOutput | DeleteBillingViewCommandOutput | DisassociateSourceViewsCommandOutput | GetBillingPreferencesCommandOutput | GetBillingViewCommandOutput | GetCreditAllocationHistoryCommandOutput | GetCreditsCommandOutput | GetResourcePolicyCommandOutput | ListBillingViewsCommandOutput | ListSourceViewsForBillingViewCommandOutput | ListTagsForResourceCommandOutput | RedeemCreditsCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateBillingPreferencesCommandOutput | UpdateBillingViewCommandOutput;
|
|
32
37
|
/**
|
|
33
38
|
* @public
|
|
34
39
|
*/
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { GetBillingPreferencesRequest, GetBillingPreferencesResponse } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link GetBillingPreferencesCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface GetBillingPreferencesCommandInput extends GetBillingPreferencesRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link GetBillingPreferencesCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface GetBillingPreferencesCommandOutput extends GetBillingPreferencesResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const GetBillingPreferencesCommand_base: {
|
|
22
|
+
new (input: GetBillingPreferencesCommandInput): import("@smithy/core/client").CommandImpl<GetBillingPreferencesCommandInput, GetBillingPreferencesCommandOutput, import("..").BillingClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: GetBillingPreferencesCommandInput): import("@smithy/core/client").CommandImpl<GetBillingPreferencesCommandInput, GetBillingPreferencesCommandOutput, import("..").BillingClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Retrieves billing preferences for the specified feature. Each feature controls a distinct billing capability: which accounts can share Reserved Instances or credits, whether billing alerts are enabled, the historical record of sharing changes, and per-credit options.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { BillingClient, GetBillingPreferencesCommand } from "@aws-sdk/client-billing"; // ES Modules import
|
|
32
|
+
* // const { BillingClient, GetBillingPreferencesCommand } = 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 = { // GetBillingPreferencesRequest
|
|
37
|
+
* nextToken: "STRING_VALUE",
|
|
38
|
+
* maxResults: Number("int"),
|
|
39
|
+
* features: [ // BillingFeatures // required
|
|
40
|
+
* "RI_SHARING" || "RI_SHARING_HISTORY" || "CREDIT_SHARING" || "CREDIT_SHARING_HISTORY" || "CREDIT_LEVEL_SHARING" || "BILLING_ALERTS" || "CREDIT_PREFERENCE_OPTIONS",
|
|
41
|
+
* ],
|
|
42
|
+
* filters: [ // BillingFeatureFilters
|
|
43
|
+
* { // BillingFeatureFilter
|
|
44
|
+
* name: "PREFERENCE_KEY",
|
|
45
|
+
* value: [ // BillingFeatureFilterValues
|
|
46
|
+
* "STRING_VALUE",
|
|
47
|
+
* ],
|
|
48
|
+
* },
|
|
49
|
+
* ],
|
|
50
|
+
* };
|
|
51
|
+
* const command = new GetBillingPreferencesCommand(input);
|
|
52
|
+
* const response = await client.send(command);
|
|
53
|
+
* // { // GetBillingPreferencesResponse
|
|
54
|
+
* // billingPreferences: [ // BillingPreferences // required
|
|
55
|
+
* // { // BillingPreferenceSummary
|
|
56
|
+
* // feature: "RI_SHARING" || "RI_SHARING_HISTORY" || "CREDIT_SHARING" || "CREDIT_SHARING_HISTORY" || "CREDIT_LEVEL_SHARING" || "BILLING_ALERTS" || "CREDIT_PREFERENCE_OPTIONS", // required
|
|
57
|
+
* // key: "STRING_VALUE", // required
|
|
58
|
+
* // value: "ENABLED" || "DISABLED", // required
|
|
59
|
+
* // accountName: "STRING_VALUE",
|
|
60
|
+
* // accountId: "STRING_VALUE",
|
|
61
|
+
* // billingPeriod: { // BillingPeriod
|
|
62
|
+
* // year: Number("int"), // required
|
|
63
|
+
* // month: Number("int"), // required
|
|
64
|
+
* // },
|
|
65
|
+
* // },
|
|
66
|
+
* // ],
|
|
67
|
+
* // nextToken: "STRING_VALUE",
|
|
68
|
+
* // };
|
|
69
|
+
*
|
|
70
|
+
* ```
|
|
71
|
+
*
|
|
72
|
+
* @param GetBillingPreferencesCommandInput - {@link GetBillingPreferencesCommandInput}
|
|
73
|
+
* @returns {@link GetBillingPreferencesCommandOutput}
|
|
74
|
+
* @see {@link GetBillingPreferencesCommandInput} for command's `input` shape.
|
|
75
|
+
* @see {@link GetBillingPreferencesCommandOutput} for command's `response` shape.
|
|
76
|
+
* @see {@link BillingClientResolvedConfig | config} for BillingClient's `config` shape.
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
79
|
+
* <p>You don't have sufficient access to perform this action.</p>
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link InternalServerException} (server fault)
|
|
82
|
+
* <p>The request processing failed because of an unknown error, exception, or failure. </p>
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
85
|
+
* <p>The request was denied due to request throttling. </p>
|
|
86
|
+
*
|
|
87
|
+
* @throws {@link ValidationException} (client fault)
|
|
88
|
+
* <p>The input fails to satisfy the constraints specified by an Amazon Web Services service. </p>
|
|
89
|
+
*
|
|
90
|
+
* @throws {@link BillingServiceException}
|
|
91
|
+
* <p>Base exception class for all service exceptions from Billing service.</p>
|
|
92
|
+
*
|
|
93
|
+
*
|
|
94
|
+
* @public
|
|
95
|
+
*/
|
|
96
|
+
export declare class GetBillingPreferencesCommand extends GetBillingPreferencesCommand_base {
|
|
97
|
+
/** @internal type navigation helper, not in runtime. */
|
|
98
|
+
protected static __types: {
|
|
99
|
+
api: {
|
|
100
|
+
input: GetBillingPreferencesRequest;
|
|
101
|
+
output: GetBillingPreferencesResponse;
|
|
102
|
+
};
|
|
103
|
+
sdk: {
|
|
104
|
+
input: GetBillingPreferencesCommandInput;
|
|
105
|
+
output: GetBillingPreferencesCommandOutput;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { GetCreditAllocationHistoryRequest, GetCreditAllocationHistoryResponse } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link GetCreditAllocationHistoryCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface GetCreditAllocationHistoryCommandInput extends GetCreditAllocationHistoryRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link GetCreditAllocationHistoryCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface GetCreditAllocationHistoryCommandOutput extends GetCreditAllocationHistoryResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const GetCreditAllocationHistoryCommand_base: {
|
|
22
|
+
new (input: GetCreditAllocationHistoryCommandInput): import("@smithy/core/client").CommandImpl<GetCreditAllocationHistoryCommandInput, GetCreditAllocationHistoryCommandOutput, import("..").BillingClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: GetCreditAllocationHistoryCommandInput): import("@smithy/core/client").CommandImpl<GetCreditAllocationHistoryCommandInput, GetCreditAllocationHistoryCommandOutput, import("..").BillingClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Returns the per-billing-month allocation history for credits applied to an Amazon Web Services account's bills. Traverses the consolidated billing family to capture cross-account credit applications. Supports pagination and optional filtering to a single credit.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { BillingClient, GetCreditAllocationHistoryCommand } from "@aws-sdk/client-billing"; // ES Modules import
|
|
32
|
+
* // const { BillingClient, GetCreditAllocationHistoryCommand } = 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 = { // GetCreditAllocationHistoryRequest
|
|
37
|
+
* accountId: "STRING_VALUE", // required
|
|
38
|
+
* creditId: Number("long"),
|
|
39
|
+
* startDate: new Date("TIMESTAMP"), // required
|
|
40
|
+
* endDate: new Date("TIMESTAMP"), // required
|
|
41
|
+
* nextToken: "STRING_VALUE",
|
|
42
|
+
* maxResults: Number("int"),
|
|
43
|
+
* };
|
|
44
|
+
* const command = new GetCreditAllocationHistoryCommand(input);
|
|
45
|
+
* const response = await client.send(command);
|
|
46
|
+
* // { // GetCreditAllocationHistoryResponse
|
|
47
|
+
* // creditAllocationHistoryList: [ // CreditAllocationHistoryList
|
|
48
|
+
* // { // CreditAllocationHistoryEntry
|
|
49
|
+
* // creditId: "STRING_VALUE", // required
|
|
50
|
+
* // creditAmount: { // Amount
|
|
51
|
+
* // currencyCode: "STRING_VALUE", // required
|
|
52
|
+
* // currencyAmount: "STRING_VALUE", // required
|
|
53
|
+
* // },
|
|
54
|
+
* // description: "STRING_VALUE",
|
|
55
|
+
* // accountId: "STRING_VALUE", // required
|
|
56
|
+
* // appliedServiceName: "STRING_VALUE", // required
|
|
57
|
+
* // billingMonth: "STRING_VALUE", // required
|
|
58
|
+
* // isEstimatedBill: true || false, // required
|
|
59
|
+
* // },
|
|
60
|
+
* // ],
|
|
61
|
+
* // partialResults: true || false, // required
|
|
62
|
+
* // failedMonths: [ // FailedMonthsList
|
|
63
|
+
* // "STRING_VALUE",
|
|
64
|
+
* // ],
|
|
65
|
+
* // nextToken: "STRING_VALUE",
|
|
66
|
+
* // };
|
|
67
|
+
*
|
|
68
|
+
* ```
|
|
69
|
+
*
|
|
70
|
+
* @param GetCreditAllocationHistoryCommandInput - {@link GetCreditAllocationHistoryCommandInput}
|
|
71
|
+
* @returns {@link GetCreditAllocationHistoryCommandOutput}
|
|
72
|
+
* @see {@link GetCreditAllocationHistoryCommandInput} for command's `input` shape.
|
|
73
|
+
* @see {@link GetCreditAllocationHistoryCommandOutput} for command's `response` shape.
|
|
74
|
+
* @see {@link BillingClientResolvedConfig | config} for BillingClient's `config` shape.
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
77
|
+
* <p>You don't have sufficient access to perform this action.</p>
|
|
78
|
+
*
|
|
79
|
+
* @throws {@link InternalServerException} (server fault)
|
|
80
|
+
* <p>The request processing failed because of an unknown error, exception, or failure. </p>
|
|
81
|
+
*
|
|
82
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
83
|
+
* <p>The request was denied due to request throttling. </p>
|
|
84
|
+
*
|
|
85
|
+
* @throws {@link ValidationException} (client fault)
|
|
86
|
+
* <p>The input fails to satisfy the constraints specified by an Amazon Web Services service. </p>
|
|
87
|
+
*
|
|
88
|
+
* @throws {@link BillingServiceException}
|
|
89
|
+
* <p>Base exception class for all service exceptions from Billing service.</p>
|
|
90
|
+
*
|
|
91
|
+
*
|
|
92
|
+
* @public
|
|
93
|
+
*/
|
|
94
|
+
export declare class GetCreditAllocationHistoryCommand extends GetCreditAllocationHistoryCommand_base {
|
|
95
|
+
/** @internal type navigation helper, not in runtime. */
|
|
96
|
+
protected static __types: {
|
|
97
|
+
api: {
|
|
98
|
+
input: GetCreditAllocationHistoryRequest;
|
|
99
|
+
output: GetCreditAllocationHistoryResponse;
|
|
100
|
+
};
|
|
101
|
+
sdk: {
|
|
102
|
+
input: GetCreditAllocationHistoryCommandInput;
|
|
103
|
+
output: GetCreditAllocationHistoryCommandOutput;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { GetCreditsRequest, GetCreditsResponse } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link GetCreditsCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface GetCreditsCommandInput extends GetCreditsRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link GetCreditsCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface GetCreditsCommandOutput extends GetCreditsResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const GetCreditsCommand_base: {
|
|
22
|
+
new (input: GetCreditsCommandInput): import("@smithy/core/client").CommandImpl<GetCreditsCommandInput, GetCreditsCommandOutput, import("..").BillingClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: GetCreditsCommandInput): import("@smithy/core/client").CommandImpl<GetCreditsCommandInput, GetCreditsCommandOutput, import("..").BillingClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Returns the list of Amazon Web Services account credits for the specified account. Each credit includes its identifier, type, monetary amounts, applicable products, expiration, sharing configuration, and current enabled status.</p> <p>When the caller is the management account of a consolidated billing family and <code>payerAccountFlag</code> is <code>true</code>, the response aggregates credits across the entire family. Otherwise, the response includes only credits owned by the account specified in <code>accountId</code>.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { BillingClient, GetCreditsCommand } from "@aws-sdk/client-billing"; // ES Modules import
|
|
32
|
+
* // const { BillingClient, GetCreditsCommand } = 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 = { // GetCreditsRequest
|
|
37
|
+
* accountId: "STRING_VALUE", // required
|
|
38
|
+
* startDate: new Date("TIMESTAMP"), // required
|
|
39
|
+
* endDate: new Date("TIMESTAMP"),
|
|
40
|
+
* payerAccountFlag: true || false,
|
|
41
|
+
* };
|
|
42
|
+
* const command = new GetCreditsCommand(input);
|
|
43
|
+
* const response = await client.send(command);
|
|
44
|
+
* // { // GetCreditsResponse
|
|
45
|
+
* // credits: [ // CreditDataList
|
|
46
|
+
* // { // CreditData
|
|
47
|
+
* // creditId: "STRING_VALUE", // required
|
|
48
|
+
* // accountId: "STRING_VALUE", // required
|
|
49
|
+
* // creditType: "STRING_VALUE", // required
|
|
50
|
+
* // initialAmount: { // Amount
|
|
51
|
+
* // currencyCode: "STRING_VALUE", // required
|
|
52
|
+
* // currencyAmount: "STRING_VALUE", // required
|
|
53
|
+
* // },
|
|
54
|
+
* // remainingAmount: {
|
|
55
|
+
* // currencyCode: "STRING_VALUE", // required
|
|
56
|
+
* // currencyAmount: "STRING_VALUE", // required
|
|
57
|
+
* // },
|
|
58
|
+
* // estimatedAmount: {
|
|
59
|
+
* // currencyCode: "STRING_VALUE", // required
|
|
60
|
+
* // currencyAmount: "STRING_VALUE", // required
|
|
61
|
+
* // },
|
|
62
|
+
* // applicableProductNames: [ // ProductNames
|
|
63
|
+
* // "STRING_VALUE",
|
|
64
|
+
* // ],
|
|
65
|
+
* // description: "STRING_VALUE", // required
|
|
66
|
+
* // startDate: new Date("TIMESTAMP"), // required
|
|
67
|
+
* // endDate: new Date("TIMESTAMP"),
|
|
68
|
+
* // exhaustDate: new Date("TIMESTAMP"),
|
|
69
|
+
* // applicationType: "BEFORE_CROSS_SERVICE_DISCOUNTS" || "AFTER_DISCOUNTS",
|
|
70
|
+
* // shareableAccounts: [ // ShareableAccountIds
|
|
71
|
+
* // "STRING_VALUE",
|
|
72
|
+
* // ],
|
|
73
|
+
* // accountHasCreditSharingEnabled: true || false,
|
|
74
|
+
* // creditConsoleVisibility: "STRING_VALUE",
|
|
75
|
+
* // creditSharingType: "DEFAULT" || "DISABLED" || "CUSTOM" || "COST_CATEGORY_RULE",
|
|
76
|
+
* // costCategoryArn: "STRING_VALUE",
|
|
77
|
+
* // ruleName: "STRING_VALUE",
|
|
78
|
+
* // creditStatus: "ENABLED" || "DISABLED",
|
|
79
|
+
* // purchaseTypeApplications: [ // PurchaseTypeApplications
|
|
80
|
+
* // "STRING_VALUE",
|
|
81
|
+
* // ],
|
|
82
|
+
* // },
|
|
83
|
+
* // ],
|
|
84
|
+
* // };
|
|
85
|
+
*
|
|
86
|
+
* ```
|
|
87
|
+
*
|
|
88
|
+
* @param GetCreditsCommandInput - {@link GetCreditsCommandInput}
|
|
89
|
+
* @returns {@link GetCreditsCommandOutput}
|
|
90
|
+
* @see {@link GetCreditsCommandInput} for command's `input` shape.
|
|
91
|
+
* @see {@link GetCreditsCommandOutput} for command's `response` shape.
|
|
92
|
+
* @see {@link BillingClientResolvedConfig | config} for BillingClient's `config` shape.
|
|
93
|
+
*
|
|
94
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
95
|
+
* <p>You don't have sufficient access to perform this action.</p>
|
|
96
|
+
*
|
|
97
|
+
* @throws {@link InternalServerException} (server fault)
|
|
98
|
+
* <p>The request processing failed because of an unknown error, exception, or failure. </p>
|
|
99
|
+
*
|
|
100
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
101
|
+
* <p>The request was denied due to request throttling. </p>
|
|
102
|
+
*
|
|
103
|
+
* @throws {@link ValidationException} (client fault)
|
|
104
|
+
* <p>The input fails to satisfy the constraints specified by an Amazon Web Services service. </p>
|
|
105
|
+
*
|
|
106
|
+
* @throws {@link BillingServiceException}
|
|
107
|
+
* <p>Base exception class for all service exceptions from Billing service.</p>
|
|
108
|
+
*
|
|
109
|
+
*
|
|
110
|
+
* @public
|
|
111
|
+
*/
|
|
112
|
+
export declare class GetCreditsCommand extends GetCreditsCommand_base {
|
|
113
|
+
/** @internal type navigation helper, not in runtime. */
|
|
114
|
+
protected static __types: {
|
|
115
|
+
api: {
|
|
116
|
+
input: GetCreditsRequest;
|
|
117
|
+
output: GetCreditsResponse;
|
|
118
|
+
};
|
|
119
|
+
sdk: {
|
|
120
|
+
input: GetCreditsCommandInput;
|
|
121
|
+
output: GetCreditsCommandOutput;
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { RedeemCreditsRequest, RedeemCreditsResponse } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link RedeemCreditsCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface RedeemCreditsCommandInput extends RedeemCreditsRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link RedeemCreditsCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface RedeemCreditsCommandOutput extends RedeemCreditsResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const RedeemCreditsCommand_base: {
|
|
22
|
+
new (input: RedeemCreditsCommandInput): import("@smithy/core/client").CommandImpl<RedeemCreditsCommandInput, RedeemCreditsCommandOutput, import("..").BillingClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: RedeemCreditsCommandInput): import("@smithy/core/client").CommandImpl<RedeemCreditsCommandInput, RedeemCreditsCommandOutput, import("..").BillingClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Redeems an Amazon Web Services promotional credit code on behalf of the calling account. On success, a new credit is added to the account's credit ledger with the amount, validity period, and applicable products defined by the promotion. The credit is then automatically applied to subsequent bills according to the standard credit application order.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { BillingClient, RedeemCreditsCommand } from "@aws-sdk/client-billing"; // ES Modules import
|
|
32
|
+
* // const { BillingClient, RedeemCreditsCommand } = 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 = { // RedeemCreditsRequest
|
|
37
|
+
* promoCode: "STRING_VALUE", // required
|
|
38
|
+
* };
|
|
39
|
+
* const command = new RedeemCreditsCommand(input);
|
|
40
|
+
* const response = await client.send(command);
|
|
41
|
+
* // {};
|
|
42
|
+
*
|
|
43
|
+
* ```
|
|
44
|
+
*
|
|
45
|
+
* @param RedeemCreditsCommandInput - {@link RedeemCreditsCommandInput}
|
|
46
|
+
* @returns {@link RedeemCreditsCommandOutput}
|
|
47
|
+
* @see {@link RedeemCreditsCommandInput} for command's `input` shape.
|
|
48
|
+
* @see {@link RedeemCreditsCommandOutput} for command's `response` shape.
|
|
49
|
+
* @see {@link BillingClientResolvedConfig | config} for BillingClient's `config` shape.
|
|
50
|
+
*
|
|
51
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
52
|
+
* <p>You don't have sufficient access to perform this action.</p>
|
|
53
|
+
*
|
|
54
|
+
* @throws {@link InternalServerException} (server fault)
|
|
55
|
+
* <p>The request processing failed because of an unknown error, exception, or failure. </p>
|
|
56
|
+
*
|
|
57
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
58
|
+
* <p>The request was denied due to request throttling. </p>
|
|
59
|
+
*
|
|
60
|
+
* @throws {@link ValidationException} (client fault)
|
|
61
|
+
* <p>The input fails to satisfy the constraints specified by an Amazon Web Services service. </p>
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link BillingServiceException}
|
|
64
|
+
* <p>Base exception class for all service exceptions from Billing service.</p>
|
|
65
|
+
*
|
|
66
|
+
*
|
|
67
|
+
* @public
|
|
68
|
+
*/
|
|
69
|
+
export declare class RedeemCreditsCommand extends RedeemCreditsCommand_base {
|
|
70
|
+
/** @internal type navigation helper, not in runtime. */
|
|
71
|
+
protected static __types: {
|
|
72
|
+
api: {
|
|
73
|
+
input: RedeemCreditsRequest;
|
|
74
|
+
output: {};
|
|
75
|
+
};
|
|
76
|
+
sdk: {
|
|
77
|
+
input: RedeemCreditsCommandInput;
|
|
78
|
+
output: RedeemCreditsCommandOutput;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { UpdateBillingPreferencesRequest, UpdateBillingPreferencesResponse } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link UpdateBillingPreferencesCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface UpdateBillingPreferencesCommandInput extends UpdateBillingPreferencesRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link UpdateBillingPreferencesCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface UpdateBillingPreferencesCommandOutput extends UpdateBillingPreferencesResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const UpdateBillingPreferencesCommand_base: {
|
|
22
|
+
new (input: UpdateBillingPreferencesCommandInput): import("@smithy/core/client").CommandImpl<UpdateBillingPreferencesCommandInput, UpdateBillingPreferencesCommandOutput, import("..").BillingClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: UpdateBillingPreferencesCommandInput): import("@smithy/core/client").CommandImpl<UpdateBillingPreferencesCommandInput, UpdateBillingPreferencesCommandOutput, import("..").BillingClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Updates billing preferences for the specified feature. Each feature targets a distinct billing capability and has its own set of supported keys. The action sets the value for each provided key; keys not present in the request are unchanged.</p> <p>Sharing keys (<code>RI_SHARING</code>, <code>CREDIT_SHARING</code>, <code>CREDIT_LEVEL_SHARING</code>, and sharing keys under <code>CREDIT_PREFERENCE_OPTIONS</code>) may only be set by the management account of a consolidated billing family. The <code>credit/\{creditId\}/status</code> key may be set by member accounts for credits they own, or by the management account for any credit in the family.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { BillingClient, UpdateBillingPreferencesCommand } from "@aws-sdk/client-billing"; // ES Modules import
|
|
32
|
+
* // const { BillingClient, UpdateBillingPreferencesCommand } = 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 = { // UpdateBillingPreferencesRequest
|
|
37
|
+
* feature: "RI_SHARING" || "RI_SHARING_HISTORY" || "CREDIT_SHARING" || "CREDIT_SHARING_HISTORY" || "CREDIT_LEVEL_SHARING" || "BILLING_ALERTS" || "CREDIT_PREFERENCE_OPTIONS", // required
|
|
38
|
+
* billingPreferencesPerKey: [ // BillingPreferencesPerKey // required
|
|
39
|
+
* { // BillingPreferenceForKey
|
|
40
|
+
* key: "STRING_VALUE", // required
|
|
41
|
+
* value: "ENABLED" || "DISABLED", // required
|
|
42
|
+
* },
|
|
43
|
+
* ],
|
|
44
|
+
* };
|
|
45
|
+
* const command = new UpdateBillingPreferencesCommand(input);
|
|
46
|
+
* const response = await client.send(command);
|
|
47
|
+
* // {};
|
|
48
|
+
*
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
51
|
+
* @param UpdateBillingPreferencesCommandInput - {@link UpdateBillingPreferencesCommandInput}
|
|
52
|
+
* @returns {@link UpdateBillingPreferencesCommandOutput}
|
|
53
|
+
* @see {@link UpdateBillingPreferencesCommandInput} for command's `input` shape.
|
|
54
|
+
* @see {@link UpdateBillingPreferencesCommandOutput} for command's `response` shape.
|
|
55
|
+
* @see {@link BillingClientResolvedConfig | config} for BillingClient's `config` shape.
|
|
56
|
+
*
|
|
57
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
58
|
+
* <p>You don't have sufficient access to perform this action.</p>
|
|
59
|
+
*
|
|
60
|
+
* @throws {@link InternalServerException} (server fault)
|
|
61
|
+
* <p>The request processing failed because of an unknown error, exception, or failure. </p>
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
64
|
+
* <p>The request was denied due to request throttling. </p>
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link ValidationException} (client fault)
|
|
67
|
+
* <p>The input fails to satisfy the constraints specified by an Amazon Web Services service. </p>
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link BillingServiceException}
|
|
70
|
+
* <p>Base exception class for all service exceptions from Billing service.</p>
|
|
71
|
+
*
|
|
72
|
+
*
|
|
73
|
+
* @public
|
|
74
|
+
*/
|
|
75
|
+
export declare class UpdateBillingPreferencesCommand extends UpdateBillingPreferencesCommand_base {
|
|
76
|
+
/** @internal type navigation helper, not in runtime. */
|
|
77
|
+
protected static __types: {
|
|
78
|
+
api: {
|
|
79
|
+
input: UpdateBillingPreferencesRequest;
|
|
80
|
+
output: {};
|
|
81
|
+
};
|
|
82
|
+
sdk: {
|
|
83
|
+
input: UpdateBillingPreferencesCommandInput;
|
|
84
|
+
output: UpdateBillingPreferencesCommandOutput;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
}
|
|
@@ -2,11 +2,16 @@ export * from "./AssociateSourceViewsCommand";
|
|
|
2
2
|
export * from "./CreateBillingViewCommand";
|
|
3
3
|
export * from "./DeleteBillingViewCommand";
|
|
4
4
|
export * from "./DisassociateSourceViewsCommand";
|
|
5
|
+
export * from "./GetBillingPreferencesCommand";
|
|
5
6
|
export * from "./GetBillingViewCommand";
|
|
7
|
+
export * from "./GetCreditAllocationHistoryCommand";
|
|
8
|
+
export * from "./GetCreditsCommand";
|
|
6
9
|
export * from "./GetResourcePolicyCommand";
|
|
7
10
|
export * from "./ListBillingViewsCommand";
|
|
8
11
|
export * from "./ListSourceViewsForBillingViewCommand";
|
|
9
12
|
export * from "./ListTagsForResourceCommand";
|
|
13
|
+
export * from "./RedeemCreditsCommand";
|
|
10
14
|
export * from "./TagResourceCommand";
|
|
11
15
|
export * from "./UntagResourceCommand";
|
|
16
|
+
export * from "./UpdateBillingPreferencesCommand";
|
|
12
17
|
export * from "./UpdateBillingViewCommand";
|