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

********************************
get_serial_console_access_status
********************************



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

  

  Retrieves the access status of your account to the EC2 serial console of all instances. By default, access to the EC2 serial console is disabled for your account. For more information, see `Manage account access to the EC2 serial console <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configure-access-to-serial-console.html#serial-console-account-access>`__ in the *Amazon EC2 User Guide*.

  

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


  **Request Syntax**
  ::

    response = client.get_serial_console_access_status(
        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**

    
    ::

      {
          'SerialConsoleAccessEnabled': True|False,
          'ManagedBy': 'account'|'declarative-policy'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **SerialConsoleAccessEnabled** *(boolean) --* 

        If ``true``, access to the EC2 serial console of all instances is enabled for your account. If ``false``, access to the EC2 serial console of all instances is disabled for your account.

        
      

      - **ManagedBy** *(string) --* 

        The entity that manages access to the serial console. Possible values include:

         

        
        * ``account`` - Access is managed by the account.
         
        * ``declarative-policy`` - Access is managed by a declarative policy and can't be modified by the account.
        

        
  