import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { UpdateBudgetActionRequest, UpdateBudgetActionResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link UpdateBudgetActionCommand}. */ export interface UpdateBudgetActionCommandInput extends UpdateBudgetActionRequest { } /** * @public * * The output of {@link UpdateBudgetActionCommand}. */ export interface UpdateBudgetActionCommandOutput extends UpdateBudgetActionResponse, __MetadataBearer { } declare const UpdateBudgetActionCommand_base: { new (input: UpdateBudgetActionCommandInput): import("@smithy/core/client").CommandImpl; new (input: UpdateBudgetActionCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

* Updates a budget action. *

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { BudgetsClient, UpdateBudgetActionCommand } from "@aws-sdk/client-budgets"; // ES Modules import * // const { BudgetsClient, UpdateBudgetActionCommand } = require("@aws-sdk/client-budgets"); // CommonJS import * // import type { BudgetsClientConfig } from "@aws-sdk/client-budgets"; * const config = {}; // type is BudgetsClientConfig * const client = new BudgetsClient(config); * const input = { // UpdateBudgetActionRequest * AccountId: "STRING_VALUE", // required * BudgetName: "STRING_VALUE", // required * ActionId: "STRING_VALUE", // required * NotificationType: "ACTUAL" || "FORECASTED", * ActionThreshold: { // ActionThreshold * ActionThresholdValue: Number("double"), // required * ActionThresholdType: "PERCENTAGE" || "ABSOLUTE_VALUE", // required * }, * Definition: { // Definition * IamActionDefinition: { // IamActionDefinition * PolicyArn: "STRING_VALUE", // required * Roles: [ // Roles * "STRING_VALUE", * ], * Groups: [ // Groups * "STRING_VALUE", * ], * Users: [ // Users * "STRING_VALUE", * ], * }, * ScpActionDefinition: { // ScpActionDefinition * PolicyId: "STRING_VALUE", // required * TargetIds: [ // TargetIds // required * "STRING_VALUE", * ], * }, * SsmActionDefinition: { // SsmActionDefinition * ActionSubType: "STOP_EC2_INSTANCES" || "STOP_RDS_INSTANCES", // required * Region: "STRING_VALUE", // required * InstanceIds: [ // InstanceIds // required * "STRING_VALUE", * ], * }, * }, * ExecutionRoleArn: "STRING_VALUE", * ApprovalModel: "AUTOMATIC" || "MANUAL", * Subscribers: [ // Subscribers * { // Subscriber * SubscriptionType: "SNS" || "EMAIL", // required * Address: "STRING_VALUE", // required * }, * ], * }; * const command = new UpdateBudgetActionCommand(input); * const response = await client.send(command); * // { // UpdateBudgetActionResponse * // AccountId: "STRING_VALUE", // required * // BudgetName: "STRING_VALUE", // required * // OldAction: { // Action * // ActionId: "STRING_VALUE", // required * // BudgetName: "STRING_VALUE", // required * // NotificationType: "ACTUAL" || "FORECASTED", // required * // ActionType: "APPLY_IAM_POLICY" || "APPLY_SCP_POLICY" || "RUN_SSM_DOCUMENTS", // required * // ActionThreshold: { // ActionThreshold * // ActionThresholdValue: Number("double"), // required * // ActionThresholdType: "PERCENTAGE" || "ABSOLUTE_VALUE", // required * // }, * // Definition: { // Definition * // IamActionDefinition: { // IamActionDefinition * // PolicyArn: "STRING_VALUE", // required * // Roles: [ // Roles * // "STRING_VALUE", * // ], * // Groups: [ // Groups * // "STRING_VALUE", * // ], * // Users: [ // Users * // "STRING_VALUE", * // ], * // }, * // ScpActionDefinition: { // ScpActionDefinition * // PolicyId: "STRING_VALUE", // required * // TargetIds: [ // TargetIds // required * // "STRING_VALUE", * // ], * // }, * // SsmActionDefinition: { // SsmActionDefinition * // ActionSubType: "STOP_EC2_INSTANCES" || "STOP_RDS_INSTANCES", // required * // Region: "STRING_VALUE", // required * // InstanceIds: [ // InstanceIds // required * // "STRING_VALUE", * // ], * // }, * // }, * // ExecutionRoleArn: "STRING_VALUE", // required * // ApprovalModel: "AUTOMATIC" || "MANUAL", // required * // Status: "STANDBY" || "PENDING" || "EXECUTION_IN_PROGRESS" || "EXECUTION_SUCCESS" || "EXECUTION_FAILURE" || "REVERSE_IN_PROGRESS" || "REVERSE_SUCCESS" || "REVERSE_FAILURE" || "RESET_IN_PROGRESS" || "RESET_FAILURE", // required * // Subscribers: [ // Subscribers // required * // { // Subscriber * // SubscriptionType: "SNS" || "EMAIL", // required * // Address: "STRING_VALUE", // required * // }, * // ], * // }, * // NewAction: { * // ActionId: "STRING_VALUE", // required * // BudgetName: "STRING_VALUE", // required * // NotificationType: "ACTUAL" || "FORECASTED", // required * // ActionType: "APPLY_IAM_POLICY" || "APPLY_SCP_POLICY" || "RUN_SSM_DOCUMENTS", // required * // ActionThreshold: { * // ActionThresholdValue: Number("double"), // required * // ActionThresholdType: "PERCENTAGE" || "ABSOLUTE_VALUE", // required * // }, * // Definition: { * // IamActionDefinition: { * // PolicyArn: "STRING_VALUE", // required * // Roles: [ * // "STRING_VALUE", * // ], * // Groups: [ * // "STRING_VALUE", * // ], * // Users: [ * // "STRING_VALUE", * // ], * // }, * // ScpActionDefinition: { * // PolicyId: "STRING_VALUE", // required * // TargetIds: [ // required * // "STRING_VALUE", * // ], * // }, * // SsmActionDefinition: { * // ActionSubType: "STOP_EC2_INSTANCES" || "STOP_RDS_INSTANCES", // required * // Region: "STRING_VALUE", // required * // InstanceIds: [ // required * // "STRING_VALUE", * // ], * // }, * // }, * // ExecutionRoleArn: "STRING_VALUE", // required * // ApprovalModel: "AUTOMATIC" || "MANUAL", // required * // Status: "STANDBY" || "PENDING" || "EXECUTION_IN_PROGRESS" || "EXECUTION_SUCCESS" || "EXECUTION_FAILURE" || "REVERSE_IN_PROGRESS" || "REVERSE_SUCCESS" || "REVERSE_FAILURE" || "RESET_IN_PROGRESS" || "RESET_FAILURE", // required * // Subscribers: [ // required * // { * // SubscriptionType: "SNS" || "EMAIL", // required * // Address: "STRING_VALUE", // required * // }, * // ], * // }, * // }; * * ``` * * @param UpdateBudgetActionCommandInput - {@link UpdateBudgetActionCommandInput} * @returns {@link UpdateBudgetActionCommandOutput} * @see {@link UpdateBudgetActionCommandInput} for command's `input` shape. * @see {@link UpdateBudgetActionCommandOutput} for command's `response` shape. * @see {@link BudgetsClientResolvedConfig | config} for BudgetsClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

You are not authorized to use this operation with the given parameters.

* * @throws {@link InternalErrorException} (server fault) *

An error on the server occurred during the processing of your request. Try again later.

* * @throws {@link InvalidParameterException} (client fault) *

An error on the client occurred. Typically, the cause is an invalid input value.

* * @throws {@link NotFoundException} (client fault) *

We can’t locate the resource that you specified.

* * @throws {@link ResourceLockedException} (client fault) *

The request was received and recognized by the server, but the server rejected that * particular method for the requested resource.

* * @throws {@link ThrottlingException} (client fault) *

The number of API requests has exceeded the maximum allowed API request throttling limit * for the account.

* * @throws {@link BudgetsServiceException} *

Base exception class for all service exceptions from Budgets service.

* * * @public */ export declare class UpdateBudgetActionCommand extends UpdateBudgetActionCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: UpdateBudgetActionRequest; output: UpdateBudgetActionResponse; }; sdk: { input: UpdateBudgetActionCommandInput; output: UpdateBudgetActionCommandOutput; }; }; }