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

*******************************
get_capacity_manager_attributes
*******************************



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

  

  Retrieves the current configuration and status of EC2 Capacity Manager for your account, including enablement status, Organizations access settings, and data ingestion status.

  

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


  **Request Syntax**
  ::

    response = client.get_capacity_manager_attributes(
        DryRun=True|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``.

    

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

    
    ::

      {
          'CapacityManagerStatus': 'enabled'|'disabled',
          'OrganizationsAccess': True|False,
          'DataExportCount': 123,
          'IngestionStatus': 'initial-ingestion-in-progress'|'ingestion-complete'|'ingestion-failed',
          'IngestionStatusMessage': 'string',
          'EarliestDatapointTimestamp': datetime(2015, 1, 1),
          'LatestDatapointTimestamp': datetime(2015, 1, 1)
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

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

        The current status of Capacity Manager.

        
      

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

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

        
      

      - **DataExportCount** *(integer) --* 

        The number of active data export configurations for this account. This count includes all data exports regardless of their current delivery status.

        
      

      - **IngestionStatus** *(string) --* 

        The current data ingestion status. Initial ingestion may take several hours after enabling Capacity Manager.

        
      

      - **IngestionStatusMessage** *(string) --* 

        A descriptive message providing additional details about the current ingestion status. This may include error information if ingestion has failed or progress details during initial setup.

        
      

      - **EarliestDatapointTimestamp** *(datetime) --* 

        The timestamp of the earliest data point available in Capacity Manager, in milliseconds since epoch. This indicates how far back historical data is available for queries.

        
      

      - **LatestDatapointTimestamp** *(datetime) --* 

        The timestamp of the most recent data point ingested by Capacity Manager, in milliseconds since epoch. This indicates how current your capacity data is.

        
  