Class CfnBudgetsAction.Builder

java.lang.Object
software.amazon.awscdk.services.budgets.CfnBudgetsAction.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBudgetsAction>
Enclosing class:
CfnBudgetsAction

@Stability(Stable) public static final class CfnBudgetsAction.Builder extends Object implements software.amazon.jsii.Builder<CfnBudgetsAction>
A fluent builder for CfnBudgetsAction.
  • Method Details

    • create

      @Stability(Stable) public static CfnBudgetsAction.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnBudgetsAction.Builder.
    • actionThreshold

      @Stability(Stable) public CfnBudgetsAction.Builder actionThreshold(IResolvable actionThreshold)
      The trigger threshold of the action.

      Parameters:
      actionThreshold - The trigger threshold of the action. This parameter is required.
      Returns:
      this
    • actionThreshold

      @Stability(Stable) public CfnBudgetsAction.Builder actionThreshold(CfnBudgetsAction.ActionThresholdProperty actionThreshold)
      The trigger threshold of the action.

      Parameters:
      actionThreshold - The trigger threshold of the action. This parameter is required.
      Returns:
      this
    • actionType

      @Stability(Stable) public CfnBudgetsAction.Builder actionType(String 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.

      Parameters:
      actionType - The type of action. This parameter is required.
      Returns:
      this
    • budgetName

      @Stability(Stable) public CfnBudgetsAction.Builder budgetName(String budgetName)
      A string that represents the budget name.

      ":" and "" characters aren't allowed.

      Parameters:
      budgetName - A string that represents the budget name. This parameter is required.
      Returns:
      this
    • definition

      @Stability(Stable) public CfnBudgetsAction.Builder definition(IResolvable definition)
      Specifies all of the type-specific parameters.

      Parameters:
      definition - Specifies all of the type-specific parameters. This parameter is required.
      Returns:
      this
    • definition

      @Stability(Stable) public CfnBudgetsAction.Builder definition(CfnBudgetsAction.DefinitionProperty definition)
      Specifies all of the type-specific parameters.

      Parameters:
      definition - Specifies all of the type-specific parameters. This parameter is required.
      Returns:
      this
    • executionRoleArn

      @Stability(Stable) public CfnBudgetsAction.Builder executionRoleArn(String executionRoleArn)
      The role passed for action execution and reversion.

      Roles and actions must be in the same account.

      Parameters:
      executionRoleArn - The role passed for action execution and reversion. This parameter is required.
      Returns:
      this
    • notificationType

      @Stability(Stable) public CfnBudgetsAction.Builder notificationType(String notificationType)
      The type of a notification.

      Parameters:
      notificationType - The type of a notification. This parameter is required.
      Returns:
      this
    • subscribers

      @Stability(Stable) public CfnBudgetsAction.Builder subscribers(IResolvable subscribers)
      A list of subscribers.

      Parameters:
      subscribers - A list of subscribers. This parameter is required.
      Returns:
      this
    • subscribers

      @Stability(Stable) public CfnBudgetsAction.Builder subscribers(List<? extends Object> subscribers)
      A list of subscribers.

      Parameters:
      subscribers - A list of subscribers. This parameter is required.
      Returns:
      this
    • approvalModel

      @Stability(Stable) public CfnBudgetsAction.Builder approvalModel(String approvalModel)
      This specifies if the action needs manual or automatic approval.

      Parameters:
      approvalModel - This specifies if the action needs manual or automatic approval. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnBudgetsAction build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnBudgetsAction>
      Returns:
      a newly built instance of CfnBudgetsAction.