executeBudgetAction method

Future<ExecuteBudgetActionResponse> executeBudgetAction({
  1. required String accountId,
  2. required String actionId,
  3. required String budgetName,
  4. required ExecutionType executionType,
})

Executes a budget action.

May throw AccessDeniedException. May throw InternalErrorException. May throw InvalidParameterException. May throw NotFoundException. May throw ResourceLockedException. May throw ThrottlingException.

Parameter actionId : A system-generated universally unique identifier (UUID) for the action.

Parameter executionType : The type of execution.

Implementation

Future<ExecuteBudgetActionResponse> executeBudgetAction({
  required String accountId,
  required String actionId,
  required String budgetName,
  required ExecutionType executionType,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AWSBudgetServiceGateway.ExecuteBudgetAction'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'AccountId': accountId,
      'ActionId': actionId,
      'BudgetName': budgetName,
      'ExecutionType': executionType.value,
    },
  );

  return ExecuteBudgetActionResponse.fromJson(jsonResponse.body);
}