BillingandCostManagementPricingCalculator / Client / batch_delete_workload_estimate_usage

batch_delete_workload_estimate_usage#

BillingandCostManagementPricingCalculator.Client.batch_delete_workload_estimate_usage(**kwargs)#

Delete usage that you have created in a Workload estimate. You can only delete usage that you had added and cannot model deletion (or removal) of a existing usage. If you want model removal of an existing usage, see BatchUpdateWorkloadEstimateUsage.

See also: AWS API Documentation

Request Syntax

response = client.batch_delete_workload_estimate_usage(
    workloadEstimateId='string',
    ids=[
        'string',
    ]
)
Parameters:
  • workloadEstimateId (string) –

    [REQUIRED]

    The ID of the Workload estimate for which you want to delete the modeled usage.

  • ids (list) –

    [REQUIRED]

    List of usage that you want to delete from the Workload estimate.

    • (string) –

Return type:

dict

Returns:

Response Syntax

{
    'errors': [
        {
            'id': 'string',
            'errorMessage': 'string',
            'errorCode': 'BAD_REQUEST'|'NOT_FOUND'|'CONFLICT'|'INTERNAL_SERVER_ERROR'
        },
    ]
}

Response Structure

  • (dict) –

    • errors (list) –

      Returns the list of errors reason and the usage item keys that cannot be deleted from the Workload estimate.

      • (dict) –

        Represents an error that occurred when deleting usage in a workload estimate.

        • id (string) –

          The ID of the error.

        • errorMessage (string) –

          The message that describes the error.

        • errorCode (string) –

          The code associated with the error.

Exceptions

  • BillingandCostManagementPricingCalculator.Client.exceptions.ValidationException

  • BillingandCostManagementPricingCalculator.Client.exceptions.DataUnavailableException

  • BillingandCostManagementPricingCalculator.Client.exceptions.ServiceQuotaExceededException

  • BillingandCostManagementPricingCalculator.Client.exceptions.InternalServerException

  • BillingandCostManagementPricingCalculator.Client.exceptions.ResourceNotFoundException

  • BillingandCostManagementPricingCalculator.Client.exceptions.AccessDeniedException

  • BillingandCostManagementPricingCalculator.Client.exceptions.ThrottlingException