BillingandCostManagementPricingCalculator / Client / batch_delete_bill_scenario_commitment_modification

batch_delete_bill_scenario_commitment_modification

BillingandCostManagementPricingCalculator.Client.batch_delete_bill_scenario_commitment_modification(**kwargs)

Delete commitment that you have created in a Bill Scenario. You can only delete a commitment that you had added and cannot model deletion (or removal) of a existing commitment. If you want model deletion of an existing commitment, see the negate BillScenarioCommitmentModificationAction of BatchCreateBillScenarioCommitmentModification operation.

Note

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

See also: AWS API Documentation

Request Syntax

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

    [REQUIRED]

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

  • ids (list) –

    [REQUIRED]

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

    • (string) –

Return type:

dict

Returns:

Response Syntax

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

Response Structure

  • (dict) –

    • errors (list) –

      Returns the list of errors reason and the commitment item keys that cannot be deleted from the Bill Scenario.

      • (dict) –

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

        • id (string) –

          The ID of the error.

        • errorCode (string) –

          The code associated with the error.

        • errorMessage (string) –

          The message that describes the error.

Exceptions

  • BillingandCostManagementPricingCalculator.Client.exceptions.ConflictException

  • BillingandCostManagementPricingCalculator.Client.exceptions.ValidationException

  • BillingandCostManagementPricingCalculator.Client.exceptions.DataUnavailableException

  • BillingandCostManagementPricingCalculator.Client.exceptions.InternalServerException

  • BillingandCostManagementPricingCalculator.Client.exceptions.ResourceNotFoundException

  • BillingandCostManagementPricingCalculator.Client.exceptions.AccessDeniedException

  • BillingandCostManagementPricingCalculator.Client.exceptions.ThrottlingException