Interface CfnBudgetsActionProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnBudgetsActionProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:29:55.868Z") @Stability(Stable) public interface CfnBudgetsActionProps extends software.amazon.jsii.JsiiSerializable
Properties for defining a CfnBudgetsAction.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.budgets.*;
 CfnBudgetsActionProps cfnBudgetsActionProps = CfnBudgetsActionProps.builder()
         .actionThreshold(ActionThresholdProperty.builder()
                 .type("type")
                 .value(123)
                 .build())
         .actionType("actionType")
         .budgetName("budgetName")
         .definition(DefinitionProperty.builder()
                 .iamActionDefinition(IamActionDefinitionProperty.builder()
                         .policyArn("policyArn")
                         // the properties below are optional
                         .groups(List.of("groups"))
                         .roles(List.of("roles"))
                         .users(List.of("users"))
                         .build())
                 .scpActionDefinition(ScpActionDefinitionProperty.builder()
                         .policyId("policyId")
                         .targetIds(List.of("targetIds"))
                         .build())
                 .ssmActionDefinition(SsmActionDefinitionProperty.builder()
                         .instanceIds(List.of("instanceIds"))
                         .region("region")
                         .subtype("subtype")
                         .build())
                 .build())
         .executionRoleArn("executionRoleArn")
         .notificationType("notificationType")
         .subscribers(List.of(SubscriberProperty.builder()
                 .address("address")
                 .type("type")
                 .build()))
         // the properties below are optional
         .approvalModel("approvalModel")
         .build();
 
  • Method Details

    • getActionThreshold

      @Stability(Stable) @NotNull Object getActionThreshold()
      The trigger threshold of the action.
    • getActionType

      @Stability(Stable) @NotNull String getActionType()
      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.

    • getBudgetName

      @Stability(Stable) @NotNull String getBudgetName()
      A string that represents the budget name.

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

    • getDefinition

      @Stability(Stable) @NotNull Object getDefinition()
      Specifies all of the type-specific parameters.
    • getExecutionRoleArn

      @Stability(Stable) @NotNull String getExecutionRoleArn()
      The role passed for action execution and reversion.

      Roles and actions must be in the same account.

    • getNotificationType

      @Stability(Stable) @NotNull String getNotificationType()
      The type of a notification.
    • getSubscribers

      @Stability(Stable) @NotNull Object getSubscribers()
      A list of subscribers.
    • getApprovalModel

      @Stability(Stable) @Nullable default String getApprovalModel()
      This specifies if the action needs manual or automatic approval.
    • builder

      @Stability(Stable) static CfnBudgetsActionProps.Builder builder()
      Returns:
      a CfnBudgetsActionProps.Builder of CfnBudgetsActionProps