Class: Aws::Budgets::Types::UpdateBudgetActionRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::Budgets::Types::UpdateBudgetActionRequest
- Defined in:
- gems/aws-sdk-budgets/lib/aws-sdk-budgets/types.rb
Overview
When making an API call, you may pass UpdateBudgetActionRequest data as a hash:
{
account_id: "AccountId", # required
budget_name: "BudgetName", # required
action_id: "ActionId", # required
notification_type: "ACTUAL", # accepts ACTUAL, FORECASTED
action_threshold: {
action_threshold_value: 1.0, # required
action_threshold_type: "PERCENTAGE", # required, accepts PERCENTAGE, ABSOLUTE_VALUE
},
definition: {
iam_action_definition: {
policy_arn: "PolicyArn", # required
roles: ["Role"],
groups: ["Group"],
users: ["User"],
},
scp_action_definition: {
policy_id: "PolicyId", # required
target_ids: ["TargetId"], # required
},
ssm_action_definition: {
action_sub_type: "STOP_EC2_INSTANCES", # required, accepts STOP_EC2_INSTANCES, STOP_RDS_INSTANCES
region: "Region", # required
instance_ids: ["InstanceId"], # required
},
},
execution_role_arn: "RoleArn",
approval_model: "AUTOMATIC", # accepts AUTOMATIC, MANUAL
subscribers: [
{
subscription_type: "SNS", # required, accepts SNS, EMAIL
address: "SubscriberAddress", # required
},
],
}
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#account_id ⇒ String
The account ID of the user.
-
#action_id ⇒ String
A system-generated universally unique identifier (UUID) for the action.
-
#action_threshold ⇒ Types::ActionThreshold
The trigger threshold of the action.
-
#approval_model ⇒ String
This specifies if the action needs manual or automatic approval.
-
#budget_name ⇒ String
A string that represents the budget name.
-
#definition ⇒ Types::Definition
Specifies all of the type-specific parameters.
-
#execution_role_arn ⇒ String
The role passed for action execution and reversion.
-
#notification_type ⇒ String
The type of a notification.
-
#subscribers ⇒ Array<Types::Subscriber>
A list of subscribers.
Instance Attribute Details
#account_id ⇒ String
The account ID of the user. It's a 12-digit number.
2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 |
# File 'gems/aws-sdk-budgets/lib/aws-sdk-budgets/types.rb', line 2363 class UpdateBudgetActionRequest < Struct.new( :account_id, :budget_name, :action_id, :notification_type, :action_threshold, :definition, :execution_role_arn, :approval_model, :subscribers) SENSITIVE = [] include Aws::Structure end |
#action_id ⇒ String
A system-generated universally unique identifier (UUID) for the action.
2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 |
# File 'gems/aws-sdk-budgets/lib/aws-sdk-budgets/types.rb', line 2363 class UpdateBudgetActionRequest < Struct.new( :account_id, :budget_name, :action_id, :notification_type, :action_threshold, :definition, :execution_role_arn, :approval_model, :subscribers) SENSITIVE = [] include Aws::Structure end |
#action_threshold ⇒ Types::ActionThreshold
The trigger threshold of the action.
2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 |
# File 'gems/aws-sdk-budgets/lib/aws-sdk-budgets/types.rb', line 2363 class UpdateBudgetActionRequest < Struct.new( :account_id, :budget_name, :action_id, :notification_type, :action_threshold, :definition, :execution_role_arn, :approval_model, :subscribers) SENSITIVE = [] include Aws::Structure end |
#approval_model ⇒ String
This specifies if the action needs manual or automatic approval.
2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 |
# File 'gems/aws-sdk-budgets/lib/aws-sdk-budgets/types.rb', line 2363 class UpdateBudgetActionRequest < Struct.new( :account_id, :budget_name, :action_id, :notification_type, :action_threshold, :definition, :execution_role_arn, :approval_model, :subscribers) SENSITIVE = [] include Aws::Structure end |
#budget_name ⇒ String
A string that represents the budget name. The ":" and "\" characters aren't allowed.
2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 |
# File 'gems/aws-sdk-budgets/lib/aws-sdk-budgets/types.rb', line 2363 class UpdateBudgetActionRequest < Struct.new( :account_id, :budget_name, :action_id, :notification_type, :action_threshold, :definition, :execution_role_arn, :approval_model, :subscribers) SENSITIVE = [] include Aws::Structure end |
#definition ⇒ Types::Definition
Specifies all of the type-specific parameters.
2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 |
# File 'gems/aws-sdk-budgets/lib/aws-sdk-budgets/types.rb', line 2363 class UpdateBudgetActionRequest < Struct.new( :account_id, :budget_name, :action_id, :notification_type, :action_threshold, :definition, :execution_role_arn, :approval_model, :subscribers) SENSITIVE = [] include Aws::Structure end |
#execution_role_arn ⇒ String
The role passed for action execution and reversion. Roles and actions must be in the same account.
2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 |
# File 'gems/aws-sdk-budgets/lib/aws-sdk-budgets/types.rb', line 2363 class UpdateBudgetActionRequest < Struct.new( :account_id, :budget_name, :action_id, :notification_type, :action_threshold, :definition, :execution_role_arn, :approval_model, :subscribers) SENSITIVE = [] include Aws::Structure end |
#notification_type ⇒ String
The type of a notification. It must be ACTUAL or FORECASTED.
2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 |
# File 'gems/aws-sdk-budgets/lib/aws-sdk-budgets/types.rb', line 2363 class UpdateBudgetActionRequest < Struct.new( :account_id, :budget_name, :action_id, :notification_type, :action_threshold, :definition, :execution_role_arn, :approval_model, :subscribers) SENSITIVE = [] include Aws::Structure end |
#subscribers ⇒ Array<Types::Subscriber>
A list of subscribers.
2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 |
# File 'gems/aws-sdk-budgets/lib/aws-sdk-budgets/types.rb', line 2363 class UpdateBudgetActionRequest < Struct.new( :account_id, :budget_name, :action_id, :notification_type, :action_threshold, :definition, :execution_role_arn, :approval_model, :subscribers) SENSITIVE = [] include Aws::Structure end |