budgets.d.ts 51 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139
  1. import {Request} from '../lib/request';
  2. import {Response} from '../lib/response';
  3. import {AWSError} from '../lib/error';
  4. import {Service} from '../lib/service';
  5. import {ServiceConfigurationOptions} from '../lib/service';
  6. import {ConfigBase as Config} from '../lib/config-base';
  7. interface Blob {}
  8. declare class Budgets extends Service {
  9. /**
  10. * Constructs a service object. This object has one method for each API operation.
  11. */
  12. constructor(options?: Budgets.Types.ClientConfiguration)
  13. config: Config & Budgets.Types.ClientConfiguration;
  14. /**
  15. * Creates a budget and, if included, notifications and subscribers. Only one of BudgetLimit or PlannedBudgetLimits can be present in the syntax at one time. Use the syntax that matches your case. The Request Syntax section shows the BudgetLimit syntax. For PlannedBudgetLimits, see the Examples section.
  16. */
  17. createBudget(params: Budgets.Types.CreateBudgetRequest, callback?: (err: AWSError, data: Budgets.Types.CreateBudgetResponse) => void): Request<Budgets.Types.CreateBudgetResponse, AWSError>;
  18. /**
  19. * Creates a budget and, if included, notifications and subscribers. Only one of BudgetLimit or PlannedBudgetLimits can be present in the syntax at one time. Use the syntax that matches your case. The Request Syntax section shows the BudgetLimit syntax. For PlannedBudgetLimits, see the Examples section.
  20. */
  21. createBudget(callback?: (err: AWSError, data: Budgets.Types.CreateBudgetResponse) => void): Request<Budgets.Types.CreateBudgetResponse, AWSError>;
  22. /**
  23. * Creates a budget action.
  24. */
  25. createBudgetAction(params: Budgets.Types.CreateBudgetActionRequest, callback?: (err: AWSError, data: Budgets.Types.CreateBudgetActionResponse) => void): Request<Budgets.Types.CreateBudgetActionResponse, AWSError>;
  26. /**
  27. * Creates a budget action.
  28. */
  29. createBudgetAction(callback?: (err: AWSError, data: Budgets.Types.CreateBudgetActionResponse) => void): Request<Budgets.Types.CreateBudgetActionResponse, AWSError>;
  30. /**
  31. * Creates a notification. You must create the budget before you create the associated notification.
  32. */
  33. createNotification(params: Budgets.Types.CreateNotificationRequest, callback?: (err: AWSError, data: Budgets.Types.CreateNotificationResponse) => void): Request<Budgets.Types.CreateNotificationResponse, AWSError>;
  34. /**
  35. * Creates a notification. You must create the budget before you create the associated notification.
  36. */
  37. createNotification(callback?: (err: AWSError, data: Budgets.Types.CreateNotificationResponse) => void): Request<Budgets.Types.CreateNotificationResponse, AWSError>;
  38. /**
  39. * Creates a subscriber. You must create the associated budget and notification before you create the subscriber.
  40. */
  41. createSubscriber(params: Budgets.Types.CreateSubscriberRequest, callback?: (err: AWSError, data: Budgets.Types.CreateSubscriberResponse) => void): Request<Budgets.Types.CreateSubscriberResponse, AWSError>;
  42. /**
  43. * Creates a subscriber. You must create the associated budget and notification before you create the subscriber.
  44. */
  45. createSubscriber(callback?: (err: AWSError, data: Budgets.Types.CreateSubscriberResponse) => void): Request<Budgets.Types.CreateSubscriberResponse, AWSError>;
  46. /**
  47. * Deletes a budget. You can delete your budget at any time. Deleting a budget also deletes the notifications and subscribers that are associated with that budget.
  48. */
  49. deleteBudget(params: Budgets.Types.DeleteBudgetRequest, callback?: (err: AWSError, data: Budgets.Types.DeleteBudgetResponse) => void): Request<Budgets.Types.DeleteBudgetResponse, AWSError>;
  50. /**
  51. * Deletes a budget. You can delete your budget at any time. Deleting a budget also deletes the notifications and subscribers that are associated with that budget.
  52. */
  53. deleteBudget(callback?: (err: AWSError, data: Budgets.Types.DeleteBudgetResponse) => void): Request<Budgets.Types.DeleteBudgetResponse, AWSError>;
  54. /**
  55. * Deletes a budget action.
  56. */
  57. deleteBudgetAction(params: Budgets.Types.DeleteBudgetActionRequest, callback?: (err: AWSError, data: Budgets.Types.DeleteBudgetActionResponse) => void): Request<Budgets.Types.DeleteBudgetActionResponse, AWSError>;
  58. /**
  59. * Deletes a budget action.
  60. */
  61. deleteBudgetAction(callback?: (err: AWSError, data: Budgets.Types.DeleteBudgetActionResponse) => void): Request<Budgets.Types.DeleteBudgetActionResponse, AWSError>;
  62. /**
  63. * Deletes a notification. Deleting a notification also deletes the subscribers that are associated with the notification.
  64. */
  65. deleteNotification(params: Budgets.Types.DeleteNotificationRequest, callback?: (err: AWSError, data: Budgets.Types.DeleteNotificationResponse) => void): Request<Budgets.Types.DeleteNotificationResponse, AWSError>;
  66. /**
  67. * Deletes a notification. Deleting a notification also deletes the subscribers that are associated with the notification.
  68. */
  69. deleteNotification(callback?: (err: AWSError, data: Budgets.Types.DeleteNotificationResponse) => void): Request<Budgets.Types.DeleteNotificationResponse, AWSError>;
  70. /**
  71. * Deletes a subscriber. Deleting the last subscriber to a notification also deletes the notification.
  72. */
  73. deleteSubscriber(params: Budgets.Types.DeleteSubscriberRequest, callback?: (err: AWSError, data: Budgets.Types.DeleteSubscriberResponse) => void): Request<Budgets.Types.DeleteSubscriberResponse, AWSError>;
  74. /**
  75. * Deletes a subscriber. Deleting the last subscriber to a notification also deletes the notification.
  76. */
  77. deleteSubscriber(callback?: (err: AWSError, data: Budgets.Types.DeleteSubscriberResponse) => void): Request<Budgets.Types.DeleteSubscriberResponse, AWSError>;
  78. /**
  79. * Describes a budget. The Request Syntax section shows the BudgetLimit syntax. For PlannedBudgetLimits, see the Examples section.
  80. */
  81. describeBudget(params: Budgets.Types.DescribeBudgetRequest, callback?: (err: AWSError, data: Budgets.Types.DescribeBudgetResponse) => void): Request<Budgets.Types.DescribeBudgetResponse, AWSError>;
  82. /**
  83. * Describes a budget. The Request Syntax section shows the BudgetLimit syntax. For PlannedBudgetLimits, see the Examples section.
  84. */
  85. describeBudget(callback?: (err: AWSError, data: Budgets.Types.DescribeBudgetResponse) => void): Request<Budgets.Types.DescribeBudgetResponse, AWSError>;
  86. /**
  87. * Describes a budget action detail.
  88. */
  89. describeBudgetAction(params: Budgets.Types.DescribeBudgetActionRequest, callback?: (err: AWSError, data: Budgets.Types.DescribeBudgetActionResponse) => void): Request<Budgets.Types.DescribeBudgetActionResponse, AWSError>;
  90. /**
  91. * Describes a budget action detail.
  92. */
  93. describeBudgetAction(callback?: (err: AWSError, data: Budgets.Types.DescribeBudgetActionResponse) => void): Request<Budgets.Types.DescribeBudgetActionResponse, AWSError>;
  94. /**
  95. * Describes a budget action history detail.
  96. */
  97. describeBudgetActionHistories(params: Budgets.Types.DescribeBudgetActionHistoriesRequest, callback?: (err: AWSError, data: Budgets.Types.DescribeBudgetActionHistoriesResponse) => void): Request<Budgets.Types.DescribeBudgetActionHistoriesResponse, AWSError>;
  98. /**
  99. * Describes a budget action history detail.
  100. */
  101. describeBudgetActionHistories(callback?: (err: AWSError, data: Budgets.Types.DescribeBudgetActionHistoriesResponse) => void): Request<Budgets.Types.DescribeBudgetActionHistoriesResponse, AWSError>;
  102. /**
  103. * Describes all of the budget actions for an account.
  104. */
  105. describeBudgetActionsForAccount(params: Budgets.Types.DescribeBudgetActionsForAccountRequest, callback?: (err: AWSError, data: Budgets.Types.DescribeBudgetActionsForAccountResponse) => void): Request<Budgets.Types.DescribeBudgetActionsForAccountResponse, AWSError>;
  106. /**
  107. * Describes all of the budget actions for an account.
  108. */
  109. describeBudgetActionsForAccount(callback?: (err: AWSError, data: Budgets.Types.DescribeBudgetActionsForAccountResponse) => void): Request<Budgets.Types.DescribeBudgetActionsForAccountResponse, AWSError>;
  110. /**
  111. * Describes all of the budget actions for a budget.
  112. */
  113. describeBudgetActionsForBudget(params: Budgets.Types.DescribeBudgetActionsForBudgetRequest, callback?: (err: AWSError, data: Budgets.Types.DescribeBudgetActionsForBudgetResponse) => void): Request<Budgets.Types.DescribeBudgetActionsForBudgetResponse, AWSError>;
  114. /**
  115. * Describes all of the budget actions for a budget.
  116. */
  117. describeBudgetActionsForBudget(callback?: (err: AWSError, data: Budgets.Types.DescribeBudgetActionsForBudgetResponse) => void): Request<Budgets.Types.DescribeBudgetActionsForBudgetResponse, AWSError>;
  118. /**
  119. * Lists the budget names and notifications that are associated with an account.
  120. */
  121. describeBudgetNotificationsForAccount(params: Budgets.Types.DescribeBudgetNotificationsForAccountRequest, callback?: (err: AWSError, data: Budgets.Types.DescribeBudgetNotificationsForAccountResponse) => void): Request<Budgets.Types.DescribeBudgetNotificationsForAccountResponse, AWSError>;
  122. /**
  123. * Lists the budget names and notifications that are associated with an account.
  124. */
  125. describeBudgetNotificationsForAccount(callback?: (err: AWSError, data: Budgets.Types.DescribeBudgetNotificationsForAccountResponse) => void): Request<Budgets.Types.DescribeBudgetNotificationsForAccountResponse, AWSError>;
  126. /**
  127. * Describes the history for DAILY, MONTHLY, and QUARTERLY budgets. Budget history isn't available for ANNUAL budgets.
  128. */
  129. describeBudgetPerformanceHistory(params: Budgets.Types.DescribeBudgetPerformanceHistoryRequest, callback?: (err: AWSError, data: Budgets.Types.DescribeBudgetPerformanceHistoryResponse) => void): Request<Budgets.Types.DescribeBudgetPerformanceHistoryResponse, AWSError>;
  130. /**
  131. * Describes the history for DAILY, MONTHLY, and QUARTERLY budgets. Budget history isn't available for ANNUAL budgets.
  132. */
  133. describeBudgetPerformanceHistory(callback?: (err: AWSError, data: Budgets.Types.DescribeBudgetPerformanceHistoryResponse) => void): Request<Budgets.Types.DescribeBudgetPerformanceHistoryResponse, AWSError>;
  134. /**
  135. * Lists the budgets that are associated with an account. The Request Syntax section shows the BudgetLimit syntax. For PlannedBudgetLimits, see the Examples section.
  136. */
  137. describeBudgets(params: Budgets.Types.DescribeBudgetsRequest, callback?: (err: AWSError, data: Budgets.Types.DescribeBudgetsResponse) => void): Request<Budgets.Types.DescribeBudgetsResponse, AWSError>;
  138. /**
  139. * Lists the budgets that are associated with an account. The Request Syntax section shows the BudgetLimit syntax. For PlannedBudgetLimits, see the Examples section.
  140. */
  141. describeBudgets(callback?: (err: AWSError, data: Budgets.Types.DescribeBudgetsResponse) => void): Request<Budgets.Types.DescribeBudgetsResponse, AWSError>;
  142. /**
  143. * Lists the notifications that are associated with a budget.
  144. */
  145. describeNotificationsForBudget(params: Budgets.Types.DescribeNotificationsForBudgetRequest, callback?: (err: AWSError, data: Budgets.Types.DescribeNotificationsForBudgetResponse) => void): Request<Budgets.Types.DescribeNotificationsForBudgetResponse, AWSError>;
  146. /**
  147. * Lists the notifications that are associated with a budget.
  148. */
  149. describeNotificationsForBudget(callback?: (err: AWSError, data: Budgets.Types.DescribeNotificationsForBudgetResponse) => void): Request<Budgets.Types.DescribeNotificationsForBudgetResponse, AWSError>;
  150. /**
  151. * Lists the subscribers that are associated with a notification.
  152. */
  153. describeSubscribersForNotification(params: Budgets.Types.DescribeSubscribersForNotificationRequest, callback?: (err: AWSError, data: Budgets.Types.DescribeSubscribersForNotificationResponse) => void): Request<Budgets.Types.DescribeSubscribersForNotificationResponse, AWSError>;
  154. /**
  155. * Lists the subscribers that are associated with a notification.
  156. */
  157. describeSubscribersForNotification(callback?: (err: AWSError, data: Budgets.Types.DescribeSubscribersForNotificationResponse) => void): Request<Budgets.Types.DescribeSubscribersForNotificationResponse, AWSError>;
  158. /**
  159. * Executes a budget action.
  160. */
  161. executeBudgetAction(params: Budgets.Types.ExecuteBudgetActionRequest, callback?: (err: AWSError, data: Budgets.Types.ExecuteBudgetActionResponse) => void): Request<Budgets.Types.ExecuteBudgetActionResponse, AWSError>;
  162. /**
  163. * Executes a budget action.
  164. */
  165. executeBudgetAction(callback?: (err: AWSError, data: Budgets.Types.ExecuteBudgetActionResponse) => void): Request<Budgets.Types.ExecuteBudgetActionResponse, AWSError>;
  166. /**
  167. * Lists tags associated with a budget or budget action resource.
  168. */
  169. listTagsForResource(params: Budgets.Types.ListTagsForResourceRequest, callback?: (err: AWSError, data: Budgets.Types.ListTagsForResourceResponse) => void): Request<Budgets.Types.ListTagsForResourceResponse, AWSError>;
  170. /**
  171. * Lists tags associated with a budget or budget action resource.
  172. */
  173. listTagsForResource(callback?: (err: AWSError, data: Budgets.Types.ListTagsForResourceResponse) => void): Request<Budgets.Types.ListTagsForResourceResponse, AWSError>;
  174. /**
  175. * Creates tags for a budget or budget action resource.
  176. */
  177. tagResource(params: Budgets.Types.TagResourceRequest, callback?: (err: AWSError, data: Budgets.Types.TagResourceResponse) => void): Request<Budgets.Types.TagResourceResponse, AWSError>;
  178. /**
  179. * Creates tags for a budget or budget action resource.
  180. */
  181. tagResource(callback?: (err: AWSError, data: Budgets.Types.TagResourceResponse) => void): Request<Budgets.Types.TagResourceResponse, AWSError>;
  182. /**
  183. * Deletes tags associated with a budget or budget action resource.
  184. */
  185. untagResource(params: Budgets.Types.UntagResourceRequest, callback?: (err: AWSError, data: Budgets.Types.UntagResourceResponse) => void): Request<Budgets.Types.UntagResourceResponse, AWSError>;
  186. /**
  187. * Deletes tags associated with a budget or budget action resource.
  188. */
  189. untagResource(callback?: (err: AWSError, data: Budgets.Types.UntagResourceResponse) => void): Request<Budgets.Types.UntagResourceResponse, AWSError>;
  190. /**
  191. * Updates a budget. You can change every part of a budget except for the budgetName and the calculatedSpend. When you modify a budget, the calculatedSpend drops to zero until Amazon Web Services has new usage data to use for forecasting. Only one of BudgetLimit or PlannedBudgetLimits can be present in the syntax at one time. Use the syntax that matches your case. The Request Syntax section shows the BudgetLimit syntax. For PlannedBudgetLimits, see the Examples section.
  192. */
  193. updateBudget(params: Budgets.Types.UpdateBudgetRequest, callback?: (err: AWSError, data: Budgets.Types.UpdateBudgetResponse) => void): Request<Budgets.Types.UpdateBudgetResponse, AWSError>;
  194. /**
  195. * Updates a budget. You can change every part of a budget except for the budgetName and the calculatedSpend. When you modify a budget, the calculatedSpend drops to zero until Amazon Web Services has new usage data to use for forecasting. Only one of BudgetLimit or PlannedBudgetLimits can be present in the syntax at one time. Use the syntax that matches your case. The Request Syntax section shows the BudgetLimit syntax. For PlannedBudgetLimits, see the Examples section.
  196. */
  197. updateBudget(callback?: (err: AWSError, data: Budgets.Types.UpdateBudgetResponse) => void): Request<Budgets.Types.UpdateBudgetResponse, AWSError>;
  198. /**
  199. * Updates a budget action.
  200. */
  201. updateBudgetAction(params: Budgets.Types.UpdateBudgetActionRequest, callback?: (err: AWSError, data: Budgets.Types.UpdateBudgetActionResponse) => void): Request<Budgets.Types.UpdateBudgetActionResponse, AWSError>;
  202. /**
  203. * Updates a budget action.
  204. */
  205. updateBudgetAction(callback?: (err: AWSError, data: Budgets.Types.UpdateBudgetActionResponse) => void): Request<Budgets.Types.UpdateBudgetActionResponse, AWSError>;
  206. /**
  207. * Updates a notification.
  208. */
  209. updateNotification(params: Budgets.Types.UpdateNotificationRequest, callback?: (err: AWSError, data: Budgets.Types.UpdateNotificationResponse) => void): Request<Budgets.Types.UpdateNotificationResponse, AWSError>;
  210. /**
  211. * Updates a notification.
  212. */
  213. updateNotification(callback?: (err: AWSError, data: Budgets.Types.UpdateNotificationResponse) => void): Request<Budgets.Types.UpdateNotificationResponse, AWSError>;
  214. /**
  215. * Updates a subscriber.
  216. */
  217. updateSubscriber(params: Budgets.Types.UpdateSubscriberRequest, callback?: (err: AWSError, data: Budgets.Types.UpdateSubscriberResponse) => void): Request<Budgets.Types.UpdateSubscriberResponse, AWSError>;
  218. /**
  219. * Updates a subscriber.
  220. */
  221. updateSubscriber(callback?: (err: AWSError, data: Budgets.Types.UpdateSubscriberResponse) => void): Request<Budgets.Types.UpdateSubscriberResponse, AWSError>;
  222. }
  223. declare namespace Budgets {
  224. export type AccountId = string;
  225. export interface Action {
  226. /**
  227. * A system-generated universally unique identifier (UUID) for the action.
  228. */
  229. ActionId: ActionId;
  230. BudgetName: BudgetName;
  231. NotificationType: NotificationType;
  232. /**
  233. * The type of action. This defines the type of tasks that can be carried out by this action. This field also determines the format for definition.
  234. */
  235. ActionType: ActionType;
  236. /**
  237. * The trigger threshold of the action.
  238. */
  239. ActionThreshold: ActionThreshold;
  240. /**
  241. * Where you specify all of the type-specific parameters.
  242. */
  243. Definition: Definition;
  244. /**
  245. * The role passed for action execution and reversion. Roles and actions must be in the same account.
  246. */
  247. ExecutionRoleArn: RoleArn;
  248. /**
  249. * This specifies if the action needs manual or automatic approval.
  250. */
  251. ApprovalModel: ApprovalModel;
  252. /**
  253. * The status of the action.
  254. */
  255. Status: ActionStatus;
  256. Subscribers: Subscribers;
  257. }
  258. export type ActionHistories = ActionHistory[];
  259. export interface ActionHistory {
  260. Timestamp: GenericTimestamp;
  261. /**
  262. * The status of action at the time of the event.
  263. */
  264. Status: ActionStatus;
  265. /**
  266. * This distinguishes between whether the events are triggered by the user or are generated by the system.
  267. */
  268. EventType: EventType;
  269. /**
  270. * The description of the details for the event.
  271. */
  272. ActionHistoryDetails: ActionHistoryDetails;
  273. }
  274. export interface ActionHistoryDetails {
  275. Message: GenericString;
  276. /**
  277. * The budget action resource.
  278. */
  279. Action: Action;
  280. }
  281. export type ActionId = string;
  282. export type ActionStatus = "STANDBY"|"PENDING"|"EXECUTION_IN_PROGRESS"|"EXECUTION_SUCCESS"|"EXECUTION_FAILURE"|"REVERSE_IN_PROGRESS"|"REVERSE_SUCCESS"|"REVERSE_FAILURE"|"RESET_IN_PROGRESS"|"RESET_FAILURE"|string;
  283. export type ActionSubType = "STOP_EC2_INSTANCES"|"STOP_RDS_INSTANCES"|string;
  284. export interface ActionThreshold {
  285. ActionThresholdValue: NotificationThreshold;
  286. ActionThresholdType: ThresholdType;
  287. }
  288. export type ActionType = "APPLY_IAM_POLICY"|"APPLY_SCP_POLICY"|"RUN_SSM_DOCUMENTS"|string;
  289. export type Actions = Action[];
  290. export type AdjustmentPeriod = number;
  291. export type AmazonResourceName = string;
  292. export type ApprovalModel = "AUTOMATIC"|"MANUAL"|string;
  293. export interface AutoAdjustData {
  294. /**
  295. * The string that defines whether your budget auto-adjusts based on historical or forecasted data.
  296. */
  297. AutoAdjustType: AutoAdjustType;
  298. /**
  299. * The parameters that define or describe the historical data that your auto-adjusting budget is based on.
  300. */
  301. HistoricalOptions?: HistoricalOptions;
  302. /**
  303. * The last time that your budget was auto-adjusted.
  304. */
  305. LastAutoAdjustTime?: GenericTimestamp;
  306. }
  307. export type AutoAdjustType = "HISTORICAL"|"FORECAST"|string;
  308. export interface Budget {
  309. /**
  310. * The name of a budget. The name must be unique within an account. The : and \ characters, and the "/action/" substring, aren't allowed in BudgetName.
  311. */
  312. BudgetName: BudgetName;
  313. /**
  314. * The total amount of cost, usage, RI utilization, RI coverage, Savings Plans utilization, or Savings Plans coverage that you want to track with your budget. BudgetLimit is required for cost or usage budgets, but optional for RI or Savings Plans utilization or coverage budgets. RI and Savings Plans utilization or coverage budgets default to 100. This is the only valid value for RI or Savings Plans utilization or coverage budgets. You can't use BudgetLimit with PlannedBudgetLimits for CreateBudget and UpdateBudget actions.
  315. */
  316. BudgetLimit?: Spend;
  317. /**
  318. * A map containing multiple BudgetLimit, including current or future limits. PlannedBudgetLimits is available for cost or usage budget and supports both monthly and quarterly TimeUnit. For monthly budgets, provide 12 months of PlannedBudgetLimits values. This must start from the current month and include the next 11 months. The key is the start of the month, UTC in epoch seconds. For quarterly budgets, provide four quarters of PlannedBudgetLimits value entries in standard calendar quarter increments. This must start from the current quarter and include the next three quarters. The key is the start of the quarter, UTC in epoch seconds. If the planned budget expires before 12 months for monthly or four quarters for quarterly, provide the PlannedBudgetLimits values only for the remaining periods. If the budget begins at a date in the future, provide PlannedBudgetLimits values from the start date of the budget. After all of the BudgetLimit values in PlannedBudgetLimits are used, the budget continues to use the last limit as the BudgetLimit. At that point, the planned budget provides the same experience as a fixed budget. DescribeBudget and DescribeBudgets response along with PlannedBudgetLimits also contain BudgetLimit representing the current month or quarter limit present in PlannedBudgetLimits. This only applies to budgets that are created with PlannedBudgetLimits. Budgets that are created without PlannedBudgetLimits only contain BudgetLimit. They don't contain PlannedBudgetLimits.
  319. */
  320. PlannedBudgetLimits?: PlannedBudgetLimits;
  321. /**
  322. * The cost filters, such as Region, Service, LinkedAccount, Tag, or CostCategory, that are applied to a budget. Amazon Web Services Budgets supports the following services as a Service filter for RI budgets: Amazon EC2 Amazon Redshift Amazon Relational Database Service Amazon ElastiCache Amazon OpenSearch Service
  323. */
  324. CostFilters?: CostFilters;
  325. /**
  326. * The types of costs that are included in this COST budget. USAGE, RI_UTILIZATION, RI_COVERAGE, SAVINGS_PLANS_UTILIZATION, and SAVINGS_PLANS_COVERAGE budgets do not have CostTypes.
  327. */
  328. CostTypes?: CostTypes;
  329. /**
  330. * The length of time until a budget resets the actual and forecasted spend.
  331. */
  332. TimeUnit: TimeUnit;
  333. /**
  334. * The period of time that's covered by a budget. You setthe start date and end date. The start date must come before the end date. The end date must come before 06/15/87 00:00 UTC. If you create your budget and don't specify a start date, Amazon Web Services defaults to the start of your chosen time period (DAILY, MONTHLY, QUARTERLY, or ANNUALLY). For example, if you created your budget on January 24, 2018, chose DAILY, and didn't set a start date, Amazon Web Services set your start date to 01/24/18 00:00 UTC. If you chose MONTHLY, Amazon Web Services set your start date to 01/01/18 00:00 UTC. If you didn't specify an end date, Amazon Web Services set your end date to 06/15/87 00:00 UTC. The defaults are the same for the Billing and Cost Management console and the API. You can change either date with the UpdateBudget operation. After the end date, Amazon Web Services deletes the budget and all the associated notifications and subscribers.
  335. */
  336. TimePeriod?: TimePeriod;
  337. /**
  338. * The actual and forecasted cost or usage that the budget tracks.
  339. */
  340. CalculatedSpend?: CalculatedSpend;
  341. /**
  342. * Specifies whether this budget tracks costs, usage, RI utilization, RI coverage, Savings Plans utilization, or Savings Plans coverage.
  343. */
  344. BudgetType: BudgetType;
  345. /**
  346. * The last time that you updated this budget.
  347. */
  348. LastUpdatedTime?: GenericTimestamp;
  349. /**
  350. * The parameters that determine the budget amount for an auto-adjusting budget.
  351. */
  352. AutoAdjustData?: AutoAdjustData;
  353. }
  354. export type BudgetName = string;
  355. export interface BudgetNotificationsForAccount {
  356. Notifications?: Notifications;
  357. BudgetName?: BudgetName;
  358. }
  359. export type BudgetNotificationsForAccountList = BudgetNotificationsForAccount[];
  360. export interface BudgetPerformanceHistory {
  361. BudgetName?: BudgetName;
  362. BudgetType?: BudgetType;
  363. /**
  364. * The history of the cost filters for a budget during the specified time period.
  365. */
  366. CostFilters?: CostFilters;
  367. /**
  368. * The history of the cost types for a budget during the specified time period.
  369. */
  370. CostTypes?: CostTypes;
  371. TimeUnit?: TimeUnit;
  372. /**
  373. * A list of amounts of cost or usage that you created budgets for, which are compared to your actual costs or usage.
  374. */
  375. BudgetedAndActualAmountsList?: BudgetedAndActualAmountsList;
  376. }
  377. export type BudgetType = "USAGE"|"COST"|"RI_UTILIZATION"|"RI_COVERAGE"|"SAVINGS_PLANS_UTILIZATION"|"SAVINGS_PLANS_COVERAGE"|string;
  378. export interface BudgetedAndActualAmounts {
  379. /**
  380. * The amount of cost or usage that you created the budget for.
  381. */
  382. BudgetedAmount?: Spend;
  383. /**
  384. * Your actual costs or usage for a budget period.
  385. */
  386. ActualAmount?: Spend;
  387. /**
  388. * The time period that's covered by this budget comparison.
  389. */
  390. TimePeriod?: TimePeriod;
  391. }
  392. export type BudgetedAndActualAmountsList = BudgetedAndActualAmounts[];
  393. export type Budgets = Budget[];
  394. export interface CalculatedSpend {
  395. /**
  396. * The amount of cost, usage, RI units, or Savings Plans units that you used.
  397. */
  398. ActualSpend: Spend;
  399. /**
  400. * The amount of cost, usage, RI units, or Savings Plans units that you're forecasted to use.
  401. */
  402. ForecastedSpend?: Spend;
  403. }
  404. export type ComparisonOperator = "GREATER_THAN"|"LESS_THAN"|"EQUAL_TO"|string;
  405. export type CostFilters = {[key: string]: DimensionValues};
  406. export interface CostTypes {
  407. /**
  408. * Specifies whether a budget includes taxes. The default value is true.
  409. */
  410. IncludeTax?: NullableBoolean;
  411. /**
  412. * Specifies whether a budget includes subscriptions. The default value is true.
  413. */
  414. IncludeSubscription?: NullableBoolean;
  415. /**
  416. * Specifies whether a budget uses a blended rate. The default value is false.
  417. */
  418. UseBlended?: NullableBoolean;
  419. /**
  420. * Specifies whether a budget includes refunds. The default value is true.
  421. */
  422. IncludeRefund?: NullableBoolean;
  423. /**
  424. * Specifies whether a budget includes credits. The default value is true.
  425. */
  426. IncludeCredit?: NullableBoolean;
  427. /**
  428. * Specifies whether a budget includes upfront RI costs. The default value is true.
  429. */
  430. IncludeUpfront?: NullableBoolean;
  431. /**
  432. * Specifies whether a budget includes recurring fees such as monthly RI fees. The default value is true.
  433. */
  434. IncludeRecurring?: NullableBoolean;
  435. /**
  436. * Specifies whether a budget includes non-RI subscription costs. The default value is true.
  437. */
  438. IncludeOtherSubscription?: NullableBoolean;
  439. /**
  440. * Specifies whether a budget includes support subscription fees. The default value is true.
  441. */
  442. IncludeSupport?: NullableBoolean;
  443. /**
  444. * Specifies whether a budget includes discounts. The default value is true.
  445. */
  446. IncludeDiscount?: NullableBoolean;
  447. /**
  448. * Specifies whether a budget uses the amortized rate. The default value is false.
  449. */
  450. UseAmortized?: NullableBoolean;
  451. }
  452. export interface CreateBudgetActionRequest {
  453. AccountId: AccountId;
  454. BudgetName: BudgetName;
  455. NotificationType: NotificationType;
  456. /**
  457. * The type of action. This defines the type of tasks that can be carried out by this action. This field also determines the format for definition.
  458. */
  459. ActionType: ActionType;
  460. ActionThreshold: ActionThreshold;
  461. Definition: Definition;
  462. /**
  463. * The role passed for action execution and reversion. Roles and actions must be in the same account.
  464. */
  465. ExecutionRoleArn: RoleArn;
  466. /**
  467. * This specifies if the action needs manual or automatic approval.
  468. */
  469. ApprovalModel: ApprovalModel;
  470. Subscribers: Subscribers;
  471. /**
  472. * An optional list of tags to associate with the specified budget action. Each tag consists of a key and a value, and each key must be unique for the resource.
  473. */
  474. ResourceTags?: ResourceTagList;
  475. }
  476. export interface CreateBudgetActionResponse {
  477. AccountId: AccountId;
  478. BudgetName: BudgetName;
  479. /**
  480. * A system-generated universally unique identifier (UUID) for the action.
  481. */
  482. ActionId: ActionId;
  483. }
  484. export interface CreateBudgetRequest {
  485. /**
  486. * The accountId that is associated with the budget.
  487. */
  488. AccountId: AccountId;
  489. /**
  490. * The budget object that you want to create.
  491. */
  492. Budget: Budget;
  493. /**
  494. * A notification that you want to associate with a budget. A budget can have up to five notifications, and each notification can have one SNS subscriber and up to 10 email subscribers. If you include notifications and subscribers in your CreateBudget call, Amazon Web Services creates the notifications and subscribers for you.
  495. */
  496. NotificationsWithSubscribers?: NotificationWithSubscribersList;
  497. /**
  498. * An optional list of tags to associate with the specified budget. Each tag consists of a key and a value, and each key must be unique for the resource.
  499. */
  500. ResourceTags?: ResourceTagList;
  501. }
  502. export interface CreateBudgetResponse {
  503. }
  504. export interface CreateNotificationRequest {
  505. /**
  506. * The accountId that is associated with the budget that you want to create a notification for.
  507. */
  508. AccountId: AccountId;
  509. /**
  510. * The name of the budget that you want Amazon Web Services to notify you about. Budget names must be unique within an account.
  511. */
  512. BudgetName: BudgetName;
  513. /**
  514. * The notification that you want to create.
  515. */
  516. Notification: Notification;
  517. /**
  518. * A list of subscribers that you want to associate with the notification. Each notification can have one SNS subscriber and up to 10 email subscribers.
  519. */
  520. Subscribers: Subscribers;
  521. }
  522. export interface CreateNotificationResponse {
  523. }
  524. export interface CreateSubscriberRequest {
  525. /**
  526. * The accountId that is associated with the budget that you want to create a subscriber for.
  527. */
  528. AccountId: AccountId;
  529. /**
  530. * The name of the budget that you want to subscribe to. Budget names must be unique within an account.
  531. */
  532. BudgetName: BudgetName;
  533. /**
  534. * The notification that you want to create a subscriber for.
  535. */
  536. Notification: Notification;
  537. /**
  538. * The subscriber that you want to associate with a budget notification.
  539. */
  540. Subscriber: Subscriber;
  541. }
  542. export interface CreateSubscriberResponse {
  543. }
  544. export interface Definition {
  545. /**
  546. * The Identity and Access Management (IAM) action definition details.
  547. */
  548. IamActionDefinition?: IamActionDefinition;
  549. /**
  550. * The service control policies (SCPs) action definition details.
  551. */
  552. ScpActionDefinition?: ScpActionDefinition;
  553. /**
  554. * The Amazon Web Services Systems Manager (SSM) action definition details.
  555. */
  556. SsmActionDefinition?: SsmActionDefinition;
  557. }
  558. export interface DeleteBudgetActionRequest {
  559. AccountId: AccountId;
  560. BudgetName: BudgetName;
  561. /**
  562. * A system-generated universally unique identifier (UUID) for the action.
  563. */
  564. ActionId: ActionId;
  565. }
  566. export interface DeleteBudgetActionResponse {
  567. AccountId: AccountId;
  568. BudgetName: BudgetName;
  569. Action: Action;
  570. }
  571. export interface DeleteBudgetRequest {
  572. /**
  573. * The accountId that is associated with the budget that you want to delete.
  574. */
  575. AccountId: AccountId;
  576. /**
  577. * The name of the budget that you want to delete.
  578. */
  579. BudgetName: BudgetName;
  580. }
  581. export interface DeleteBudgetResponse {
  582. }
  583. export interface DeleteNotificationRequest {
  584. /**
  585. * The accountId that is associated with the budget whose notification you want to delete.
  586. */
  587. AccountId: AccountId;
  588. /**
  589. * The name of the budget whose notification you want to delete.
  590. */
  591. BudgetName: BudgetName;
  592. /**
  593. * The notification that you want to delete.
  594. */
  595. Notification: Notification;
  596. }
  597. export interface DeleteNotificationResponse {
  598. }
  599. export interface DeleteSubscriberRequest {
  600. /**
  601. * The accountId that is associated with the budget whose subscriber you want to delete.
  602. */
  603. AccountId: AccountId;
  604. /**
  605. * The name of the budget whose subscriber you want to delete.
  606. */
  607. BudgetName: BudgetName;
  608. /**
  609. * The notification whose subscriber you want to delete.
  610. */
  611. Notification: Notification;
  612. /**
  613. * The subscriber that you want to delete.
  614. */
  615. Subscriber: Subscriber;
  616. }
  617. export interface DeleteSubscriberResponse {
  618. }
  619. export interface DescribeBudgetActionHistoriesRequest {
  620. AccountId: AccountId;
  621. BudgetName: BudgetName;
  622. /**
  623. * A system-generated universally unique identifier (UUID) for the action.
  624. */
  625. ActionId: ActionId;
  626. TimePeriod?: TimePeriod;
  627. MaxResults?: MaxResults;
  628. NextToken?: GenericString;
  629. }
  630. export interface DescribeBudgetActionHistoriesResponse {
  631. /**
  632. * The historical record of the budget action resource.
  633. */
  634. ActionHistories: ActionHistories;
  635. NextToken?: GenericString;
  636. }
  637. export interface DescribeBudgetActionRequest {
  638. AccountId: AccountId;
  639. BudgetName: BudgetName;
  640. /**
  641. * A system-generated universally unique identifier (UUID) for the action.
  642. */
  643. ActionId: ActionId;
  644. }
  645. export interface DescribeBudgetActionResponse {
  646. AccountId: AccountId;
  647. BudgetName: BudgetName;
  648. /**
  649. * A budget action resource.
  650. */
  651. Action: Action;
  652. }
  653. export interface DescribeBudgetActionsForAccountRequest {
  654. AccountId: AccountId;
  655. MaxResults?: MaxResults;
  656. NextToken?: GenericString;
  657. }
  658. export interface DescribeBudgetActionsForAccountResponse {
  659. /**
  660. * A list of the budget action resources information.
  661. */
  662. Actions: Actions;
  663. NextToken?: GenericString;
  664. }
  665. export interface DescribeBudgetActionsForBudgetRequest {
  666. AccountId: AccountId;
  667. BudgetName: BudgetName;
  668. MaxResults?: MaxResults;
  669. NextToken?: GenericString;
  670. }
  671. export interface DescribeBudgetActionsForBudgetResponse {
  672. /**
  673. * A list of the budget action resources information.
  674. */
  675. Actions: Actions;
  676. NextToken?: GenericString;
  677. }
  678. export interface DescribeBudgetNotificationsForAccountRequest {
  679. AccountId: AccountId;
  680. /**
  681. * An integer that represents how many budgets a paginated response contains. The default is 50.
  682. */
  683. MaxResults?: MaxResultsBudgetNotifications;
  684. NextToken?: GenericString;
  685. }
  686. export interface DescribeBudgetNotificationsForAccountResponse {
  687. /**
  688. * A list of budget names and associated notifications for an account.
  689. */
  690. BudgetNotificationsForAccount?: BudgetNotificationsForAccountList;
  691. NextToken?: GenericString;
  692. }
  693. export interface DescribeBudgetPerformanceHistoryRequest {
  694. AccountId: AccountId;
  695. BudgetName: BudgetName;
  696. /**
  697. * Retrieves how often the budget went into an ALARM state for the specified time period.
  698. */
  699. TimePeriod?: TimePeriod;
  700. MaxResults?: MaxResults;
  701. NextToken?: GenericString;
  702. }
  703. export interface DescribeBudgetPerformanceHistoryResponse {
  704. /**
  705. * The history of how often the budget has gone into an ALARM state. For DAILY budgets, the history saves the state of the budget for the last 60 days. For MONTHLY budgets, the history saves the state of the budget for the current month plus the last 12 months. For QUARTERLY budgets, the history saves the state of the budget for the last four quarters.
  706. */
  707. BudgetPerformanceHistory?: BudgetPerformanceHistory;
  708. NextToken?: GenericString;
  709. }
  710. export interface DescribeBudgetRequest {
  711. /**
  712. * The accountId that is associated with the budget that you want a description of.
  713. */
  714. AccountId: AccountId;
  715. /**
  716. * The name of the budget that you want a description of.
  717. */
  718. BudgetName: BudgetName;
  719. }
  720. export interface DescribeBudgetResponse {
  721. /**
  722. * The description of the budget.
  723. */
  724. Budget?: Budget;
  725. }
  726. export interface DescribeBudgetsRequest {
  727. /**
  728. * The accountId that is associated with the budgets that you want to describe.
  729. */
  730. AccountId: AccountId;
  731. /**
  732. * An integer that represents how many budgets a paginated response contains. The default is 100.
  733. */
  734. MaxResults?: MaxResultsDescribeBudgets;
  735. /**
  736. * The pagination token that you include in your request to indicate the next set of results that you want to retrieve.
  737. */
  738. NextToken?: GenericString;
  739. }
  740. export interface DescribeBudgetsResponse {
  741. /**
  742. * A list of budgets.
  743. */
  744. Budgets?: Budgets;
  745. /**
  746. * The pagination token in the service response that indicates the next set of results that you can retrieve.
  747. */
  748. NextToken?: GenericString;
  749. }
  750. export interface DescribeNotificationsForBudgetRequest {
  751. /**
  752. * The accountId that is associated with the budget whose notifications you want descriptions of.
  753. */
  754. AccountId: AccountId;
  755. /**
  756. * The name of the budget whose notifications you want descriptions of.
  757. */
  758. BudgetName: BudgetName;
  759. /**
  760. * An optional integer that represents how many entries a paginated response contains.
  761. */
  762. MaxResults?: MaxResults;
  763. /**
  764. * The pagination token that you include in your request to indicate the next set of results that you want to retrieve.
  765. */
  766. NextToken?: GenericString;
  767. }
  768. export interface DescribeNotificationsForBudgetResponse {
  769. /**
  770. * A list of notifications that are associated with a budget.
  771. */
  772. Notifications?: Notifications;
  773. /**
  774. * The pagination token in the service response that indicates the next set of results that you can retrieve.
  775. */
  776. NextToken?: GenericString;
  777. }
  778. export interface DescribeSubscribersForNotificationRequest {
  779. /**
  780. * The accountId that is associated with the budget whose subscribers you want descriptions of.
  781. */
  782. AccountId: AccountId;
  783. /**
  784. * The name of the budget whose subscribers you want descriptions of.
  785. */
  786. BudgetName: BudgetName;
  787. /**
  788. * The notification whose subscribers you want to list.
  789. */
  790. Notification: Notification;
  791. /**
  792. * An optional integer that represents how many entries a paginated response contains.
  793. */
  794. MaxResults?: MaxResults;
  795. /**
  796. * The pagination token that you include in your request to indicate the next set of results that you want to retrieve.
  797. */
  798. NextToken?: GenericString;
  799. }
  800. export interface DescribeSubscribersForNotificationResponse {
  801. /**
  802. * A list of subscribers that are associated with a notification.
  803. */
  804. Subscribers?: Subscribers;
  805. /**
  806. * The pagination token in the service response that indicates the next set of results that you can retrieve.
  807. */
  808. NextToken?: GenericString;
  809. }
  810. export type DimensionValue = string;
  811. export type DimensionValues = DimensionValue[];
  812. export type EventType = "SYSTEM"|"CREATE_ACTION"|"DELETE_ACTION"|"UPDATE_ACTION"|"EXECUTE_ACTION"|string;
  813. export interface ExecuteBudgetActionRequest {
  814. AccountId: AccountId;
  815. BudgetName: BudgetName;
  816. /**
  817. * A system-generated universally unique identifier (UUID) for the action.
  818. */
  819. ActionId: ActionId;
  820. /**
  821. * The type of execution.
  822. */
  823. ExecutionType: ExecutionType;
  824. }
  825. export interface ExecuteBudgetActionResponse {
  826. AccountId: AccountId;
  827. BudgetName: BudgetName;
  828. /**
  829. * A system-generated universally unique identifier (UUID) for the action.
  830. */
  831. ActionId: ActionId;
  832. /**
  833. * The type of execution.
  834. */
  835. ExecutionType: ExecutionType;
  836. }
  837. export type ExecutionType = "APPROVE_BUDGET_ACTION"|"RETRY_BUDGET_ACTION"|"REVERSE_BUDGET_ACTION"|"RESET_BUDGET_ACTION"|string;
  838. export type GenericString = string;
  839. export type GenericTimestamp = Date;
  840. export type Group = string;
  841. export type Groups = Group[];
  842. export interface HistoricalOptions {
  843. /**
  844. * The number of budget periods included in the moving-average calculation that determines your auto-adjusted budget amount. The maximum value depends on the TimeUnit granularity of the budget: For the DAILY granularity, the maximum value is 60. For the MONTHLY granularity, the maximum value is 12. For the QUARTERLY granularity, the maximum value is 4. For the ANNUALLY granularity, the maximum value is 1.
  845. */
  846. BudgetAdjustmentPeriod: AdjustmentPeriod;
  847. /**
  848. * The integer that describes how many budget periods in your BudgetAdjustmentPeriod are included in the calculation of your current BudgetLimit. If the first budget period in your BudgetAdjustmentPeriod has no cost data, then that budget period isn’t included in the average that determines your budget limit. For example, if you set BudgetAdjustmentPeriod as 4 quarters, but your account had no cost data in the first quarter, then only the last three quarters are included in the calculation. In this scenario, LookBackAvailablePeriods returns 3. You can’t set your own LookBackAvailablePeriods. The value is automatically calculated from the BudgetAdjustmentPeriod and your historical cost data.
  849. */
  850. LookBackAvailablePeriods?: AdjustmentPeriod;
  851. }
  852. export interface IamActionDefinition {
  853. /**
  854. * The Amazon Resource Name (ARN) of the policy to be attached.
  855. */
  856. PolicyArn: PolicyArn;
  857. /**
  858. * A list of roles to be attached. There must be at least one role.
  859. */
  860. Roles?: Roles;
  861. /**
  862. * A list of groups to be attached. There must be at least one group.
  863. */
  864. Groups?: Groups;
  865. /**
  866. * A list of users to be attached. There must be at least one user.
  867. */
  868. Users?: Users;
  869. }
  870. export type InstanceId = string;
  871. export type InstanceIds = InstanceId[];
  872. export interface ListTagsForResourceRequest {
  873. /**
  874. * The unique identifier for the resource.
  875. */
  876. ResourceARN: AmazonResourceName;
  877. }
  878. export interface ListTagsForResourceResponse {
  879. /**
  880. * The tags associated with the resource.
  881. */
  882. ResourceTags?: ResourceTagList;
  883. }
  884. export type MaxResults = number;
  885. export type MaxResultsBudgetNotifications = number;
  886. export type MaxResultsDescribeBudgets = number;
  887. export interface Notification {
  888. /**
  889. * Specifies whether the notification is for how much you have spent (ACTUAL) or for how much that you're forecasted to spend (FORECASTED).
  890. */
  891. NotificationType: NotificationType;
  892. /**
  893. * The comparison that's used for this notification.
  894. */
  895. ComparisonOperator: ComparisonOperator;
  896. /**
  897. * The threshold that's associated with a notification. Thresholds are always a percentage, and many customers find value being alerted between 50% - 200% of the budgeted amount. The maximum limit for your threshold is 1,000,000% above the budgeted amount.
  898. */
  899. Threshold: NotificationThreshold;
  900. /**
  901. * The type of threshold for a notification. For ABSOLUTE_VALUE thresholds, Amazon Web Services notifies you when you go over or are forecasted to go over your total cost threshold. For PERCENTAGE thresholds, Amazon Web Services notifies you when you go over or are forecasted to go over a certain percentage of your forecasted spend. For example, if you have a budget for 200 dollars and you have a PERCENTAGE threshold of 80%, Amazon Web Services notifies you when you go over 160 dollars.
  902. */
  903. ThresholdType?: ThresholdType;
  904. /**
  905. * Specifies whether this notification is in alarm. If a budget notification is in the ALARM state, you passed the set threshold for the budget.
  906. */
  907. NotificationState?: NotificationState;
  908. }
  909. export type NotificationState = "OK"|"ALARM"|string;
  910. export type NotificationThreshold = number;
  911. export type NotificationType = "ACTUAL"|"FORECASTED"|string;
  912. export interface NotificationWithSubscribers {
  913. /**
  914. * The notification that's associated with a budget.
  915. */
  916. Notification: Notification;
  917. /**
  918. * A list of subscribers who are subscribed to this notification.
  919. */
  920. Subscribers: Subscribers;
  921. }
  922. export type NotificationWithSubscribersList = NotificationWithSubscribers[];
  923. export type Notifications = Notification[];
  924. export type NullableBoolean = boolean;
  925. export type NumericValue = string;
  926. export type PlannedBudgetLimits = {[key: string]: Spend};
  927. export type PolicyArn = string;
  928. export type PolicyId = string;
  929. export type Region = string;
  930. export interface ResourceTag {
  931. /**
  932. * The key that's associated with the tag.
  933. */
  934. Key: ResourceTagKey;
  935. /**
  936. * The value that's associated with the tag.
  937. */
  938. Value: ResourceTagValue;
  939. }
  940. export type ResourceTagKey = string;
  941. export type ResourceTagKeyList = ResourceTagKey[];
  942. export type ResourceTagList = ResourceTag[];
  943. export type ResourceTagValue = string;
  944. export type Role = string;
  945. export type RoleArn = string;
  946. export type Roles = Role[];
  947. export interface ScpActionDefinition {
  948. /**
  949. * The policy ID attached.
  950. */
  951. PolicyId: PolicyId;
  952. /**
  953. * A list of target IDs.
  954. */
  955. TargetIds: TargetIds;
  956. }
  957. export interface Spend {
  958. /**
  959. * The cost or usage amount that's associated with a budget forecast, actual spend, or budget threshold.
  960. */
  961. Amount: NumericValue;
  962. /**
  963. * The unit of measurement that's used for the budget forecast, actual spend, or budget threshold.
  964. */
  965. Unit: UnitValue;
  966. }
  967. export interface SsmActionDefinition {
  968. /**
  969. * The action subType.
  970. */
  971. ActionSubType: ActionSubType;
  972. /**
  973. * The Region to run the SSM document.
  974. */
  975. Region: Region;
  976. /**
  977. * The EC2 and RDS instance IDs.
  978. */
  979. InstanceIds: InstanceIds;
  980. }
  981. export interface Subscriber {
  982. /**
  983. * The type of notification that Amazon Web Services sends to a subscriber.
  984. */
  985. SubscriptionType: SubscriptionType;
  986. /**
  987. * The address that Amazon Web Services sends budget notifications to, either an SNS topic or an email. When you create a subscriber, the value of Address can't contain line breaks.
  988. */
  989. Address: SubscriberAddress;
  990. }
  991. export type SubscriberAddress = string;
  992. export type Subscribers = Subscriber[];
  993. export type SubscriptionType = "SNS"|"EMAIL"|string;
  994. export interface TagResourceRequest {
  995. /**
  996. * The unique identifier for the resource.
  997. */
  998. ResourceARN: AmazonResourceName;
  999. /**
  1000. * The tags associated with the resource.
  1001. */
  1002. ResourceTags: ResourceTagList;
  1003. }
  1004. export interface TagResourceResponse {
  1005. }
  1006. export type TargetId = string;
  1007. export type TargetIds = TargetId[];
  1008. export type ThresholdType = "PERCENTAGE"|"ABSOLUTE_VALUE"|string;
  1009. export interface TimePeriod {
  1010. /**
  1011. * The start date for a budget. If you created your budget and didn't specify a start date, Amazon Web Services defaults to the start of your chosen time period (DAILY, MONTHLY, QUARTERLY, or ANNUALLY). For example, if you created your budget on January 24, 2018, chose DAILY, and didn't set a start date, Amazon Web Services set your start date to 01/24/18 00:00 UTC. If you chose MONTHLY, Amazon Web Services set your start date to 01/01/18 00:00 UTC. The defaults are the same for the Billing and Cost Management console and the API. You can change your start date with the UpdateBudget operation.
  1012. */
  1013. Start?: GenericTimestamp;
  1014. /**
  1015. * The end date for a budget. If you didn't specify an end date, Amazon Web Services set your end date to 06/15/87 00:00 UTC. The defaults are the same for the Billing and Cost Management console and the API. After the end date, Amazon Web Services deletes the budget and all the associated notifications and subscribers. You can change your end date with the UpdateBudget operation.
  1016. */
  1017. End?: GenericTimestamp;
  1018. }
  1019. export type TimeUnit = "DAILY"|"MONTHLY"|"QUARTERLY"|"ANNUALLY"|string;
  1020. export type UnitValue = string;
  1021. export interface UntagResourceRequest {
  1022. /**
  1023. * The unique identifier for the resource.
  1024. */
  1025. ResourceARN: AmazonResourceName;
  1026. /**
  1027. * The key that's associated with the tag.
  1028. */
  1029. ResourceTagKeys: ResourceTagKeyList;
  1030. }
  1031. export interface UntagResourceResponse {
  1032. }
  1033. export interface UpdateBudgetActionRequest {
  1034. AccountId: AccountId;
  1035. BudgetName: BudgetName;
  1036. /**
  1037. * A system-generated universally unique identifier (UUID) for the action.
  1038. */
  1039. ActionId: ActionId;
  1040. NotificationType?: NotificationType;
  1041. ActionThreshold?: ActionThreshold;
  1042. Definition?: Definition;
  1043. /**
  1044. * The role passed for action execution and reversion. Roles and actions must be in the same account.
  1045. */
  1046. ExecutionRoleArn?: RoleArn;
  1047. /**
  1048. * This specifies if the action needs manual or automatic approval.
  1049. */
  1050. ApprovalModel?: ApprovalModel;
  1051. Subscribers?: Subscribers;
  1052. }
  1053. export interface UpdateBudgetActionResponse {
  1054. AccountId: AccountId;
  1055. BudgetName: BudgetName;
  1056. /**
  1057. * The previous action resource information.
  1058. */
  1059. OldAction: Action;
  1060. /**
  1061. * The updated action resource information.
  1062. */
  1063. NewAction: Action;
  1064. }
  1065. export interface UpdateBudgetRequest {
  1066. /**
  1067. * The accountId that is associated with the budget that you want to update.
  1068. */
  1069. AccountId: AccountId;
  1070. /**
  1071. * The budget that you want to update your budget to.
  1072. */
  1073. NewBudget: Budget;
  1074. }
  1075. export interface UpdateBudgetResponse {
  1076. }
  1077. export interface UpdateNotificationRequest {
  1078. /**
  1079. * The accountId that is associated with the budget whose notification you want to update.
  1080. */
  1081. AccountId: AccountId;
  1082. /**
  1083. * The name of the budget whose notification you want to update.
  1084. */
  1085. BudgetName: BudgetName;
  1086. /**
  1087. * The previous notification that is associated with a budget.
  1088. */
  1089. OldNotification: Notification;
  1090. /**
  1091. * The updated notification to be associated with a budget.
  1092. */
  1093. NewNotification: Notification;
  1094. }
  1095. export interface UpdateNotificationResponse {
  1096. }
  1097. export interface UpdateSubscriberRequest {
  1098. /**
  1099. * The accountId that is associated with the budget whose subscriber you want to update.
  1100. */
  1101. AccountId: AccountId;
  1102. /**
  1103. * The name of the budget whose subscriber you want to update.
  1104. */
  1105. BudgetName: BudgetName;
  1106. /**
  1107. * The notification whose subscriber you want to update.
  1108. */
  1109. Notification: Notification;
  1110. /**
  1111. * The previous subscriber that is associated with a budget notification.
  1112. */
  1113. OldSubscriber: Subscriber;
  1114. /**
  1115. * The updated subscriber that is associated with a budget notification.
  1116. */
  1117. NewSubscriber: Subscriber;
  1118. }
  1119. export interface UpdateSubscriberResponse {
  1120. }
  1121. export type User = string;
  1122. export type Users = User[];
  1123. /**
  1124. * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
  1125. */
  1126. export type apiVersion = "2016-10-20"|"latest"|string;
  1127. export interface ClientApiVersions {
  1128. /**
  1129. * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
  1130. */
  1131. apiVersion?: apiVersion;
  1132. }
  1133. export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
  1134. /**
  1135. * Contains interfaces for use with the Budgets client.
  1136. */
  1137. export import Types = Budgets;
  1138. }
  1139. export = Budgets;