@aws-sdk/client-budgets 3.300.0 → 3.303.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/dist-cjs/models/models_0.js +77 -91
- package/dist-es/models/models_0.js +77 -91
- package/dist-types/commands/CreateBudgetActionCommand.d.ts +13 -13
- package/dist-types/commands/CreateBudgetCommand.d.ts +16 -16
- package/dist-types/commands/CreateNotificationCommand.d.ts +4 -4
- package/dist-types/commands/CreateSubscriberCommand.d.ts +3 -3
- package/dist-types/commands/DeleteBudgetActionCommand.d.ts +1 -1
- package/dist-types/commands/DeleteBudgetCommand.d.ts +1 -1
- package/dist-types/commands/DeleteNotificationCommand.d.ts +2 -2
- package/dist-types/commands/DeleteSubscriberCommand.d.ts +3 -3
- package/dist-types/commands/DescribeBudgetActionCommand.d.ts +1 -1
- package/dist-types/commands/DescribeBudgetActionHistoriesCommand.d.ts +2 -2
- package/dist-types/commands/DescribeBudgetActionsForAccountCommand.d.ts +1 -1
- package/dist-types/commands/DescribeBudgetActionsForBudgetCommand.d.ts +1 -1
- package/dist-types/commands/DescribeBudgetCommand.d.ts +1 -1
- package/dist-types/commands/DescribeBudgetNotificationsForAccountCommand.d.ts +1 -1
- package/dist-types/commands/DescribeBudgetPerformanceHistoryCommand.d.ts +2 -2
- package/dist-types/commands/DescribeBudgetsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeNotificationsForBudgetCommand.d.ts +1 -1
- package/dist-types/commands/DescribeSubscribersForNotificationCommand.d.ts +2 -2
- package/dist-types/commands/ExecuteBudgetActionCommand.d.ts +1 -1
- package/dist-types/commands/UpdateBudgetActionCommand.d.ts +13 -13
- package/dist-types/commands/UpdateBudgetCommand.d.ts +11 -11
- package/dist-types/commands/UpdateNotificationCommand.d.ts +2 -2
- package/dist-types/commands/UpdateSubscriberCommand.d.ts +3 -3
- package/dist-types/models/models_0.d.ts +147 -77
- package/dist-types/ts3.4/models/models_0.d.ts +96 -77
- package/package.json +34 -34
|
@@ -8,23 +8,26 @@ export declare class AccessDeniedException extends __BaseException {
|
|
|
8
8
|
opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
|
|
9
9
|
);
|
|
10
10
|
}
|
|
11
|
-
export declare
|
|
12
|
-
ABSOLUTE_VALUE
|
|
13
|
-
PERCENTAGE
|
|
14
|
-
}
|
|
11
|
+
export declare const ThresholdType: {
|
|
12
|
+
readonly ABSOLUTE_VALUE: "ABSOLUTE_VALUE";
|
|
13
|
+
readonly PERCENTAGE: "PERCENTAGE";
|
|
14
|
+
};
|
|
15
|
+
export type ThresholdType = (typeof ThresholdType)[keyof typeof ThresholdType];
|
|
15
16
|
export interface ActionThreshold {
|
|
16
17
|
ActionThresholdValue: number | undefined;
|
|
17
18
|
ActionThresholdType: ThresholdType | string | undefined;
|
|
18
19
|
}
|
|
19
|
-
export declare
|
|
20
|
-
IAM
|
|
21
|
-
SCP
|
|
22
|
-
SSM
|
|
23
|
-
}
|
|
24
|
-
export
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
20
|
+
export declare const ActionType: {
|
|
21
|
+
readonly IAM: "APPLY_IAM_POLICY";
|
|
22
|
+
readonly SCP: "APPLY_SCP_POLICY";
|
|
23
|
+
readonly SSM: "RUN_SSM_DOCUMENTS";
|
|
24
|
+
};
|
|
25
|
+
export type ActionType = (typeof ActionType)[keyof typeof ActionType];
|
|
26
|
+
export declare const ApprovalModel: {
|
|
27
|
+
readonly AUTO: "AUTOMATIC";
|
|
28
|
+
readonly MANUAL: "MANUAL";
|
|
29
|
+
};
|
|
30
|
+
export type ApprovalModel = (typeof ApprovalModel)[keyof typeof ApprovalModel];
|
|
28
31
|
export interface IamActionDefinition {
|
|
29
32
|
PolicyArn: string | undefined;
|
|
30
33
|
Roles?: string[];
|
|
@@ -35,10 +38,11 @@ export interface ScpActionDefinition {
|
|
|
35
38
|
PolicyId: string | undefined;
|
|
36
39
|
TargetIds: string[] | undefined;
|
|
37
40
|
}
|
|
38
|
-
export declare
|
|
39
|
-
STOP_EC2
|
|
40
|
-
STOP_RDS
|
|
41
|
-
}
|
|
41
|
+
export declare const ActionSubType: {
|
|
42
|
+
readonly STOP_EC2: "STOP_EC2_INSTANCES";
|
|
43
|
+
readonly STOP_RDS: "STOP_RDS_INSTANCES";
|
|
44
|
+
};
|
|
45
|
+
export type ActionSubType = (typeof ActionSubType)[keyof typeof ActionSubType];
|
|
42
46
|
export interface SsmActionDefinition {
|
|
43
47
|
ActionSubType: ActionSubType | string | undefined;
|
|
44
48
|
Region: string | undefined;
|
|
@@ -49,26 +53,31 @@ export interface Definition {
|
|
|
49
53
|
ScpActionDefinition?: ScpActionDefinition;
|
|
50
54
|
SsmActionDefinition?: SsmActionDefinition;
|
|
51
55
|
}
|
|
52
|
-
export declare
|
|
53
|
-
ACTUAL
|
|
54
|
-
FORECASTED
|
|
55
|
-
}
|
|
56
|
-
export
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
56
|
+
export declare const NotificationType: {
|
|
57
|
+
readonly ACTUAL: "ACTUAL";
|
|
58
|
+
readonly FORECASTED: "FORECASTED";
|
|
59
|
+
};
|
|
60
|
+
export type NotificationType =
|
|
61
|
+
(typeof NotificationType)[keyof typeof NotificationType];
|
|
62
|
+
export declare const ActionStatus: {
|
|
63
|
+
readonly Execution_Failure: "EXECUTION_FAILURE";
|
|
64
|
+
readonly Execution_In_Progress: "EXECUTION_IN_PROGRESS";
|
|
65
|
+
readonly Execution_Success: "EXECUTION_SUCCESS";
|
|
66
|
+
readonly Pending: "PENDING";
|
|
67
|
+
readonly Reset_Failure: "RESET_FAILURE";
|
|
68
|
+
readonly Reset_In_Progress: "RESET_IN_PROGRESS";
|
|
69
|
+
readonly Reverse_Failure: "REVERSE_FAILURE";
|
|
70
|
+
readonly Reverse_In_Progress: "REVERSE_IN_PROGRESS";
|
|
71
|
+
readonly Reverse_Success: "REVERSE_SUCCESS";
|
|
72
|
+
readonly Standby: "STANDBY";
|
|
73
|
+
};
|
|
74
|
+
export type ActionStatus = (typeof ActionStatus)[keyof typeof ActionStatus];
|
|
75
|
+
export declare const SubscriptionType: {
|
|
76
|
+
readonly EMAIL: "EMAIL";
|
|
77
|
+
readonly SNS: "SNS";
|
|
78
|
+
};
|
|
79
|
+
export type SubscriptionType =
|
|
80
|
+
(typeof SubscriptionType)[keyof typeof SubscriptionType];
|
|
72
81
|
export interface Subscriber {
|
|
73
82
|
SubscriptionType: SubscriptionType | string | undefined;
|
|
74
83
|
Address: string | undefined;
|
|
@@ -89,23 +98,26 @@ export interface ActionHistoryDetails {
|
|
|
89
98
|
Message: string | undefined;
|
|
90
99
|
Action: Action | undefined;
|
|
91
100
|
}
|
|
92
|
-
export declare
|
|
93
|
-
CreateAction
|
|
94
|
-
DeleteAction
|
|
95
|
-
ExecuteAction
|
|
96
|
-
System
|
|
97
|
-
UpdateAction
|
|
98
|
-
}
|
|
101
|
+
export declare const EventType: {
|
|
102
|
+
readonly CreateAction: "CREATE_ACTION";
|
|
103
|
+
readonly DeleteAction: "DELETE_ACTION";
|
|
104
|
+
readonly ExecuteAction: "EXECUTE_ACTION";
|
|
105
|
+
readonly System: "SYSTEM";
|
|
106
|
+
readonly UpdateAction: "UPDATE_ACTION";
|
|
107
|
+
};
|
|
108
|
+
export type EventType = (typeof EventType)[keyof typeof EventType];
|
|
99
109
|
export interface ActionHistory {
|
|
100
110
|
Timestamp: Date | undefined;
|
|
101
111
|
Status: ActionStatus | string | undefined;
|
|
102
112
|
EventType: EventType | string | undefined;
|
|
103
113
|
ActionHistoryDetails: ActionHistoryDetails | undefined;
|
|
104
114
|
}
|
|
105
|
-
export declare
|
|
106
|
-
FORECAST
|
|
107
|
-
HISTORICAL
|
|
108
|
-
}
|
|
115
|
+
export declare const AutoAdjustType: {
|
|
116
|
+
readonly FORECAST: "FORECAST";
|
|
117
|
+
readonly HISTORICAL: "HISTORICAL";
|
|
118
|
+
};
|
|
119
|
+
export type AutoAdjustType =
|
|
120
|
+
(typeof AutoAdjustType)[keyof typeof AutoAdjustType];
|
|
109
121
|
export interface HistoricalOptions {
|
|
110
122
|
BudgetAdjustmentPeriod: number | undefined;
|
|
111
123
|
LookBackAvailablePeriods?: number;
|
|
@@ -119,14 +131,15 @@ export interface Spend {
|
|
|
119
131
|
Amount: string | undefined;
|
|
120
132
|
Unit: string | undefined;
|
|
121
133
|
}
|
|
122
|
-
export declare
|
|
123
|
-
Cost
|
|
124
|
-
RICoverage
|
|
125
|
-
RIUtilization
|
|
126
|
-
SPCoverage
|
|
127
|
-
SPUtilization
|
|
128
|
-
Usage
|
|
129
|
-
}
|
|
134
|
+
export declare const BudgetType: {
|
|
135
|
+
readonly Cost: "COST";
|
|
136
|
+
readonly RICoverage: "RI_COVERAGE";
|
|
137
|
+
readonly RIUtilization: "RI_UTILIZATION";
|
|
138
|
+
readonly SPCoverage: "SAVINGS_PLANS_COVERAGE";
|
|
139
|
+
readonly SPUtilization: "SAVINGS_PLANS_UTILIZATION";
|
|
140
|
+
readonly Usage: "USAGE";
|
|
141
|
+
};
|
|
142
|
+
export type BudgetType = (typeof BudgetType)[keyof typeof BudgetType];
|
|
130
143
|
export interface CalculatedSpend {
|
|
131
144
|
ActualSpend: Spend | undefined;
|
|
132
145
|
ForecastedSpend?: Spend;
|
|
@@ -148,12 +161,13 @@ export interface TimePeriod {
|
|
|
148
161
|
Start?: Date;
|
|
149
162
|
End?: Date;
|
|
150
163
|
}
|
|
151
|
-
export declare
|
|
152
|
-
ANNUALLY
|
|
153
|
-
DAILY
|
|
154
|
-
MONTHLY
|
|
155
|
-
QUARTERLY
|
|
156
|
-
}
|
|
164
|
+
export declare const TimeUnit: {
|
|
165
|
+
readonly ANNUALLY: "ANNUALLY";
|
|
166
|
+
readonly DAILY: "DAILY";
|
|
167
|
+
readonly MONTHLY: "MONTHLY";
|
|
168
|
+
readonly QUARTERLY: "QUARTERLY";
|
|
169
|
+
};
|
|
170
|
+
export type TimeUnit = (typeof TimeUnit)[keyof typeof TimeUnit];
|
|
157
171
|
export interface Budget {
|
|
158
172
|
BudgetName: string | undefined;
|
|
159
173
|
BudgetLimit?: Spend;
|
|
@@ -167,15 +181,19 @@ export interface Budget {
|
|
|
167
181
|
LastUpdatedTime?: Date;
|
|
168
182
|
AutoAdjustData?: AutoAdjustData;
|
|
169
183
|
}
|
|
170
|
-
export declare
|
|
171
|
-
EQUAL_TO
|
|
172
|
-
GREATER_THAN
|
|
173
|
-
LESS_THAN
|
|
174
|
-
}
|
|
175
|
-
export
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
184
|
+
export declare const ComparisonOperator: {
|
|
185
|
+
readonly EQUAL_TO: "EQUAL_TO";
|
|
186
|
+
readonly GREATER_THAN: "GREATER_THAN";
|
|
187
|
+
readonly LESS_THAN: "LESS_THAN";
|
|
188
|
+
};
|
|
189
|
+
export type ComparisonOperator =
|
|
190
|
+
(typeof ComparisonOperator)[keyof typeof ComparisonOperator];
|
|
191
|
+
export declare const NotificationState: {
|
|
192
|
+
readonly ALARM: "ALARM";
|
|
193
|
+
readonly OK: "OK";
|
|
194
|
+
};
|
|
195
|
+
export type NotificationState =
|
|
196
|
+
(typeof NotificationState)[keyof typeof NotificationState];
|
|
179
197
|
export interface Notification {
|
|
180
198
|
NotificationType: NotificationType | string | undefined;
|
|
181
199
|
ComparisonOperator: ComparisonOperator | string | undefined;
|
|
@@ -436,12 +454,13 @@ export interface DescribeSubscribersForNotificationResponse {
|
|
|
436
454
|
Subscribers?: Subscriber[];
|
|
437
455
|
NextToken?: string;
|
|
438
456
|
}
|
|
439
|
-
export declare
|
|
440
|
-
ApproveBudgetAction
|
|
441
|
-
ResetBudgetAction
|
|
442
|
-
RetryBudgetAction
|
|
443
|
-
ReverseBudgetAction
|
|
444
|
-
}
|
|
457
|
+
export declare const ExecutionType: {
|
|
458
|
+
readonly ApproveBudgetAction: "APPROVE_BUDGET_ACTION";
|
|
459
|
+
readonly ResetBudgetAction: "RESET_BUDGET_ACTION";
|
|
460
|
+
readonly RetryBudgetAction: "RETRY_BUDGET_ACTION";
|
|
461
|
+
readonly ReverseBudgetAction: "REVERSE_BUDGET_ACTION";
|
|
462
|
+
};
|
|
463
|
+
export type ExecutionType = (typeof ExecutionType)[keyof typeof ExecutionType];
|
|
445
464
|
export interface ExecuteBudgetActionRequest {
|
|
446
465
|
AccountId: string | undefined;
|
|
447
466
|
BudgetName: string | undefined;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-budgets",
|
|
3
3
|
"description": "AWS SDK for JavaScript Budgets Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.303.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,42 +21,42 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/config-resolver": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
27
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
28
|
-
"@aws-sdk/hash-node": "3.
|
|
29
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
30
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
31
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
32
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
33
|
-
"@aws-sdk/middleware-logger": "3.
|
|
34
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
35
|
-
"@aws-sdk/middleware-retry": "3.
|
|
36
|
-
"@aws-sdk/middleware-serde": "3.
|
|
37
|
-
"@aws-sdk/middleware-signing": "3.
|
|
38
|
-
"@aws-sdk/middleware-stack": "3.
|
|
39
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
40
|
-
"@aws-sdk/node-config-provider": "3.
|
|
41
|
-
"@aws-sdk/node-http-handler": "3.
|
|
42
|
-
"@aws-sdk/protocol-http": "3.
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
44
|
-
"@aws-sdk/types": "3.
|
|
45
|
-
"@aws-sdk/url-parser": "3.
|
|
46
|
-
"@aws-sdk/util-base64": "3.
|
|
47
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
48
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
51
|
-
"@aws-sdk/util-endpoints": "3.
|
|
52
|
-
"@aws-sdk/util-retry": "3.
|
|
53
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
54
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
55
|
-
"@aws-sdk/util-utf8": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.303.0",
|
|
25
|
+
"@aws-sdk/config-resolver": "3.303.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.303.0",
|
|
27
|
+
"@aws-sdk/fetch-http-handler": "3.303.0",
|
|
28
|
+
"@aws-sdk/hash-node": "3.303.0",
|
|
29
|
+
"@aws-sdk/invalid-dependency": "3.303.0",
|
|
30
|
+
"@aws-sdk/middleware-content-length": "3.303.0",
|
|
31
|
+
"@aws-sdk/middleware-endpoint": "3.303.0",
|
|
32
|
+
"@aws-sdk/middleware-host-header": "3.303.0",
|
|
33
|
+
"@aws-sdk/middleware-logger": "3.303.0",
|
|
34
|
+
"@aws-sdk/middleware-recursion-detection": "3.303.0",
|
|
35
|
+
"@aws-sdk/middleware-retry": "3.303.0",
|
|
36
|
+
"@aws-sdk/middleware-serde": "3.303.0",
|
|
37
|
+
"@aws-sdk/middleware-signing": "3.303.0",
|
|
38
|
+
"@aws-sdk/middleware-stack": "3.303.0",
|
|
39
|
+
"@aws-sdk/middleware-user-agent": "3.303.0",
|
|
40
|
+
"@aws-sdk/node-config-provider": "3.303.0",
|
|
41
|
+
"@aws-sdk/node-http-handler": "3.303.0",
|
|
42
|
+
"@aws-sdk/protocol-http": "3.303.0",
|
|
43
|
+
"@aws-sdk/smithy-client": "3.303.0",
|
|
44
|
+
"@aws-sdk/types": "3.303.0",
|
|
45
|
+
"@aws-sdk/url-parser": "3.303.0",
|
|
46
|
+
"@aws-sdk/util-base64": "3.303.0",
|
|
47
|
+
"@aws-sdk/util-body-length-browser": "3.303.0",
|
|
48
|
+
"@aws-sdk/util-body-length-node": "3.303.0",
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.303.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.303.0",
|
|
51
|
+
"@aws-sdk/util-endpoints": "3.303.0",
|
|
52
|
+
"@aws-sdk/util-retry": "3.303.0",
|
|
53
|
+
"@aws-sdk/util-user-agent-browser": "3.303.0",
|
|
54
|
+
"@aws-sdk/util-user-agent-node": "3.303.0",
|
|
55
|
+
"@aws-sdk/util-utf8": "3.303.0",
|
|
56
56
|
"tslib": "^2.5.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@aws-sdk/service-client-documentation-generator": "3.
|
|
59
|
+
"@aws-sdk/service-client-documentation-generator": "3.303.0",
|
|
60
60
|
"@tsconfig/node14": "1.0.3",
|
|
61
61
|
"@types/node": "^14.14.31",
|
|
62
62
|
"concurrently": "7.0.0",
|