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

***********************
enable_capacity_manager
***********************



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

  

  Enables EC2 Capacity Manager for your account. This starts data ingestion for your EC2 capacity usage across On-Demand, Spot, and Capacity Reservations. Initial data processing may take several hours to complete.

  

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


  **Request Syntax**
  ::

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

    Specifies whether to enable cross-account access for Amazon Web Services Organizations. When enabled, Capacity Manager can aggregate data from all accounts in your organization. Default is false.

    

  
  :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 enable operation.

        
      

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

        Indicates whether Organizations access is enabled for cross-account data aggregation.

        
  