budgets_create_budget_action: Creates a budget action

Description Usage Arguments Value Request syntax

View source: R/budgets_operations.R

Description

Creates a budget action.

Usage

1
2
3
budgets_create_budget_action(AccountId, BudgetName, NotificationType,
  ActionType, ActionThreshold, Definition, ExecutionRoleArn,
  ApprovalModel, Subscribers)

Arguments

AccountId

[required]

BudgetName

[required]

NotificationType

[required]

ActionType

[required] 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.

ActionThreshold

[required]

Definition

[required]

ExecutionRoleArn

[required] The role passed for action execution and reversion. Roles and actions must be in the same account.

ApprovalModel

[required] This specifies if the action needs manual or automatic approval.

Subscribers

[required]

Value

A list with the following syntax:

1
2
3
4
5
list(
  AccountId = "string",
  BudgetName = "string",
  ActionId = "string"
)

Request syntax

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
svc$create_budget_action(
  AccountId = "string",
  BudgetName = "string",
  NotificationType = "ACTUAL"|"FORECASTED",
  ActionType = "APPLY_IAM_POLICY"|"APPLY_SCP_POLICY"|"RUN_SSM_DOCUMENTS",
  ActionThreshold = list(
    ActionThresholdValue = 123.0,
    ActionThresholdType = "PERCENTAGE"|"ABSOLUTE_VALUE"
  ),
  Definition = list(
    IamActionDefinition = list(
      PolicyArn = "string",
      Roles = list(
        "string"
      ),
      Groups = list(
        "string"
      ),
      Users = list(
        "string"
      )
    ),
    ScpActionDefinition = list(
      PolicyId = "string",
      TargetIds = list(
        "string"
      )
    ),
    SsmActionDefinition = list(
      ActionSubType = "STOP_EC2_INSTANCES"|"STOP_RDS_INSTANCES",
      Region = "string",
      InstanceIds = list(
        "string"
      )
    )
  ),
  ExecutionRoleArn = "string",
  ApprovalModel = "AUTOMATIC"|"MANUAL",
  Subscribers = list(
    list(
      SubscriptionType = "SNS"|"EMAIL",
      Address = "string"
    )
  )
)

paws.cost.management documentation built on Aug. 23, 2021, 9:20 a.m.