AWS Native is in preview. AWS Classic is fully supported.
aws-native.budgets.BudgetsAction
Explore with Pulumi AI
AWS Native is in preview. AWS Classic is fully supported.
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,
resource_tags: Optional[Sequence[_root_inputs.TagArgs]] = 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.
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:
- Action
Threshold Pulumi.Aws Native. Budgets. Inputs. Budgets Action Action Threshold - The trigger threshold of the action.
- Action
Type Pulumi.Aws Native. Budgets. Budgets Action 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.
- Budget
Name string - A string that represents the budget name. ":" and "" characters aren't allowed.
- Definition
Pulumi.
Aws Native. Budgets. Inputs. Budgets Action Definition - Specifies all of the type-specific parameters.
- Execution
Role stringArn - The role passed for action execution and reversion. Roles and actions must be in the same account.
- Notification
Type Pulumi.Aws Native. Budgets. Budgets Action Notification Type - The type of a notification.
- Subscribers
List<Pulumi.
Aws Native. Budgets. Inputs. Budgets Action Subscriber> - A list of subscribers.
- Approval
Model Pulumi.Aws Native. Budgets. Budgets Action Approval Model - This specifies if the action needs manual or automatic approval.
- List<Pulumi.
Aws Native. Inputs. Tag> - 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.
- Action
Threshold BudgetsAction Action Threshold Args - The trigger threshold of the action.
- Action
Type BudgetsAction 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.
- Budget
Name string - A string that represents the budget name. ":" and "" characters aren't allowed.
- Definition
Budgets
Action Definition Args - Specifies all of the type-specific parameters.
- Execution
Role stringArn - The role passed for action execution and reversion. Roles and actions must be in the same account.
- Notification
Type BudgetsAction Notification Type - The type of a notification.
- Subscribers
[]Budgets
Action Subscriber Args - A list of subscribers.
- Approval
Model BudgetsAction Approval Model - This specifies if the action needs manual or automatic approval.
- Tag
Args - 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.
- action
Threshold BudgetsAction Action Threshold - The trigger threshold of the action.
- action
Type BudgetsAction 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.
- budget
Name String - A string that represents the budget name. ":" and "" characters aren't allowed.
- definition
Budgets
Action Definition - Specifies all of the type-specific parameters.
- execution
Role StringArn - The role passed for action execution and reversion. Roles and actions must be in the same account.
- notification
Type BudgetsAction Notification Type - The type of a notification.
- subscribers
List<Budgets
Action Subscriber> - A list of subscribers.
- approval
Model BudgetsAction Approval Model - This specifies if the action needs manual or automatic approval.
- List<Tag>
- 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.
- action
Threshold BudgetsAction Action Threshold - The trigger threshold of the action.
- action
Type BudgetsAction 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.
- budget
Name string - A string that represents the budget name. ":" and "" characters aren't allowed.
- definition
Budgets
Action Definition - Specifies all of the type-specific parameters.
- execution
Role stringArn - The role passed for action execution and reversion. Roles and actions must be in the same account.
- notification
Type BudgetsAction Notification Type - The type of a notification.
- subscribers
Budgets
Action Subscriber[] - A list of subscribers.
- approval
Model BudgetsAction Approval Model - This specifies if the action needs manual or automatic approval.
- Tag[]
- 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.
- action_
threshold BudgetsAction Action Threshold Args - The trigger threshold of the action.
- action_
type BudgetsAction 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.
- budget_
name str - A string that represents the budget name. ":" and "" characters aren't allowed.
- definition
Budgets
Action Definition Args - Specifies all of the type-specific parameters.
- execution_
role_ strarn - The role passed for action execution and reversion. Roles and actions must be in the same account.
- notification_
type BudgetsAction Notification Type - The type of a notification.
- subscribers
Sequence[Budgets
Action Subscriber Args] - A list of subscribers.
- approval_
model BudgetsAction Approval Model - This specifies if the action needs manual or automatic approval.
- Sequence[Tag
Args] - 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.
- action
Threshold Property Map - The trigger threshold of the action.
- action
Type "APPLY_IAM_POLICY" | "APPLY_SCP_POLICY" | "RUN_SSM_DOCUMENTS" - 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 String - A string that represents the budget name. ":" and "" characters aren't allowed.
- definition Property Map
- Specifies all of the type-specific parameters.
- execution
Role StringArn - The role passed for action execution and reversion. Roles and actions must be in the same account.
- notification
Type "ACTUAL" | "FORECASTED" - The type of a notification.
- subscribers List<Property Map>
- A list of subscribers.
- approval
Model "AUTOMATIC" | "MANUAL" - This specifies if the action needs manual or automatic approval.
- List<Property Map>
- 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.
Outputs
All input properties are implicitly available as output properties. Additionally, the BudgetsAction resource produces the following output properties:
Supporting Types
BudgetsActionActionThreshold, BudgetsActionActionThresholdArgs
- Type
Pulumi.
Aws Native. Budgets. Budgets Action Action Threshold Type - The type of threshold for a notification.
- Value double
- The threshold of a notification.
- Type
Budgets
Action Action Threshold Type - The type of threshold for a notification.
- Value float64
- The threshold of a notification.
- type
Budgets
Action Action Threshold Type - The type of threshold for a notification.
- value Double
- The threshold of a notification.
- type
Budgets
Action Action Threshold Type - The type of threshold for a notification.
- value number
- The threshold of a notification.
- type
Budgets
Action Action Threshold Type - The type of threshold for a notification.
- value float
- The threshold of a notification.
- type "PERCENTAGE" | "ABSOLUTE_VALUE"
- The type of threshold for a notification.
- value Number
- The threshold of a notification.
BudgetsActionActionThresholdType, BudgetsActionActionThresholdTypeArgs
- Percentage
- PERCENTAGE
- Absolute
Value - ABSOLUTE_VALUE
- Budgets
Action Action Threshold Type Percentage - PERCENTAGE
- Budgets
Action Action Threshold Type Absolute Value - ABSOLUTE_VALUE
- Percentage
- PERCENTAGE
- Absolute
Value - ABSOLUTE_VALUE
- Percentage
- PERCENTAGE
- Absolute
Value - ABSOLUTE_VALUE
- PERCENTAGE
- PERCENTAGE
- ABSOLUTE_VALUE
- ABSOLUTE_VALUE
- "PERCENTAGE"
- PERCENTAGE
- "ABSOLUTE_VALUE"
- ABSOLUTE_VALUE
BudgetsActionActionType, BudgetsActionActionTypeArgs
- Apply
Iam Policy - APPLY_IAM_POLICY
- Apply
Scp Policy - APPLY_SCP_POLICY
- Run
Ssm Documents - RUN_SSM_DOCUMENTS
- Budgets
Action Action Type Apply Iam Policy - APPLY_IAM_POLICY
- Budgets
Action Action Type Apply Scp Policy - APPLY_SCP_POLICY
- Budgets
Action Action Type Run Ssm Documents - 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
- 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
- Budgets
Action Approval Model Automatic - AUTOMATIC
- Budgets
Action Approval Model Manual - MANUAL
- Automatic
- AUTOMATIC
- Manual
- MANUAL
- Automatic
- AUTOMATIC
- Manual
- MANUAL
- AUTOMATIC
- AUTOMATIC
- MANUAL
- MANUAL
- "AUTOMATIC"
- AUTOMATIC
- "MANUAL"
- MANUAL
BudgetsActionDefinition, BudgetsActionDefinitionArgs
- Iam
Action Pulumi.Definition Aws Native. Budgets. Inputs. Budgets Action Iam Action Definition - The AWS Identity and Access Management ( IAM ) action definition details.
- Scp
Action Pulumi.Definition Aws Native. Budgets. Inputs. Budgets Action Scp Action Definition - The service control policies (SCP) action definition details.
- Ssm
Action Pulumi.Definition Aws Native. Budgets. Inputs. Budgets Action Ssm Action Definition - The Amazon EC2 Systems Manager ( SSM ) action definition details.
- Iam
Action BudgetsDefinition Action Iam Action Definition - The AWS Identity and Access Management ( IAM ) action definition details.
- Scp
Action BudgetsDefinition Action Scp Action Definition - The service control policies (SCP) action definition details.
- Ssm
Action BudgetsDefinition Action Ssm Action Definition - The Amazon EC2 Systems Manager ( SSM ) action definition details.
- iam
Action BudgetsDefinition Action Iam Action Definition - The AWS Identity and Access Management ( IAM ) action definition details.
- scp
Action BudgetsDefinition Action Scp Action Definition - The service control policies (SCP) action definition details.
- ssm
Action BudgetsDefinition Action Ssm Action Definition - The Amazon EC2 Systems Manager ( SSM ) action definition details.
- iam
Action BudgetsDefinition Action Iam Action Definition - The AWS Identity and Access Management ( IAM ) action definition details.
- scp
Action BudgetsDefinition Action Scp Action Definition - The service control policies (SCP) action definition details.
- ssm
Action BudgetsDefinition Action Ssm Action Definition - The Amazon EC2 Systems Manager ( SSM ) action definition details.
- iam_
action_ Budgetsdefinition Action Iam Action Definition - The AWS Identity and Access Management ( IAM ) action definition details.
- scp_
action_ Budgetsdefinition Action Scp Action Definition - The service control policies (SCP) action definition details.
- ssm_
action_ Budgetsdefinition Action Ssm Action Definition - The Amazon EC2 Systems Manager ( SSM ) action definition details.
- iam
Action Property MapDefinition - The AWS Identity and Access Management ( IAM ) action definition details.
- scp
Action Property MapDefinition - The service control policies (SCP) action definition details.
- ssm
Action Property MapDefinition - The Amazon EC2 Systems Manager ( SSM ) action definition details.
BudgetsActionIamActionDefinition, BudgetsActionIamActionDefinitionArgs
- Policy
Arn string - The Amazon Resource Name (ARN) of the policy to be attached.
- Groups List<string>
- A list of groups to be attached. There must be at least one group.
- Roles List<string>
- A list of roles to be attached. There must be at least one role.
- Users List<string>
- A list of users to be attached. There must be at least one user.
- Policy
Arn string - The Amazon Resource Name (ARN) of the policy to be attached.
- Groups []string
- A list of groups to be attached. There must be at least one group.
- Roles []string
- A list of roles to be attached. There must be at least one role.
- Users []string
- A list of users to be attached. There must be at least one user.
- policy
Arn String - The Amazon Resource Name (ARN) of the policy to be attached.
- groups List<String>
- A list of groups to be attached. There must be at least one group.
- roles List<String>
- A list of roles to be attached. There must be at least one role.
- users List<String>
- A list of users to be attached. There must be at least one user.
- policy
Arn string - The Amazon Resource Name (ARN) of the policy to be attached.
- groups string[]
- A list of groups to be attached. There must be at least one group.
- roles string[]
- A list of roles to be attached. There must be at least one role.
- users string[]
- A list of users to be attached. There must be at least one user.
- policy_
arn str - The Amazon Resource Name (ARN) of the policy to be attached.
- groups Sequence[str]
- A list of groups to be attached. There must be at least one group.
- roles Sequence[str]
- A list of roles to be attached. There must be at least one role.
- users Sequence[str]
- A list of users to be attached. There must be at least one user.
- policy
Arn String - The Amazon Resource Name (ARN) of the policy to be attached.
- groups List<String>
- A list of groups to be attached. There must be at least one group.
- roles List<String>
- A list of roles to be attached. There must be at least one role.
- users List<String>
- A list of users to be attached. There must be at least one user.
BudgetsActionNotificationType, BudgetsActionNotificationTypeArgs
- Actual
- ACTUAL
- Forecasted
- FORECASTED
- Budgets
Action Notification Type Actual - ACTUAL
- Budgets
Action Notification Type Forecasted - FORECASTED
- Actual
- ACTUAL
- Forecasted
- FORECASTED
- Actual
- ACTUAL
- Forecasted
- FORECASTED
- ACTUAL
- ACTUAL
- FORECASTED
- FORECASTED
- "ACTUAL"
- ACTUAL
- "FORECASTED"
- FORECASTED
BudgetsActionScpActionDefinition, BudgetsActionScpActionDefinitionArgs
- policy_
id str - The policy ID attached.
- target_
ids Sequence[str] - A list of target IDs.
BudgetsActionSsmActionDefinition, BudgetsActionSsmActionDefinitionArgs
- Instance
Ids List<string> - The EC2 and RDS instance IDs.
- Region string
- The Region to run the ( SSM ) document.
- Subtype
Pulumi.
Aws Native. Budgets. Budgets Action Ssm Action Definition Subtype - The action subType.
- Instance
Ids []string - The EC2 and RDS instance IDs.
- Region string
- The Region to run the ( SSM ) document.
- Subtype
Budgets
Action Ssm Action Definition Subtype - The action subType.
- instance
Ids List<String> - The EC2 and RDS instance IDs.
- region String
- The Region to run the ( SSM ) document.
- subtype
Budgets
Action Ssm Action Definition Subtype - The action subType.
- instance
Ids string[] - The EC2 and RDS instance IDs.
- region string
- The Region to run the ( SSM ) document.
- subtype
Budgets
Action Ssm Action Definition Subtype - The action subType.
- instance_
ids Sequence[str] - The EC2 and RDS instance IDs.
- region str
- The Region to run the ( SSM ) document.
- subtype
Budgets
Action Ssm Action Definition Subtype - The action subType.
- instance
Ids List<String> - The EC2 and RDS instance IDs.
- region String
- The Region to run the ( SSM ) document.
- subtype "STOP_EC2_INSTANCES" | "STOP_RDS_INSTANCES"
- The action subType.
BudgetsActionSsmActionDefinitionSubtype, BudgetsActionSsmActionDefinitionSubtypeArgs
- Stop
Ec2Instances - STOP_EC2_INSTANCES
- Stop
Rds Instances - STOP_RDS_INSTANCES
- Budgets
Action Ssm Action Definition Subtype Stop Ec2Instances - STOP_EC2_INSTANCES
- Budgets
Action Ssm Action Definition Subtype Stop Rds Instances - STOP_RDS_INSTANCES
- Stop
Ec2Instances - STOP_EC2_INSTANCES
- Stop
Rds Instances - STOP_RDS_INSTANCES
- Stop
Ec2Instances - STOP_EC2_INSTANCES
- Stop
Rds Instances - 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
- Address string
The address that AWS sends budget notifications to, either an SNS topic or an email.
When you create a subscriber, the value of
Address
can't contain line breaks.- Type
Pulumi.
Aws Native. Budgets. Budgets Action Subscriber Type - The type of notification that AWS sends to a subscriber.
- Address string
The address that AWS sends budget notifications to, either an SNS topic or an email.
When you create a subscriber, the value of
Address
can't contain line breaks.- Type
Budgets
Action Subscriber Type - The type of notification that AWS sends to a subscriber.
- address String
The address that AWS sends budget notifications to, either an SNS topic or an email.
When you create a subscriber, the value of
Address
can't contain line breaks.- type
Budgets
Action Subscriber Type - The type of notification that AWS sends to a subscriber.
- address string
The address that AWS sends budget notifications to, either an SNS topic or an email.
When you create a subscriber, the value of
Address
can't contain line breaks.- type
Budgets
Action Subscriber Type - The type of notification that AWS sends to a subscriber.
- address str
The address that AWS sends budget notifications to, either an SNS topic or an email.
When you create a subscriber, the value of
Address
can't contain line breaks.- type
Budgets
Action Subscriber Type - The type of notification that AWS sends to a subscriber.
- address String
The address that AWS sends budget notifications to, either an SNS topic or an email.
When you create a subscriber, the value of
Address
can't contain line breaks.- type "SNS" | "EMAIL"
- The type of notification that AWS sends to a subscriber.
BudgetsActionSubscriberType, BudgetsActionSubscriberTypeArgs
- Sns
- SNS
- Budgets
Action Subscriber Type Sns - SNS
- Budgets
Action Subscriber Type Email
- Sns
- SNS
- Sns
- SNS
- SNS
- SNS
- "SNS"
- SNS
- "EMAIL"
Tag, TagArgs
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
AWS Native is in preview. AWS Classic is fully supported.