BillingandCostManagementPricingCalculator / Client / update_bill_estimate

update_bill_estimate#

BillingandCostManagementPricingCalculator.Client.update_bill_estimate(**kwargs)#

Updates an existing bill estimate.

See also: AWS API Documentation

Request Syntax

response = client.update_bill_estimate(
    identifier='string',
    name='string',
    expiresAt=datetime(2015, 1, 1)
)
Parameters:
  • identifier (string) –

    [REQUIRED]

    The unique identifier of the bill estimate to update.

  • name (string) – The new name for the bill estimate.

  • expiresAt (datetime) – The new expiration date for the bill estimate.

Return type:

dict

Returns:

Response Syntax

{
    'id': 'string',
    'name': 'string',
    'status': 'IN_PROGRESS'|'COMPLETE'|'FAILED',
    'failureMessage': 'string',
    'billInterval': {
        'start': datetime(2015, 1, 1),
        'end': datetime(2015, 1, 1)
    },
    'costSummary': {
        'totalCostDifference': {
            'historicalCost': {
                'amount': 123.0,
                'currency': 'USD'
            },
            'estimatedCost': {
                'amount': 123.0,
                'currency': 'USD'
            }
        },
        'serviceCostDifferences': {
            'string': {
                'historicalCost': {
                    'amount': 123.0,
                    'currency': 'USD'
                },
                'estimatedCost': {
                    'amount': 123.0,
                    'currency': 'USD'
                }
            }
        }
    },
    'createdAt': datetime(2015, 1, 1),
    'expiresAt': datetime(2015, 1, 1)
}

Response Structure

  • (dict) –

    • id (string) –

      The unique identifier of the updated bill estimate.

    • name (string) –

      The updated name of the bill estimate.

    • status (string) –

      The current status of the updated bill estimate.

    • failureMessage (string) –

      An error message if the bill estimate update failed.

    • billInterval (dict) –

      The time period covered by the updated bill estimate.

      • start (datetime) –

        The start date and time of the interval.

      • end (datetime) –

        The end date and time of the interval.

    • costSummary (dict) –

      A summary of the updated estimated costs.

      • totalCostDifference (dict) –

        The total difference in cost between the estimated and historical costs.

        • historicalCost (dict) –

          The historical cost amount.

          • amount (float) –

            The numeric value of the cost.

          • currency (string) –

            The currency code for the cost amount.

        • estimatedCost (dict) –

          The estimated cost amount.

          • amount (float) –

            The numeric value of the cost.

          • currency (string) –

            The currency code for the cost amount.

      • serviceCostDifferences (dict) –

        A breakdown of cost differences by Amazon Web Services service.

        • (string) –

          • (dict) –

            Represents the difference between historical and estimated costs.

            • historicalCost (dict) –

              The historical cost amount.

              • amount (float) –

                The numeric value of the cost.

              • currency (string) –

                The currency code for the cost amount.

            • estimatedCost (dict) –

              The estimated cost amount.

              • amount (float) –

                The numeric value of the cost.

              • currency (string) –

                The currency code for the cost amount.

    • createdAt (datetime) –

      The timestamp when the bill estimate was originally created.

    • expiresAt (datetime) –

      The updated expiration timestamp for the bill estimate.

Exceptions