@aws-sdk/client-budgets 3.971.0 → 3.974.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/index.js CHANGED
@@ -561,8 +561,8 @@ var BudgetNotificationsForAccount$ = [3, n0, _BNFA,
561
561
  ];
562
562
  var BudgetPerformanceHistory$ = [3, n0, _BPH,
563
563
  0,
564
- [_BN, _BT, _CF, _CT, _TU, _BVA, _BAAAL],
565
- [0, 0, [2, n0, _CF, 0, 0, 64 | 0], () => CostTypes$, 0, 0, () => BudgetedAndActualAmountsList]
564
+ [_BN, _BT, _CF, _CT, _TU, _BVA, _BAAAL, _FE, _Me],
565
+ [0, 0, [2, n0, _CF, 0, 0, 64 | 0], () => CostTypes$, 0, 0, () => BudgetedAndActualAmountsList, () => Expression$, 64 | 0]
566
566
  ];
567
567
  var CalculatedSpend$ = [3, n0, _CS,
568
568
  0,
@@ -276,8 +276,8 @@ export var BudgetNotificationsForAccount$ = [3, n0, _BNFA,
276
276
  ];
277
277
  export var BudgetPerformanceHistory$ = [3, n0, _BPH,
278
278
  0,
279
- [_BN, _BT, _CF, _CT, _TU, _BVA, _BAAAL],
280
- [0, 0, [2, n0, _CF, 0, 0, 64 | 0], () => CostTypes$, 0, 0, () => BudgetedAndActualAmountsList]
279
+ [_BN, _BT, _CF, _CT, _TU, _BVA, _BAAAL, _FE, _Me],
280
+ [0, 0, [2, n0, _CF, 0, 0, 64 | 0], () => CostTypes$, 0, 0, () => BudgetedAndActualAmountsList, () => Expression$, 64 | 0]
281
281
  ];
282
282
  export var CalculatedSpend$ = [3, n0, _CS,
283
283
  0,
@@ -88,6 +88,76 @@ declare const DescribeBudgetPerformanceHistoryCommand_base: {
88
88
  * // },
89
89
  * // },
90
90
  * // ],
91
+ * // FilterExpression: { // Expression
92
+ * // Or: [ // Expressions
93
+ * // {
94
+ * // Or: [
95
+ * // "<Expression>",
96
+ * // ],
97
+ * // And: [
98
+ * // "<Expression>",
99
+ * // ],
100
+ * // Not: "<Expression>",
101
+ * // Dimensions: { // ExpressionDimensionValues
102
+ * // Key: "AZ" || "INSTANCE_TYPE" || "LINKED_ACCOUNT" || "LINKED_ACCOUNT_NAME" || "OPERATION" || "PURCHASE_TYPE" || "REGION" || "SERVICE" || "SERVICE_CODE" || "USAGE_TYPE" || "USAGE_TYPE_GROUP" || "RECORD_TYPE" || "OPERATING_SYSTEM" || "TENANCY" || "SCOPE" || "PLATFORM" || "SUBSCRIPTION_ID" || "LEGAL_ENTITY_NAME" || "INVOICING_ENTITY" || "DEPLOYMENT_OPTION" || "DATABASE_ENGINE" || "CACHE_ENGINE" || "INSTANCE_TYPE_FAMILY" || "BILLING_ENTITY" || "RESERVATION_ID" || "RESOURCE_ID" || "RIGHTSIZING_TYPE" || "SAVINGS_PLANS_TYPE" || "SAVINGS_PLAN_ARN" || "PAYMENT_OPTION" || "RESERVATION_MODIFIED" || "TAG_KEY" || "COST_CATEGORY_NAME", // required
103
+ * // Values: [ // Values // required
104
+ * // "STRING_VALUE",
105
+ * // ],
106
+ * // MatchOptions: [ // MatchOptions
107
+ * // "EQUALS" || "ABSENT" || "STARTS_WITH" || "ENDS_WITH" || "CONTAINS" || "GREATER_THAN_OR_EQUAL" || "CASE_SENSITIVE" || "CASE_INSENSITIVE",
108
+ * // ],
109
+ * // },
110
+ * // Tags: { // TagValues
111
+ * // Key: "STRING_VALUE",
112
+ * // Values: [
113
+ * // "STRING_VALUE",
114
+ * // ],
115
+ * // MatchOptions: [
116
+ * // "EQUALS" || "ABSENT" || "STARTS_WITH" || "ENDS_WITH" || "CONTAINS" || "GREATER_THAN_OR_EQUAL" || "CASE_SENSITIVE" || "CASE_INSENSITIVE",
117
+ * // ],
118
+ * // },
119
+ * // CostCategories: { // CostCategoryValues
120
+ * // Key: "STRING_VALUE",
121
+ * // Values: [
122
+ * // "STRING_VALUE",
123
+ * // ],
124
+ * // MatchOptions: [
125
+ * // "EQUALS" || "ABSENT" || "STARTS_WITH" || "ENDS_WITH" || "CONTAINS" || "GREATER_THAN_OR_EQUAL" || "CASE_SENSITIVE" || "CASE_INSENSITIVE",
126
+ * // ],
127
+ * // },
128
+ * // },
129
+ * // ],
130
+ * // And: [
131
+ * // "<Expression>",
132
+ * // ],
133
+ * // Not: "<Expression>",
134
+ * // Dimensions: {
135
+ * // Key: "AZ" || "INSTANCE_TYPE" || "LINKED_ACCOUNT" || "LINKED_ACCOUNT_NAME" || "OPERATION" || "PURCHASE_TYPE" || "REGION" || "SERVICE" || "SERVICE_CODE" || "USAGE_TYPE" || "USAGE_TYPE_GROUP" || "RECORD_TYPE" || "OPERATING_SYSTEM" || "TENANCY" || "SCOPE" || "PLATFORM" || "SUBSCRIPTION_ID" || "LEGAL_ENTITY_NAME" || "INVOICING_ENTITY" || "DEPLOYMENT_OPTION" || "DATABASE_ENGINE" || "CACHE_ENGINE" || "INSTANCE_TYPE_FAMILY" || "BILLING_ENTITY" || "RESERVATION_ID" || "RESOURCE_ID" || "RIGHTSIZING_TYPE" || "SAVINGS_PLANS_TYPE" || "SAVINGS_PLAN_ARN" || "PAYMENT_OPTION" || "RESERVATION_MODIFIED" || "TAG_KEY" || "COST_CATEGORY_NAME", // required
136
+ * // Values: [ // required
137
+ * // "STRING_VALUE",
138
+ * // ],
139
+ * // MatchOptions: [
140
+ * // "EQUALS" || "ABSENT" || "STARTS_WITH" || "ENDS_WITH" || "CONTAINS" || "GREATER_THAN_OR_EQUAL" || "CASE_SENSITIVE" || "CASE_INSENSITIVE",
141
+ * // ],
142
+ * // },
143
+ * // Tags: {
144
+ * // Key: "STRING_VALUE",
145
+ * // Values: [
146
+ * // "STRING_VALUE",
147
+ * // ],
148
+ * // MatchOptions: [
149
+ * // "EQUALS" || "ABSENT" || "STARTS_WITH" || "ENDS_WITH" || "CONTAINS" || "GREATER_THAN_OR_EQUAL" || "CASE_SENSITIVE" || "CASE_INSENSITIVE",
150
+ * // ],
151
+ * // },
152
+ * // CostCategories: {
153
+ * // Key: "STRING_VALUE",
154
+ * // Values: "<Values>",
155
+ * // MatchOptions: "<MatchOptions>",
156
+ * // },
157
+ * // },
158
+ * // Metrics: [ // Metrics
159
+ * // "BlendedCost" || "UnblendedCost" || "AmortizedCost" || "NetUnblendedCost" || "NetAmortizedCost" || "UsageQuantity" || "NormalizedUsageAmount" || "Hours",
160
+ * // ],
91
161
  * // },
92
162
  * // NextToken: "STRING_VALUE",
93
163
  * // };
@@ -1283,74 +1283,6 @@ export interface BudgetedAndActualAmounts {
1283
1283
  */
1284
1284
  TimePeriod?: TimePeriod | undefined;
1285
1285
  }
1286
- /**
1287
- * <p>A history of the state of a budget at the end of the budget's specified time
1288
- * period.</p>
1289
- * @public
1290
- */
1291
- export interface BudgetPerformanceHistory {
1292
- /**
1293
- * <p> A string that represents the budget name. The ":" and "\" characters, and the
1294
- * "/action/" substring, aren't allowed.</p>
1295
- * @public
1296
- */
1297
- BudgetName?: string | undefined;
1298
- /**
1299
- * <p> The type of a budget. It must be one of the following types: </p>
1300
- * <p>
1301
- * <code>COST</code>, <code>USAGE</code>, <code>RI_UTILIZATION</code>,
1302
- * <code>RI_COVERAGE</code>, <code>SAVINGS_PLANS_UTILIZATION</code>, or
1303
- * <code>SAVINGS_PLANS_COVERAGE</code>.</p>
1304
- * @public
1305
- */
1306
- BudgetType?: BudgetType | undefined;
1307
- /**
1308
- * <p>The history of the cost filters for a budget during the specified time period.</p>
1309
- * @public
1310
- */
1311
- CostFilters?: Record<string, string[]> | undefined;
1312
- /**
1313
- * <p>The history of the cost types for a budget during the specified time period.</p>
1314
- * @public
1315
- */
1316
- CostTypes?: CostTypes | undefined;
1317
- /**
1318
- * <p> The time unit of the budget, such as MONTHLY or QUARTERLY.</p>
1319
- * @public
1320
- */
1321
- TimeUnit?: TimeUnit | undefined;
1322
- /**
1323
- * <p>The Amazon Resource Name (ARN) that uniquely identifies a specific billing view. The ARN is
1324
- * used to specify which particular billing view you want to interact with or retrieve
1325
- * information from when making API calls related to Amazon Web Services Billing and Cost
1326
- * Management features. The BillingViewArn can be retrieved by calling the ListBillingViews
1327
- * API.</p>
1328
- * @public
1329
- */
1330
- BillingViewArn?: string | undefined;
1331
- /**
1332
- * <p>A list of amounts of cost or usage that you created budgets for, which are compared to
1333
- * your actual costs or usage.</p>
1334
- * @public
1335
- */
1336
- BudgetedAndActualAmountsList?: BudgetedAndActualAmounts[] | undefined;
1337
- }
1338
- /**
1339
- * @public
1340
- */
1341
- export interface DescribeBudgetPerformanceHistoryResponse {
1342
- /**
1343
- * <p>The history of how often the budget has gone into an <code>ALARM</code> state.</p>
1344
- * <p>For <code>DAILY</code> budgets, the history saves the state of the budget for the last 60 days. For <code>MONTHLY</code> budgets, the history saves the state of the budget for the current month plus the last 12 months. For <code>QUARTERLY</code> budgets, the history saves the state of the budget for the last four quarters.</p>
1345
- * @public
1346
- */
1347
- BudgetPerformanceHistory?: BudgetPerformanceHistory | undefined;
1348
- /**
1349
- * <p> A generic string.</p>
1350
- * @public
1351
- */
1352
- NextToken?: string | undefined;
1353
- }
1354
1286
  /**
1355
1287
  * <p> Request of DescribeBudgets </p>
1356
1288
  * @public
@@ -1958,6 +1890,68 @@ export interface Budget {
1958
1890
  */
1959
1891
  HealthStatus?: HealthStatus | undefined;
1960
1892
  }
1893
+ /**
1894
+ * <p>A history of the state of a budget at the end of the budget's specified time
1895
+ * period.</p>
1896
+ * @public
1897
+ */
1898
+ export interface BudgetPerformanceHistory {
1899
+ /**
1900
+ * <p> A string that represents the budget name. The ":" and "\" characters, and the
1901
+ * "/action/" substring, aren't allowed.</p>
1902
+ * @public
1903
+ */
1904
+ BudgetName?: string | undefined;
1905
+ /**
1906
+ * <p> The type of a budget. It must be one of the following types: </p>
1907
+ * <p>
1908
+ * <code>COST</code>, <code>USAGE</code>, <code>RI_UTILIZATION</code>,
1909
+ * <code>RI_COVERAGE</code>, <code>SAVINGS_PLANS_UTILIZATION</code>, or
1910
+ * <code>SAVINGS_PLANS_COVERAGE</code>.</p>
1911
+ * @public
1912
+ */
1913
+ BudgetType?: BudgetType | undefined;
1914
+ /**
1915
+ * <p>The history of the cost filters for a budget during the specified time period.</p>
1916
+ * @public
1917
+ */
1918
+ CostFilters?: Record<string, string[]> | undefined;
1919
+ /**
1920
+ * <p>The history of the cost types for a budget during the specified time period.</p>
1921
+ * @public
1922
+ */
1923
+ CostTypes?: CostTypes | undefined;
1924
+ /**
1925
+ * <p> The time unit of the budget, such as MONTHLY or QUARTERLY.</p>
1926
+ * @public
1927
+ */
1928
+ TimeUnit?: TimeUnit | undefined;
1929
+ /**
1930
+ * <p>The Amazon Resource Name (ARN) that uniquely identifies a specific billing view. The ARN is
1931
+ * used to specify which particular billing view you want to interact with or retrieve
1932
+ * information from when making API calls related to Amazon Web Services Billing and Cost
1933
+ * Management features. The BillingViewArn can be retrieved by calling the ListBillingViews
1934
+ * API.</p>
1935
+ * @public
1936
+ */
1937
+ BillingViewArn?: string | undefined;
1938
+ /**
1939
+ * <p>A list of amounts of cost or usage that you created budgets for, which are compared to
1940
+ * your actual costs or usage.</p>
1941
+ * @public
1942
+ */
1943
+ BudgetedAndActualAmountsList?: BudgetedAndActualAmounts[] | undefined;
1944
+ /**
1945
+ * <p>The filtering dimensions for the budget and their corresponding values.</p>
1946
+ * @public
1947
+ */
1948
+ FilterExpression?: Expression | undefined;
1949
+ /**
1950
+ * <p>The definition for how the budget data is aggregated.</p>
1951
+ * @public
1952
+ */
1953
+ Metrics?: Metric[] | undefined;
1954
+ }
1961
1955
  /**
1962
1956
  * <p> Request of CreateBudget </p>
1963
1957
  * @public
@@ -1985,6 +1979,22 @@ export interface CreateBudgetRequest {
1985
1979
  */
1986
1980
  ResourceTags?: ResourceTag[] | undefined;
1987
1981
  }
1982
+ /**
1983
+ * @public
1984
+ */
1985
+ export interface DescribeBudgetPerformanceHistoryResponse {
1986
+ /**
1987
+ * <p>The history of how often the budget has gone into an <code>ALARM</code> state.</p>
1988
+ * <p>For <code>DAILY</code> budgets, the history saves the state of the budget for the last 60 days. For <code>MONTHLY</code> budgets, the history saves the state of the budget for the current month plus the last 12 months. For <code>QUARTERLY</code> budgets, the history saves the state of the budget for the last four quarters.</p>
1989
+ * @public
1990
+ */
1991
+ BudgetPerformanceHistory?: BudgetPerformanceHistory | undefined;
1992
+ /**
1993
+ * <p> A generic string.</p>
1994
+ * @public
1995
+ */
1996
+ NextToken?: string | undefined;
1997
+ }
1988
1998
  /**
1989
1999
  * <p> Response of DescribeBudget </p>
1990
2000
  * @public
@@ -269,19 +269,6 @@ export interface BudgetedAndActualAmounts {
269
269
  ActualAmount?: Spend | undefined;
270
270
  TimePeriod?: TimePeriod | undefined;
271
271
  }
272
- export interface BudgetPerformanceHistory {
273
- BudgetName?: string | undefined;
274
- BudgetType?: BudgetType | undefined;
275
- CostFilters?: Record<string, string[]> | undefined;
276
- CostTypes?: CostTypes | undefined;
277
- TimeUnit?: TimeUnit | undefined;
278
- BillingViewArn?: string | undefined;
279
- BudgetedAndActualAmountsList?: BudgetedAndActualAmounts[] | undefined;
280
- }
281
- export interface DescribeBudgetPerformanceHistoryResponse {
282
- BudgetPerformanceHistory?: BudgetPerformanceHistory | undefined;
283
- NextToken?: string | undefined;
284
- }
285
272
  export interface DescribeBudgetsRequest {
286
273
  AccountId: string | undefined;
287
274
  MaxResults?: number | undefined;
@@ -395,12 +382,27 @@ export interface Budget {
395
382
  BillingViewArn?: string | undefined;
396
383
  HealthStatus?: HealthStatus | undefined;
397
384
  }
385
+ export interface BudgetPerformanceHistory {
386
+ BudgetName?: string | undefined;
387
+ BudgetType?: BudgetType | undefined;
388
+ CostFilters?: Record<string, string[]> | undefined;
389
+ CostTypes?: CostTypes | undefined;
390
+ TimeUnit?: TimeUnit | undefined;
391
+ BillingViewArn?: string | undefined;
392
+ BudgetedAndActualAmountsList?: BudgetedAndActualAmounts[] | undefined;
393
+ FilterExpression?: Expression | undefined;
394
+ Metrics?: Metric[] | undefined;
395
+ }
398
396
  export interface CreateBudgetRequest {
399
397
  AccountId: string | undefined;
400
398
  Budget: Budget | undefined;
401
399
  NotificationsWithSubscribers?: NotificationWithSubscribers[] | undefined;
402
400
  ResourceTags?: ResourceTag[] | undefined;
403
401
  }
402
+ export interface DescribeBudgetPerformanceHistoryResponse {
403
+ BudgetPerformanceHistory?: BudgetPerformanceHistory | undefined;
404
+ NextToken?: string | undefined;
405
+ }
404
406
  export interface DescribeBudgetResponse {
405
407
  Budget?: Budget | undefined;
406
408
  }
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.971.0",
4
+ "version": "3.974.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-budgets",
@@ -9,7 +9,7 @@
9
9
  "build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
10
10
  "build:types": "tsc -p tsconfig.types.json",
11
11
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
12
- "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
12
+ "clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
13
13
  "extract:docs": "api-extractor run --local",
14
14
  "generate:client": "node ../../scripts/generate-clients/single-service --solo budgets",
15
15
  "test:index": "tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs"
@@ -21,38 +21,38 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/core": "3.970.0",
25
- "@aws-sdk/credential-provider-node": "3.971.0",
26
- "@aws-sdk/middleware-host-header": "3.969.0",
27
- "@aws-sdk/middleware-logger": "3.969.0",
28
- "@aws-sdk/middleware-recursion-detection": "3.969.0",
29
- "@aws-sdk/middleware-user-agent": "3.970.0",
30
- "@aws-sdk/region-config-resolver": "3.969.0",
31
- "@aws-sdk/types": "3.969.0",
32
- "@aws-sdk/util-endpoints": "3.970.0",
33
- "@aws-sdk/util-user-agent-browser": "3.969.0",
34
- "@aws-sdk/util-user-agent-node": "3.971.0",
24
+ "@aws-sdk/core": "^3.973.0",
25
+ "@aws-sdk/credential-provider-node": "^3.972.1",
26
+ "@aws-sdk/middleware-host-header": "^3.972.1",
27
+ "@aws-sdk/middleware-logger": "^3.972.1",
28
+ "@aws-sdk/middleware-recursion-detection": "^3.972.1",
29
+ "@aws-sdk/middleware-user-agent": "^3.972.1",
30
+ "@aws-sdk/region-config-resolver": "^3.972.1",
31
+ "@aws-sdk/types": "^3.973.0",
32
+ "@aws-sdk/util-endpoints": "3.972.0",
33
+ "@aws-sdk/util-user-agent-browser": "^3.972.1",
34
+ "@aws-sdk/util-user-agent-node": "^3.972.1",
35
35
  "@smithy/config-resolver": "^4.4.6",
36
- "@smithy/core": "^3.20.6",
36
+ "@smithy/core": "^3.21.0",
37
37
  "@smithy/fetch-http-handler": "^5.3.9",
38
38
  "@smithy/hash-node": "^4.2.8",
39
39
  "@smithy/invalid-dependency": "^4.2.8",
40
40
  "@smithy/middleware-content-length": "^4.2.8",
41
- "@smithy/middleware-endpoint": "^4.4.7",
42
- "@smithy/middleware-retry": "^4.4.23",
41
+ "@smithy/middleware-endpoint": "^4.4.10",
42
+ "@smithy/middleware-retry": "^4.4.26",
43
43
  "@smithy/middleware-serde": "^4.2.9",
44
44
  "@smithy/middleware-stack": "^4.2.8",
45
45
  "@smithy/node-config-provider": "^4.3.8",
46
46
  "@smithy/node-http-handler": "^4.4.8",
47
47
  "@smithy/protocol-http": "^5.3.8",
48
- "@smithy/smithy-client": "^4.10.8",
48
+ "@smithy/smithy-client": "^4.10.11",
49
49
  "@smithy/types": "^4.12.0",
50
50
  "@smithy/url-parser": "^4.2.8",
51
51
  "@smithy/util-base64": "^4.3.0",
52
52
  "@smithy/util-body-length-browser": "^4.2.0",
53
53
  "@smithy/util-body-length-node": "^4.2.1",
54
- "@smithy/util-defaults-mode-browser": "^4.3.22",
55
- "@smithy/util-defaults-mode-node": "^4.2.25",
54
+ "@smithy/util-defaults-mode-browser": "^4.3.25",
55
+ "@smithy/util-defaults-mode-node": "^4.2.28",
56
56
  "@smithy/util-endpoints": "^3.2.8",
57
57
  "@smithy/util-middleware": "^4.2.8",
58
58
  "@smithy/util-retry": "^4.2.8",
@@ -64,7 +64,7 @@
64
64
  "@types/node": "^20.14.8",
65
65
  "concurrently": "7.0.0",
66
66
  "downlevel-dts": "0.10.1",
67
- "rimraf": "5.0.10",
67
+ "premove": "4.0.0",
68
68
  "typescript": "~5.8.3"
69
69
  },
70
70
  "engines": {