CfnBudgetsActionProps

class aws_cdk.aws_budgets.CfnBudgetsActionProps(*, action_threshold, action_type, budget_name, definition, execution_role_arn, notification_type, subscribers, approval_model=None, resource_tags=None)

Bases: object

Properties for defining a CfnBudgetsAction.

Parameters:
  • action_threshold (Union[IResolvable, ActionThresholdProperty, Dict[str, Any]]) – The trigger threshold of the action.

  • action_type (str) – 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.

  • budget_name (str) – A string that represents the budget name. “:” and “” characters aren’t allowed.

  • definition (Union[IResolvable, DefinitionProperty, Dict[str, Any]]) – Specifies all of the type-specific parameters.

  • execution_role_arn (str) – The role passed for action execution and reversion. Roles and actions must be in the same account.

  • notification_type (str) – The type of a notification.

  • subscribers (Union[IResolvable, Sequence[Union[IResolvable, SubscriberProperty, Dict[str, Any]]]]) – A list of subscribers.

  • approval_model (Optional[str]) – This specifies if the action needs manual or automatic approval.

  • resource_tags (Optional[Sequence[Union[ResourceTagProperty, Dict[str, Any]]]]) – 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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-budgets-budgetsaction.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_budgets as budgets

cfn_budgets_action_props = budgets.CfnBudgetsActionProps(
    action_threshold=budgets.CfnBudgetsAction.ActionThresholdProperty(
        type="type",
        value=123
    ),
    action_type="actionType",
    budget_name="budgetName",
    definition=budgets.CfnBudgetsAction.DefinitionProperty(
        iam_action_definition=budgets.CfnBudgetsAction.IamActionDefinitionProperty(
            policy_arn="policyArn",

            # the properties below are optional
            groups=["groups"],
            roles=["roles"],
            users=["users"]
        ),
        scp_action_definition=budgets.CfnBudgetsAction.ScpActionDefinitionProperty(
            policy_id="policyId",
            target_ids=["targetIds"]
        ),
        ssm_action_definition=budgets.CfnBudgetsAction.SsmActionDefinitionProperty(
            instance_ids=["instanceIds"],
            region="region",
            subtype="subtype"
        )
    ),
    execution_role_arn="executionRoleArn",
    notification_type="notificationType",
    subscribers=[budgets.CfnBudgetsAction.SubscriberProperty(
        address="address",
        type="type"
    )],

    # the properties below are optional
    approval_model="approvalModel",
    resource_tags=[budgets.CfnBudgetsAction.ResourceTagProperty(
        key="key",
        value="value"
    )]
)

Attributes

action_threshold

The trigger threshold of the action.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-budgets-budgetsaction.html#cfn-budgets-budgetsaction-actionthreshold

action_type

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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-budgets-budgetsaction.html#cfn-budgets-budgetsaction-actiontype

approval_model

This specifies if the action needs manual or automatic approval.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-budgets-budgetsaction.html#cfn-budgets-budgetsaction-approvalmodel

budget_name

A string that represents the budget name.

“:” and “” characters aren’t allowed.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-budgets-budgetsaction.html#cfn-budgets-budgetsaction-budgetname

definition

Specifies all of the type-specific parameters.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-budgets-budgetsaction.html#cfn-budgets-budgetsaction-definition

execution_role_arn

The role passed for action execution and reversion.

Roles and actions must be in the same account.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-budgets-budgetsaction.html#cfn-budgets-budgetsaction-executionrolearn

notification_type

The type of a notification.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-budgets-budgetsaction.html#cfn-budgets-budgetsaction-notificationtype

resource_tags

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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-budgets-budgetsaction.html#cfn-budgets-budgetsaction-resourcetags

subscribers

A list of subscribers.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-budgets-budgetsaction.html#cfn-budgets-budgetsaction-subscribers