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

********************
update_bill_scenario
********************



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

  

  Updates an existing bill scenario.

  

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


  **Request Syntax**
  ::

    response = client.update_bill_scenario(
        identifier='string',
        name='string',
        expiresAt=datetime(2015, 1, 1),
        groupSharingPreference='OPEN'|'PRIORITIZED'|'RESTRICTED',
        costCategoryGroupSharingPreferenceArn='string'
    )
    
  :type identifier: string
  :param identifier: **[REQUIRED]** 

    The unique identifier of the bill scenario to update.

    

  
  :type name: string
  :param name: 

    The new name for the bill scenario.

    

  
  :type expiresAt: datetime
  :param expiresAt: 

    The new expiration date for the bill scenario.

    

  
  :type groupSharingPreference: string
  :param groupSharingPreference: 

    The setting for the reserved instance and savings plan group sharing used in this estimate.

    

  
  :type costCategoryGroupSharingPreferenceArn: string
  :param costCategoryGroupSharingPreferenceArn: 

    The arn of the cost category used in the reserved and prioritized group sharing.

    

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

    
    ::

      {
          'id': 'string',
          'name': 'string',
          'billInterval': {
              'start': datetime(2015, 1, 1),
              'end': datetime(2015, 1, 1)
          },
          'status': 'READY'|'LOCKED'|'FAILED'|'STALE',
          'createdAt': datetime(2015, 1, 1),
          'expiresAt': datetime(2015, 1, 1),
          'failureMessage': 'string',
          'groupSharingPreference': 'OPEN'|'PRIORITIZED'|'RESTRICTED',
          'costCategoryGroupSharingPreferenceArn': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

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

        The unique identifier of the updated bill scenario.

        
      

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

        The updated name of the bill scenario.

        
      

      - **billInterval** *(dict) --* 

        The time period covered by the updated bill scenario.

        
        

        - **start** *(datetime) --* 

          The start date and time of the interval.

          
        

        - **end** *(datetime) --* 

          The end date and time of the interval.

          
    
      

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

        The current status of the updated bill scenario.

        
      

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

        The timestamp when the bill scenario was originally created.

        
      

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

        The updated expiration timestamp for the bill scenario.

        
      

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

        An error message if the bill scenario update failed.

        
      

      - **groupSharingPreference** *(string) --* 

        The setting for the reserved instance and savings plan group sharing used in this estimate.

        
      

      - **costCategoryGroupSharingPreferenceArn** *(string) --* 

        The arn of the cost category used in the reserved and prioritized group sharing.

        
  
  **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`

  