deleteCostCategoryDefinition method
Future<DeleteCostCategoryDefinitionResponse>
deleteCostCategoryDefinition({
- required String costCategoryArn,
Deletes a Cost Category. Expenses from this month going forward will no longer be categorized with this Cost Category.
May throw ResourceNotFoundException. May throw LimitExceededException.
Parameter costCategoryArn
:
The unique identifier for your Cost Category.
Implementation
Future<DeleteCostCategoryDefinitionResponse> deleteCostCategoryDefinition({
required String costCategoryArn,
}) async {
ArgumentError.checkNotNull(costCategoryArn, 'costCategoryArn');
_s.validateStringLength(
'costCategoryArn',
costCategoryArn,
20,
2048,
isRequired: true,
);
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);
}