create_budget_action
¶
create_budget_action(
account_id: AccountId,
budget_name: BudgetName,
notification_type: NotificationType,
action_type: ActionType,
action_threshold: ActionThreshold,
definition: Definition,
execution_role_arn: RoleArn,
approval_model: ApprovalModel,
subscribers: Subscribers,
*,
config_overrides: Optional[BudgetsClientConfig] = None,
resource_tags: Optional[ResourceTagList] = None,
) -> CreateBudgetActionResponse
Creates a budget action.
Parameters:
-
action_type(ActionType) –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.
-
execution_role_arn(RoleArn) –The role passed for action execution and reversion. Roles and actions must be in the same account.
-
approval_model(ApprovalModel) –This specifies if the action needs manual or automatic approval.
-
resource_tags(Optional[ResourceTagList], default:None) –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.
Raises:
-
AccessDeniedException–You are not authorized to use this operation with the given parameters.
-
CreationLimitExceededException–You've exceeded the notification or subscriber limit.
-
DuplicateRecordException–The budget name already exists. Budget names must be unique within an account.
-
InternalErrorException–An error on the server occurred during the processing of your request. Try again later.
-
InvalidParameterException–An error on the client occurred. Typically, the cause is an invalid input value.
-
NotFoundException–We can’t locate the resource that you specified.
-
ServiceQuotaExceededException–You've reached a Service Quota limit on this resource.
-
ThrottlingException–The number of API requests has exceeded the maximum allowed API request throttling limit for the account.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_budgets/_services/budgets.py
300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 | |