:doc:`BillingandCostManagementPricingCalculator <../../bcm-pricing-calculator>` / Client / update_workload_estimate

************************
update_workload_estimate
************************



.. py:method:: BillingandCostManagementPricingCalculator.Client.update_workload_estimate(**kwargs)

  

  Updates an existing workload estimate.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/bcm-pricing-calculator-2024-06-19/UpdateWorkloadEstimate>`_  


  **Request Syntax**
  ::

    response = client.update_workload_estimate(
        identifier='string',
        name='string',
        expiresAt=datetime(2015, 1, 1)
    )
    
  :type identifier: string
  :param identifier: **[REQUIRED]** 

    The unique identifier of the workload estimate to update.

    

  
  :type name: string
  :param name: 

    The new name for the workload estimate.

    

  
  :type expiresAt: datetime
  :param expiresAt: 

    The new expiration date for the workload estimate.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'id': 'string',
          'name': 'string',
          'createdAt': datetime(2015, 1, 1),
          'expiresAt': datetime(2015, 1, 1),
          'rateType': 'BEFORE_DISCOUNTS'|'AFTER_DISCOUNTS'|'AFTER_DISCOUNTS_AND_COMMITMENTS',
          'rateTimestamp': datetime(2015, 1, 1),
          'status': 'UPDATING'|'VALID'|'INVALID'|'ACTION_NEEDED',
          'totalCost': 123.0,
          'costCurrency': 'USD',
          'failureMessage': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 

      Mixin for common fields returned by CRUD APIs

      
      

      - **id** *(string) --* 

        The unique identifier of the updated workload estimate.

        
      

      - **name** *(string) --* 

        The updated name of the workload estimate.

        
      

      - **createdAt** *(datetime) --* 

        The timestamp when the workload estimate was originally created.

        
      

      - **expiresAt** *(datetime) --* 

        The updated expiration timestamp for the workload estimate.

        
      

      - **rateType** *(string) --* 

        The type of pricing rates used for the updated estimate.

        
      

      - **rateTimestamp** *(datetime) --* 

        The timestamp of the pricing rates used for the updated estimate.

        
      

      - **status** *(string) --* 

        The current status of the updated workload estimate.

        
      

      - **totalCost** *(float) --* 

        The updated total estimated cost for the workload.

        
      

      - **costCurrency** *(string) --* 

        The currency of the updated estimated cost.

        
      

      - **failureMessage** *(string) --* 

        An error message if the workload estimate update failed.

        
  
  **Exceptions**
  
  *   :py:class:`BillingandCostManagementPricingCalculator.Client.exceptions.ConflictException`

  
  *   :py:class:`BillingandCostManagementPricingCalculator.Client.exceptions.ValidationException`

  
  *   :py:class:`BillingandCostManagementPricingCalculator.Client.exceptions.DataUnavailableException`

  
  *   :py:class:`BillingandCostManagementPricingCalculator.Client.exceptions.InternalServerException`

  
  *   :py:class:`BillingandCostManagementPricingCalculator.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`BillingandCostManagementPricingCalculator.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`BillingandCostManagementPricingCalculator.Client.exceptions.ThrottlingException`

  