deleteBudgetAction method

Future<DeleteBudgetActionResponse> deleteBudgetAction({
  1. required String accountId,
  2. required String actionId,
  3. required String budgetName,
})

Deletes 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.

Implementation

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

  return DeleteBudgetActionResponse.fromJson(jsonResponse.body);
}