Skip to content

Create Budget Action

budgets_create_budget_action R Documentation

Creates a budget action

Description

Creates a budget action.

Usage

budgets_create_budget_action(AccountId, BudgetName, NotificationType,
  ActionType, ActionThreshold, Definition, ExecutionRoleArn,
  ApprovalModel, Subscribers, ResourceTags)

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]

ResourceTags

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.

Value

A list with the following syntax:

list(
  AccountId = "string",
  BudgetName = "string",
  ActionId = "string"
)

Request syntax

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"
    )
  ),
  ResourceTags = list(
    list(
      Key = "string",
      Value = "string"
    )
  )
)