:doc:`EC2 <../../ec2>` / Client / disable_capacity_manager

************************
disable_capacity_manager
************************



.. py:method:: EC2.Client.disable_capacity_manager(**kwargs)

  

  Disables EC2 Capacity Manager for your account. This stops data ingestion and removes access to capacity analytics and optimization recommendations. Previously collected data is retained but no new data will be processed.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableCapacityManager>`_  


  **Request Syntax**
  ::

    response = client.disable_capacity_manager(
        DryRun=True|False,
        ClientToken='string'
    )
    
  :type DryRun: boolean
  :param DryRun: 

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is ``DryRunOperation``. Otherwise, it is ``UnauthorizedOperation``.

    

  
  :type ClientToken: string
  :param ClientToken: 

    Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

    This field is autopopulated if not provided.

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

    
    ::

      {
          'CapacityManagerStatus': 'enabled'|'disabled',
          'OrganizationsAccess': True|False
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **CapacityManagerStatus** *(string) --* 

        The current status of Capacity Manager after the disable operation.

        
      

      - **OrganizationsAccess** *(boolean) --* 

        Indicates whether Organizations access is enabled. This will be ``false`` after disabling Capacity Manager.

        
  