Skip to content

Commit e96bea8

Browse files
author
awstools
committed
feat(client-budgets): As part of CAE tagging integration we need to update our budget names regex filter to prevent customers from using "/action/" in their budget names.
1 parent 54b8be8 commit e96bea8

29 files changed

+1353
-1356
lines changed

clients/client-budgets/src/Budgets.ts

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -517,48 +517,48 @@ export interface Budgets {
517517
/**
518518
* @public
519519
* <p>Use the Amazon Web Services Budgets API to plan your service usage, service costs, and instance reservations. This API reference provides descriptions, syntax, and usage examples for each of the actions and data types for the Amazon Web Services Budgets feature. </p>
520-
* <p>Budgets provide you with a way to see the following information:</p>
521-
* <ul>
520+
* <p>Budgets provide you with a way to see the following information:</p>
521+
* <ul>
522522
* <li>
523-
* <p>How close your plan is to your budgeted amount or to the free tier limits</p>
524-
* </li>
523+
* <p>How close your plan is to your budgeted amount or to the free tier limits</p>
524+
* </li>
525525
* <li>
526-
* <p>Your usage-to-date, including how much you've used of your Reserved Instances (RIs)</p>
527-
* </li>
526+
* <p>Your usage-to-date, including how much you've used of your Reserved Instances (RIs)</p>
527+
* </li>
528528
* <li>
529-
* <p>Your current estimated charges from Amazon Web Services, and how much your predicted usage will accrue in charges by the end of the month</p>
530-
* </li>
529+
* <p>Your current estimated charges from Amazon Web Services, and how much your predicted usage will accrue in charges by the end of the month</p>
530+
* </li>
531531
* <li>
532-
* <p>How much of your budget has been used</p>
533-
* </li>
532+
* <p>How much of your budget has been used</p>
533+
* </li>
534534
* </ul>
535-
* <p>Amazon Web Services updates your budget status several times a day. Budgets track your unblended costs, subscriptions, refunds, and RIs. You can create the following types of budgets:</p>
536-
* <ul>
535+
* <p>Amazon Web Services updates your budget status several times a day. Budgets track your unblended costs, subscriptions, refunds, and RIs. You can create the following types of budgets:</p>
536+
* <ul>
537537
* <li>
538-
* <p>
538+
* <p>
539539
* <b>Cost budgets</b> - Plan how much you want to spend on a service.</p>
540-
* </li>
540+
* </li>
541541
* <li>
542-
* <p>
542+
* <p>
543543
* <b>Usage budgets</b> - Plan how much you want to use one or more services.</p>
544-
* </li>
544+
* </li>
545545
* <li>
546-
* <p>
546+
* <p>
547547
* <b>RI utilization budgets</b> - Define a utilization threshold, and receive alerts when your RI usage falls below that threshold. This lets you see if your RIs are unused or under-utilized.</p>
548-
* </li>
548+
* </li>
549549
* <li>
550-
* <p>
550+
* <p>
551551
* <b>RI coverage budgets</b> - Define a coverage threshold, and receive alerts when the number of your instance hours that are covered by RIs fall below that threshold. This lets you see how much of your instance usage is covered by a reservation.</p>
552-
* </li>
552+
* </li>
553553
* </ul>
554-
* <p>Service Endpoint</p>
555-
* <p>The Amazon Web Services Budgets API provides the following endpoint:</p>
556-
* <ul>
554+
* <p>Service Endpoint</p>
555+
* <p>The Amazon Web Services Budgets API provides the following endpoint:</p>
556+
* <ul>
557557
* <li>
558-
* <p>https://budgets.amazonaws.com</p>
559-
* </li>
558+
* <p>https://budgets.amazonaws.com</p>
559+
* </li>
560560
* </ul>
561-
* <p>For information about costs that are associated with the Amazon Web Services Budgets API, see <a href="https://aws.amazon.com/aws-cost-management/pricing/">Amazon Web Services Cost Management Pricing</a>.</p>
561+
* <p>For information about costs that are associated with the Amazon Web Services Budgets API, see <a href="https://aws.amazon.com/aws-cost-management/pricing/">Amazon Web Services Cost Management Pricing</a>.</p>
562562
*/
563563
export class Budgets extends BudgetsClient implements Budgets {}
564564
createAggregatedClient(commands, Budgets);

clients/client-budgets/src/BudgetsClient.ts

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -330,48 +330,48 @@ export interface BudgetsClientResolvedConfig extends BudgetsClientResolvedConfig
330330
/**
331331
* @public
332332
* <p>Use the Amazon Web Services Budgets API to plan your service usage, service costs, and instance reservations. This API reference provides descriptions, syntax, and usage examples for each of the actions and data types for the Amazon Web Services Budgets feature. </p>
333-
* <p>Budgets provide you with a way to see the following information:</p>
334-
* <ul>
333+
* <p>Budgets provide you with a way to see the following information:</p>
334+
* <ul>
335335
* <li>
336-
* <p>How close your plan is to your budgeted amount or to the free tier limits</p>
337-
* </li>
336+
* <p>How close your plan is to your budgeted amount or to the free tier limits</p>
337+
* </li>
338338
* <li>
339-
* <p>Your usage-to-date, including how much you've used of your Reserved Instances (RIs)</p>
340-
* </li>
339+
* <p>Your usage-to-date, including how much you've used of your Reserved Instances (RIs)</p>
340+
* </li>
341341
* <li>
342-
* <p>Your current estimated charges from Amazon Web Services, and how much your predicted usage will accrue in charges by the end of the month</p>
343-
* </li>
342+
* <p>Your current estimated charges from Amazon Web Services, and how much your predicted usage will accrue in charges by the end of the month</p>
343+
* </li>
344344
* <li>
345-
* <p>How much of your budget has been used</p>
346-
* </li>
345+
* <p>How much of your budget has been used</p>
346+
* </li>
347347
* </ul>
348-
* <p>Amazon Web Services updates your budget status several times a day. Budgets track your unblended costs, subscriptions, refunds, and RIs. You can create the following types of budgets:</p>
349-
* <ul>
348+
* <p>Amazon Web Services updates your budget status several times a day. Budgets track your unblended costs, subscriptions, refunds, and RIs. You can create the following types of budgets:</p>
349+
* <ul>
350350
* <li>
351-
* <p>
351+
* <p>
352352
* <b>Cost budgets</b> - Plan how much you want to spend on a service.</p>
353-
* </li>
353+
* </li>
354354
* <li>
355-
* <p>
355+
* <p>
356356
* <b>Usage budgets</b> - Plan how much you want to use one or more services.</p>
357-
* </li>
357+
* </li>
358358
* <li>
359-
* <p>
359+
* <p>
360360
* <b>RI utilization budgets</b> - Define a utilization threshold, and receive alerts when your RI usage falls below that threshold. This lets you see if your RIs are unused or under-utilized.</p>
361-
* </li>
361+
* </li>
362362
* <li>
363-
* <p>
363+
* <p>
364364
* <b>RI coverage budgets</b> - Define a coverage threshold, and receive alerts when the number of your instance hours that are covered by RIs fall below that threshold. This lets you see how much of your instance usage is covered by a reservation.</p>
365-
* </li>
365+
* </li>
366366
* </ul>
367-
* <p>Service Endpoint</p>
368-
* <p>The Amazon Web Services Budgets API provides the following endpoint:</p>
369-
* <ul>
367+
* <p>Service Endpoint</p>
368+
* <p>The Amazon Web Services Budgets API provides the following endpoint:</p>
369+
* <ul>
370370
* <li>
371-
* <p>https://budgets.amazonaws.com</p>
372-
* </li>
371+
* <p>https://budgets.amazonaws.com</p>
372+
* </li>
373373
* </ul>
374-
* <p>For information about costs that are associated with the Amazon Web Services Budgets API, see <a href="https://aws.amazon.com/aws-cost-management/pricing/">Amazon Web Services Cost Management Pricing</a>.</p>
374+
* <p>For information about costs that are associated with the Amazon Web Services Budgets API, see <a href="https://aws.amazon.com/aws-cost-management/pricing/">Amazon Web Services Cost Management Pricing</a>.</p>
375375
*/
376376
export class BudgetsClient extends __Client<
377377
__HttpHandlerOptions,

clients/client-budgets/src/commands/CreateBudgetActionCommand.ts

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ export interface CreateBudgetActionCommandOutput extends CreateBudgetActionRespo
5252
* const input = { // CreateBudgetActionRequest
5353
* AccountId: "STRING_VALUE", // required
5454
* BudgetName: "STRING_VALUE", // required
55-
* NotificationType: "STRING_VALUE", // required
56-
* ActionType: "STRING_VALUE", // required
55+
* NotificationType: "ACTUAL" || "FORECASTED", // required
56+
* ActionType: "APPLY_IAM_POLICY" || "APPLY_SCP_POLICY" || "RUN_SSM_DOCUMENTS", // required
5757
* ActionThreshold: { // ActionThreshold
5858
* ActionThresholdValue: Number("double"), // required
59-
* ActionThresholdType: "STRING_VALUE", // required
59+
* ActionThresholdType: "PERCENTAGE" || "ABSOLUTE_VALUE", // required
6060
* },
6161
* Definition: { // Definition
6262
* IamActionDefinition: { // IamActionDefinition
@@ -78,18 +78,18 @@ export interface CreateBudgetActionCommandOutput extends CreateBudgetActionRespo
7878
* ],
7979
* },
8080
* SsmActionDefinition: { // SsmActionDefinition
81-
* ActionSubType: "STRING_VALUE", // required
81+
* ActionSubType: "STOP_EC2_INSTANCES" || "STOP_RDS_INSTANCES", // required
8282
* Region: "STRING_VALUE", // required
8383
* InstanceIds: [ // InstanceIds // required
8484
* "STRING_VALUE",
8585
* ],
8686
* },
8787
* },
8888
* ExecutionRoleArn: "STRING_VALUE", // required
89-
* ApprovalModel: "STRING_VALUE", // required
89+
* ApprovalModel: "AUTOMATIC" || "MANUAL", // required
9090
* Subscribers: [ // Subscribers // required
9191
* { // Subscriber
92-
* SubscriptionType: "STRING_VALUE", // required
92+
* SubscriptionType: "SNS" || "EMAIL", // required
9393
* Address: "STRING_VALUE", // required
9494
* },
9595
* ],
@@ -129,9 +129,8 @@ export interface CreateBudgetActionCommandOutput extends CreateBudgetActionRespo
129129
* <p>We can’t locate the resource that you specified.</p>
130130
*
131131
* @throws {@link ThrottlingException} (client fault)
132-
* <p>
133-
* The number of API requests has exceeded the maximum allowed API request throttling limit for the account.
134-
* </p>
132+
* <p>The number of API requests has exceeded the maximum allowed API request throttling limit
133+
* for the account.</p>
135134
*
136135
* @throws {@link BudgetsServiceException}
137136
* <p>Base exception class for all service exceptions from Budgets service.</p>

clients/client-budgets/src/commands/CreateBudgetCommand.ts

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ export interface CreateBudgetCommandOutput extends CreateBudgetResponse, __Metad
3737
/**
3838
* @public
3939
* <p>Creates a budget and, if included, notifications and subscribers. </p>
40-
* <important>
41-
* <p>Only one of <code>BudgetLimit</code> or <code>PlannedBudgetLimits</code> can be present in the syntax at one time. Use the syntax that matches your case. The Request Syntax section shows the <code>BudgetLimit</code> syntax. For <code>PlannedBudgetLimits</code>, see the <a href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_budgets_CreateBudget.html#API_CreateBudget_Examples">Examples</a> section. </p>
42-
* </important>
40+
* <important>
41+
* <p>Only one of <code>BudgetLimit</code> or <code>PlannedBudgetLimits</code> can be present in the syntax at one time. Use the syntax that matches your case. The Request Syntax section shows the <code>BudgetLimit</code> syntax. For <code>PlannedBudgetLimits</code>, see the <a href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_budgets_CreateBudget.html#API_CreateBudget_Examples">Examples</a> section. </p>
42+
* </important>
4343
* @example
4444
* Use a bare-bones client and the command you need to make an API call.
4545
* ```javascript
@@ -78,7 +78,7 @@ export interface CreateBudgetCommandOutput extends CreateBudgetResponse, __Metad
7878
* IncludeDiscount: true || false,
7979
* UseAmortized: true || false,
8080
* },
81-
* TimeUnit: "STRING_VALUE", // required
81+
* TimeUnit: "DAILY" || "MONTHLY" || "QUARTERLY" || "ANNUALLY", // required
8282
* TimePeriod: { // TimePeriod
8383
* Start: new Date("TIMESTAMP"),
8484
* End: new Date("TIMESTAMP"),
@@ -93,10 +93,10 @@ export interface CreateBudgetCommandOutput extends CreateBudgetResponse, __Metad
9393
* Unit: "STRING_VALUE", // required
9494
* },
9595
* },
96-
* BudgetType: "STRING_VALUE", // required
96+
* BudgetType: "USAGE" || "COST" || "RI_UTILIZATION" || "RI_COVERAGE" || "SAVINGS_PLANS_UTILIZATION" || "SAVINGS_PLANS_COVERAGE", // required
9797
* LastUpdatedTime: new Date("TIMESTAMP"),
9898
* AutoAdjustData: { // AutoAdjustData
99-
* AutoAdjustType: "STRING_VALUE", // required
99+
* AutoAdjustType: "HISTORICAL" || "FORECAST", // required
100100
* HistoricalOptions: { // HistoricalOptions
101101
* BudgetAdjustmentPeriod: Number("int"), // required
102102
* LookBackAvailablePeriods: Number("int"),
@@ -107,15 +107,15 @@ export interface CreateBudgetCommandOutput extends CreateBudgetResponse, __Metad
107107
* NotificationsWithSubscribers: [ // NotificationWithSubscribersList
108108
* { // NotificationWithSubscribers
109109
* Notification: { // Notification
110-
* NotificationType: "STRING_VALUE", // required
111-
* ComparisonOperator: "STRING_VALUE", // required
110+
* NotificationType: "ACTUAL" || "FORECASTED", // required
111+
* ComparisonOperator: "GREATER_THAN" || "LESS_THAN" || "EQUAL_TO", // required
112112
* Threshold: Number("double"), // required
113-
* ThresholdType: "STRING_VALUE",
114-
* NotificationState: "STRING_VALUE",
113+
* ThresholdType: "PERCENTAGE" || "ABSOLUTE_VALUE",
114+
* NotificationState: "OK" || "ALARM",
115115
* },
116116
* Subscribers: [ // Subscribers // required
117117
* { // Subscriber
118-
* SubscriptionType: "STRING_VALUE", // required
118+
* SubscriptionType: "SNS" || "EMAIL", // required
119119
* Address: "STRING_VALUE", // required
120120
* },
121121
* ],
@@ -150,9 +150,8 @@ export interface CreateBudgetCommandOutput extends CreateBudgetResponse, __Metad
150150
* <p>An error on the client occurred. Typically, the cause is an invalid input value.</p>
151151
*
152152
* @throws {@link ThrottlingException} (client fault)
153-
* <p>
154-
* The number of API requests has exceeded the maximum allowed API request throttling limit for the account.
155-
* </p>
153+
* <p>The number of API requests has exceeded the maximum allowed API request throttling limit
154+
* for the account.</p>
156155
*
157156
* @throws {@link BudgetsServiceException}
158157
* <p>Base exception class for all service exceptions from Budgets service.</p>

clients/client-budgets/src/commands/CreateNotificationCommand.ts

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,15 @@ export interface CreateNotificationCommandOutput extends CreateNotificationRespo
5151
* AccountId: "STRING_VALUE", // required
5252
* BudgetName: "STRING_VALUE", // required
5353
* Notification: { // Notification
54-
* NotificationType: "STRING_VALUE", // required
55-
* ComparisonOperator: "STRING_VALUE", // required
54+
* NotificationType: "ACTUAL" || "FORECASTED", // required
55+
* ComparisonOperator: "GREATER_THAN" || "LESS_THAN" || "EQUAL_TO", // required
5656
* Threshold: Number("double"), // required
57-
* ThresholdType: "STRING_VALUE",
58-
* NotificationState: "STRING_VALUE",
57+
* ThresholdType: "PERCENTAGE" || "ABSOLUTE_VALUE",
58+
* NotificationState: "OK" || "ALARM",
5959
* },
6060
* Subscribers: [ // Subscribers // required
6161
* { // Subscriber
62-
* SubscriptionType: "STRING_VALUE", // required
62+
* SubscriptionType: "SNS" || "EMAIL", // required
6363
* Address: "STRING_VALUE", // required
6464
* },
6565
* ],
@@ -95,9 +95,8 @@ export interface CreateNotificationCommandOutput extends CreateNotificationRespo
9595
* <p>We can’t locate the resource that you specified.</p>
9696
*
9797
* @throws {@link ThrottlingException} (client fault)
98-
* <p>
99-
* The number of API requests has exceeded the maximum allowed API request throttling limit for the account.
100-
* </p>
98+
* <p>The number of API requests has exceeded the maximum allowed API request throttling limit
99+
* for the account.</p>
101100
*
102101
* @throws {@link BudgetsServiceException}
103102
* <p>Base exception class for all service exceptions from Budgets service.</p>

clients/client-budgets/src/commands/CreateSubscriberCommand.ts

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,14 @@ export interface CreateSubscriberCommandOutput extends CreateSubscriberResponse,
5151
* AccountId: "STRING_VALUE", // required
5252
* BudgetName: "STRING_VALUE", // required
5353
* Notification: { // Notification
54-
* NotificationType: "STRING_VALUE", // required
55-
* ComparisonOperator: "STRING_VALUE", // required
54+
* NotificationType: "ACTUAL" || "FORECASTED", // required
55+
* ComparisonOperator: "GREATER_THAN" || "LESS_THAN" || "EQUAL_TO", // required
5656
* Threshold: Number("double"), // required
57-
* ThresholdType: "STRING_VALUE",
58-
* NotificationState: "STRING_VALUE",
57+
* ThresholdType: "PERCENTAGE" || "ABSOLUTE_VALUE",
58+
* NotificationState: "OK" || "ALARM",
5959
* },
6060
* Subscriber: { // Subscriber
61-
* SubscriptionType: "STRING_VALUE", // required
61+
* SubscriptionType: "SNS" || "EMAIL", // required
6262
* Address: "STRING_VALUE", // required
6363
* },
6464
* };
@@ -93,9 +93,8 @@ export interface CreateSubscriberCommandOutput extends CreateSubscriberResponse,
9393
* <p>We can’t locate the resource that you specified.</p>
9494
*
9595
* @throws {@link ThrottlingException} (client fault)
96-
* <p>
97-
* The number of API requests has exceeded the maximum allowed API request throttling limit for the account.
98-
* </p>
96+
* <p>The number of API requests has exceeded the maximum allowed API request throttling limit
97+
* for the account.</p>
9998
*
10099
* @throws {@link BudgetsServiceException}
101100
* <p>Base exception class for all service exceptions from Budgets service.</p>

0 commit comments

Comments
 (0)