1. Packages
  2. AWS Native
  3. API Docs
  4. budgets
  5. BudgetsAction

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.103.0 published on Monday, Apr 22, 2024 by Pulumi

aws-native.budgets.BudgetsAction

Explore with Pulumi AI

aws-native logo

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.103.0 published on Monday, Apr 22, 2024 by Pulumi

    An example resource schema demonstrating some basic constructs and validation rules.

    Create BudgetsAction Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new BudgetsAction(name: string, args: BudgetsActionArgs, opts?: CustomResourceOptions);
    @overload
    def BudgetsAction(resource_name: str,
                      args: BudgetsActionArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def BudgetsAction(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      action_threshold: Optional[BudgetsActionActionThresholdArgs] = None,
                      action_type: Optional[BudgetsActionActionType] = None,
                      budget_name: Optional[str] = None,
                      definition: Optional[BudgetsActionDefinitionArgs] = None,
                      execution_role_arn: Optional[str] = None,
                      notification_type: Optional[BudgetsActionNotificationType] = None,
                      subscribers: Optional[Sequence[BudgetsActionSubscriberArgs]] = None,
                      approval_model: Optional[BudgetsActionApprovalModel] = None)
    func NewBudgetsAction(ctx *Context, name string, args BudgetsActionArgs, opts ...ResourceOption) (*BudgetsAction, error)
    public BudgetsAction(string name, BudgetsActionArgs args, CustomResourceOptions? opts = null)
    public BudgetsAction(String name, BudgetsActionArgs args)
    public BudgetsAction(String name, BudgetsActionArgs args, CustomResourceOptions options)
    
    type: aws-native:budgets:BudgetsAction
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args BudgetsActionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args BudgetsActionArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args BudgetsActionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args BudgetsActionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args BudgetsActionArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    const budgetsActionResource = new aws_native.budgets.BudgetsAction("budgetsActionResource", {
        actionThreshold: {
            type: aws_native.budgets.BudgetsActionActionThresholdType.Percentage,
            value: 0,
        },
        actionType: aws_native.budgets.BudgetsActionActionType.ApplyIamPolicy,
        budgetName: "string",
        definition: {
            iamActionDefinition: {
                policyArn: "string",
                groups: ["string"],
                roles: ["string"],
                users: ["string"],
            },
            scpActionDefinition: {
                policyId: "string",
                targetIds: ["string"],
            },
            ssmActionDefinition: {
                instanceIds: ["string"],
                region: "string",
                subtype: aws_native.budgets.BudgetsActionSsmActionDefinitionSubtype.StopEc2Instances,
            },
        },
        executionRoleArn: "string",
        notificationType: aws_native.budgets.BudgetsActionNotificationType.Actual,
        subscribers: [{
            address: "string",
            type: aws_native.budgets.BudgetsActionSubscriberType.Sns,
        }],
        approvalModel: aws_native.budgets.BudgetsActionApprovalModel.Automatic,
    });
    
    Coming soon!
    

    BudgetsAction Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The BudgetsAction resource accepts the following input properties:

    Outputs

    All input properties are implicitly available as output properties. Additionally, the BudgetsAction resource produces the following output properties:

    ActionId string
    Id string
    The provider-assigned unique ID for this managed resource.
    ActionId string
    Id string
    The provider-assigned unique ID for this managed resource.
    actionId String
    id String
    The provider-assigned unique ID for this managed resource.
    actionId string
    id string
    The provider-assigned unique ID for this managed resource.
    action_id str
    id str
    The provider-assigned unique ID for this managed resource.
    actionId String
    id String
    The provider-assigned unique ID for this managed resource.

    Supporting Types

    BudgetsActionActionThreshold, BudgetsActionActionThresholdArgs

    BudgetsActionActionThresholdType, BudgetsActionActionThresholdTypeArgs

    Percentage
    PERCENTAGE
    AbsoluteValue
    ABSOLUTE_VALUE
    BudgetsActionActionThresholdTypePercentage
    PERCENTAGE
    BudgetsActionActionThresholdTypeAbsoluteValue
    ABSOLUTE_VALUE
    Percentage
    PERCENTAGE
    AbsoluteValue
    ABSOLUTE_VALUE
    Percentage
    PERCENTAGE
    AbsoluteValue
    ABSOLUTE_VALUE
    PERCENTAGE
    PERCENTAGE
    ABSOLUTE_VALUE
    ABSOLUTE_VALUE
    "PERCENTAGE"
    PERCENTAGE
    "ABSOLUTE_VALUE"
    ABSOLUTE_VALUE

    BudgetsActionActionType, BudgetsActionActionTypeArgs

    ApplyIamPolicy
    APPLY_IAM_POLICY
    ApplyScpPolicy
    APPLY_SCP_POLICY
    RunSsmDocuments
    RUN_SSM_DOCUMENTS
    BudgetsActionActionTypeApplyIamPolicy
    APPLY_IAM_POLICY
    BudgetsActionActionTypeApplyScpPolicy
    APPLY_SCP_POLICY
    BudgetsActionActionTypeRunSsmDocuments
    RUN_SSM_DOCUMENTS
    ApplyIamPolicy
    APPLY_IAM_POLICY
    ApplyScpPolicy
    APPLY_SCP_POLICY
    RunSsmDocuments
    RUN_SSM_DOCUMENTS
    ApplyIamPolicy
    APPLY_IAM_POLICY
    ApplyScpPolicy
    APPLY_SCP_POLICY
    RunSsmDocuments
    RUN_SSM_DOCUMENTS
    APPLY_IAM_POLICY
    APPLY_IAM_POLICY
    APPLY_SCP_POLICY
    APPLY_SCP_POLICY
    RUN_SSM_DOCUMENTS
    RUN_SSM_DOCUMENTS
    "APPLY_IAM_POLICY"
    APPLY_IAM_POLICY
    "APPLY_SCP_POLICY"
    APPLY_SCP_POLICY
    "RUN_SSM_DOCUMENTS"
    RUN_SSM_DOCUMENTS

    BudgetsActionApprovalModel, BudgetsActionApprovalModelArgs

    Automatic
    AUTOMATIC
    Manual
    MANUAL
    BudgetsActionApprovalModelAutomatic
    AUTOMATIC
    BudgetsActionApprovalModelManual
    MANUAL
    Automatic
    AUTOMATIC
    Manual
    MANUAL
    Automatic
    AUTOMATIC
    Manual
    MANUAL
    AUTOMATIC
    AUTOMATIC
    MANUAL
    MANUAL
    "AUTOMATIC"
    AUTOMATIC
    "MANUAL"
    MANUAL

    BudgetsActionDefinition, BudgetsActionDefinitionArgs

    BudgetsActionIamActionDefinition, BudgetsActionIamActionDefinitionArgs

    PolicyArn string
    Groups List<string>
    Roles List<string>
    Users List<string>
    PolicyArn string
    Groups []string
    Roles []string
    Users []string
    policyArn String
    groups List<String>
    roles List<String>
    users List<String>
    policyArn string
    groups string[]
    roles string[]
    users string[]
    policy_arn str
    groups Sequence[str]
    roles Sequence[str]
    users Sequence[str]
    policyArn String
    groups List<String>
    roles List<String>
    users List<String>

    BudgetsActionNotificationType, BudgetsActionNotificationTypeArgs

    Actual
    ACTUAL
    Forecasted
    FORECASTED
    BudgetsActionNotificationTypeActual
    ACTUAL
    BudgetsActionNotificationTypeForecasted
    FORECASTED
    Actual
    ACTUAL
    Forecasted
    FORECASTED
    Actual
    ACTUAL
    Forecasted
    FORECASTED
    ACTUAL
    ACTUAL
    FORECASTED
    FORECASTED
    "ACTUAL"
    ACTUAL
    "FORECASTED"
    FORECASTED

    BudgetsActionScpActionDefinition, BudgetsActionScpActionDefinitionArgs

    PolicyId string
    TargetIds List<string>
    PolicyId string
    TargetIds []string
    policyId String
    targetIds List<String>
    policyId string
    targetIds string[]
    policy_id str
    target_ids Sequence[str]
    policyId String
    targetIds List<String>

    BudgetsActionSsmActionDefinition, BudgetsActionSsmActionDefinitionArgs

    BudgetsActionSsmActionDefinitionSubtype, BudgetsActionSsmActionDefinitionSubtypeArgs

    StopEc2Instances
    STOP_EC2_INSTANCES
    StopRdsInstances
    STOP_RDS_INSTANCES
    BudgetsActionSsmActionDefinitionSubtypeStopEc2Instances
    STOP_EC2_INSTANCES
    BudgetsActionSsmActionDefinitionSubtypeStopRdsInstances
    STOP_RDS_INSTANCES
    StopEc2Instances
    STOP_EC2_INSTANCES
    StopRdsInstances
    STOP_RDS_INSTANCES
    StopEc2Instances
    STOP_EC2_INSTANCES
    StopRdsInstances
    STOP_RDS_INSTANCES
    STOP_EC2_INSTANCES
    STOP_EC2_INSTANCES
    STOP_RDS_INSTANCES
    STOP_RDS_INSTANCES
    "STOP_EC2_INSTANCES"
    STOP_EC2_INSTANCES
    "STOP_RDS_INSTANCES"
    STOP_RDS_INSTANCES

    BudgetsActionSubscriber, BudgetsActionSubscriberArgs

    BudgetsActionSubscriberType, BudgetsActionSubscriberTypeArgs

    Sns
    SNS
    Email
    EMAIL
    BudgetsActionSubscriberTypeSns
    SNS
    BudgetsActionSubscriberTypeEmail
    EMAIL
    Sns
    SNS
    Email
    EMAIL
    Sns
    SNS
    Email
    EMAIL
    SNS
    SNS
    EMAIL
    EMAIL
    "SNS"
    SNS
    "EMAIL"
    EMAIL

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo

    AWS Native is in preview. AWS Classic is fully supported.

    AWS Native v0.103.0 published on Monday, Apr 22, 2024 by Pulumi