@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.
Files changed (28) hide show
  1. package/dist-cjs/models/models_0.js +77 -91
  2. package/dist-es/models/models_0.js +77 -91
  3. package/dist-types/commands/CreateBudgetActionCommand.d.ts +13 -13
  4. package/dist-types/commands/CreateBudgetCommand.d.ts +16 -16
  5. package/dist-types/commands/CreateNotificationCommand.d.ts +4 -4
  6. package/dist-types/commands/CreateSubscriberCommand.d.ts +3 -3
  7. package/dist-types/commands/DeleteBudgetActionCommand.d.ts +1 -1
  8. package/dist-types/commands/DeleteBudgetCommand.d.ts +1 -1
  9. package/dist-types/commands/DeleteNotificationCommand.d.ts +2 -2
  10. package/dist-types/commands/DeleteSubscriberCommand.d.ts +3 -3
  11. package/dist-types/commands/DescribeBudgetActionCommand.d.ts +1 -1
  12. package/dist-types/commands/DescribeBudgetActionHistoriesCommand.d.ts +2 -2
  13. package/dist-types/commands/DescribeBudgetActionsForAccountCommand.d.ts +1 -1
  14. package/dist-types/commands/DescribeBudgetActionsForBudgetCommand.d.ts +1 -1
  15. package/dist-types/commands/DescribeBudgetCommand.d.ts +1 -1
  16. package/dist-types/commands/DescribeBudgetNotificationsForAccountCommand.d.ts +1 -1
  17. package/dist-types/commands/DescribeBudgetPerformanceHistoryCommand.d.ts +2 -2
  18. package/dist-types/commands/DescribeBudgetsCommand.d.ts +1 -1
  19. package/dist-types/commands/DescribeNotificationsForBudgetCommand.d.ts +1 -1
  20. package/dist-types/commands/DescribeSubscribersForNotificationCommand.d.ts +2 -2
  21. package/dist-types/commands/ExecuteBudgetActionCommand.d.ts +1 -1
  22. package/dist-types/commands/UpdateBudgetActionCommand.d.ts +13 -13
  23. package/dist-types/commands/UpdateBudgetCommand.d.ts +11 -11
  24. package/dist-types/commands/UpdateNotificationCommand.d.ts +2 -2
  25. package/dist-types/commands/UpdateSubscriberCommand.d.ts +3 -3
  26. package/dist-types/models/models_0.d.ts +147 -77
  27. package/dist-types/ts3.4/models/models_0.d.ts +96 -77
  28. 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 enum ThresholdType {
12
- ABSOLUTE_VALUE = "ABSOLUTE_VALUE",
13
- PERCENTAGE = "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 enum ActionType {
20
- IAM = "APPLY_IAM_POLICY",
21
- SCP = "APPLY_SCP_POLICY",
22
- SSM = "RUN_SSM_DOCUMENTS",
23
- }
24
- export declare enum ApprovalModel {
25
- AUTO = "AUTOMATIC",
26
- MANUAL = "MANUAL",
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 enum ActionSubType {
39
- STOP_EC2 = "STOP_EC2_INSTANCES",
40
- STOP_RDS = "STOP_RDS_INSTANCES",
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 enum NotificationType {
53
- ACTUAL = "ACTUAL",
54
- FORECASTED = "FORECASTED",
55
- }
56
- export declare enum ActionStatus {
57
- Execution_Failure = "EXECUTION_FAILURE",
58
- Execution_In_Progress = "EXECUTION_IN_PROGRESS",
59
- Execution_Success = "EXECUTION_SUCCESS",
60
- Pending = "PENDING",
61
- Reset_Failure = "RESET_FAILURE",
62
- Reset_In_Progress = "RESET_IN_PROGRESS",
63
- Reverse_Failure = "REVERSE_FAILURE",
64
- Reverse_In_Progress = "REVERSE_IN_PROGRESS",
65
- Reverse_Success = "REVERSE_SUCCESS",
66
- Standby = "STANDBY",
67
- }
68
- export declare enum SubscriptionType {
69
- EMAIL = "EMAIL",
70
- SNS = "SNS",
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 enum EventType {
93
- CreateAction = "CREATE_ACTION",
94
- DeleteAction = "DELETE_ACTION",
95
- ExecuteAction = "EXECUTE_ACTION",
96
- System = "SYSTEM",
97
- UpdateAction = "UPDATE_ACTION",
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 enum AutoAdjustType {
106
- FORECAST = "FORECAST",
107
- HISTORICAL = "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 enum BudgetType {
123
- Cost = "COST",
124
- RICoverage = "RI_COVERAGE",
125
- RIUtilization = "RI_UTILIZATION",
126
- SPCoverage = "SAVINGS_PLANS_COVERAGE",
127
- SPUtilization = "SAVINGS_PLANS_UTILIZATION",
128
- Usage = "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 enum TimeUnit {
152
- ANNUALLY = "ANNUALLY",
153
- DAILY = "DAILY",
154
- MONTHLY = "MONTHLY",
155
- QUARTERLY = "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 enum ComparisonOperator {
171
- EQUAL_TO = "EQUAL_TO",
172
- GREATER_THAN = "GREATER_THAN",
173
- LESS_THAN = "LESS_THAN",
174
- }
175
- export declare enum NotificationState {
176
- ALARM = "ALARM",
177
- OK = "OK",
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 enum ExecutionType {
440
- ApproveBudgetAction = "APPROVE_BUDGET_ACTION",
441
- ResetBudgetAction = "RESET_BUDGET_ACTION",
442
- RetryBudgetAction = "RETRY_BUDGET_ACTION",
443
- ReverseBudgetAction = "REVERSE_BUDGET_ACTION",
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.300.0",
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.300.0",
25
- "@aws-sdk/config-resolver": "3.300.0",
26
- "@aws-sdk/credential-provider-node": "3.300.0",
27
- "@aws-sdk/fetch-http-handler": "3.296.0",
28
- "@aws-sdk/hash-node": "3.296.0",
29
- "@aws-sdk/invalid-dependency": "3.296.0",
30
- "@aws-sdk/middleware-content-length": "3.296.0",
31
- "@aws-sdk/middleware-endpoint": "3.299.0",
32
- "@aws-sdk/middleware-host-header": "3.296.0",
33
- "@aws-sdk/middleware-logger": "3.296.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.296.0",
35
- "@aws-sdk/middleware-retry": "3.300.0",
36
- "@aws-sdk/middleware-serde": "3.296.0",
37
- "@aws-sdk/middleware-signing": "3.299.0",
38
- "@aws-sdk/middleware-stack": "3.296.0",
39
- "@aws-sdk/middleware-user-agent": "3.299.0",
40
- "@aws-sdk/node-config-provider": "3.300.0",
41
- "@aws-sdk/node-http-handler": "3.296.0",
42
- "@aws-sdk/protocol-http": "3.296.0",
43
- "@aws-sdk/smithy-client": "3.296.0",
44
- "@aws-sdk/types": "3.296.0",
45
- "@aws-sdk/url-parser": "3.296.0",
46
- "@aws-sdk/util-base64": "3.295.0",
47
- "@aws-sdk/util-body-length-browser": "3.295.0",
48
- "@aws-sdk/util-body-length-node": "3.295.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.296.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.300.0",
51
- "@aws-sdk/util-endpoints": "3.296.0",
52
- "@aws-sdk/util-retry": "3.296.0",
53
- "@aws-sdk/util-user-agent-browser": "3.299.0",
54
- "@aws-sdk/util-user-agent-node": "3.300.0",
55
- "@aws-sdk/util-utf8": "3.295.0",
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.295.0",
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",