BillingandCostManagementPricingCalculator / Client / batch_delete_bill_scenario_usage_modification

batch_delete_bill_scenario_usage_modification

BillingandCostManagementPricingCalculator.Client.batch_delete_bill_scenario_usage_modification(**kwargs)

Delete usage that you have created in a Bill Scenario. 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 BatchUpdateBillScenarioUsageModification.

Note

The BatchDeleteBillScenarioUsageModification operation doesn’t have its own IAM permission. To authorize this operation for Amazon Web Services principals, include the permission bcm-pricing-calculator:DeleteBillScenarioUsageModification in your policies.

See also: AWS API Documentation

Request Syntax

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

    [REQUIRED]

    The ID of the Bill Scenario for which you want to delete the modeled usage.

  • ids (list) –

    [REQUIRED]

    List of usage that you want to delete from the Bill Scenario.

    • (string) –

Return type:

dict

Returns:

Response Syntax

{
    'errors': [
        {
            'id': 'string',
            'errorMessage': 'string',
            'errorCode': 'BAD_REQUEST'|'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 Bill Scenario.

      • (dict) –

        Represents an error that occurred when deleting usage in a Bill Scenario.

        • 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.ConflictException

  • 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