deleteCostCategoryDefinition method

Future<DeleteCostCategoryDefinitionResponse> deleteCostCategoryDefinition({
  1. required String costCategoryArn,
})

Deletes a cost category. Expenses from this month going forward will no longer be categorized with this cost category.

May throw LimitExceededException. May throw ResourceNotFoundException.

Parameter costCategoryArn : The unique identifier for your cost category.

Implementation

Future<DeleteCostCategoryDefinitionResponse> deleteCostCategoryDefinition({
  required String costCategoryArn,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AWSInsightsIndexService.DeleteCostCategoryDefinition'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'CostCategoryArn': costCategoryArn,
    },
  );

  return DeleteCostCategoryDefinitionResponse.fromJson(jsonResponse.body);
}